/* chroopsgifs: Chroops brand skin. Palette from the official brand card. */
@font-face { font-family: 'Chewy'; src: url(assets/fonts/Chewy.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(assets/fonts/Nunito.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url(assets/fonts/JetBrainsMono.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  --tan: #E0A878; --tan-d: #D29563; --slate: #3A444E; --black: #000; --white: #fff; --cream: #EEDBC9; --cream-l: #F6ECE2;
  --lb: #BCD0DC; --brown: #45362A; --navy: #1F262E; --navy-2: #262F38;
  --tx: #3A444E; --head: #1F262E; --mut: rgba(58, 68, 78, .74); --dim: rgba(58, 68, 78, .56);
  --line: rgba(58, 68, 78, .14); --line2: rgba(58, 68, 78, .24); --field: #fff;
  --h: 44px; --r: 12px; --gap: 16px; --pad: 28px; --title: 'Chewy', 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: radial-gradient(1100px 620px at 85% -8%, rgba(188, 208, 220, .10), rgba(31, 38, 46, 0) 62%), var(--navy); color: var(--tx); font: 500 15px/1.55 Nunito, system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2 { font-family: var(--title); font-weight: 400; color: var(--head); margin: 0; letter-spacing: .005em; }
h2 { font-size: 28px; line-height: 1.1; }
h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--mut); margin: 26px 0 12px; }
h3:first-child { margin-top: 0; }
::selection { background: var(--tan); color: var(--navy); }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(31, 38, 46, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(188, 208, 220, .12); }
.top-row { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.brand img { display: block; height: 33px; width: auto; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.brand-tag { font: 800 12px/1 Nunito, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); padding-bottom: 5px; }
.links { display: flex; gap: 8px; }
.nlink { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--lb); font-weight: 750; font-size: 14px; transition: background .15s, color .15s; }
.nlink:hover { background: rgba(188, 208, 220, .12); color: #fff; }

/* hero: the brand card's tan panel, mascot on the right */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: end; gap: 24px; margin: 28px 0 20px; min-height: 420px; padding: 48px 0 0 52px; border-radius: 28px; background: var(--tan); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: auto -80px -160px auto; width: 560px; height: 560px; border-radius: 50%; background: rgba(255, 255, 255, .13); z-index: -1; }
.hero-copy { align-self: center; padding-bottom: 48px; max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.hero h1 { font-size: 64px; line-height: .98; color: var(--navy); }
.lede { margin: 18px 0 0; font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--navy); opacity: .86; max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn.dark { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn.dark:hover { background: var(--slate); border-color: var(--slate); }
.btn.line { background: transparent; border: 2px solid rgba(31, 38, 46, .55); color: var(--navy); }
.btn.line:hover { background: rgba(31, 38, 46, .08); border-color: var(--navy); }
.big-cta { height: 52px; padding: 0 26px; font-size: 16px; }
.hero-cta .btn { text-decoration: none; height: 52px; padding: 0 24px; font-size: 16px; }
.hero-facts { list-style: none; display: flex; gap: 24px; margin: 28px 0 0; padding: 0; color: var(--navy); font-weight: 700; font-size: 14px; }
.hero-facts b { font-family: var(--title); font-weight: 400; font-size: 24px; margin-right: 6px; }
.hero-art { position: relative; height: 100%; min-height: 372px; display: flex; align-items: flex-end; justify-content: center; }
.mascot { position: relative; width: 300px; aspect-ratio: 300 / 384; cursor: pointer; transform-origin: 50% 100%; animation: intro .9s cubic-bezier(.2, 1.4, .4, 1) both .1s; outline: none; -webkit-tap-highlight-color: transparent; }
.mascot img, .mascot .lids { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.mascot:hover { animation: wiggle .6s ease-in-out; }
.mascot:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; border-radius: 24px; }
.mascot.hop { animation: hop .5s cubic-bezier(.3, 1.5, .5, 1); }
.mascot.spin { animation: spin360 .9s cubic-bezier(.5, 0, .3, 1); }
.lid { fill: #3A444E; transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.lash { fill: none; stroke: #101317; stroke-width: 5; stroke-linecap: round; opacity: 0; }
.mascot.blink .lash { animation: lash .22s ease-in-out; }
@keyframes lash { 0%, 30%, 100% { opacity: 0; } 45%, 60% { opacity: 1; } }
.mascot.blink .lid { animation: blink .22s ease-in-out; }
.bubble { position: absolute; right: calc(100% - 64px); top: 9%; padding: 10px 16px; border-radius: 18px; background: #fff; color: var(--navy); font: 400 22px/1 var(--title); white-space: nowrap; box-shadow: 0 6px 0 rgba(31, 38, 46, .18); opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .18s, transform .25s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.bubble::after { content: ''; position: absolute; right: -9px; bottom: 10px; border: 9px solid transparent; border-left-color: #fff; border-right: 0; }
.bubble.on { opacity: 1; transform: none; }
.flock { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.flock img { position: absolute; left: -60px; width: 46px; height: auto; animation: fly 2.6s linear forwards; }
@keyframes intro { 0% { transform: translateY(105%); } 70% { transform: translateY(-3%); } 100% { transform: none; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-4deg); } 45% { transform: rotate(3.5deg); } 70% { transform: rotate(-2deg); } }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-22px) scaleY(1.03); } 75% { transform: translateY(0) scaleY(.96); } }
@keyframes spin360 { 0% { transform: none; } 50% { transform: translateY(-40px) rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }
@keyframes fly { 0% { transform: translate(0, 0) rotate(-8deg); } 25% { transform: translate(calc(var(--fx) * .25), -26px) rotate(8deg); } 50% { transform: translate(calc(var(--fx) * .5), 0) rotate(-8deg); } 75% { transform: translate(calc(var(--fx) * .75), -26px) rotate(8deg); } 100% { transform: translate(var(--fx), 0) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .mascot, .mascot:hover, .mascot.hop, .mascot.spin { animation: none; } .mascot.blink .lid { animation: none; } .flock img { animation-duration: .01s; } }

/* r9 (FLINT t233u): sticky 5-step progress tracker under the header */
.tracker { position: sticky; top: 64px; z-index: 9; margin: 0 calc(var(--pad) * -1) 20px; padding: 10px var(--pad); background: rgba(31, 38, 46, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.steps li { min-width: 0; }
.steps .st-b { width: 100%; height: var(--h); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; border-radius: 999px; background: var(--navy-2); border: 1px solid rgba(188, 208, 220, .14); color: rgba(188, 208, 220, .78); font-weight: 750; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.steps .st-b:hover { border-color: rgba(188, 208, 220, .32); }
.steps li .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 400 15px/1 var(--title); border: 1.5px solid rgba(188, 208, 220, .4); }
.steps li .l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps li .l-short { display: none; }
.steps li.done .st-b { color: var(--lb); }
.steps li.done .n { background: var(--lb); color: var(--navy); border-color: var(--lb); }
.steps li.on .st-b { background: var(--tan); color: var(--navy); border-color: var(--tan); }
.steps li.on .n { background: var(--navy); color: var(--tan); border-color: var(--navy); }
/* numbered step headings + one literal instruction each */
.sn { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font: 400 17px/1 var(--title); color: var(--slate); box-shadow: 0 0 0 1.5px var(--line2) inset; transition: background .2s, color .2s, box-shadow .2s; }
.sn .lt { display: flex; line-height: 0; } .sn .ltw { display: block; }
.on > .card-head .sn, .stp.on .sn { background: var(--tan); color: var(--navy); box-shadow: none; }
.done > .card-head .sn, .stp.done .sn { background: var(--slate); color: var(--cream); box-shadow: none; }
h2.sh { display: inline-flex; align-items: center; gap: 12px; }
.step-do { margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 650; color: var(--tx); }
.stp { display: flex; flex-direction: column; gap: 16px; }
.stp + .stp { padding-top: 22px; border-top: 1px solid var(--line); }
.stp-h { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.stp-h h3 { margin: 0; font: 400 22px/30px var(--title); letter-spacing: .005em; text-transform: none; color: var(--head); }
.stp-h .step-do { margin: 2px 0 0; }
.gen-sum { margin: -6px 0 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--head); text-align: center; }
.chk-all { align-self: flex-start; height: 28px; margin-top: 2px; }
/* r9 (FLINT t234u): GIF picker toggles */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.tpl { display: flex; align-items: center; gap: 8px; min-width: 0; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1.5px var(--line) inset; color: var(--mut); font: 750 13px/1 Nunito, sans-serif; text-align: left; cursor: pointer; transition: background .15s, box-shadow .15s, color .15s; }
.tpl span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl i { position: relative; flex: none; width: 16px; height: 16px; border-radius: 5px; box-shadow: 0 0 0 1.5px var(--line2) inset; background: #fff; }
.tpl:hover { box-shadow: 0 0 0 1.5px var(--slate) inset; }
.tpl.on { background: #fff; color: var(--head); box-shadow: 0 0 0 1.5px var(--slate) inset; }
.tpl.on i { background: var(--slate); box-shadow: none; }
.tpl.on i::after, .theme.on .tick::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* cards: cream on navy */
.card { background: var(--cream); border-radius: 24px; padding: var(--pad); margin-bottom: 20px; scroll-margin-top: 84px; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 40px rgba(0, 0, 0, .22); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 6px; }
.meta.sub { margin: 0 0 18px; }
.badge { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 14px; background: rgba(58, 68, 78, .08); color: var(--mut); font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.live { background: var(--slate); color: var(--cream); }
.badge.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tan); }
.badge.warn { background: var(--brown); color: var(--cream); }
.meta, .meta-r { color: var(--mut); font-size: 13px; margin: 12px 0 0; min-height: 20px; }
.meta-r { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mono { font-family: JBMono, monospace; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); }
.adv .row2 { grid-template-columns: 1.4fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lab { font-size: 12px; font-weight: 800; color: var(--mut); letter-spacing: .06em; text-transform: uppercase; height: 16px; line-height: 16px; display: flex; justify-content: space-between; }
.lab b { color: var(--head); font-weight: 800; }
select, .inp, .sel-sm { height: var(--h); border-radius: var(--r); border: 1.5px solid var(--line2); background: var(--field); color: var(--head); padding: 0 14px; outline: none; min-width: 0; width: 100%; font-weight: 650; transition: border-color .15s, box-shadow .15s; }
.inp::placeholder { color: var(--dim); font-weight: 600; }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, #3A444E 50%), linear-gradient(135deg, #3A444E 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
select:focus, .inp:focus { border-color: var(--tan); box-shadow: 0 0 0 3px rgba(224, 168, 120, .3); }
.btn { height: var(--h); padding: 0 18px; border-radius: var(--r); border: 1.5px solid var(--line2); background: #fff; color: var(--head); font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, border-color .15s, opacity .15s, transform .15s; }
.btn:hover { border-color: var(--slate); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(58, 68, 78, .06); }
.btn.primary { background: var(--tan); color: var(--navy); border-color: var(--tan); }
.btn.primary:hover:not(:disabled) { background: var(--tan-d); border-color: var(--tan-d); }
.btn.big { height: 54px; font-size: 16px; width: 100%; border-radius: 14px; box-shadow: 0 4px 0 #B97F4F; }
.btn.big:active:not(:disabled) { box-shadow: 0 1px 0 #B97F4F; transform: translateY(3px); }
.btn.big:disabled { box-shadow: none; }
.seg { display: inline-flex; height: var(--h); border-radius: var(--r); padding: 3px; background: rgba(58, 68, 78, .09); gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 0 14px; font-weight: 800; font-size: 13px; color: var(--mut); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--head); }
.seg button.on { background: #fff; color: var(--head); box-shadow: 0 1px 3px rgba(31, 38, 46, .16); }
.seg-full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }

/* NFT step */
.toolbar { display: flex; gap: 12px; align-items: center; }
.toolbar .inp { flex: 1; }
.toolbar .sel-sm { width: 180px; flex: none; }
.grid-meta { display: flex; justify-content: flex-end; min-height: 20px; margin-top: 12px; color: var(--mut); font-size: 13px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 8px; min-height: 120px; }
.tile { position: relative; border: 0; border-radius: 16px; overflow: hidden; background: #fff; cursor: pointer; padding: 0; text-align: left; box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.tile:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 0 0 1.5px var(--line2), 0 10px 18px rgba(31, 38, 46, .14); }
.tile:nth-child(even):hover { transform: translateY(-3px) rotate(.6deg); }
.tile.sel { box-shadow: 0 0 0 3px var(--tan), 0 10px 18px rgba(31, 38, 46, .16); }
.tile.sel .cap { background: var(--tan); color: var(--navy); }
.tile.sel .cap .rk { color: var(--navy); }
.tile .phbox { aspect-ratio: 1; width: 100%; position: relative; overflow: hidden; background: var(--cream-l); }
.tile .ph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.tile .ph.ok { opacity: 1; }
.tile.skel { cursor: default; pointer-events: none; }
.tile.skel .phbox, .tile .phbox:has(.ph:not(.ok)) { background: linear-gradient(100deg, #F3E6D9 30%, #FBF5EF 50%, #F3E6D9 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.tile.skel .sk { display: block; width: 44px; height: 10px; border-radius: 5px; background: #EBDCCD; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.tile .cap { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 14px; font-weight: 850; color: var(--head); transition: background .15s; }
.tile .rk { color: var(--mut); font-weight: 700; font-size: 12px; }
.grid .empty { grid-column: 1 / -1; color: var(--mut); text-align: center; padding: 40px 0; }
.pager { display: grid; grid-template-columns: 104px 1fr 104px; align-items: center; margin-top: 18px; text-align: center; color: var(--mut); font-size: 13px; font-weight: 700; }

/* character */
.char { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--pad); align-items: start; margin-top: 12px; }
.stage-wrap { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 961px) { .stage-wrap { position: sticky; top: 140px; } }   /* r9: the preview stays in view while you work down the steps */
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 580px; border-radius: 20px; overflow: hidden; background-color: #FBF5EF; background-image: linear-gradient(45deg, #F1E3D5 25%, transparent 25%), linear-gradient(-45deg, #F1E3D5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #F1E3D5 75%), linear-gradient(-45deg, transparent 75%, #F1E3D5 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; box-shadow: 0 0 0 1.5px var(--line) inset; }
.stage-wrap .seg { max-width: 580px; }
#preview { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
.stage-empty { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 24px; text-align: center; background: var(--lb); color: var(--navy); }
.stage-empty img { width: 46%; height: auto; margin-bottom: 18px; animation: peek 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.stage-empty b { font: 400 30px/1.1 var(--title); }
.stage-empty > span { font-weight: 650; opacity: .8; max-width: 300px; margin-bottom: 18%; }
.stage.has .stage-empty { display: none; }
@keyframes peek { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg) translateY(-4px); } 60% { transform: rotate(3deg); } }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--head); font-weight: 750; background: rgba(238, 219, 201, .72); opacity: 0; transition: opacity .2s ease; pointer-events: none; z-index: 4; }
.stage-msg.on { opacity: 1; }
.stage-msg.busy { padding-top: 96px; }
.stage-msg.busy::before { content: ''; position: absolute; top: calc(50% - 58px); left: calc(50% - 30px); width: 60px; height: 46px; background: url(assets/brand/mark-slate.svg) center / contain no-repeat; animation: lookabout 1.1s ease-in-out infinite; transform-origin: 50% 80%; }
.stage-msg.error { color: var(--brown); background: rgba(238, 219, 201, .9); }
@keyframes lookabout { 0%, 100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(12deg) translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-msg.prog::after { content: ''; position: absolute; left: 22%; right: 22%; top: calc(50% + 44px); height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--tan) calc(var(--p, 0) * 100%), rgba(58, 68, 78, .14) 0); transition: background .25s linear; }
.side { display: flex; flex-direction: column; gap: 22px; }
.swatches { display: grid; gap: 10px; }
.swrow { display: grid; gap: 6px; }
.swlab { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); line-height: 1; }
.swset { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.swatches button.nftbg { position: relative; }
.swatches button.nftbg::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--navy); }
.swatches button { aspect-ratio: 1; width: 100%; border-radius: 10px; border: 0; cursor: pointer; box-shadow: 0 0 0 1.5px rgba(58, 68, 78, .2) inset; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .15s; }
.swatches button:hover { transform: translateY(-2px) scale(1.06); }
.swatches button.on { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--navy); }
.crow { display: grid; gap: 8px; width: 100%; }
.crow1 { display: grid; grid-template-columns: var(--h) minmax(0, 1fr) var(--h); gap: 8px; }
.crow2 { display: grid; grid-template-columns: 1fr; gap: 8px; }
.crow2.two, .crow2:has(> .scr:not([hidden])) { grid-template-columns: 1fr 1fr; }
.crow input[type=color], .crow .inp, .crow .btn { height: var(--h); border-radius: var(--r); margin: 0; min-width: 0; }
.crow .btn { width: 100%; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; }
.crow .btn.icon { width: var(--h); padding: 0; }
.crow .btn[hidden] { display: none; }
input[type=color] { width: var(--h); height: var(--h); padding: 4px; border-radius: var(--r); border: 1.5px solid var(--line2); background: #fff; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.info { min-height: var(--h); border-radius: var(--r); background: rgba(255, 255, 255, .6); padding: 11px 14px; font-size: 13px; color: var(--mut); line-height: 20px; }
.info b { color: var(--head); font-weight: 800; }
.hint { color: var(--dim); font-size: 12px; margin: -10px 0 0; text-align: center; font-weight: 650; }
.prog { height: 6px; border-radius: 3px; background: rgba(58, 68, 78, .12); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--tan); transition: width .2s; }

/* advanced */
.adv { margin-top: var(--pad); border-top: 1.5px solid var(--line); padding-top: 8px; }
.adv summary { list-style: none; cursor: pointer; height: var(--h); display: flex; align-items: center; justify-content: space-between; font-weight: 850; color: var(--head); }
.adv summary::-webkit-details-marker { display: none; }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.adv[open] .chev { transform: rotate(-135deg) translate(-3px, -3px); }
.adv-body { padding: 16px 0 4px; }
.adv-body .row2, .adv-body .row3 { margin-top: 12px; }
.chk { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; height: 28px; cursor: pointer; color: var(--head); }
.chk input { width: 18px; height: 18px; accent-color: var(--slate); margin: 0; }
.lineup { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.slot { display: grid; grid-template-columns: var(--h) 96px 1fr 1fr 120px 96px auto; gap: 8px; align-items: center; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .55); }
.slot .av { width: var(--h); height: var(--h); border-radius: 50%; object-fit: cover; background: var(--lb); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--tan); }
.slot .role { height: var(--h); display: flex; align-items: center; font-size: 13px; font-weight: 850; color: var(--head); }
.slot .chk { height: var(--h); font-size: 13px; }
.slot .pick { display: flex; gap: 8px; }
.slot .pick .inp { width: 84px; }
.grow { flex: 1; }

/* results */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 12px; }
.results .empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 28px 16px; border-radius: 20px; background: rgba(255, 255, 255, .55); color: var(--mut); font-weight: 700; text-align: left; }
.results .empty img { width: 72px; height: auto; flex: none; }
.res { border-radius: 20px; overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: 0 0 0 1.5px var(--line); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.res:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--line2), 0 12px 24px rgba(31, 38, 46, .12); }
.res .gif { aspect-ratio: 1; width: 100%; display: block; background: var(--cream-l); object-fit: cover; }
.res .gif-wrap { position: relative; }
.res .gif-wrap .prog { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.res .gif-wrap .state { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mut); font-size: 13px; font-weight: 800; }
.res .body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.res .tt { display: flex; flex-direction: column; gap: 2px; }
.res .tt b { font: 400 22px/1.1 var(--title); color: var(--head); } .res .tt > span { color: var(--dim); font-size: 12px; font-weight: 650; }
.res textarea { width: 100%; min-height: 84px; resize: vertical; border-radius: var(--r); border: 1.5px solid var(--line2); background: var(--cream-l); color: var(--head); padding: 10px 12px; font-size: 13px; line-height: 1.45; outline: none; font-weight: 600; }
.res textarea:focus { border-color: var(--tan); }
.res .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.res .acts .btn { width: 100%; padding: 0 10px; }
.res .acts .btn[aria-disabled=true] { opacity: .45; pointer-events: none; }

.how ol { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: how; }
.how li { position: relative; padding: 20px 20px 20px 66px; border-radius: 18px; background: rgba(255, 255, 255, .6); color: var(--mut); font-weight: 600; counter-increment: how; }
.how li .hn { counter-increment: none; position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tan); color: var(--navy); font: 400 19px/1 var(--title); }
.how li b { display: block; color: var(--head); font: 400 21px/1.2 var(--title); margin-bottom: 4px; }

/* footer: the six official wordmark pairings */
.foot { padding: 12px 0 36px; color: rgba(188, 208, 220, .75); font-size: 13px; font-weight: 650; }
.kit { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.kit img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(188, 208, 220, .16); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.kit img:hover { transform: scale(1.04); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { text-decoration: none; color: var(--lb); }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--navy); color: var(--cream); font-weight: 750; font-size: 14px; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: opacity .2s, transform .2s, visibility 0s linear .2s; pointer-events: none; z-index: 70; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition: opacity .2s, transform .2s, visibility 0s; }

/* removed background colours */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 8px; }
.chips > .meta { grid-column: 1 / -1; margin: 0; }
.chip { display: flex; align-items: center; gap: 6px; min-width: 0; height: 36px; padding: 0 4px 0 7px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); font: 700 12px/1 JBMono, ui-monospace, monospace; color: var(--head); }
.chip i { flex: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(58, 68, 78, .25) inset; }
.chip small { font: 700 11px/1 Nunito, sans-serif; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip button { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 7px; border: 0; background: rgba(58, 68, 78, .08); color: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.chip button:hover { background: rgba(58, 68, 78, .16); }
.chip.off { opacity: .5; } .chip.off i { background-image: linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%) !important; }
.cnote2 { margin: 8px 0 0; font-size: 12px; color: var(--mut); font-weight: 600; }
.tolrow { display: grid; grid-template-columns: auto 1fr 32px; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--mut); font-weight: 700; }
.tolrow b { text-align: right; color: var(--head); font-variant-numeric: tabular-nums; }
input[type=range] { accent-color: var(--slate); }
.info .warn { color: var(--brown); font-weight: 750; } .info .soft { color: var(--mut); }
#aiBtn { margin-left: 6px; vertical-align: middle; }
.cnote { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--mut); font-size: 12px; line-height: 1.35; font-weight: 600; }
.cnote .sw { flex: none; width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(58, 68, 78, .3) inset; }
.btn.icon { padding: 0; width: 44px; display: inline-grid; place-items: center; }
.btn.drop.on { background: var(--tan); border-color: var(--tan); color: var(--navy); }
.stage.picking canvas#preview { cursor: crosshair; touch-action: none; }
.loupe { position: absolute; z-index: 5; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translate(-50%, calc(-100% - 22px)); }
.loupe[hidden] { display: none; }
.loupe canvas { width: 110px; height: 110px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy), 0 10px 24px rgba(0, 0, 0, .35); image-rendering: pixelated; background: #000; }
.loupe span { font: 700 12px/1 JBMono, monospace; background: var(--navy); color: #fff; padding: 4px 7px; border-radius: 6px; }
.loupe.below { transform: translate(-50%, 22px); flex-direction: column-reverse; }
.pick-hint { position: absolute; z-index: 6; top: 12px; left: 12px; right: 12px; margin: 0 auto; width: fit-content; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 750; font-size: 13px; line-height: 18px; text-align: center; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.pick-hint[hidden] { display: none; }
.pick-hint .ph-t { display: none; }
@media (any-pointer: coarse) and (not (any-pointer: fine)) { .pick-hint .ph-m { display: none; } .pick-hint .ph-t { display: inline; } }
.shuf-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.shuf-row .btn { padding: 0 18px; }
.shuf-meta { color: var(--mut); font-size: 12px; line-height: 1.35; font-weight: 650; }
.h3row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.h3row h3 { margin: 0; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
[hidden] { display: none !important; }

/* loading bar (inside the picker card) */
.lbar { --p: 0; --tint: 224,168,120; margin: 0 0 18px; padding: 16px 18px 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; }
.lbar.on { opacity: 1; transform: none; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.lb-t { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.35; font-weight: 800; color: var(--head); font-variant-numeric: tabular-nums; }
.lb-track { position: relative; height: 16px; margin: 30px 30px 6px 0; border-radius: 8px; background: rgba(58, 68, 78, .1); }
.lb-fill { position: absolute; inset: 0; border-radius: 8px; transform-origin: left center; transform: scaleX(var(--p)); transition: transform .45s linear; background: repeating-linear-gradient(-45deg, var(--tan) 0 10px, #E9BC94 10px 20px); background-size: 28px 28px; animation: lbstripes 1s linear infinite; }
@keyframes lbstripes { to { background-position: 28px 0; } }
.lb-sprite { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 60px; height: 60px; transform: translate(-50%, -66%); transition: left .45s linear; pointer-events: none; }
.lb-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0 0; padding-right: 30px; }
.lb-cta:has(#lbPlay[hidden]) { display: none; }
.lb-play { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; min-width: 300px; padding: 0 34px; border: 0; border-radius: 999px; cursor: pointer; font: 400 22px/1 var(--title); letter-spacing: .01em; color: var(--cream); background: var(--slate); box-shadow: 0 0 0 3px rgba(var(--tint), .9), 0 0 22px 6px rgba(var(--tint), .45); animation: lbglow 2.2s ease-in-out infinite; transition: transform .15s ease, background .15s ease; }
.lb-play > svg { color: var(--tan); }
.lb-play:hover { background: var(--navy); transform: translateY(-1px); }
.lb-play:active { transform: translateY(1px) scale(.99); }
.lb-play:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.lb-hint { font-size: 12px; color: var(--mut); text-align: center; font-weight: 650; }
@keyframes lbglow { 0%, 100% { box-shadow: 0 0 0 3px rgba(var(--tint), .9), 0 0 12px 2px rgba(var(--tint), .35); } 50% { box-shadow: 0 0 0 3px rgba(var(--tint), .9), 0 0 32px 10px rgba(var(--tint), .6); } }
@media (prefers-reduced-motion: reduce) { .lb-play { animation: none; box-shadow: 0 0 0 3px rgba(var(--tint), .9), 0 0 24px 6px rgba(var(--tint), .5); } .lb-fill { animation: none; } }

/* mini-game */
.flap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(31, 38, 46, .66); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; padding: 16px; }
.flap.on { opacity: 1; }
.fl-box { position: relative; width: min(392px, 100%); background: var(--navy); border-radius: 24px; padding: 14px; box-shadow: 0 0 0 1px rgba(188, 208, 220, .14), 0 30px 60px rgba(0, 0, 0, .5); }
.fl-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; padding-left: 4px; color: var(--cream); }
.fl-head b { display: inline-flex; align-items: center; gap: 10px; font: 400 22px/1 var(--title); }
.fl-head .btn { background: transparent; color: var(--lb); border-color: rgba(188, 208, 220, .3); }
.fl-head .btn:hover { background: rgba(188, 208, 220, .1); border-color: var(--lb); }
.fl-box canvas { display: block; width: 100%; aspect-ratio: 360 / 480; border-radius: 16px; touch-action: none; cursor: pointer; outline: none; }
.fl-ready { position: absolute; left: 26px; right: 26px; bottom: 100px; display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--navy); color: var(--cream); font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.flap.ready .fl-ready { display: flex; }
.fl-prog { position: relative; height: 24px; margin-top: 12px; border-radius: 12px; background: rgba(188, 208, 220, .1); overflow: hidden; }
.fl-prog i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: rgba(224, 168, 120, .55); transition: transform .45s linear; }
.fl-prog span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 24px; font-weight: 750; color: var(--cream); font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 300px; padding-left: 36px; }
  .hero h1 { font-size: 52px; }
  .mascot { width: 250px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .results { grid-template-columns: repeat(2, 1fr); }
  .char { grid-template-columns: 1fr; }
  .stage, .stage-wrap .seg { max-width: none; }
  .slot { grid-template-columns: var(--h) 1fr 1fr; }
  .slot .role { grid-column: 2 / 4; height: 20px; order: -1; }
  .slot .av { grid-row: span 3; }
  .how ol { grid-template-columns: 1fr; }
  .kit { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  :root { --pad: 16px; --gap: 12px; }
  .top-row { height: 58px; }
  .brand img { height: 28px; }
  .links .nlink:first-child { display: none; }
  .nlink { padding: 0 10px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; margin: 16px 0 16px; padding: 28px 22px 0; border-radius: 24px; }
  .hero::before { width: 360px; height: 360px; inset: auto -120px -120px auto; }
  .hero-copy { padding-bottom: 0; }
  .eyebrow { font-size: 12px; margin-bottom: 12px; }
  .hero h1 { font-size: 44px; line-height: 1; }
  .lede { font-size: 16px; margin-top: 14px; }
  .hero-cta { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-facts { gap: 0; justify-content: space-between; margin-top: 22px; font-size: 13px; }
  .hero-facts b { font-size: 21px; margin-right: 4px; }
  .hero-art { min-height: 0; height: auto; margin-top: 8px; }
  .mascot { width: 220px; }
  .bubble { top: 6%; font-size: 19px; }
  h2 { font-size: 26px; }
  .card { border-radius: 20px; }
  .tracker { top: 58px; margin: 0 calc(var(--pad) * -1) 16px; padding: 8px var(--pad); }
  .steps { gap: 4px; }
  .steps .st-b { height: 52px; flex-direction: column; gap: 4px; padding: 0 2px; border-radius: 14px; font-size: 11px; line-height: 14px; }
  .steps li .n { width: 22px; height: 22px; font-size: 13px; }
  .steps li .l-long { display: none; } .steps li .l-short { display: inline; }
  .stp-h h3 { font-size: 21px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .seg { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .toolbar .inp { flex: 1 1 0; }
  .toolbar .sel-sm { width: 100%; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { border-radius: 12px; }
  .tile .cap { height: 34px; padding: 0 8px; font-size: 12px; }
  .tile .rk { font-size: 11px; }
  .swatches { gap: 8px; } .swset { gap: 5px; }
  .swatches button { border-radius: 8px; }
  .results { grid-template-columns: 1fr; }
  .slot { grid-template-columns: var(--h) 1fr; }
  .slot .role { grid-column: 2; }
  .slot .av { grid-row: span 6; align-self: start; }
  .card-head { min-height: 28px; flex-wrap: wrap; row-gap: 6px; }
  .card-head h2 { white-space: nowrap; }
  .card-head .meta-r { flex: 1 1 100%; text-align: left; white-space: normal; }
  .lb-track { margin-right: 26px; }
  .lb-cta { padding-right: 0; }
  .lb-play { width: 100%; min-width: 0; min-height: 56px; font-size: 20px; }
  .kit { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* title lettering traced from the brand card (lib/letters.js): one inline SVG per word, cap-height box on the
   baseline, ascenders/descenders overflow; the real text stays in .vh for screen readers, search and copy */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.is-lt .lt { display: inline; }
.ltw { display: inline; overflow: visible; fill: currentColor; vertical-align: baseline; shape-rendering: geometricPrecision; }
.ltw:not(:last-child) { margin-right: .2625em; }
.steps li .n .lt, .how li .hn .lt { display: flex; line-height: 0; }
.steps li .n .ltw, .how li .hn .ltw { display: block; }
.lt-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Advanced: use your own art (custom/) */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch-l { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.switch button { position: relative; width: 52px; height: 30px; border-radius: 15px; border: 0; padding: 0; background: rgba(58, 68, 78, .28); cursor: pointer; transition: background .18s; }
.switch button i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(31, 38, 46, .3); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.switch button[aria-checked="true"] { background: var(--navy); }
.switch button[aria-checked="true"] i { transform: translateX(22px); background: var(--tan); }
.switch:hover .switch-l { color: var(--head); }
.adv-note { margin: 4px 0 0; max-width: 680px; color: var(--mut); font-weight: 600; font-size: 14.5px; }
.custom-card.on .adv-note { display: none; }
#customRoot { margin-top: 18px; }
@media (max-width: 640px) { .tpl { gap: 6px; padding: 0 8px; font-size: 12px; } }
@media (max-width: 560px) { .custom-card .card-head { flex-wrap: nowrap; } .custom-card .card-head h2 { white-space: normal; } }

/* ---------- Theme picker (brand pairings) */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.theme { position: relative; aspect-ratio: 130 / 61; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; box-shadow: 0 0 0 1.5px rgba(58, 68, 78, .2) inset; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .15s; }
.theme img { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(58, 68, 78, .22); pointer-events: none; }
.theme .th-sw { display: grid; place-items: center; width: 100%; height: 100%; font: 800 12px/1 Nunito, sans-serif; letter-spacing: .04em; }
.theme:hover:not(:disabled) { transform: translateY(-2px); }
.theme.on { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--navy); }
.theme .tick { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 1.5px #fff; display: none; z-index: 1; }
.theme.on .tick { display: block; }
.theme.ph .th-sw { background: repeating-linear-gradient(45deg, #E4DED6 0 6px, #F2EDE7 6px 12px); color: var(--dim); }
.theme.ph:disabled { opacity: .6; }
.theme:disabled { opacity: .45; cursor: not-allowed; }
.theme-batch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
#themeNote { margin-top: 8px; }

/* ---------- animated wordmark stickers (assets/stickers, one per brand pairing) */
.stickers-wrap { margin-top: 22px; padding-top: 6px; border-top: 1.5px solid var(--line); }
.stickers-wrap .h3row { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin: 16px 0 12px; }
.stickers-wrap .meta { font-size: 12.5px; font-weight: 650; color: var(--mut); }
.stickers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.stickers li { display: grid; gap: 8px; }
.stickers img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; box-shadow: 0 0 0 1.5px rgba(31, 38, 46, .14); }
.stickers .btn { width: 100%; }
@media (max-width: 560px) { .stickers { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* r3: GIF background = NFT colour + the 6 themes only; the cutout eyedropper sits with the removed colours */
.bgreset { margin-top: 10px; width: 100%; height: var(--h, 44px); }
.rmpick { margin-top: 8px; }
.btn.rmdrop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: var(--h, 44px); }
.btn.rmdrop svg { flex: none; }

/* r4 (FLINT t227u): tap blurbs always fit inside the bubble: one line when there is room, otherwise balanced lines,
   never wider than the space left of the mascot (app.js caps max-width so it stays on screen at 375px) */
.bubble { width: max-content; max-width: 260px; white-space: normal; text-wrap: balance; text-align: left; line-height: 1.05; padding: 12px 18px; overflow: visible; }
.bubble .lt { display: inline; }
.bubble .ltw { vertical-align: -0.12em; }
/* r11 step 2: background colour selector (FLINT t241u). Desktop: the big preview stays in view (sticky), so the box is
   swatch + label; up to 960px the preview scrolls away, so a live cut-out thumbnail sits in the box. */
.bgsel { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1.5px var(--line) inset; }
.bgsel-sw { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 0 0 1.5px rgba(31, 38, 46, .18) inset, 0 1px 2px rgba(31, 38, 46, .12); }
.bgsel-sw.none { background-image: repeating-linear-gradient(45deg, #E4D6C8 0 6px, transparent 6px 12px); }
.bgsel-t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.bgsel-t b { font-size: 15px; font-weight: 850; color: var(--head); line-height: 20px; white-space: nowrap; }
.bgsel-hex { font: 600 13px/18px JBMono, ui-monospace, monospace; color: var(--mut); letter-spacing: .02em; }
.linkbtn { border: 0; padding: 0; margin-top: 2px; background: none; color: var(--brown); font: 800 13px/18px Nunito, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--head); }
.bgsel-pv { display: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background-color: #FBF5EF; background-image: linear-gradient(45deg, #F1E3D5 25%, transparent 25%), linear-gradient(-45deg, #F1E3D5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #F1E3D5 75%), linear-gradient(-45deg, transparent 75%, #F1E3D5 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; box-shadow: 0 0 0 1.5px var(--line) inset; }
.bgsel-pv canvas { display: block; width: 84px; height: 84px; }
.selwarn { margin: 0; font-size: 13px; line-height: 18px; color: var(--brown); font-weight: 700; }
#st2 .cnote2 { margin: -6px 0 0; }
@media (max-width: 960px) { .bgsel { grid-template-columns: 64px 1fr 84px; } .bgsel-pv { display: block; } }
@media (max-width: 640px) { .bgsel { grid-template-columns: 56px 1fr 84px; gap: 12px; padding: 10px 10px 10px 12px; } .bgsel-sw { width: 56px; height: 56px; border-radius: 12px; } .bgsel-t b { font-size: 14px; line-height: 18px; white-space: normal; } }
/* r12 (FLINT t242u): browse and filter by traits */
#grid[hidden], #pager[hidden], #gridMeta[hidden], .trpanel[hidden], .chips[hidden], .tr-nav[hidden] { display: none; }
.trbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.trbtn { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.trbtn[aria-expanded="true"], .btn.trbtn[aria-expanded="true"]:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.trbtn:disabled { opacity: .5; cursor: default; }
.chips { display: contents; }
.chip { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 14px; border-radius: 18px; border: 1.5px solid var(--tan); background: #fff; color: var(--head); font: 800 13px/1 Nunito, sans-serif; cursor: pointer; white-space: nowrap; max-width: 100%; }
.chip:hover { background: var(--cream-l); }
.chip-k { color: var(--mut); font-weight: 700; }
.chip-x { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 10px; background: rgba(58, 68, 78, .1); font-size: 15px; line-height: 1; }
.chip-clear { margin: 0 0 0 4px; height: 36px; }
.trpanel { margin-top: 12px; border-radius: 16px; background: rgba(58, 68, 78, .05); padding: 12px; }
.tr-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 36px; }
.tr-t { grid-column: 2; text-align: center; font: 800 16px/1 Nunito, sans-serif; color: var(--head); }
.tr-nav { width: 36px; height: 36px; border-radius: 10px; border: 0; background: #fff; color: var(--head); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1.5px var(--line); }

.tr-nav:hover { box-shadow: 0 0 0 1.5px var(--line2); }
.trgrid { margin-top: 12px; min-height: 0; }
.trc .trcap { gap: 8px; }
.trc .trn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trc .rk { flex: none; }
.trc.on { box-shadow: 0 0 0 3px var(--tan); }
.trc.on .cap { background: var(--tan); color: var(--navy); } .trc.on .cap .rk { color: var(--navy); }
.trc:disabled { opacity: .4; cursor: default; transform: none; box-shadow: 0 0 0 1.5px var(--line); }
.trk { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 12px; background: var(--tan); box-shadow: 0 0 0 2px #fff; }
.trk::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media (max-width: 640px) { .trpanel { padding: 8px; margin-left: -4px; margin-right: -4px; } .trc .trcap { height: 48px; padding: 0 8px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; font-size: 13px; line-height: 16px; } .trc .trn { max-width: 100%; } .trc .rk { font-size: 11px; line-height: 14px; } }
/* r13 (FLINT t243u): preview mosaics on the trait cards */
.trc .mos { display: grid; gap: 2px; background: #fff; }
.trc .mos.m1 { grid-template: 1fr / 1fr; }
.trc .mos.m2 { grid-template: 1fr / 1fr 1fr; }
.trc .mos.m3 { grid-template: 1fr 1fr / 1fr 1fr; } .trc .mos.m3 .mc:first-child { grid-row: span 2; }
.trc .mos.m4 { grid-template: 1fr 1fr / 1fr 1fr; }
.trc .mc { position: relative; overflow: hidden; min-width: 0; min-height: 0; background: var(--cream-l); }
.trc .mc .ph { transition: opacity .25s ease, transform .35s cubic-bezier(.3, 1.2, .5, 1); }
.trc .mc:has(.ph:not(.ok)) { background: linear-gradient(100deg, #F3E6D9 30%, #FBF5EF 50%, #F3E6D9 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.tile.trc .phbox:has(.ph:not(.ok)) { animation: none; background: #fff; }
@media (hover: hover) { .trc:not(:disabled):hover .mc .ph { transform: scale(1.06); } }
.trc:not(:disabled):active .mc .ph { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .trc .mc .ph { transition: opacity .25s ease; } .trc:hover .mc .ph, .trc:active .mc .ph { transform: none; } }
/* r13: back path, Show N footer, empty state, 390 captions */
.tr-back { grid-column: 1; grid-row: 1; justify-self: start; height: 36px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px 0 8px; border-radius: 10px; border: 0; background: #fff; color: var(--head); font: 800 13px/1 Nunito, sans-serif; cursor: pointer; box-shadow: 0 0 0 1.5px var(--line); }
.tr-back:hover { box-shadow: 0 0 0 1.5px var(--line2); }
.tr-back[hidden] { display: none; }
.tr-t { grid-column: 2; grid-row: 1; }
.tr-foot { position: sticky; bottom: 12px; z-index: 2; display: flex; justify-content: center; margin-top: 12px; pointer-events: none; }
.tr-done { pointer-events: auto; background: var(--navy); border-color: var(--navy); color: #fff; padding: 0 22px; box-shadow: 0 6px 16px rgba(31, 38, 46, .22); }
.tr-done:hover { background: var(--navy-2); }
.grid .empty p { margin: 0 0 12px; }
@media (max-width: 640px) {
  .tile .cap { height: 46px; padding: 0 8px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; font-size: 13px; line-height: 16px; }
  .tile .rk { font-size: 11px; line-height: 14px; }
  .trc .trcap { height: 46px; }
  .tr-done { width: 100%; }
  .tr-foot { bottom: 8px; }
}
/* r13 (FLINT): Copy GIF next to Download */
.res .acts .cp { grid-column: 1 / -1; }
.stickers li { grid-template-rows: auto 34px 34px; }
.trc .mc.nf { animation: none; background: var(--cream-l); }
/* r14 (FLINT t246u): inline wait bar with the mini-game one tap away */
.waitbar { --p: 0; margin: 0 0 16px; padding: 12px 12px 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
.waitbar[hidden] { display: none; }
.trpanel .waitbar { margin: 12px 0 0; }
.wb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.wb-t { min-width: 0; font-size: 14px; line-height: 18px; font-weight: 700; color: var(--mut); font-variant-numeric: tabular-nums; }
.wb-t b { color: var(--head); font-weight: 850; }
.wb-play { flex: none; gap: 6px; background: var(--navy); border-color: var(--navy); color: #fff; }
.wb-play:hover { background: var(--navy-2); }
.wb-play svg { color: var(--tan); }
.wb-track { position: relative; height: 8px; margin-top: 10px; border-radius: 4px; background: rgba(58, 68, 78, .1); overflow: hidden; }
.wb-track i { position: absolute; inset: 0; border-radius: 4px; transform-origin: left center; transform: scaleX(var(--p)); transition: transform .35s linear; background: repeating-linear-gradient(-45deg, var(--tan) 0 8px, #E9BC94 8px 16px); }
@media (max-width: 640px) { .wb-row { flex-wrap: wrap; } .wb-play { width: 100%; } }
