:root {
  color-scheme: light;
  --ink: #292a23;
  --ink-strong: #11120e;
  --ink-soft: #3d4034;
  --ink-muted: #54564a;
  --placeholder: #66675b;
  --error: #7a2e14;
  --ground: #e9dfc9;
  /* The signed-in app sits on one quiet colour; the city is only for the landing page. */
  --app-ground: #f3f2ee;
  --app-surface: #fdfcfa;
  --glass: rgba(255, 252, 245, 0.62);
  --paper: rgba(255, 252, 245, 0.86);
  --field: rgba(255, 255, 255, 0.72);
  --line: rgba(41, 42, 35, 0.2);
  --line-soft: rgba(41, 42, 35, 0.1);
  --track: rgba(41, 42, 35, 0.18);
  --good: #3f6b41;
  --good-soft: rgba(63, 107, 65, 0.12);
  --on-solid: #f6f1e4;
  --shadow: 0 10px 40px rgba(23, 26, 22, 0.12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--text);
  font-weight: 300;
  color: var(--ink);
  background: var(--ground);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--ground); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, strong, b { font-weight: 300; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* City background. Each layer is one stage; the page crossfades between them. */
.city { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ground); }
.city-layer {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 238, .08), rgba(255, 250, 238, 0) 55%, rgba(23, 26, 22, .18)), var(--city) center 60% / cover no-repeat;
  opacity: 0; transform: scale(1.035);
  transition: opacity 1.6s ease, transform 9s var(--ease);
}
.city-layer[data-stage="1"] { --city: url('images/city-1-ruins.webp'); }
.city-layer[data-stage="2"] { --city: url('images/city-2-village.webp'); }
.city-layer[data-stage="3"] { --city: url('images/city-3-town.webp'); }
.city-layer[data-stage="4"] { --city: url('images/city-4-walled.webp'); }
.city-layer[data-stage="5"] { --city: url('images/city-5-megapolis.webp'); }
body[data-stage="1"] .city-layer[data-stage="1"],
body[data-stage="2"] .city-layer[data-stage="2"],
body[data-stage="3"] .city-layer[data-stage="3"],
body[data-stage="4"] .city-layer[data-stage="4"],
body[data-stage="5"] .city-layer[data-stage="5"] { opacity: 1; transform: scale(1); }
.veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(255, 251, 242, .5), rgba(255, 251, 242, 0) 55%); transition: opacity 1s ease; }
body[data-view="gate"] .veil, body[data-view="code"] .veil { opacity: .4; }
body[data-view="gate"] main { padding-block: calc(env(safe-area-inset-top, 0px) + 84px) calc(env(safe-area-inset-bottom, 0px) + 40px); }

.brand {
  position: fixed; z-index: 2;
  top: calc(env(safe-area-inset-top, 0px) + 30px); left: 44px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 300; font-size: 20px; letter-spacing: .06em; line-height: 1;
  color: var(--ink);
}
.brand-home { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-icon { width: 26px; height: 29px; border-radius: 6px; }
.account-link {
  position: fixed; z-index: 2;
  top: calc(env(safe-area-inset-top, 0px) + 26px); right: 32px;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: var(--ink); font-size: 14px; letter-spacing: .02em; text-decoration: none;
}
.account-link:hover { border-color: rgba(41, 42, 35, .4); }

main {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding-inline: 16px;
  padding-block: calc(env(safe-area-inset-top, 0px) + 96px) calc(env(safe-area-inset-bottom, 0px) + 48px);
}
.view { width: 100%; display: flex; flex-direction: column; align-items: center; animation: arrive 1.1s var(--ease) both; }
#view-landing, #view-building, #view-done { margin-top: -10vh; }

/* Landing */
.site-form {
  width: min(560px, 100%); height: 60px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px 0 26px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 6px 28px rgba(23, 26, 22, .08);
  transition: border-color .3s, box-shadow .3s;
}
.site-form:focus-within { border-color: rgba(41, 42, 35, .38); box-shadow: 0 8px 34px rgba(23, 26, 22, .12); }
.site-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-weight: 300; font-size: 17px; letter-spacing: .02em; }
.site-form input::placeholder, .field::placeholder { color: var(--placeholder); }
.site-action {
  height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-soft); font-size: 14px; letter-spacing: .04em; white-space: nowrap;
  transition: background .25s, color .25s;
}
.site-action svg { transition: transform .35s var(--ease); }
.site-action:hover { background: rgba(41, 42, 35, .07); color: var(--ink-strong); }
.site-action:hover svg { transform: translateX(3px); }
.site-action:disabled { opacity: .6; cursor: default; }

.field-error {
  margin: 12px 0 0; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 252, 245, .78);
  color: var(--error); font-size: 14px; line-height: 1.4; text-align: center;
}

/* Building */
#view-building { gap: 22px; text-align: center; }
#view-building .progress + .build-detail { margin-top: -8px; }
.domain { margin: 0; font-size: 14px; font-weight: 300; letter-spacing: .08em; color: var(--ink-soft); }
.display { margin: 0; font-family: var(--display); font-weight: 200; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: .01em; text-wrap: balance; }
.display:focus { outline: none; }
.progress {
  margin-top: 40px;
  display: flex; align-items: center; gap: 10px;
  width: min(560px, 92vw); padding: 18px 24px;
  border: 1px solid var(--line-soft); border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 6px 28px rgba(23, 26, 22, .08);
}
.bar { flex: 1; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform var(--fill-ms, 500ms) linear; }
.dots { flex: none; display: flex; gap: 10px; padding-inline: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--track); transition: background .4s, box-shadow .6s, transform .4s var(--ease); }
.dot.lit { background: var(--ink); box-shadow: 0 0 0 3px rgba(41, 42, 35, .1); animation: pop .5s var(--ease); }
.progress.writing .dot:not(.lit) { animation: wait 1.6s ease-in-out infinite; }
.progress.writing .dot:nth-child(3n+1):not(.lit) { animation-delay: .25s; }
.progress.writing .dot:nth-child(3n+2):not(.lit) { animation-delay: .5s; }
#view-building .build-detail { margin-top: 14px; }
.build-detail { margin: 0; font-size: 15px; font-weight: 300; letter-spacing: .04em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Shared panels */
.panel {
  border: 1px solid var(--line-soft); border-radius: 18px;
  background: var(--paper);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.display-sm { margin: 0; font-family: var(--display); font-weight: 200; font-size: 32px; line-height: 1.1; letter-spacing: .01em; }
.display-md { margin: 0; font-family: var(--display); font-weight: 200; font-size: 36px; line-height: 1.1; letter-spacing: .01em; text-align: center; }
.display-md:focus, .article-title:focus { outline: none; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.field {
  width: 100%; height: 52px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--field); font-weight: 300; font-size: 16px; outline: none;
  transition: border-color .25s;
}
.field:focus { border-color: var(--ink); }
.btn-solid {
  height: 52px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--on-solid);
  font-size: 15px; letter-spacing: .04em;
  transition: background .25s;
}
.btn-solid:hover { background: var(--ink-strong); }
.btn-solid:disabled { opacity: .6; cursor: default; }
.text-link {
  padding: 12px 0; border: 0; background: none;
  color: var(--ink-soft); font-size: 14px; letter-spacing: .02em;
  text-decoration: underline; text-underline-offset: 5px;
}
.text-link:hover { color: var(--ink-strong); }
.text-link:disabled { text-decoration: none; opacity: .75; cursor: default; }
.stack .field-error { margin: 0; text-align: left; border-radius: 10px; }

/* Articles pane */
.pane {
  width: min(600px, 100%);
  /* See the city through the list; a little more body while reading an article. */
  background: rgba(255, 252, 245, .58);
  display: flex; flex-direction: column;
  max-height: calc(100dvh - 150px);
  overflow: hidden;
}
.pane-list { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 44px 44px 12px; display: flex; flex-direction: column; }
.pane-list .meta { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.articles { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.row {
  width: 100%; min-height: 64px; padding: 14px 18px 14px 12px;
  display: flex; align-items: center; gap: 16px;
  border: 1px solid transparent; border-radius: 14px; background: transparent;
  text-align: left; font-size: 15px; line-height: 1.35;
  transition: background .25s, border-color .25s;
}
.row-title { flex: 1; min-width: 0; }
.row-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink-muted); }
.row.open { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--ink); }
.row.open .row-icon { color: var(--ink); }
.row.open:hover { border-color: rgba(41, 42, 35, .4); background: #fff; }
.row.open .row-title { color: var(--ink); }
.row-read { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }
.row.open:hover .row-read svg { transform: translateX(3px); }
.row-read svg { transition: transform .35s var(--ease); }
.row.locked { color: var(--ink); background: rgba(255, 255, 255, .5); border-color: var(--line-soft); }
.row.locked:hover { background: rgba(255, 255, 255, .68); }
.row.locked .row-title { filter: blur(2px); user-select: none; }
.row.more { justify-content: center; min-height: 48px; color: var(--ink); font-size: 14px; letter-spacing: .02em; }
.row.more:hover { background: rgba(255, 255, 255, .4); }
.claimed-note { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.chip {
  flex: none; min-width: 44px; padding: 4px 9px; border-radius: 999px;
  font-size: 13px; font-weight: 300; text-align: center; font-variant-numeric: tabular-nums;
  background: var(--good-soft); color: var(--good);
}
.row.open .chip { background: rgba(41, 42, 35, .07); color: var(--ink-soft); }

.pane-article { flex: 1; min-height: 0; padding: 28px 44px 0; display: flex; flex-direction: column; gap: 12px; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; text-decoration: none; }
.back:hover { text-decoration: underline; }
.meta { margin: 0; font-size: 13px; letter-spacing: .06em; color: var(--ink-muted); }
.article-title { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 200; letter-spacing: 0; text-wrap: balance; }
.article-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px 24px 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.article-body:focus-visible { outline-offset: 2px; }
.article-body p { margin: 0 0 14px; max-width: 62ch; }
.article-body h2 { margin: 26px 0 10px; font-size: 20px; font-weight: 300; color: var(--ink); }

.unlock { flex: none; padding: 26px 44px 34px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line-soft); margin-top: 24px; }
.unlock-row { display: flex; gap: 8px; }
.unlock-row .field { flex: 1; min-width: 0; }
.unlock-row .btn-solid { flex: none; padding: 0 22px; }
.unlock .field-error { margin: 0; text-align: left; border-radius: 10px; }
.unlock-label { font-size: 15px; letter-spacing: .01em; color: var(--ink); }
/* The two words that sell the sign-up get the only medium weight on the page. */
.unlock-label u { font-weight: 500; color: var(--ink-strong); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.btn-solid strong { font-weight: 500; }
.unlock.nudge .unlock-row { animation: nudge .5s var(--ease); }
.unlock.nudge .field { border-color: var(--ink); }

.pane.reading { background: rgba(255, 252, 245, .78); height: calc(100dvh - 150px); max-height: 760px; }

/* SEO score toast */
.score-toast {
  position: fixed; z-index: 3;
  top: calc(env(safe-area-inset-top, 0px) + 22px); right: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line-soft); border-radius: 999px;
  background: var(--paper);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: toast-in .7s var(--ease) both;
}
.score-arc { transition: stroke-dasharray 1.2s var(--ease); }
.score-text { display: flex; flex-direction: column; line-height: 1.15; }
.score-label { font-size: 12px; letter-spacing: .06em; color: var(--ink-muted); }
.score-text strong { font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums; }

/* Email code */
.code-panel { width: min(440px, 100%); margin-top: -6vh; padding: 44px 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.code-sent { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; }
.code-sent strong { font-weight: 300; color: var(--ink); }
.digits { margin: 8px 0 0; padding: 0; border: 0; display: flex; gap: 8px; }
.digit {
  width: 48px; height: 58px; padding: 0;
  text-align: center; font-size: 24px; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .6); outline: none;
  transition: border-color .2s, background .2s;
}
.digit:focus { border: 1.5px solid var(--ink); background: #fff; }
.digits:disabled .digit { opacity: .6; }
.code-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 24px; }

/* Dashboard */
.account-bar {
  position: fixed; z-index: 2;
  top: calc(env(safe-area-inset-top, 0px) + 26px); right: 32px;
  display: flex; align-items: center; gap: 14px;
}
.account-bar .account-link { position: static; }
.account-email { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
button.account-link { cursor: pointer; }
.desk-main { place-items: center; }
body[data-view="app"] { background: var(--app-ground); }
body[data-view="app"] .panel { background: var(--app-surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 3px rgba(23, 26, 22, .05); }
.desk {
  width: min(1120px, 100%); height: calc(100dvh - 150px); min-height: 480px;
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); overflow: hidden;
}
.desk-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line-soft); padding: 32px 20px 16px 28px; }
.desk-head { display: flex; flex-direction: column; gap: 8px; padding-right: 8px; }
.desk-head .text-link { align-self: flex-start; padding: 6px 0; }
.site-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.site-tab { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; }
.site-tab[aria-pressed="true"] { background: var(--ink); color: var(--on-solid); border-color: var(--ink); }
.desk-articles { flex: 1; min-height: 0; overflow-y: auto; margin-top: 14px; padding-right: 8px; gap: 2px; }
.desk-row { min-height: 52px; padding: 10px 12px; gap: 12px; font-size: 14px; }
.desk-row:hover { background: rgba(255, 255, 255, .5); }
.desk-row.current { background: rgba(255, 255, 255, .8); border-color: var(--line); }
.desk-business { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.desk-row.pending { cursor: default; color: var(--ink-muted); }
.desk-row.pending:hover { background: transparent; border-color: transparent; }
.row-pending { flex: none; font-size: 13px; letter-spacing: .04em; color: var(--ink-muted); }
.row-pending.live { animation: wait 1.6s ease-in-out infinite; }
.row-num { flex: none; width: 22px; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.danger-link { align-self: flex-start; margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.desk-reader { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.reader-empty { flex: 1; display: grid; place-items: center; color: var(--ink-muted); font-size: 15px; }
.reader { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 28px 44px 20px; }
.reader .back { display: none; }
.reader-head { display: flex; align-items: center; gap: 12px; }
.reader-head .meta { flex: 1; }
.reader .article-body { padding-bottom: 12px; }
.reader > .text-link { align-self: flex-start; }
.danger { padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.danger p, .danger label { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.danger .field-error { text-align: left; border-radius: 10px; }
.danger-actions { display: flex; align-items: center; gap: 20px; }
.btn-danger { padding: 0 24px; background: #7a2e14; }
.btn-danger:hover { background: #5e220e; }
.desk-empty { width: min(480px, 100%); padding: 44px; display: flex; flex-direction: column; gap: 16px; margin-top: -8vh; }
.desk-empty p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.btn-link { display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; text-decoration: none; }

@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
/* Terms and privacy: small links in the corner, and the pages themselves */
.legal-links {
  position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); z-index: 2;
  display: flex; gap: 14px; padding: 6px 14px; border-radius: 999px; font-size: 12px; letter-spacing: .04em;
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
/* On the terms and privacy pages the links sit under the text instead of over it. */
body[data-view="legal"] .legal-links { position: relative; right: auto; bottom: auto; width: max-content; margin: -40px auto 32px; }
.legal-links a { color: var(--ink-soft); text-decoration: none; }
.legal-links a:hover, .legal-links a[aria-current] { color: var(--ink-strong); text-decoration: underline; text-underline-offset: 3px; }
body[data-view="building"] .legal-links, body[data-view="code"] .legal-links, body[data-view="done"] .legal-links { display: none; }
.legal-main { position: relative; z-index: 1; min-height: 100dvh; padding: calc(env(safe-area-inset-top, 0px) + 96px) 16px calc(env(safe-area-inset-bottom, 0px) + 64px); display: flex; justify-content: center; }
.legal { width: min(680px, 100%); align-self: flex-start; padding: 44px 48px 40px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.legal .meta { margin-top: 8px; }
.legal h2 { margin: 30px 0 8px; font-size: 18px; font-weight: 300; color: var(--ink); }
.legal p { margin: 14px 0 0; }
.legal ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal strong { font-weight: 500; color: var(--ink); }
.legal a { color: var(--ink); text-underline-offset: 3px; }

@keyframes wait { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 600px) {
  .brand { left: 20px; top: calc(env(safe-area-inset-top, 0px) + 24px); font-size: 18px; }
  .brand-icon { width: 22px; height: 25px; }
  .city-layer { background-position: 58% center; }
  .site-form { height: auto; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-form:focus-within { box-shadow: none; }
  .site-form input {
    width: 100%; height: 56px; padding: 0 22px; text-align: center;
    border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .site-form input:focus { border-color: rgba(41, 42, 35, .45); }
  .pane { max-height: calc(100dvh - 110px); }
  .pane.reading { height: calc(100dvh - 110px); }
  .pane-list { padding: 26px 18px 4px; }
  .pane-article { padding: 16px 20px 0; }
  .article-title { font-size: 23px; }
  .unlock { padding: 16px 18px 20px; }
  .unlock-row { flex-direction: column; }
  body[data-view="gate"] .legal-links, body[data-view="app"] .legal-links { display: none; }
  .legal { padding: 30px 22px 28px; }
  .unlock-row .field { flex: none; }
  .row { padding: 10px; gap: 10px; }
  .row-read span { display: none; }
  .progress { padding: 14px 16px; gap: 7px; }
  .account-link { top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; padding: 8px 14px; }
  .score-toast { top: calc(env(safe-area-inset-top, 0px) + 14px); right: 16px; padding: 6px 14px 6px 6px; gap: 8px; }
  .score-ring { width: 32px; height: 32px; }
  .score-text strong { font-size: 17px; }
  .code-panel { padding: 36px 20px 24px; }
  .digits { gap: 6px; }
  .digit { width: 42px; height: 54px; font-size: 22px; }
}

@media (max-width: 800px) {
  .desk { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 120px); }
  .desk-list { border-right: 0; padding: 24px 12px 12px 18px; }
  .desk-reader { display: none; }
  .desk.reading .desk-list { display: none; }
  .desk.reading .desk-reader { display: flex; }
  .reader { padding: 16px 20px 16px; }
  .reader .back { display: inline-flex; }
  .danger { padding: 28px 20px; }
  .account-bar { top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; gap: 8px; }
  .account-email { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .city-layer { transform: none; }
}
