/* Prompt Polis — site styles. Palette and shapes follow the game (tokengame web/style.css). */
:root {
  --ink: #2e2a40;
  --cream: #fff8ec;
  --cream2: #fff1d9;
  --paper: #fffaf0;
  --muted: #7a6f8e;
  --line: #2e2a40;
  --dash: #e6d8bd;
  --sky: #9be3ff;
  --sky2: #d0f1ff;
  --yellow: #ffd43b;
  --green: #51cf66;
  --green2: #d3f9d8;
  --red: #ff6b6b;
  --blue: #74c0fc;
  --blue2: #d0ebff;
  --purple2: #f3d9fa;
  --gold2: #fff3bf;
  --bg: var(--cream);
  --card: #fff;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", "Varela Round", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 4px 0 var(--line);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4eedd;
    --cream: #1f1c2c;
    --cream2: #353049;
    --paper: #262234;
    --muted: #a99fbd;
    --line: #5a5175;
    --dash: #3a3550;
    --sky: #1d3a52;
    --sky2: #223347;
    --green2: #1f3a2a;
    --blue2: #1f3247;
    --purple2: #382a43;
    --gold2: #3d3520;
    --card: #2a2639;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 15px/1 var(--font); color: #2e2a40; text-decoration: none;
  background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 16px; cursor: pointer; box-shadow: 0 3px 0 var(--line);
  transition: transform .08s, box-shadow .08s, background .1s; white-space: nowrap; }
.btn:hover { background: #fffbe6; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn.primary { background: var(--yellow); }
.btn.primary:hover { background: #ffe066; }
.btn.small { font-size: 13px; padding: 7px 11px; border-radius: 12px; }
.btn.big { font-size: 17px; padding: 14px 22px; border-radius: 16px; box-shadow: 0 4px 0 var(--line); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--cream2); }
.btn .g { width: 18px; height: 18px; flex: none; }
form.inline { display: inline; margin: 0; }

/* ---------- top bar */
.topbar { background: var(--cream); border-bottom: 3px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: #2e2a40; color: var(--yellow); display: grid; place-items: center;
  font: 900 15px/1 ui-monospace, "SF Mono", Menlo, monospace; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.logo-mark i { font-style: normal; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.logo b { color: #e8590c; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.me-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 3px 12px 3px 3px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: 0 3px 0 var(--line); font-weight: 800; font-size: 14px; max-width: 200px; }
.me-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- avatar */
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); object-fit: cover; background: var(--yellow); color: #2e2a40;
  display: grid; place-items: center; font-weight: 900; font-size: 14px; flex: none; text-transform: uppercase; }
.avatar.xl { width: 112px; height: 112px; font-size: 46px; border-width: 3px; box-shadow: var(--shadow); }
.avatar.md { width: 40px; height: 40px; font-size: 17px; }

/* ---------- messages */
.messages { list-style: none; padding: 0; margin: 16px auto 0; }
.messages li { background: var(--green2); border: 2px solid var(--line); border-radius: 999px; padding: 8px 18px; box-shadow: 0 3px 0 var(--line); font-weight: 800; width: fit-content; margin: 0 auto 8px; }
.messages li.error { background: #ffc9c9; color: #2e2a40; }

/* ---------- hero */
.hero { background: var(--sky); border-bottom: 3px solid var(--line); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding-top: 56px; padding-bottom: 0; }
.hero-copy { padding-bottom: 56px; }
.kicker { display: inline-block; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 800; box-shadow: 0 3px 0 var(--line); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); margin-bottom: 14px; }
.hero h1 b { color: #e8590c; }
.hero .lead { font-size: 19px; max-width: 30em; margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta small { color: var(--ink); opacity: .75; font-size: 13px; width: 100%; }
.skyline { align-self: end; width: 100%; height: auto; }
.skyline .ink { stroke: #2e2a40; stroke-width: 3; stroke-linejoin: round; }
.screen-label { fill: #2e2a40; font: 900 8px var(--font); }
.computer .typing { fill: none; stroke: #748ffc; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 24 70; animation: code-type 2.8s steps(5) infinite; }
.computer .typing-cursor { stroke: #e87532; stroke-width: 2; animation: cursor-blink .8s steps(2) infinite; }
.token-route { fill: none; stroke: #f08c00; stroke-width: 3; stroke-dasharray: 4 7; opacity: .7; }
.flow-token { fill: #2e2a40; font: 900 9px ui-monospace, monospace; }
.flow-token text { fill: #2e2a40; stroke: none; }
.worker { pointer-events: none; }
.worker-body { transform-box: fill-box; transform-origin: center; animation: worker-face 12s steps(1) infinite; }
.worker-head { fill: #f1c27d; stroke: #2e2a40; stroke-width: 2; }
.worker-helmet { fill: #ffd43b; stroke: #2e2a40; stroke-width: 2; stroke-linejoin: round; }
.worker-torso { fill: #ff922b; stroke: #2e2a40; stroke-width: 2; stroke-linejoin: round; }
.worker-arm, .worker-legs .leg { fill: none; stroke: #2e2a40; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.worker-legs .leg { transform-box: fill-box; transform-origin: top center; }
.worker-legs .leg-left { animation: walk-leg .36s ease-in-out infinite alternate; }
.worker-legs .leg-right { animation: walk-leg .36s ease-in-out -.18s infinite alternate; }
.worker-cargo rect { fill: #ffd43b; stroke: #2e2a40; stroke-width: 2; }
.worker-cargo text { fill: #2e2a40; font: 900 8px ui-monospace, monospace; stroke: none; }
.city-building .scaffold { opacity: 0; transform-box: fill-box; transform-origin: bottom center; animation: scaffold-up 18s ease-in-out infinite; }
.city-building .scaffold path { fill: none; stroke: #868e96; stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 260; animation: scaffold-draw 18s ease-in-out infinite; }
.city-building .structure { opacity: 0; transform-box: fill-box; transform-origin: bottom center; animation: structure-up 18s ease-in-out infinite; }
.city-building .building-shell { fill: transparent; stroke: #2e2a40; stroke-width: 3; stroke-linejoin: round; }
.city-building .home-wall { animation: paint-home 18s ease-in-out infinite; }
.city-building .home-roof { animation: paint-roof 18s ease-in-out infinite; }
.city-building .office-wall { animation: paint-office 18s ease-in-out infinite; }
.city-building .tower-wall { animation: paint-tower 18s ease-in-out infinite; }
.city-building .shop-wall { animation: paint-shop 18s ease-in-out infinite; }
.city-building .details { opacity: 0; animation: finish-building 18s ease-in-out infinite; }
.city-building.home .scaffold, .city-building.home .scaffold path, .city-building.home .structure, .city-building.home .building-shell, .city-building.home .details { animation-delay: 0s; }
.city-building.office .scaffold, .city-building.office .scaffold path, .city-building.office .structure, .city-building.office .building-shell, .city-building.office .details { animation-delay: 1.8s; }
.city-building.tower .scaffold, .city-building.tower .scaffold path, .city-building.tower .structure, .city-building.tower .building-shell, .city-building.tower .details { animation-delay: 3.6s; }
.city-building.shop .scaffold, .city-building.shop .scaffold path, .city-building.shop .structure, .city-building.shop .building-shell, .city-building.shop .details { animation-delay: 5.4s; }
.city-building .windows rect { fill: #74c0fc; stroke: #2e2a40; stroke-width: 2; }
.crane-arm { transform-origin: 447px 82px; animation: swing 6s ease-in-out infinite; }
@keyframes swing { 50% { transform: rotate(-4deg); } }
@keyframes scaffold-up { 0%, 3% { opacity: 0; transform: scaleY(.08); } 18%, 26% { opacity: 1; transform: scaleY(1); } 34%, 100% { opacity: 0; transform: scaleY(1); } }
@keyframes scaffold-draw { 0%, 4% { stroke-dashoffset: 260; } 24% { stroke-dashoffset: 0; } 34%, 100% { stroke-dashoffset: 0; } }
@keyframes structure-up { 0%, 28% { opacity: 0; transform: scaleY(.04); } 35% { opacity: 1; transform: scaleY(.04); } 57%, 100% { opacity: 1; transform: scaleY(1); } }
@keyframes paint-home { 0%, 58% { fill: transparent; } 73%, 100% { fill: #ffc9c9; } }
@keyframes paint-roof { 0%, 58% { fill: transparent; } 73%, 100% { fill: #ff6b6b; } }
@keyframes paint-office { 0%, 58% { fill: transparent; } 73%, 100% { fill: #d0ebff; } }
@keyframes paint-tower { 0%, 58% { fill: transparent; } 73%, 100% { fill: #fff3bf; } }
@keyframes paint-shop { 0%, 58% { fill: transparent; } 73%, 100% { fill: #d3f9d8; } }
@keyframes finish-building { 0%, 67% { opacity: 0; } 79%, 100% { opacity: 1; } }
@keyframes code-type { 0%, 100% { stroke-dashoffset: 70; } 50% { stroke-dashoffset: 0; } }
@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes walk-leg { from { transform: rotate(22deg); } to { transform: rotate(-22deg); } }
@keyframes worker-face { 0%, 49% { transform: scaleX(1); } 50%, 99% { transform: scaleX(-1); } }
.win-on { animation: flick 4s steps(1) infinite; }
@keyframes flick { 30% { fill: #fff8ec; } }
@media (prefers-reduced-motion: reduce) {
  .crane-arm, .city-building .scaffold, .city-building .scaffold path, .city-building .structure,
  .city-building .building-shell, .city-building .details, .computer .typing, .computer .typing-cursor,
  .win-on, .logo-mark i { animation: none; }
  .city-building .scaffold { display: none; }
  .city-building .structure, .city-building .details { opacity: 1; transform: none; }
  .city-building .home-wall { fill: #ffc9c9; }
  .city-building .home-roof { fill: #ff6b6b; }
  .city-building .office-wall { fill: #d0ebff; }
  .city-building .tower-wall { fill: #fff3bf; }
  .city-building .shop-wall { fill: #d3f9d8; }
  .worker-motion { display: none; }
  .worker-body, .worker-legs .leg { animation: none; transform: none; }
  .flow-token { display: none; }
}

/* ---------- sections */
.section { padding: 64px 0; }
.section.alt { background: var(--cream2); border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.feature .ico { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 16px; margin-bottom: 14px; box-shadow: 0 3px 0 var(--line); }
.feature h3 { font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }
.t-yellow { background: var(--gold2); } .t-blue { background: var(--blue2); } .t-green { background: var(--green2); } .t-purple { background: var(--purple2); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-top: 30px; }
.steps li::before { content: counter(s); position: absolute; top: -18px; left: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #2e2a40;
  border: 3px solid var(--line); display: grid; place-items: center; font-weight: 900; font-size: 18px; box-shadow: 0 3px 0 var(--line); }
.steps h3 { font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pill { display: inline-block; border: 2px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 800; background: var(--card); }
code { font: 700 .88em ui-monospace, "SF Mono", Menlo, monospace; background: var(--cream2); border: 2px solid var(--dash); border-radius: 8px; padding: 1px 6px; }

/* ---------- leaderboard table */
.board { width: 100%; border-collapse: separate; border-spacing: 0; }
.board-card { padding: 0; overflow: hidden; }
.board-scroll { overflow-x: auto; }
.board th, .board td { padding: 12px 16px; text-align: left; white-space: nowrap; }
.board th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px dashed var(--dash); }
.board td { border-bottom: 2px dashed var(--dash); }
.board tr:last-child td { border-bottom: 0; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board .rank { width: 48px; font-weight: 900; }
.board a { text-decoration: none; font-weight: 800; }
.board a:hover { text-decoration: underline; }
.empty { text-align: center; padding: 40px 22px; }
.empty .big-emoji { font-size: 46px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 30em; margin: 0 auto 16px; }

/* ---------- profile */
.profile-head { background: var(--sky); border-bottom: 3px solid var(--line); }
.profile-head .wrap { display: flex; gap: 24px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.profile-head h1 { font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 4px; overflow-wrap: anywhere; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.profile-meta .pill { background: var(--card); }
.profile-bio { margin: 12px 0 0; max-width: 40em; white-space: pre-line; overflow-wrap: anywhere; }
.profile-actions { margin-left: auto; align-self: flex-start; display: flex; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: -28px 0 34px; position: relative; }
.stat { background: var(--card); border: 3px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 16px; }
.stat b { display: block; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.city h3 { font-size: 20px; margin-bottom: 2px; }
.city .sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.city dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.city dl div { background: var(--cream2); border-radius: 12px; padding: 6px 10px; }
.city dt { font-size: 12px; color: var(--muted); }
.city dd { margin: 0; font-weight: 900; font-variant-numeric: tabular-nums; }
.city .score { float: right; background: var(--yellow); color: #2e2a40; border: 2px solid var(--line); border-radius: 999px; padding: 0 10px; font-weight: 900; }

/* ---------- forms / narrow pages */
.page { padding-top: 44px; padding-bottom: 64px; }
.narrow { max-width: 520px; margin: 0 auto; }
.narrow h1 { font-size: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field .help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .err { font-size: 13px; color: #e03131; margin-top: 4px; font-weight: 800; }
.field .err ul { list-style: none; padding: 0; margin: 0; }
input[type=text], input[type=email], select, textarea { width: 100%; font: 700 16px/1.4 var(--font); color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
textarea { resize: vertical; }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--cream2); border: 2px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.prefix input { border-radius: 0 12px 12px 0; min-width: 0; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.divider { border: 0; border-top: 2px dashed var(--dash); margin: 26px 0; }
.signin-card { text-align: center; }
.signin-card .btn { width: 100%; }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
/* allauth's generic pages */
.allauth form p { margin-bottom: 12px; }
.allauth button[type=submit] { font: 800 15px/1 var(--font); background: var(--yellow); color: #2e2a40; border: 2px solid var(--line); border-radius: 14px; padding: 10px 16px; box-shadow: 0 3px 0 var(--line); cursor: pointer; }

/* ---------- footer */
.footer { border-top: 3px solid var(--line); background: var(--cream2); padding: 22px 0; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer select { width: auto; padding: 5px 10px; font-size: 14px; }

/* ---------- responsive */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-copy { padding-bottom: 0; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .steps { gap: 34px; }
}
@media (max-width: 640px) {
  .topbar .wrap { height: 56px; }
  .logo-text { display: none; }
  .me-chip { padding-right: 3px; }
  .me-chip .name, .hide-sm { display: none; }
  .profile-head .wrap { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 28px; }
  .profile-actions { margin-left: 0; }
  .avatar.xl { width: 88px; height: 88px; font-size: 36px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 10px; }
  .stat b { font-size: 20px; }
  .section { padding: 48px 0; }
  .board th, .board td { padding: 10px 12px; }
}

/* ---------- sign in by email */
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 2px dashed var(--dash); }
.email-form { text-align: left; }
.email-row { display: flex; gap: 8px; }
.email-row input { flex: 1; min-width: 0; }
.signin-card .email-row .btn { width: auto; flex: none; }
.email-form .err { font-size: 13px; color: #e03131; margin-top: 6px; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- public city page */
.city-stage { position: relative; height: min(72vh, 680px); min-height: 360px; background: linear-gradient(#9be3ff, #e6f8ff); border-bottom: 3px solid var(--line); overflow: hidden; }
.city-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; opacity: 0; transition: opacity .4s; }
.city-stage canvas:active { cursor: grabbing; }
.city-stage.is-ready canvas { opacity: 1; }
.city-title { position: absolute; left: 16px; top: 16px; padding: 12px 18px; max-width: calc(100% - 32px); }
.city-title h1 { font-size: clamp(22px, 3.6vw, 36px); margin: 0; overflow-wrap: anywhere; }
.city-title p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.city-title p a { color: var(--ink); font-weight: 900; }
.map-tools { position: absolute; right: 16px; bottom: 44px; display: flex; flex-direction: column; gap: 8px; }
.map-tools .btn { width: 38px; height: 38px; padding: 0; font-size: 18px; }
.city-loading, .city-empty { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); text-align: center; }
.city-loading { font-weight: 900; color: #2e2a40; }
.city-empty { display: none; max-width: min(420px, calc(100% - 32px)); width: 100%; }
.city-empty p { color: var(--muted); margin: 0; }
.city-empty .big-emoji { font-size: 40px; }
.city-stage.is-ready .city-loading, .city-stage.is-empty .city-loading, .city-stage.is-empty .map-tools { display: none; }
.city-stage.is-empty .city-empty { display: block; }
.city-stats { grid-template-columns: repeat(4, 1fr); }
.city-below { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 34px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.city-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.city-facts dl div { background: var(--cream2); border-radius: 12px; padding: 6px 10px; }
.city-facts dt { font-size: 12px; color: var(--muted); }
.city-facts dd { margin: 0; font-weight: 900; font-variant-numeric: tabular-nums; }
.city-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 64px; background: var(--gold2); }
.city-cta h2 { margin-bottom: 4px; }
.city-cta p { margin: 0; }
.city-link { text-decoration: none; }
.city-link:hover h3 { text-decoration: underline; }
@media (max-width: 760px) {
  .city-below { grid-template-columns: 1fr; }
  .city-stats { grid-template-columns: 1fr 1fr; }
  .city-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .city-stage { height: 64vh; }
  .city-title { padding: 10px 14px; }
}

/* ---------- focus / productivity section */
.focus .section-head .kicker { margin-bottom: 14px; }
.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.focus-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 30px 0 0; }
.focus-strip span { background: var(--card); border: 2px solid var(--line); border-radius: 999px; box-shadow: 0 3px 0 var(--line); padding: 8px 18px; }
.focus-strip b { color: #e8590c; }
@media (max-width: 760px) { .focus-grid { grid-template-columns: 1fr; } }
/* CJK pages: Nunito has no CJK glyphs, prefer native rounded system fonts */
html:lang(zh-hans) body { font-family: var(--font), "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html:lang(ja) body { font-family: var(--font), "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif; }
html:lang(ko) body { font-family: var(--font), "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
