/* 🎬 The Content House's window (world/js/content-house.js), in the new ZAZA World style: the start screen's look, as the
   profile window, the World Almanac (almanac.css) and the $CARDS rewards window wear it (owner, 2026-11-27: "make it fit the
   new zaza world style like the profiles etc.."): the lobby's dusk with a thin gold edge, dark glass under small gold
   capitals, pill switches with the picked one in gold, the gold Copy button for the one thing to do.
   Then (owner, same day): "improve the top image and entire layout to be a bit cooler and more artistic.. make it more
   visually friendly to put a lot of stuff.. side by side..almost attached so it doesnt occupy much space you have to click
   on it to do something..". So:
   - the head is a stage: the house on the ring road at night (assets/content-house/stage-v1.webp, from the game), two
     searchlights sweeping over it, the name on the dark side, and a film strip of the newest pieces running along the
     bottom;
   - everything there's a lot of (the free makers, the Community wall, yours, what's not sent yet) is a mosaic of square
     tiles a few pixels apart, the picture edge to edge with its name over its foot; a tap opens a card over the window
     (.cnh-sheet) with what can be done with it.
   Classes are cnh- (mk- is the Marketplace's). */
.modal.cnh-modal { border: 1px solid rgba(232, 196, 106, 0.42); border-radius: 6px; background: linear-gradient(180deg, #19163a, #0c0b20); box-shadow: 0 0 0 1px #05040f, 0 14px 34px rgba(0, 0, 0, 0.55); padding: 16px 18px 18px; max-height: calc(100vh - 24px); }
.cnh {
  --tan: #e8c46a; --line: rgba(232, 196, 106, 0.34); --hair: rgba(232, 196, 106, 0.16); --soft: #b9bfdc; --mute: #9ea6cc;
  --glass: linear-gradient(180deg, rgba(14, 18, 50, 0.92), rgba(7, 10, 30, 0.92)); --well: rgba(0, 0, 0, 0.25); --seam: rgba(3, 3, 12, 0.85);
  --panel-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 240, 200, 0.06);
  display: grid; gap: 12px; font-family: var(--ui-font); font-size: 18px; line-height: 1.2; color: #e2e6fa;
}
.cnh > * { margin: 0; }
.cnh button, .cnh select, .cnh input, .cnh textarea { font: inherit; }
.cnh p { margin: 0; font-size: 17px; line-height: 1.3; }

/* ---------------------------------------------------------------- the stage */
.cnh-stage { position: relative; min-height: 206px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #0a0820 url("/world/assets/content-house/stage-v1.webp") 62% 46% / cover no-repeat; isolation: isolate; }
.cnh-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(6, 4, 22, 0.94) 0%, rgba(6, 4, 22, 0.78) 30%, rgba(6, 4, 22, 0.2) 62%, rgba(6, 4, 22, 0.05)), linear-gradient(0deg, rgba(4, 3, 14, 0.9) 0, rgba(4, 3, 14, 0.2) 34%, transparent 52%); }
.cnh-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cnh-sky::before { content: ""; position: absolute; left: 70%; top: -10%; width: 380px; height: 260px; translate: -50% 0; background: radial-gradient(closest-side, rgba(154, 98, 224, 0.42), rgba(154, 98, 224, 0.12) 60%, transparent); mix-blend-mode: screen; } /* the house's own purple, glowing */
.cnh-beam { position: absolute; bottom: 30px; width: 150px; height: 340px; transform-origin: 50% 100%; background: linear-gradient(0deg, rgba(255, 238, 180, 0.42), rgba(255, 238, 180, 0.12) 55%, transparent 92%); clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); filter: blur(3px); mix-blend-mode: screen; }
.cnh-beam.one { left: 60%; rotate: -16deg; animation: cnh-sweep 9s ease-in-out infinite alternate; }
.cnh-beam.two { left: 80%; rotate: 18deg; animation: cnh-sweep 11s ease-in-out -4s infinite alternate-reverse; }
@keyframes cnh-sweep { from { rotate: -24deg; } to { rotate: 22deg; } }
.cnh-id { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; max-width: 640px; padding: 20px 22px 86px; }
.cnh-id > div { display: grid; justify-items: start; gap: 5px; min-width: 0; }
.cnh-logo { flex: none; box-sizing: content-box; width: 56px; height: 52px; padding: 9px; border: 2px solid #c9961c; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #6a35a8, #1d1033); box-shadow: 0 0 0 1px #05040f, 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 22px rgba(154, 98, 224, 0.45); image-rendering: pixelated; }
.cnh-kick { color: var(--tan); font: 400 11px/1 var(--display); letter-spacing: 0.32em; text-transform: uppercase; text-shadow: 0 1px 2px #000; }
.modal .cnh-id h2 { margin: 0; padding-bottom: 2px; font: 400 40px/1.02 var(--display); letter-spacing: 0.01em; color: transparent; background: linear-gradient(180deg, #fff6c8, #ffd23f 52%, #dc9a1c); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 0 rgba(5, 8, 28, 0.95)); }
.cnh .cnh-id p { max-width: 460px; color: #f1ecd8; font-size: 17px; line-height: 1.25; text-shadow: 0 1px 3px #000; }
/* the film strip along the stage's foot: sprocket holes above and below, the newest pieces running past */
.cnh-reel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 70px; overflow: hidden; background: rgba(4, 3, 12, 0.86); border-top: 1px solid rgba(232, 196, 106, 0.22); }
.cnh-reel:empty { display: none; }
.cnh-reel::before, .cnh-reel::after { content: ""; position: absolute; left: 0; right: 0; height: 5px; z-index: 1; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 244, 214, 0.3) 0 7px, transparent 7px 15px); }
.cnh-reel::before { top: 3px; } .cnh-reel::after { bottom: 3px; }
.cnh-film { display: flex; width: max-content; height: 100%; animation: cnh-roll calc(var(--n, 12) * 3.2s) linear infinite; }
.cnh-reel:hover .cnh-film { animation-play-state: paused; }
.cnh-film > div { display: flex; gap: 6px; padding: 11px 3px; }
@keyframes cnh-roll { to { transform: translateX(-50%); } }
.cnh-frame { flex: none; width: 66px; height: 48px; padding: 0; border: 1px solid rgba(255, 244, 214, 0.25); border-radius: 2px; background: #0c0b20; overflow: hidden; cursor: pointer; }
.cnh-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(1.1); }
.cnh-frame:hover { border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .cnh-beam, .cnh-film { animation: none; } }

/* ---------------------------------------------------------------- tabs and tools */
.cnh-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cnh-tab { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-width: max-content; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 10, 32, 0.62); color: #e2e6fa; font-size: 18px; line-height: 1; cursor: pointer; }
.cnh-tab:hover { color: #fff; border-color: var(--tan); }
.cnh-tab:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }
.cnh-tab i { font-style: normal; display: inline-flex; font-size: 17px; }
.cnh-tab b { font-weight: 400; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #10183a; font-size: 14px; line-height: 20px; text-align: center; }
.cnh-tab b.dim { background: rgba(255, 255, 255, 0.12); color: var(--soft); }
.cnh-tab[aria-selected="true"] { border-color: rgba(255, 210, 63, 0.75); background: rgba(255, 210, 63, 0.14); color: var(--gold); }
.cnh-soon { padding: 0 6px; border: 1px solid rgba(232, 196, 106, 0.5); border-radius: 999px; color: var(--tan); font: 400 10px/16px var(--display); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.cnh-err { padding: 8px 12px; border-radius: 4px; background: rgba(255, 93, 93, 0.12); border: 1px solid rgba(255, 107, 107, 0.6); color: #ffd0d0; font-size: 17px; }
.cnh-err.ok { background: rgba(80, 220, 120, 0.12); border-color: rgba(80, 220, 120, 0.6); color: #9ff0b6; }
.cnh-main { min-width: 0; display: grid; gap: 14px; align-content: start; }
.cnh-sec { display: grid; gap: 8px; min-width: 0; }
.cnh .cnh-note { margin: 4px 0; color: var(--soft); }
.cnh-dim { color: var(--mute); font-size: 16px; }
.cnh-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 2px 2px 6px; border-bottom: 1px solid var(--hair); }
.cnh-h b, .cnh-lbl, .cnh-t { font: 400 12px/1.2 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan); }
.cnh-h span { color: var(--soft); font-size: 16px; }
.cnh .cnh-lbl { margin: 2px 0 -2px; }
.cnh-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cnh-hint { color: var(--mute); font-size: 16px; }
.cnh-seg { display: flex; flex-wrap: wrap; gap: 5px; }
.cnh-seg.sort { margin-left: auto; }
.cnh-pill { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 10, 32, 0.62); color: #e2e6fa; font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer; }
.cnh-pill i { font-style: normal; font-size: 14px; }
.cnh-pill:hover:not(:disabled) { color: #fff; border-color: var(--tan); }
.cnh-pill.on { border-color: rgba(255, 210, 63, 0.75); background: rgba(255, 210, 63, 0.14); color: var(--gold); }
.cnh-pill:disabled { opacity: 0.4; cursor: not-allowed; }
.cnh-pill:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons, fields, tags */
.cnh-gold, .cnh-cream { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; border-radius: 3px; text-transform: uppercase; }
.cnh-gold { height: 38px; padding: 0 16px; border: 1px solid #8a6410; background: linear-gradient(180deg, #ffe27a, #ffc21a); color: #1d1404; font: 400 14px/1 var(--display); letter-spacing: 0.08em; }
.cnh-gold:hover:not(:disabled) { background: linear-gradient(180deg, #fff0a8, #ffd23f); }
.cnh-gold:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }
.cnh-cream { height: 34px; padding: 0 12px; border: 1px solid var(--line); background: rgba(232, 196, 106, 0.07); color: var(--tan); font: 400 12px/1 var(--display); letter-spacing: 0.12em; }
.cnh-cream:hover:not(:disabled), .cnh-cream:focus-visible { border-color: var(--tan); background-color: rgba(232, 196, 106, 0.16); color: #fff3c4; outline: none; }
.cnh-gold:disabled, .cnh-cream:disabled { opacity: 0.5; cursor: not-allowed; }
.cnh-gold.like { gap: 7px; }
.cnh-gold.like b { font-weight: 400; }
.cnh-gold.like.on { border-color: #7a1030; background: linear-gradient(180deg, #ff9bb0, #e0456a); color: #fff; }
.cnh-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cnh-lock { padding: 9px 12px; border: 1px solid var(--hair); border-radius: 3px; background: var(--well); color: var(--soft); }
.cnh textarea, .cnh .cnh-input, .cnh-field select, .cnh-field input { width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 17px; resize: vertical; }
.cnh .cnh-input, .cnh-field select, .cnh-field input { height: 38px; padding-block: 0; }
.cnh textarea:focus, .cnh .cnh-input:focus, .cnh-field select:focus, .cnh-field input:focus { outline: 0; border-color: var(--tan); }
.cnh-field select option, .cnh-field select optgroup { background: #12102c; color: #fff; }
.cnh textarea::placeholder, .cnh input::placeholder { color: var(--mute); }
.cnh-field { display: grid; gap: 5px; }
.cnh-field > span { color: var(--tan); font: 400 11px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.cnh-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cnh-chip { padding: 0 7px; border: 1px solid rgba(169, 179, 214, 0.35); border-radius: 999px; background: rgba(6, 10, 32, 0.6); color: var(--soft); font-size: 13px; line-height: 18px; white-space: nowrap; }
.cnh-chip.free { border-color: rgba(80, 220, 120, 0.6); background: rgba(80, 220, 120, 0.16); color: #9ff0b6; }
.cnh-chip.live { border-color: rgba(255, 210, 63, 0.6); background: rgba(255, 210, 63, 0.1); color: #ffe68a; }
.cnh-pips { display: inline-flex; gap: 4px; vertical-align: -1px; }
.cnh-pips i { width: 12px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px var(--line); }
.cnh-pips i.on { background: linear-gradient(180deg, #ffe27a, #ffc21a); box-shadow: inset 0 0 0 1px #8a6410; }
.cnh-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.cnh-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd23f, #ffb020); }
.cnh-bar.warn i { background: linear-gradient(90deg, #ffb020, #e8781a); }
.cnh-bar.full i { background: linear-gradient(90deg, #ff8a80, #d83a3a); }
.cnh-bar.busy i { width: 35%; background: linear-gradient(90deg, #c9a6ff, #7a3fb8); animation: cnh-busy 1.4s ease-in-out infinite; }
@keyframes cnh-busy { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .cnh-bar.busy i { animation: none; width: 100%; opacity: 0.6; } }
.cnh .cnh-price { justify-self: start; padding: 0 9px; border: 1px solid rgba(255, 210, 63, 0.6); border-radius: 999px; background: rgba(255, 210, 63, 0.1); color: var(--gold); font-size: 15px; font-style: normal; line-height: 22px; white-space: nowrap; }
/* where a piece is */
.cnh-st { padding: 0 7px; border: 1px solid; border-radius: 999px; font-size: 13px; font-style: normal; line-height: 20px; white-space: nowrap; }
.cnh-st.pub { border-color: rgba(120, 180, 255, 0.6); background: rgba(10, 20, 60, 0.85); color: #b8d8ff; }
.cnh-st.wait { border-color: rgba(255, 210, 63, 0.6); background: rgba(40, 28, 0, 0.85); color: #ffe68a; }
.cnh-st.live { border-color: rgba(80, 220, 120, 0.6); background: rgba(6, 40, 18, 0.85); color: #9ff0b6; }
.cnh-st.ask { border-color: rgba(200, 160, 255, 0.6); background: rgba(40, 14, 70, 0.85); color: #dcc8ff; }
.cnh-st.no { border-color: rgba(255, 120, 110, 0.55); background: rgba(60, 10, 10, 0.85); color: #ffb0a8; }
.cnh-st.draft { border-color: rgba(169, 179, 214, 0.35); background: rgba(6, 10, 32, 0.85); color: var(--soft); }

/* ---------------------------------------------------------------- mosaics: square tiles a seam apart */
.cnh-mosaic { display: grid; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: var(--seam); grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.cnh-mosaic.makers { grid-template-columns: repeat(auto-fill, minmax(162px, 1fr)); }
.cnh-mosaic.tray { display: flex; overflow-x: auto; scrollbar-width: thin; justify-self: start; max-width: 100%; box-sizing: border-box; }
.cnh-mosaic.tray .cnh-tile { flex: none; width: 128px; }
.cnh-tile { position: relative; display: block; aspect-ratio: 1; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 1px; background: #0c0b20; color: #fff; text-align: left; cursor: pointer; }
.cnh-tile > img, .cnh-tile > canvas { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.35s ease, filter 0.2s; }
.cnh-tile::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 0 rgba(255, 210, 63, 0); transition: box-shadow 0.15s; }
.cnh-tile:hover::after, .cnh-tile:focus-visible::after { box-shadow: inset 0 0 0 2px rgba(255, 210, 63, 0.9), inset 0 0 18px rgba(255, 210, 63, 0.25); }
.cnh-tile:hover > img, .cnh-tile:hover > canvas { transform: scale(1.06); }
.cnh-tile:focus-visible { outline: none; }
.cnh-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle, #232048, #0c0b20); color: var(--soft); font-size: 30px; }
.cnh-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 1px; padding: 22px 7px 6px; background: linear-gradient(180deg, transparent, rgba(4, 3, 14, 0.9) 60%); pointer-events: none; }
.cnh-cap b { overflow: hidden; color: #fff; font-weight: 400; font-size: 15px; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.wall .cnh-cap b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; } /* a long caption on two lines (the card has it whole) */
.cnh-cap small { overflow: hidden; color: var(--soft); font-size: 13px; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.makers .cnh-cap b { color: #ffe68a; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; }
/* the wall's names show on hover (a phone shows them always) */
@media (hover: hover) { .wall .cnh-cap { opacity: 0; translate: 0 6px; transition: opacity 0.15s, translate 0.15s; } .wall .cnh-tile:hover .cnh-cap, .wall .cnh-tile:focus-visible .cnh-cap { opacity: 1; translate: 0 0; } }
.cnh-kind { position: absolute; left: 5px; top: 5px; z-index: 2; padding: 0 6px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; background: rgba(4, 3, 14, 0.78); color: #fff; font-size: 12px; font-style: normal; line-height: 18px; }
.cnh-kind:empty { display: none; }
.cnh-kind.ai { border-color: rgba(190, 150, 255, 0.6); color: #dcc8ff; }
.cnh-in { position: absolute; right: 5px; top: 5px; z-index: 2; font-size: 14px; font-style: normal; line-height: 1; filter: drop-shadow(0 1px 2px #000); }
.cnh-likes { position: absolute; right: 5px; top: 5px; z-index: 2; padding: 0 6px; border-radius: 999px; background: rgba(4, 3, 14, 0.78); color: #ffb0c0; font-size: 12px; font-style: normal; line-height: 18px; }
.cnh-likes.on { color: #ff7a98; }
.cnh-in ~ .cnh-likes { right: 26px; }
.cnh-tile > .cnh-st { position: absolute; right: 5px; top: 5px; z-index: 2; }
.cnh-st ~ .cnh-likes { top: 29px; }
.cnh-fmts { position: absolute; right: 5px; top: 5px; z-index: 2; display: none; gap: 2px; }
.nofmt .cnh-fmts { display: flex; } /* only on a maker that can't make the chosen kind: what it can make */
.cnh-fmts i { padding: 0 4px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 3px; background: rgba(4, 3, 14, 0.72); color: var(--mute); font-size: 11px; font-style: normal; line-height: 15px; }
.cnh-fmts i.on { border-color: rgba(255, 210, 63, 0.7); color: var(--gold); }
.cnh-tile.nofmt > canvas { filter: grayscale(0.7) brightness(0.55); }
.cnh-more { justify-self: center; height: 34px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 10, 32, 0.62); color: #e2e6fa; font-size: 16px; cursor: pointer; }
.cnh-more:hover { border-color: var(--tan); color: #fff; }
.cnh-board { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 10px; border: 1px solid var(--hair); border-radius: 3px; background: var(--well); }
.cnh-board > b { color: var(--tan); font: 400 11px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.cnh-rank { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 16px; }
.cnh-rank i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #3a4170; font: 400 11px/1 var(--display); font-style: normal; }
.cnh-rank.r1 i { background: linear-gradient(180deg, #ffe27a, #ffc21a); color: #1d1404; }
.cnh-rank.r2 i { background: linear-gradient(180deg, #f2f4f8, #aab2c4); color: #1d1404; }
.cnh-rank.r3 i { background: linear-gradient(180deg, #f0b27a, #b86a32); color: #1d1404; }
.cnh-rank small { color: var(--mute); font-size: 14px; }

/* ---------------------------------------------------------------- ✨ with AI: two picks and the box beside them, joined */
.cnh-airow { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: var(--seam); }
.cnh-ai { position: relative; display: grid; align-content: start; gap: 6px; padding: 12px 12px 12px; border: 0; border-radius: 1px; color: #e2e6fa; text-align: left; cursor: pointer; background: radial-gradient(110% 90% at 100% 0%, rgba(154, 98, 224, 0.34), transparent 62%), var(--glass); }
.cnh-ai.news { background: radial-gradient(110% 90% at 100% 0%, rgba(74, 116, 232, 0.34), transparent 62%), var(--glass); }
.cnh-ai b { color: #ffe68a; font: 400 13px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.cnh-ai small { color: var(--soft); font-size: 15px; line-height: 1.2; }
.cnh-ai:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--tan); }
.cnh-ai:disabled { cursor: default; }
.cnh-ai:disabled::after { content: "🔒"; position: absolute; bottom: 14px; right: 10px; font-size: 14px; line-height: 1; } /* by the price: clear of the name */
.cnh-ai[aria-pressed="true"] { box-shadow: inset 0 0 0 2px rgba(255, 210, 63, 0.85); }
.cnh-aiside { display: grid; align-content: start; gap: 8px; padding: 12px; background: var(--glass); }
.cnh-aiside p { color: var(--soft); font-size: 16px; }
.cnh-aiside p.ok { color: #9ff0b6; }
.cnh-aiside textarea { min-height: 58px; }
.cnh-spend { display: grid; gap: 5px; }
.cnh-spend span { color: var(--mute); font-size: 14px; }
@media (max-width: 760px) { .cnh-airow { grid-template-columns: 1fr 1fr; } .cnh-aiside { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- the card over the window */
.cnh-sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
.cnh-scrim { position: absolute; inset: 0; background: rgba(3, 4, 14, 0.74); backdrop-filter: blur(2px); }
.cnh-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; box-sizing: border-box; width: min(1000px, 100%); max-height: calc(100vh - 24px); overflow: auto; padding: 16px; border: 1px solid rgba(232, 196, 106, 0.42); border-radius: 6px; background: linear-gradient(180deg, #19163a, #0c0b20); box-shadow: 0 0 0 1px #05040f, 0 18px 48px rgba(0, 0, 0, 0.7); outline: none; }
.cnh-card.form { width: min(860px, 100%); }
.cnh-card.form:has(> .cnh-info.wide) { grid-template-columns: minmax(0, 1fr); width: min(620px, 100%); }
.cnh-x { position: absolute; right: 8px; top: 8px; z-index: 2; width: 30px; height: 30px; padding: 0; border: 2px solid #000; border-radius: 6px; background: #7a2a2a; color: #fff; font-weight: 700; cursor: pointer; }
.cnh-view { display: grid; place-items: center; min-height: 240px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #05040f; }
.cnh-view > img, .cnh-view > video, .cnh-view > canvas { display: block; max-width: 100%; max-height: calc(100vh - 80px); width: auto; height: auto; object-fit: contain; }
.cnh-view > canvas { width: 100%; }
.cnh-info { display: grid; align-content: start; gap: 9px; min-width: 0; padding-right: 30px; }
.cnh-info h3 { margin: 0; font: 400 26px/1.1 var(--display); color: transparent; background: linear-gradient(180deg, #fff6c8, #ffd23f 52%, #dc9a1c); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 0 rgba(5, 8, 28, 0.9)); overflow-wrap: anywhere; }
.cnh .cnh-by { color: var(--soft); font-size: 16px; }
.cnh .cnh-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--soft); font-size: 15px; }
.cnh .cnh-words1 { padding: 8px 10px; border: 1px solid var(--hair); border-radius: 3px; background: var(--well); color: #dfe6ff; font: 500 14px/1.4 "Plus Jakarta Sans", system-ui, sans-serif; }
.cnh-words { display: grid; gap: 5px; }
.cnh-words label { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 6px 8px; border: 1px solid rgba(232, 196, 106, 0.12); border-radius: 3px; background: rgba(0, 0, 0, 0.2); font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 13.5px; line-height: 1.35; color: #dfe6ff; cursor: pointer; }
.cnh-words label:has(input:checked) { border-color: rgba(255, 210, 63, 0.55); background: rgba(255, 210, 63, 0.08); color: #fff; }
.cnh-words input { margin-top: 2px; accent-color: #ffc21a; }
.cnh-check { display: flex; align-items: center; gap: 8px; color: #e2e6fa; font-size: 16px; cursor: pointer; }
.cnh-check input { width: 17px; height: 17px; margin: 0; accent-color: #ffc21a; }
.cnh-rules { margin: 0; padding-left: 18px; display: grid; gap: 3px; color: var(--soft); font-size: 15px; }
.cnh-rules li::marker { color: var(--tan); }
.cnh-confirm { display: grid; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255, 176, 32, 0.55); border-radius: 3px; background: rgba(255, 176, 32, 0.1); color: #ffe2b0; }
.cnh .cnh-cost { color: var(--soft); font-size: 16px; }
.cnh-cost b { color: var(--gold); font-weight: 400; }
.cnh .cnh-asked { color: #9fd0ff; font-size: 16px; }
.cnh .cnh-when { color: var(--mute); font-size: 15px; }
.cnh-art, .cnh-big { width: 100%; height: auto; display: block; }
.cnh-vid { position: relative; display: grid; place-items: center; width: 100%; }
.cnh-vid img { width: 100%; display: block; }
.cnh-vid span { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(6, 10, 32, 0.8); color: #fff; font-size: 15px; }
.cnh-drop { display: grid; place-items: center; width: 100%; min-height: 300px; height: 100%; cursor: pointer; background: repeating-linear-gradient(135deg, rgba(232, 196, 106, 0.05) 0 12px, transparent 12px 24px); }
.cnh-drop > img, .cnh-drop > video { display: block; max-width: 100%; max-height: 60vh; object-fit: contain; }
.cnh-drop-in { display: grid; justify-items: center; gap: 6px; padding: 20px; color: #e2e6fa; text-align: center; }
.cnh-drop-in b { color: var(--gold); font: 400 40px/1 var(--display); }
.cnh-drop-in small { color: var(--mute); font-size: 14px; }
.cnh-file input { display: none; }
.cnh-rows { display: grid; gap: 6px; }
.cnh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid rgba(232, 196, 106, 0.12); border-radius: 3px; background: rgba(0, 0, 0, 0.2); }
.cnh-row b { display: block; color: #fff; font-weight: 400; font-size: 17px; }
.cnh-row small { display: block; color: var(--mute); font-size: 14px; }
@media (max-width: 720px) {
  .cnh-card { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .cnh-info { padding-right: 0; }
  .cnh-view { min-height: 0; }
  .cnh-view > img, .cnh-view > video { max-height: 46vh; }
  .cnh-drop { min-height: 190px; }
}

/* ---------------------------------------------------------------- challenges */
.cnh-soonboard { display: grid; justify-items: center; gap: 8px; padding: 22px 16px; text-align: center; border: 1px solid rgba(255, 210, 63, 0.55); border-radius: 4px; background: var(--glass); box-shadow: var(--panel-shadow); }
.cnh-big-t { font: 400 34px/1.08 var(--display); color: transparent; background: linear-gradient(180deg, #fff6c8, #ffd23f 52%, #dc9a1c); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 0 rgba(5, 8, 28, 0.9)); }
.cnh-soonboard p { color: var(--soft); }
.cnh-soonboard ul { text-align: left; margin: 0; padding-left: 20px; color: var(--soft); display: grid; gap: 4px; }
.cnh-soonboard li::marker { color: var(--tan); }

/* ---------------------------------------------------------------- a phone */
@media (max-width: 560px) {
  .cnh-stage { min-height: 0; }
  .cnh-id { gap: 10px; padding: 12px 44px 80px 12px; }
  .cnh-logo { width: 34px; height: 32px; padding: 6px; }
  .modal .cnh-id h2 { font-size: 26px; }
  .cnh .cnh-id p { display: none; }
  .cnh-reel { height: 62px; }
  .cnh-frame { width: 56px; height: 42px; }
  .cnh-film > div { padding: 10px 3px; }
  .cnh-beam { width: 100px; height: 230px; }
  .cnh-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 4px; }
  .cnh-tab { position: relative; min-width: 0; padding: 0 10px; }
  .cnh-tab .cnh-soon, .cnh-tab b { position: absolute; top: -8px; right: 6px; }
  .cnh-tab .cnh-soon, .cnh-tab b.dim { background: #0c0b20; }
  .cnh-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cnh-mosaic.makers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cnh-seg.sort { margin-left: 0; }
  .cnh-hint { font-size: 15px; }
  .cnh-ai { padding: 10px; }
  .cnh-ai b { font-size: 11px; letter-spacing: 0.08em; }
}
@media (max-width: 360px) { .cnh-logo { display: none; } .cnh-airow { grid-template-columns: minmax(0, 1fr); } } /* the narrowest phones: the AI picks one over the other, so "AI news post" stays on a line */

/* 📜 Fresh from the dev log: the first row of the Make tab, edged gold */
.cnh-dev .cnh-h b { color: var(--gold); }
.cnh-mosaic.devs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cnh-tile.dev { box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.35); }
.cnh-tile.dev .cnh-cap small { color: #ffe68a; }
.cnh-new { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 4px; background: var(--gold); color: #1b1300; font: 400 14px/1.2 var(--pixel, "Jersey 10", monospace); letter-spacing: 0.06em; font-style: normal; }
@media (max-width: 560px) { .cnh-mosaic.devs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
