/* Citybrush page: a fixed dusk-violet stage (the app's own colours) inside the site's light or dark page. */
.citybrush-page { --cb-night: #181a2e; --cb-night-2: #22253f; --cb-line: #3a3e63; --cb-ink: #eceaf8; --cb-peach: #ffb36b; --cb-violet: #a77bff; --cb-accent: #8b6cff; }
.citybrush-page [hidden] { display: none !important; }
.citybrush-page :focus-visible { outline: 3px solid var(--cb-violet); outline-offset: 3px; }

.cb-intro { padding-block: 46px 30px; max-width: 880px; text-align: center; }
.cb-back { font-size: .85rem; opacity: .72; text-decoration: none; }
.cb-kicker { font-size: .73rem; letter-spacing: .17em; text-transform: uppercase; margin-block: 24px 12px; }
.cb-intro h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(3.2rem, 7vw, 6.3rem); line-height: 1.03; margin: 0; text-wrap: balance; }
.cb-intro h1 span { display: block; font: 400 clamp(1rem, 2vw, 1.45rem)/1.6 system-ui, sans-serif; letter-spacing: .04em; margin-top: 14px; }
.cb-lede { max-width: 640px; margin: 20px auto 0; line-height: 1.65; opacity: .78; }
.cb-paradox { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 22px 0 0; padding: 8px 16px; border-radius: 100px; border: 1px solid #8b6cff55; font-size: .85rem; }
.cb-paradox b { font-weight: 650; }
.cb-paradox span { opacity: .75; }

.cb-stage { position: relative; margin: 0 auto; width: min(1520px, 96%); background: var(--cb-night); color: var(--cb-ink); border: 1px solid var(--cb-line); border-radius: 16px; overflow: hidden; }
.cb-bar { position: relative; z-index: 5; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; background: var(--cb-night); border-bottom: 1px solid var(--cb-line); font: 600 .75rem system-ui, sans-serif; touch-action: manipulation; }
.cb-bar a { color: inherit; text-decoration: none; }
.cb-brand { font: 1.2rem Georgia, serif; white-space: nowrap; }
.cb-brand span { font: .73rem system-ui, sans-serif; opacity: .6; }
.cb-bar nav { display: flex; align-items: center; gap: 12px; }
.cb-bar button { color: inherit; font: inherit; border: 1px solid #555a86; background: var(--cb-night-2); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.cb-bar button, .cb-bar nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; white-space: nowrap; }
.cb-bar button:hover, .cb-bar a:hover { color: #d9ccff; }
.cb-bar a.cb-link-patreon { padding: 9px 12px; border-radius: 8px; border: 1px solid #6d5fb3; background: #2c2752; color: #e4dcff; }
.cb-bar em { font-style: normal; font-weight: 500; opacity: .7; }
.cb-ic { width: 16px; height: 16px; flex: none; }
.cb-link-patreon .cb-ic, .cb-r { display: none; }
#cb-exit i { display: none; font-style: normal; }

/* Work with Echo: three services in the bar, inline on wide screens, a small menu elsewhere */
.cb-echo { position: relative; display: flex; align-items: center; min-width: 0; }
.cb-echo-btn { border-color: #6d5fb3 !important; }
.cb-echo-btn .cb-ic { color: var(--cb-peach); }
.cb-echo-menu { position: absolute; z-index: 6; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: min(330px, calc(100vw - 24px)); display: none; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid #5d5a8c; border-radius: 14px; background: #1d1f37f8; box-shadow: 0 18px 50px #0009; }
.cb-echo.is-open .cb-echo-menu { display: flex; }
.cb-stage.is-echo-open .cb-surface::after { content: ''; position: absolute; inset: 0; z-index: 4; }
.cb-echo-menu p { margin: 2px 10px 8px; font: 1.05rem Georgia, serif; color: #fff; }
.cb-echo-menu a { display: grid; gap: 3px; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.cb-echo-menu a:hover, .cb-echo-menu a:focus-visible { background: #2c2752; color: inherit; }
.cb-echo-menu b { font: 650 .92rem system-ui, sans-serif; color: #f2effc; }
.cb-echo-menu b i { font-style: normal; font-weight: 500; opacity: .6; }
.cb-echo-menu span { font: 500 .78rem/1.4 system-ui, sans-serif; color: #c9c4e6; }
@media (min-width: 1180px) and (min-height: 501px) {
  .cb-echo-btn { display: none !important; }
  .cb-echo-menu { display: flex; position: static; transform: none; width: auto; flex-direction: row; align-items: center; gap: 2px; padding: 0; border: 0; background: none; box-shadow: none; }
  .cb-echo-menu p { margin: 0 8px 0 0; font-size: .95rem; color: var(--cb-ink); opacity: .8; white-space: nowrap; }
  .cb-echo-menu a { padding: 8px 10px; border-radius: 8px; }
  .cb-echo-menu a span { display: none; }
  .cb-echo-menu b { font-size: .8rem; white-space: nowrap; }
}

.cb-surface { position: relative; height: clamp(540px, 74vh, 860px); }
.cb-cover, #cb-scene { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#cb-scene { background: var(--cb-night); }
.cb-cover picture { display: contents; }
.cb-cover img { width: 100%; height: 100%; object-fit: cover; }
.cb-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #141529f0, #14152966 34%, transparent 62%); pointer-events: none; }
.cb-cover.is-warming { z-index: 1; }
.cb-cover.is-loading { z-index: 1; pointer-events: none; }
.cb-cover.is-loading .cb-invitation { display: none; }
.cb-cover.is-leaving { opacity: 0; transition: opacity .32s ease-out; }
@media (prefers-reduced-motion: reduce) { .cb-cover.is-leaving { transition: none; } }
.cb-invitation { position: absolute; z-index: 1; bottom: 7%; left: 16px; right: 16px; display: grid; justify-items: center; gap: 16px; text-align: center; }
.cb-invitation > span { font: 1.15rem Georgia, serif; color: #fff; text-shadow: 0 1px 12px #0008; }
.cb-invitation small { color: #d6d3ea; font-size: .76rem; }
.cb-invitation button { background: linear-gradient(90deg, var(--cb-peach), var(--cb-violet)); color: #1b1630; border: 0; box-shadow: 0 10px 36px #0008; font-weight: 650; }
.cb-invitation button:hover { filter: brightness(1.06); }
.cb-preparing { position: absolute; z-index: 1; top: 45%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 14px 22px; border: 1px solid #8d86c4; border-radius: 12px; background: #181a2eef; color: #f2effc; font: 600 1rem system-ui, sans-serif; white-space: nowrap; }
.cb-recovery { position: absolute; inset: 20% 18%; z-index: 4; display: grid; align-content: center; justify-items: center; padding: 24px; text-align: center; border: 1px solid #5d5a8c; border-radius: 16px; background: #1d1f37f5; }
.cb-recovery button { margin: 6px; padding: 12px 18px; background: #e4dcff; color: #1b1630; border: 0; border-radius: 6px; cursor: pointer; }

.cb-stage.is-expanded { position: fixed; inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; z-index: 10000; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); overscroll-behavior: none; }
.cb-stage.is-expanded .cb-surface { flex: 1; height: auto; min-height: 0; }
.cb-stage:fullscreen { width: 100%; height: 100%; }
body.cb-expanded, html:has(body.cb-expanded) { overflow: hidden; overscroll-behavior: none; }
/* a phone on its side: the bar becomes a slim rail at the right, so the city keeps the full height */
@media (max-height: 500px) and (orientation: landscape) {
  .cb-stage.is-expanded { flex-direction: row-reverse; padding-right: 0; }
  .cb-stage.is-expanded .cb-bar { flex-direction: column; justify-content: flex-start; align-items: center; flex: none; width: calc(66px + env(safe-area-inset-right, 0px)); min-height: 0; gap: 6px; padding: 8px calc(7px + env(safe-area-inset-right, 0px)) 8px 7px; border-bottom: 0; border-left: 1px solid var(--cb-line); }
  .cb-stage.is-expanded .cb-brand, .cb-stage.is-expanded .cb-t { display: none; }
  .cb-stage.is-expanded .cb-bar nav { order: -1; flex-direction: column-reverse; gap: 6px; }
  .cb-stage.is-expanded .cb-bar button, .cb-stage.is-expanded .cb-bar nav a { flex-direction: column; justify-content: center; gap: 4px; width: 52px; min-height: 50px; padding: 6px 2px; border-radius: 11px; white-space: normal; }
  .cb-stage.is-expanded .cb-r { display: block; font: 600 9.5px/1.15 system-ui, sans-serif; letter-spacing: .01em; text-align: center; opacity: .88; }
  .cb-stage.is-expanded .cb-bar .cb-ic { display: block; width: 19px; height: 19px; }
  .cb-stage.is-expanded #cb-exit i { display: block; font-size: 1.45rem; line-height: 19px; height: 19px; }
  .cb-stage.is-expanded .cb-echo { position: static; margin-top: auto; }
  .cb-stage.is-expanded .cb-echo-menu { top: auto; bottom: 8px; left: auto; right: calc(100% + 8px); transform: none; width: 300px; max-height: calc(100% - 16px); overflow: auto; }
}

/* Built with AI by Echo: the three services, directly under the game, in the stage's own colours */
.cb-made { width: min(1520px, 96%); margin: 12px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 16px 28px; align-items: center; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--cb-line); background: var(--cb-night); color: var(--cb-ink); }
.cb-made h2 { font: 400 1.6rem/1.2 Georgia, serif; margin: 0 0 6px; color: #fff; text-wrap: balance; }
.cb-made-lead p { margin: 0; font-size: .9rem; line-height: 1.55; color: #c9c4e6; max-width: 46ch; }
.cb-made-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cb-made-links a { position: relative; display: grid; align-content: center; gap: 4px; min-height: 76px; padding: 14px 42px 14px 16px; border-radius: 12px; border: 1px solid #4a4d7a; background: var(--cb-night-2); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.cb-made-links a:hover { border-color: var(--cb-violet); background: #2c2752; color: inherit; }
.cb-made-links b { font: 650 1.02rem system-ui, sans-serif; color: #fff; }
.cb-made-links span { font-size: .8rem; line-height: 1.4; color: #c9c4e6; }
.cb-made-links i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 1.1rem; color: var(--cb-peach); transition: transform .15s; }
.cb-made-links a:hover i { transform: translate(3px, -50%); }
@media (prefers-reduced-motion: reduce) { .cb-made-links a:hover i { transform: translateY(-50%); } }

.cb-dock nav { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cb-dock nav a { display: grid; place-items: center; min-height: 48px; padding: 0 4px; border-radius: 12px; border: 1px solid var(--eh-line); background: var(--eh-surface); color: var(--eh-ink); font: 650 .86rem/1.1 var(--eh-sans, system-ui, sans-serif); text-align: center; text-decoration: none; }
.cb-dock nav a:first-child { background: var(--eh-cta); color: var(--eh-cta-ink); border-color: var(--eh-cta); }
.citybrush-page .drift-beacon { display: none !important; }
.cb-for-touch { display: none; }
@media (pointer: coarse) { .cb-for-touch { display: inline; } .cb-for-mouse { display: none; } }

.cb-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding-block: 64px; }
.cb-about h2, .cb-keep h2 { font: 400 clamp(2rem, 4vw, 3.2rem)/1.13 Georgia, serif; margin: 0 0 20px; text-wrap: balance; }
.cb-about p { line-height: 1.8; max-width: 62ch; }
.cb-note { font-size: .85rem; opacity: .68; }
.cb-steps { display: grid; gap: 4px; list-style: none; padding: 0; margin: 25px 0; }
.cb-steps li { padding: 14px 0; border-bottom: 1px solid #7a7f9a45; display: flex; gap: 16px; align-items: baseline; }
.cb-steps li > span { font-size: .72rem; opacity: .5; font-variant-numeric: tabular-nums; }
.cb-steps strong { font-size: .95rem; font-weight: 600; }
.cb-steps small { display: block; margin-top: 6px; opacity: .68; font-size: .82rem; line-height: 1.55; }

.cb-keep { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-bottom: 64px; padding: 34px 40px; border-radius: 16px; background: linear-gradient(110deg, #ffe7d1, #e9e0ff); color: #1d1a33; }
.cb-keep h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.cb-keep p { margin: 0; line-height: 1.6; max-width: 58ch; }
.cb-keep .cb-kicker { margin-top: 0; color: #5b4c9a; }
.cb-keep .eh-btn { background: #1d1a33; color: #fff; border-color: #1d1a33; }

.cb-faq { padding-bottom: 72px; }
.cb-faq h2 { font: 400 clamp(2rem, 4vw, 3.2rem)/1.13 Georgia, serif; margin: 0; text-wrap: balance; }
.cb-faq .cb-kicker { margin-top: 0; }
.cb-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 70px; }
.cb-offer-heading { grid-column: 1/-1; text-align: center; max-width: 600px; margin: 0 auto 15px; }
.cb-offer-heading h2 { font: 400 2.8rem Georgia, serif; margin: 10px 0; }
.cb-offer-heading p { line-height: 1.6; opacity: .8; }
.cb-next a { color: #203936; text-decoration: none; border: 1px solid #71808860; border-radius: 14px; padding: 26px; }
.cb-next a:hover { border-color: #8b6cff; }
.cb-next span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.cb-next h3 { font: 400 1.45rem/1.25 Georgia, serif; margin: 16px 0; }
.cb-next p { font-size: .85rem; line-height: 1.7; opacity: .75; }
.cb-next a > strong { display: block; margin-top: 22px; font-size: .8rem; }
.cb-next .cb-offer-ai { background: #e4eee7; }
.cb-next .cb-offer-lab { background: #f0ead9; }
.cb-next .cb-offer-consult { background: #efe3df; }

@media (max-width: 980px) { .cb-made { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .cb-intro { padding-block: 25px; }
  .cb-bar { padding: 8px 10px; gap: 7px; font-size: .7rem; }
  .cb-brand { font-size: 1rem; }
  .cb-brand span, .cb-bar em { display: none; }
  .cb-bar nav { gap: 7px; }
  .cb-bar button, .cb-bar nav a.cb-link-patreon { padding: 9px 9px; }
  .cb-echo { position: static; }
  .cb-echo-menu { left: 10px; right: 10px; width: auto; transform: none; }
  .cb-stage.is-expanded .cb-brand { display: none; }
  #cb-exit .cb-t, #cb-expand .cb-t { display: none; }
  #cb-exit i { display: block; font-size: 1.15rem; line-height: 1; }
  .cb-surface { height: 68svh; min-height: 460px; }
  .cb-stage.is-expanded .cb-surface { min-height: 0; }
  .cb-cover img { object-position: 60% center; }
  .cb-recovery { inset: 20% 5%; }
  .cb-made { padding: 18px 16px; gap: 14px; }
  .cb-made h2 { font-size: 1.35rem; }
  .cb-made-links { grid-template-columns: 1fr; gap: 8px; }
  .cb-made-links a { min-height: 0; padding: 12px 40px 12px 14px; }
  .cb-about { grid-template-columns: 1fr; gap: 12px; padding-block: 35px; }
  .cb-keep { padding: 26px 22px; margin-bottom: 40px; }
  .cb-next { grid-template-columns: 1fr; }
  .cb-faq { padding-bottom: 44px; }
  .cb-offer-heading h2 { font-size: 2.2rem; }
}
