* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0a121f; color: #1d2327; font: 16px/1.4 -apple-system, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- part one: the builder ---------- */
.wp { position: fixed; inset: 0; z-index: 5; display: grid; grid-template: 44px minmax(0, 1fr) / minmax(0, 1fr) 372px; background: #f0f0f1; transition: transform .75s cubic-bezier(.6, 0, .9, .4); }
.wp.leave { transform: translateY(-105%); }
.wp.shake { animation: shake .35s linear 2; }
.wp-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #1d2327; color: #f0f0f1; font-size: 14px; }
.wp-bar > b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
#wp-site { margin-right: auto; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wp-live { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#wp-live i { width: 8px; height: 8px; border-radius: 50%; background: #2fd45a; box-shadow: 0 0 0 4px rgba(47, 212, 90, .25); }
#wp-live.dead i { background: #d63638; box-shadow: 0 0 0 4px rgba(214, 54, 56, .25); }
.wp-badge { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: #d63638; color: #fff; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
/* The builder wears the WordPress dashboard: grey, dense and square, with a notice waiting before anything is built. */
.wp-w { flex: none; width: 26px; height: 26px; margin-right: -6px; filter: brightness(0) invert(1); opacity: .9; }
.wp-howdy { flex: none; display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.wp-howdy i { width: 22px; height: 22px; border-radius: 2px; background: #646970; }
.wp-menu { display: none; }
#builder .wp-panel { background: #f0f0f1; box-shadow: inset 1px 0 0 #c3c4c7; font-size: 14px; }
#builder .wp-panel h1 { font-size: 23px; font-weight: 400; }
.wp-nag { margin: 0 0 14px; padding: 10px 12px; background: #fff; box-shadow: inset 4px 0 0 #dba617, 0 1px 1px rgba(0, 0, 0, .08); font-size: 13px; }
.wp-nag u { color: #2271b1; }
.wp-steps { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0 0 16px; font-size: 13px; color: #50575e; font-variant-numeric: tabular-nums; }
.wp-steps span { transform-origin: left center; } .wp-steps b { color: #1d2327; transform-origin: right center; transition: color .2s; } .wp-steps b.late { color: #d63638; }
.wp-steps i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #dcdcde; overflow: hidden; }
.wp-steps u { display: block; width: 0; height: 100%; background: #2271b1; transition: width .6s cubic-bezier(.2, 0, 0, 1), background-color .3s; }
.wp-steps.done u { background: #00a32a; }
#builder .btn { border-radius: 4px; }
@media (min-width: 1100px) {
  #builder { grid-template-columns: 160px minmax(0, 1fr) 372px; }
  .wp-menu { display: flex; flex-direction: column; padding: 8px 0; background: #1d2327; color: #f0f0f1; font-size: 14px; box-shadow: inset 0 1px 0 #2c3338; }
  .wp-menu span { padding: 8px 14px; }
  #builder[data-step="shop"] [data-m="dashboard"], #builder[data-step="live"] [data-m="dashboard"], #builder[data-step="theme"] [data-m="appearance"], #builder[data-step="plugins"] [data-m="plugins"] { background: #2271b1; color: #fff; font-weight: 600; }
}

.wp-preview { position: relative; min-width: 0; min-height: 0; padding: 24px; display: flex; }
.browser { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .14); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e6e7e9; flex: none; }
.browser-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #c3c4c7; }
.url { margin-left: 8px; padding: 3px 12px; border-radius: 10px; background: #fff; font-size: 12px; color: #50575e; display: flex; gap: 5px; align-items: center; transition: background-color .2s, color .2s; }
.url em { font-style: normal; font-size: 11px; }
.url.bad { background: #fce8e8; color: #b32d2e; font-weight: 700; }
#speed { margin-left: auto; padding: 3px 10px; border-radius: 10px; background: #edfaef; color: #00761d; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
#speed.bad { background: #fce8e8; color: #b32d2e; }
.browser-view { position: relative; flex: 1; min-height: 0; overflow: hidden; container-type: inline-size; }

.site { height: 100%; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; --ink: #1d2327; --bg: #fff; --accent: #2271b1; --on: #fff; --soft: #f1f5f9; --head: -apple-system, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--ink); transition: background-color .3s, color .3s; }
.site::-webkit-scrollbar { display: none; }
.site.theme-cozy { --ink: #4a2c1a; --bg: #fbf3e4; --accent: #c8553d; --on: #fff; --soft: #f3e2c7; --head: Georgia, "Times New Roman", serif; }
.site.theme-bold { --ink: #fff; --bg: #17181c; --accent: #ffd23f; --on: #17181c; --soft: #26282f; }
.site-nav { display: flex; gap: 18px; align-items: center; padding: 12px 24px; font-size: 13px; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--ink) 14%, transparent); }
.site-id { min-width: 0; margin-right: auto; display: grid; }
.site-nav b { font: 700 17px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav small { font-size: 11px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav span { color: var(--accent); text-decoration: underline; }
.site > * { flex: none; }
.site-hero { position: relative; min-height: clamp(150px, 34vh, 300px); display: flex; align-items: center; background: var(--soft); }
/* A stock template, like every five-minute WordPress site: the picture sits in a short box, cut wherever it lands, and the words go under it in the default type. */
.site-hero.has-art { display: block; min-height: 0; padding: 16px 24px 0; background: none; }
.site-hero.has-art::before { content: ""; display: block; height: clamp(76px, 21cqw, 170px); background: var(--art) center 42% / cover no-repeat; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.hero-copy { position: relative; padding: 14px 0 16px; }
.hero-copy h2 { margin: 0 0 10px; font: 700 clamp(18px, 2.4vw, 28px)/1.15 var(--head); }
.theme-bold .hero-copy h2 { text-transform: uppercase; letter-spacing: -.01em; }
.site-cta { display: inline-block; padding: 8px 16px; border-radius: 3px; background: var(--accent); color: var(--on); font-weight: 700; font-size: 13px; font-style: normal; }
.blk { padding: 22px 24px; }
.blk:nth-child(even) { background: var(--soft); }
.blk h3 { margin: 0 0 12px; font: 700 20px/1.2 var(--head); }
.blk.form { display: grid; gap: 8px; max-width: 460px; }
.blk.form h3 { margin-bottom: 4px; }
.blk.form i { display: block; padding: 9px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); font-style: normal; font-size: 13px; opacity: .6; overflow: hidden; white-space: nowrap; }
.blk.form .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.blk.form .f-msg { padding-bottom: 34px; }
.blk.form b { justify-self: start; }
.blk.form i.spam { opacity: 1; color: #d63638; font-weight: 700; }
.slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slides i { aspect-ratio: 4 / 3; border-radius: 10px; background-size: 260% auto; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; transition: transform .6s cubic-bezier(.5, 0, .8, .4), opacity .6s; }
.slider.fallen .slides i:nth-child(1) { transform: translateY(40px) rotate(-14deg); }
.slider.fallen .slides i:nth-child(2) { transform: translateY(120px) rotate(9deg); opacity: 0; }
.slider.fallen .slides i:nth-child(3) { transform: translateY(26px) rotate(21deg); }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.dots b { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .25; } .dots b:first-child { opacity: .8; }
.goods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goods div { display: grid; justify-items: center; gap: 3px; padding: 14px 8px; border-radius: 12px; background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); font-size: 13px; transition: filter .3s, opacity .3s; }
.goods span { font-size: 34px; line-height: 1.1; } .goods em { font-style: normal; opacity: .7; font-variant-numeric: tabular-nums; } .goods i { margin-top: 5px; padding: 4px 12px; font-size: 12px; }
.goods .dead { filter: grayscale(1); opacity: .6; } .goods .dead em { color: #d63638; opacity: 1; font-weight: 700; }
/* The one thing every WordPress site says about itself. It stays loud on every theme. */
.site-foot { margin-top: auto; padding: 20px 24px 24px; background: #1d2327; color: #fff; }
.site-foot span { display: block; font-size: 13px; font-weight: 600; opacity: .7; }
.site-foot b { display: block; font: 800 clamp(34px, 9cqw, 84px)/1 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.04em; }
.site-foot em { display: block; margin-top: 6px; font-style: normal; font-size: 15px; font-weight: 700; color: #f0c33c; }
.site-foot small { display: block; margin-top: 6px; font-size: 12px; opacity: .8; }
.site-foot em:empty, .site-foot small:empty { display: none; }
/* Before the player picks a shop the whole page is a poster for it. */
.site.blank .site-hero { flex: 1; background: #2271b1; color: #fff; }
.site.blank .hero-copy { padding: 20px 24px; }
.site.blank .hero-copy h2 { font-weight: 800; line-height: 1.08; font-size: clamp(30px, 8cqw, 92px); letter-spacing: -.03em; animation: rise .5s cubic-bezier(.2, 0, 0, 1) backwards; }
.site.blank .site-cta { background: #fff; color: #2271b1; animation: rise .5s .1s cubic-bezier(.2, 0, 0, 1) backwards; }
.site.blank .site-foot { padding-bottom: 120px; }
.site.blank .site-foot span { font-size: clamp(14px, 2.4cqw, 26px); animation: rise .5s .35s cubic-bezier(.2, 0, 0, 1) backwards; }
.site.blank .site-foot b { font-size: clamp(54px, 16cqw, 230px); animation: slam .45s .5s cubic-bezier(.2, 0, 0, 1) backwards; transform-origin: left bottom; }
.site.slow .site-hero, .site.slow .blk { filter: blur(1.5px) saturate(.4); opacity: .7; transition: filter .4s, opacity .4s; }
#cookies { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.cookie { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 11px 14px; border-radius: 10px; background: #fff; color: #1d2327; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .2); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cookie b { margin-left: auto; padding: 4px 12px; border-radius: 6px; background: #1d2327; color: #fff; }
.cookie.pop { bottom: calc(12px + var(--n) * 42px); left: calc(12px + var(--n) * 9px); right: calc(12px - var(--n) * 5px); rotate: calc((var(--n) - 3) * 1.6deg); animation-delay: calc(var(--n) * 70ms); animation-fill-mode: backwards; }
#site-dead { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; padding: 24px; }
#site-dead p { margin: 0; max-width: 340px; padding: 16px 18px; box-shadow: inset 4px 0 0 #d63638, 0 1px 4px rgba(0, 0, 0, .18); font-size: 14px; }
#site-dead u { display: block; margin-top: 8px; color: #2271b1; }
#confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#confetti i { position: absolute; left: var(--x); top: -20px; width: 9px; height: 15px; border-radius: 2px; background: var(--c); animation: fall 1.7s var(--d) cubic-bezier(.3, 0, .7, 1) forwards; }

.chip { position: absolute; right: 36px; bottom: 36px; z-index: 3; display: flex; align-items: flex-end; gap: 10px; opacity: 0; translate: 0 8px; transition: opacity .25s, translate .25s; pointer-events: none; }
.chip.on { opacity: 1; translate: 0 0; }
.chip p { margin: 0 0 14px; max-width: 250px; min-height: 40px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .2); font-size: 15px; line-height: 1.3; font-weight: 600; }
.chip-face { flex: none; width: 76px; height: 76px; border-radius: 50%; background: #fff url(assets/chip.webp) 0 0 / 200% 200% no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .25); }
.chip-face[data-mood="1"] { background-position: 100% 0; } .chip-face[data-mood="2"] { background-position: 0 100%; }

.wp-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 24px; background: #fff; box-shadow: -1px 0 0 rgba(0, 0, 0, .08); overflow-y: auto; }
#name { width: 100%; margin: 0 0 16px; padding: 8px 12px; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px #8c8f94; font-size: 16px; font-weight: 600; outline: none; transition: box-shadow .15s; }
#name:focus { box-shadow: 0 0 0 2px #2271b1; }
.wp-panel h1 { margin: 0 0 14px; font-size: 26px; line-height: 1.15; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px #c3c4c7; font-weight: 600; transition: scale .12s, box-shadow .15s, translate .15s, background-color .2s; }
.choice:hover { box-shadow: 0 0 0 2px #2271b1, 0 6px 16px rgba(34, 113, 177, .18); translate: 0 -2px; }
.choice:active { scale: .96; }
.choice .big { font-size: 30px; line-height: 1; }
/* A plain form: one round button for each kind of shop. */
.shops .choice { flex-direction: row; gap: 10px; padding: 14px 12px; }
.shops .choice::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #8c8f94; }
.shops .choice .big { order: 1; margin-left: auto; font-size: 20px; }
.themes { grid-template-columns: repeat(3, 1fr); }
.swatch { width: 100%; aspect-ratio: 4 / 3; border-radius: 2px; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); display: grid; grid-template-rows: 1fr 5px 9px; gap: 4px; padding: 8px; --bg: #fff; --accent: #2271b1; --soft: #dfe9f3; }
.swatch.theme-cozy { --bg: #fbf3e4; --accent: #c8553d; --soft: #eed9b6; } .swatch.theme-bold { --bg: #17181c; --accent: #ffd23f; --soft: #3a3d47; }
.swatch i { border-radius: 3px; background: var(--soft); } .swatch i:nth-child(2) { width: 70%; } .swatch i:last-child { width: 42%; background: var(--accent); }
.plugins { grid-template-columns: 1fr; gap: 8px; }
.plugin { flex-direction: row; gap: 12px; padding: 10px 12px; text-align: left; }
.plugin .big { font-size: 26px; width: 32px; text-align: center; }
.plugin .name { flex: 1; display: grid; font-size: 15px; }
.plugin small { font-size: 11px; font-weight: 500; color: #787c82; } 
.plugin .state { padding: 5px 12px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #2271b1; color: #2271b1; font-size: 13px; font-weight: 700; }
.plugin .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: #2271b1; }
.plugin.busy .bar { width: 100%; transition: width .5s linear; }
.plugin.on { background: #edfaef; box-shadow: 0 0 0 1px #00a32a; cursor: default; translate: none; }
.plugin.on .state { box-shadow: none; color: #00761d; }
.btn { display: block; width: 100%; margin-top: 16px; padding: 15px 18px; border: 0; border-radius: 10px; background: #2271b1; color: #fff; font-size: 17px; font-weight: 700; transition: scale .12s, background-color .2s; }
.btn:hover { background: #135e96; } .btn:active { scale: .96; }
.btn:disabled { background: #c3c4c7; cursor: default; scale: 1; }
.btn.danger { background: #d63638; } .btn.danger:hover { background: #b32d2e; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; opacity: .85; }
.btn.pulse { animation: pulse 1s ease-in-out infinite; }
.pop { animation: pop .32s cubic-bezier(.3, 1.6, .5, 1); }

@keyframes pop { from { scale: .86; opacity: .2; } to { scale: 1; opacity: 1; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(214, 54, 56, .2); } }
@keyframes shake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 3px); } 80% { transform: translate(4px, -2px); } }
.sales { margin: 0 0 12px; font-size: 15px; color: #50575e; }
.sales b { display: block; width: fit-content; font-size: 44px; line-height: 1; color: #00761d; font-variant-numeric: tabular-nums; }
#orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#orders li:nth-child(n+6) { display: none; }
#orders li { padding: 9px 12px; border-radius: 10px; background: #edfaef; font-size: 14px; animation: rise .3s cubic-bezier(.2, 0, 0, 1) backwards; }
#orders li.bad { background: #fce8e8; color: #b32d2e; }
.sms { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #e9e9eb; font-size: 16px; line-height: 1.3; }
.sms b { display: block; margin-bottom: 2px; font-size: 12px; color: #50575e; }
.lost { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; color: #b32d2e; }
.lost b { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- the green pills on the end card ---------- */
.ms-stats { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ms-stats li { padding: 7px 12px; border-radius: 999px; background: #e3f6e8; color: #136c2e; font-size: 14px; font-weight: 600; }
.ms-stats b { font-weight: 800; }

/* ---------- the last scene: the same shop, rebuilt for the owner ---------- */
.ms { background: #f6f4ee; animation: fadein .8s; }
.ms .browser-view { container-type: size; }      /* the new site lays itself out by the window's shape, not only its width */
.deny { margin-left: 6px; padding: 3px 10px; border-radius: 10px; background: #fce8e8; color: #b32d2e; font-size: 12px; font-weight: 700; white-space: nowrap; }
.url.bad { animation: shake .3s linear; }
.ms .url { min-width: 0; } #ms-url { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the new site: what MultiSites builds for her ---------- */
/* The painting is the page. It fills the window edge to edge, the menu floats over it, and the words sit in its sky. */
.ns { position: relative; --ink: #1d2a26; --soft: #4d5b55; --sky: #fdd2a6; --pad: clamp(16px, 4.4cqw, 44px); --navh: clamp(40px, 7cqw, 54px); --navm: clamp(8px, 1.8cqw, 16px); --lap: clamp(16px, 3.6cqw, 34px); --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fbf6ec; color: var(--ink); font-size: 14px; }
.ns > * { position: relative; z-index: 1; }
/* The reveal. A blurred wash of the shop's own colors pours down the page like wet watercolor, then dries away. */
.ns > .ns-wash { position: absolute; inset: -8%; z-index: 0; background: center / cover no-repeat; filter: blur(34px) saturate(1.4); opacity: 0; pointer-events: none; --pour: 0%; -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--pour) - 24%), transparent var(--pour)); mask-image: linear-gradient(to bottom, #000 calc(var(--pour) - 24%), transparent var(--pour)); }
.ns.pour > .ns-wash { animation: ns-pour 1.8s cubic-bezier(.3, 0, .2, 1) forwards, ns-dry 3s 1.6s ease-in forwards; }
/* Each piece falls into place and comes into focus, from blurred color to sharp. */
.ns [data-in] { opacity: 0; filter: blur(14px) saturate(1.7); translate: 0 -16px; transition: opacity .9s ease, filter 1.2s ease, translate 1.2s cubic-bezier(.2, 0, 0, 1); }
.ns [data-in].in { opacity: 1; filter: none; translate: 0 0; }
.ns > .ns-nav { z-index: 2; flex: none; height: var(--navh); margin: var(--navm) var(--navm) 0; display: flex; align-items: center; gap: clamp(12px, 3cqw, 28px); padding: 0 6px 0 clamp(14px, 2.6cqw, 24px); border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(29, 42, 38, .06), 0 2px 4px rgba(29, 42, 38, .06), 0 10px 28px rgba(29, 42, 38, .14); font-size: 13.5px; font-weight: 500; color: var(--soft); }
.ns-nav b { min-width: 0; margin-right: auto; font: 700 clamp(17px, 2.6cqw, 22px)/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-btn { flex: none; padding: 9px 16px; border-radius: 999px; background: #17605c; color: #fff; font-style: normal; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ns-nav .ns-btn { height: calc(var(--navh) - 12px); padding-block: 0; display: grid; place-items: center; }
.ns-btn.big { align-self: start; padding: clamp(10px, 1.7cqw, 16px) clamp(16px, 2.8cqw, 28px); font-size: clamp(13.5px, 1.9cqw, 17px); box-shadow: 0 6px 18px rgba(23, 96, 92, .28); }
.ns-hero { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 47%); align-content: center; padding: clamp(10px, 2cqw, 20px) var(--pad) calc(var(--lap) + clamp(12px, 2.4cqw, 24px)); }
.ns-copy { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 1.9cqw, 18px); }
.ns-copy h2 { margin: 0; font: 700 clamp(27px, min(7.6cqw, 11cqh), 74px)/.98 var(--serif); letter-spacing: -.032em; text-wrap: balance; }
.ns-copy p { margin: 0; max-width: 22em; font-size: clamp(14px, 2.2cqw, 19px); line-height: 1.4; color: var(--ink); opacity: .78; text-wrap: pretty; }
.ns-copy small { font-size: 12.5px; font-weight: 600; color: var(--ink); } .ns-copy small b { color: #b8660c; letter-spacing: .08em; }
/* The painting runs up behind the floating menu and out to every edge. A veil of its own sky color keeps the words clear. */
.ns-photo { position: absolute; z-index: 0; inset: calc(-1 * (var(--navh) + var(--navm))) 0 0; overflow: hidden; background: var(--sky); }
.ns-photo::before { content: ""; position: absolute; inset: 0; background: var(--art) 100% 58% / cover no-repeat; transform-origin: 78% 62%; animation: ns-drift 18s ease-in-out infinite alternate; }
.ns-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sky) 0%, var(--sky) 32%, transparent 66%); }
.ns-open { position: absolute; z-index: 1; right: var(--pad); bottom: calc(var(--lap) + 14px); display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 0 0 1px rgba(29, 42, 38, .06), 0 4px 12px rgba(29, 42, 38, .18); }
.ns-open i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; animation: ns-pulse 2s ease-in-out infinite; }
/* The products ride up over the bottom edge of the painting. */
.ns > .ns-goods { z-index: 2; flex: none; margin-top: calc(-1 * var(--lap)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2cqw, 16px); padding: 0 var(--pad) clamp(12px, 2.6cqw, 22px); }
.ns-goods article { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(29, 42, 38, .06), 0 2px 4px rgba(29, 42, 38, .06), 0 12px 28px rgba(29, 42, 38, .12); }
.ns-pic { grid-row: span 2; width: clamp(44px, 9.5cqw, 76px); aspect-ratio: 384 / 341; border-radius: 10px; background: #f6eedd url(assets/goods.webp) calc(var(--c) * 33.333%) calc(var(--r) * 50%) / 400% 300% no-repeat; }
.ns-goods b { align-self: end; font-size: 14.5px; } .ns-goods em { align-self: start; font-style: normal; font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.ns-quote { display: none; flex: none; margin: 0 var(--pad) clamp(14px, 3cqw, 24px); padding: clamp(16px, 3.4cqw, 28px); border-radius: 18px; background: #17605c; color: #fff; }
.ns-quote p { margin: 0 0 8px; font: 500 clamp(18px, 3.6cqw, 27px)/1.25 var(--serif); letter-spacing: -.01em; text-wrap: balance; } .ns-quote cite { font-style: normal; font-size: 13px; opacity: .8; }
.ns-foot { flex: none; display: flex; justify-content: space-between; gap: 12px; padding: 12px var(--pad); box-shadow: inset 0 1px 0 rgba(29, 42, 38, .08); font-size: 12px; color: var(--soft); }
@property --pour { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes ns-pour { from { --pour: 0%; opacity: .95; } to { --pour: 130%; opacity: .95; } }
@keyframes ns-dry { to { opacity: 0; } }
@keyframes ns-pulse { 50% { opacity: .35; } }
@keyframes ns-drift { to { scale: 1.06; } }
/* A very short window (a phone) is all painting: menu, words and the shop. */
@container (max-height: 330px) { .ns { --lap: 0px; } .ns > .ns-goods, .ns-foot, .ns-quote { display: none; } .ns-hero { padding-bottom: 12px; } }
/* A short, wide window keeps the words inside the painting: the rating line goes first. */
@container (max-height: 540px) { .ns-copy small { display: none; } }
/* A tall window gets a real page, stacked: words, then the painting from edge to edge, then the rest. The painting is never a tall strip. Spare height goes to her customer's words. */
@container (aspect-ratio < 1.05) {
  .ns-hero { flex: 0 1 auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 100cqw); row-gap: clamp(14px, 3.5cqw, 34px); padding-bottom: 0; }
  .ns-copy { padding-block: clamp(6px, 2.4cqh, 30px) 0; justify-content: start; }
  .ns-photo { position: relative; inset: auto; margin-inline: calc(-1 * var(--pad)); min-height: 0; }
  .ns-photo::before { background-position: 78% center; transform-origin: center; } .ns-photo::after { display: none; }
  .ns-quote { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
}
@container (aspect-ratio < 1.05) and (max-height: 760px) { .ns-quote { display: none; } }
@container (max-width: 520px) {
  .ns-nav span { display: none; }
  .ns-hero { grid-template-columns: minmax(0, 56%); }
  .ns-copy p, .ns-copy small { display: none; }
  .ns-photo::after { background: linear-gradient(90deg, var(--sky) 0%, var(--sky) 36%, transparent 67%); }
  .ns-open { padding: 5px 10px; font-size: 11px; }
  .ns-goods article { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 2px; padding: 8px 6px; text-align: center; } .ns-pic { grid-row: auto; } .ns-goods b { font-size: 12.5px; }
  .ns-foot span:first-child { display: none; }
}
.ms-bar { background: #fff; color: #1e3b2f; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.ms-bar img { display: block; height: 30px; width: auto; }
.ms #ms-site { opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms .btn { background: #1e3b2f; }
.speed-ok { margin-left: auto; padding: 3px 10px; border-radius: 10px; background: #edfaef; color: #00761d; font-size: 12px; font-weight: 700; }
.ms .ms-stats li { animation: rise .35s cubic-bezier(.2, 0, 0, 1) backwards; }
.ms .ms-stats li:nth-child(2) { animation-delay: .1s; } .ms .ms-stats li:nth-child(3) { animation-delay: .2s; } .ms .ms-stats li:nth-child(4) { animation-delay: .3s; }
#ms-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#ms-orders li { padding: 9px 12px; border-radius: 10px; background: #edfaef; font-size: 14px; animation: rise .3s cubic-bezier(.2, 0, 0, 1) backwards; }
.chip.gone { opacity: 0; translate: 0 140px; transition-duration: .7s; }

@keyframes fall { to { top: 110%; rotate: 540deg; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@keyframes slam { from { opacity: 0; scale: 1.25; } }

@media (max-width: 820px) {
  .wp { grid-template: 44px minmax(0, 1fr) auto / minmax(0, 1fr); }
  .wp-preview { padding: 12px 12px 6px; }
  .wp-panel { padding: 10px 12px 14px; box-shadow: none; background: transparent; overflow: visible; }
  #builder .wp-panel { box-shadow: none; } #builder .wp-panel h1 { font-size: 20px; }
  .wp-howdy { display: none; } .wp-nag { margin-bottom: 8px; padding: 7px 10px; } #builder:not([data-step="shop"]) .wp-nag { display: none; }
  .wp-steps { margin-bottom: 8px; gap: 4px 10px; }
  #name { margin-bottom: 8px; }
  .wp-panel h1 { margin-bottom: 8px; font-size: 20px; }
  .choice { padding: 10px 6px; } .choice .big { font-size: 24px; } .shops .choice { padding: 12px 10px; } .shops .choice .big { font-size: 18px; }
  .plugins { grid-template-columns: 1fr 1fr; }
  .plugin { gap: 8px; padding: 9px 10px; } .plugin .big { font-size: 20px; width: 24px; } .plugin .name { font-size: 13px; }
  .plugin small, .plugin .state { display: none; }
  .plugin.on::after { content: "✓"; color: #00761d; font-weight: 800; }
  .btn { margin-top: 10px; padding: 13px; }
  .site-nav { padding: 8px 14px; gap: 10px; font-size: 11px; } .site-nav b { font-size: 14px; } .site-nav small { font-size: 10px; }
  .site-nav span:nth-of-type(2) { display: none; }
  .site-hero.has-art { padding: 10px 14px 0; } .hero-copy { padding: 10px 0 12px; } .site.blank .hero-copy { padding: 14px; } .hero-copy h2 { margin-bottom: 8px; }
  .blk { padding: 14px; } .blk h3 { font-size: 17px; }
  .goods span { font-size: 26px; }
  .chip { right: 20px; bottom: 14px; gap: 6px; }
  .chip p { max-width: 200px; font-size: 13px; padding: 8px 11px; margin-bottom: 8px; min-height: 0; }
  .chip-face { width: 52px; height: 52px; }
  .site.blank .site-foot { padding-bottom: 84px; }
  #after { grid-template-rows: 44px minmax(0, 46%) minmax(0, 1fr); }      /* the window keeps one size on a phone, so the new site does not jump when the orders arrive */
  .deny span { display: none; } .deny:not([hidden]) + .speed-ok { display: none; }
  .ms .ms-stats { margin-bottom: 8px; gap: 6px; } .ms .ms-stats li { padding: 5px 9px; font-size: 12.5px; }
  .ms #ms-orders li { padding: 8px 10px; font-size: 13px; } .ms #ms-orders li:nth-child(n+3) { display: none; }
  .site.blank .site-hero { min-height: 0; }
  .sales { margin-bottom: 8px; } .sales b { display: inline; font-size: 26px; margin-right: 6px; }
  #orders li { padding: 8px 10px; font-size: 13px; } #orders li:nth-child(n+3) { display: none; }
  .sms { margin-bottom: 8px; padding: 9px 12px; font-size: 14px; } .lost b { font-size: 26px; }
  .site-foot { padding: 14px 14px 16px; }
}

/* ---------- part two: the game chrome ---------- */
#hud { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 12px; z-index: 3; display: flex; gap: 8px; }
#hud button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(10,18,30,.6); color: #fff; font-weight: 800; font-size: 15px; }
#hud button.off { opacity: .45; text-decoration: line-through; }
#touch { position: fixed; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 3; display: flex; justify-content: space-between; padding: 0 14px; pointer-events: none; touch-action: none; user-select: none; -webkit-user-select: none; }
#touch .pad { position: relative; display: flex; gap: 10px; align-items: flex-end; pointer-events: auto; }
#touch button { width: 70px; height: 70px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: rgba(10,18,30,.42); color: #fff; font-size: 22px; font-weight: 800; touch-action: none; transition: transform .06s, background .06s; }
#touch button.hit, #touch button.jump, #touch button.dash { font-size: 15px; }
#touch button.dash { position: absolute; left: 6px; bottom: 80px; width: 58px; height: 58px; }
#touch button.jump { width: 82px; height: 82px; background: rgba(34,113,177,.6); }
#touch button.down { transform: scale(.92); background: rgba(255,255,255,.35); }

#paused, #end { position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; padding: 20px; background: rgba(6,10,18,.72); }
/* ---------- the result screen: the score on the dark, the top 10 beside it, and one bright MultiSites panel ---------- */
#end { padding: clamp(16px, 4vw, 44px); background: #0a121f; color: #fff; animation: fadein .5s; overflow-y: auto; align-items: start; --line: rgba(255, 255, 255, .13); --dim: rgba(255, 255, 255, .62); }
.end-wrap { margin: auto; width: 100%; max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
#end .card { width: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; animation: rise .5s cubic-bezier(.2, 0, 0, 1) backwards; }
#end #board { animation-delay: .1s; } #end #reality { animation-delay: .2s; }
/* the joke arrives as a WordPress notice, like the one that opened the builder */
.end-note { padding: 14px 16px 14px 20px; border-radius: 4px; background: #fff; color: #1d2327; box-shadow: inset 4px 0 0 #dba617; }
#end .end-note h2 { margin: 0 0 2px; font-size: 18px; line-height: 1.3; }
#end .end-note p { margin: 0; font-size: 14px; color: #50575e; }
#end-plugins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
#end-plugins span { position: relative; width: 34px; height: 34px; border-radius: 6px; background: #f0f0f1; display: grid; place-items: center; font-size: 17px; }
#end-plugins span::after { content: ""; position: absolute; left: 4px; right: 4px; top: calc(50% - 1.5px); height: 3px; border-radius: 2px; background: #d63638; rotate: -45deg; }
#end #end-score { margin: 30px 0 0; color: var(--dim); font-size: 17px; font-weight: 600; }
#end-score b { display: block; margin: 0 0 6px -.015em; color: #fff; font-size: clamp(76px, 9.4vw, 116px); line-height: .86; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#end-stats { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 0; padding: 16px 0; border-block: 1px solid var(--line); }
#end-stats div { display: flex; flex-direction: column-reverse; }
#end-stats dt { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
#end-stats dd { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
#end-stats div:first-child dd { color: #ff6b63; }      /* the same red as the count in play: these cost points */
#end #end-won { margin: 20px 0 0; color: #fff; font-size: 17px; font-weight: 700; text-wrap: balance; }
#save { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; margin-top: 20px; }
#initials { min-width: 0; padding: 10px 4px 10px 12px; border: 0; border-radius: 10px; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); font-size: 20px; font-weight: 800; letter-spacing: .22em; text-align: center; color: #fff; }
#initials::placeholder { color: rgba(255, 255, 255, .34); }
#initials:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff; }
#end #result .btn { margin-top: 0; padding: 13px 12px; font-size: 15px; background: #fff; color: #0a121f; }
#end #result .btn:hover { background: #dfe4ea; }
#end #result .btn:disabled { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .5); }
#end #result .btn.ghost { background: transparent; color: #fff; opacity: 1; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); }
#end #result .btn.ghost:hover { background: rgba(255, 255, 255, .09); }
#end #result #save .btn.done { background: rgba(126, 224, 160, .16); color: #8fe3ab; }
#end .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
#save[hidden] + .row { margin-top: 20px; }
.game-name { display: block; margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .45); }
#board h3 { margin: 0 0 8px; font-size: 20px; }
#board-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; font-variant-numeric: tabular-nums; }
#board-list li { counter-increment: rank; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; padding: 11px 12px; font-weight: 700; box-shadow: inset 0 -1px 0 var(--line); }
#board-list li::before { content: counter(rank); font-size: 13px; font-weight: 600; color: var(--dim); }
#board-list b { letter-spacing: .14em; }
#board-list li.me { border-radius: 8px; background: #fff; color: #0a121f; box-shadow: none; } #board-list li.me::before { color: #50575e; }
#board-empty { margin: 0; color: var(--dim); }
/* the one bright thing on the screen: what is real, and what MultiSites does about it */
#end #reality { padding: clamp(22px, 2.6vw, 30px); border-radius: 24px; background: #fbf6ec; color: #1d2a26; --soft: #4d5b55; }
.real h3 { margin: 0 0 14px; font-size: 17px; line-height: 1.25; } .real h3 span { display: inline-block; }
.real ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.real li { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; font-size: 14px; line-height: 1.35; color: var(--soft); text-wrap: pretty; }
.real li b { color: #b32d2e; font-size: 25px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.real small { display: block; margin-top: 12px; font-size: 11px; color: var(--soft); text-wrap: pretty; } #end .real small a { font-weight: 500; color: inherit; }
#end .pitch { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid rgba(29, 42, 38, .14); color: var(--soft); font-size: 16px; font-weight: 500; line-height: 1.4; text-wrap: pretty; }
#end-want { display: block; margin-bottom: 8px; color: #1d2a26; font: 700 clamp(27px, 2.7vw, 34px)/1.04 ui-serif, "New York", "Iowan Old Style", Georgia, serif; letter-spacing: -.025em; text-wrap: balance; }
#end .ms-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 18px 0 22px; }
#end .ms-stats li { position: relative; padding: 0 0 0 26px; border-radius: 0; background: none; color: #1d2a26; font-size: 14px; line-height: 18px; white-space: nowrap; }
#end .ms-stats li::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #1e3b2f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.4l2.4 2.4 4.6-5.2'/%3E%3C/svg%3E") center / 10px no-repeat; }
/* The point of the screen is this form: type a site address and the scan starts. Its button is the only filled one, and it never leaves the screen. */
.scan { display: flex; flex-wrap: wrap; gap: 8px; }
.scan input { flex: 1 1 100%; min-width: 0; padding: 15px 16px; border: 0; border-radius: 12px; background: #fff; color: #1d2a26; font-size: 17px; box-shadow: inset 0 0 0 1.5px rgba(29, 42, 38, .3); }
.scan input::placeholder { color: rgba(29, 42, 38, .55); }
.scan input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #1e3b2f; }
#end .scan .btn { margin: 0; padding: 17px 18px; border-radius: 12px; background: #1e3b2f; color: #fff; font-size: 18px; } #end .scan .btn:hover { background: #142a20; }
.end-bar { display: none; position: fixed; inset: auto 0 0; z-index: 1; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fbf6ec; animation: rise .5s .3s cubic-bezier(.2, 0, 0, 1) backwards; }
.end-bar .scan { flex-wrap: nowrap; max-width: 520px; margin-inline: auto; }
.end-bar .scan input { flex: 1 1 0; } #end .end-bar .btn { flex: none; width: auto; padding-inline: 16px; font-size: 17px; }
@media (max-width: 1039.98px), (max-height: 739.98px) {      /* where the panel can sit below the first screen, the button is pinned to the bottom instead */
  #end { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .end-bar { display: block; }
  #end #reality > .scan { display: none; } #end .ms-stats { margin-bottom: 0; }
}
@media (max-width: 420px) { #end .ms-stats { grid-template-columns: 1fr; } }
@media (min-width: 680px) {
  .end-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; }
  #end #board { order: 2; } #end #reality { order: 3; }
  .end-wrap:has(#board[hidden]) { max-width: 880px; }
}
@media (min-width: 680px) and (max-width: 1039.98px) {      /* two columns: the panel runs under both, with the facts beside the offer */
  .end-wrap:not(:has(#board[hidden])) #reality { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-content: start; }
  .end-wrap:not(:has(#board[hidden])) .real { grid-row: 1 / 4; }
  .end-wrap:not(:has(#board[hidden])) .pitch { margin: 0; padding: 0; border: 0; }
}
@media (min-width: 1040px) {
  .end-wrap:not(:has(#board[hidden])) { grid-template-columns: minmax(0, 1.08fr) minmax(0, .8fr) minmax(0, 1.14fr); gap: clamp(36px, 4.4vw, 64px); }
}
@media (prefers-reduced-motion: reduce) { #end .card, .end-bar { animation: none; } }
.card { width: min(420px, 100%); padding: 28px; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.card h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; }
.card p { margin: 0 0 14px; color: #50575e; }
.card a { color: #2271b1; font-weight: 700; }
#paused .card a { display: inline-block; margin-top: 18px; }
.card a.btn { color: #fff; text-decoration: none; margin-top: 0; }
@keyframes fadein { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .ns-open i, .ns-photo::before, .ns.pour > .ns-wash { animation: none; } .ns [data-in] { filter: none; translate: 0 0; transition: opacity .3s; } }
@media (prefers-reduced-motion: reduce) { .wp.shake, .btn.pulse, #confetti i, .site.blank * { animation: none; } .wp { transition-duration: .01s; } }
