/* colours.css - the site's colour theme: "Playful" (chosen 2026-09-30, see design-proposal/v4-playful).
   Loaded LAST on every page, over style.css / site.css / studio.css. It only changes colours:
   remove this file's <link> from the pages to go back to the plain blue theme. */
:root {
  --v-brand: #5b8cff; --v-c2: #ff5dbb; --v-c3: #ffd23f;
  --v-cta1: #7be35a; --v-cta2: #2fd8a0; --v-cta-ink: #07210b; --v-like: #ff5dbb;
  --v-bg: #0b0e17; --v-bg2: #070910; --v-surface: #131827; --v-raised: #1a2033; --v-hover: #222a42;
}
/* ===== the shared colour layer: every version sets the variables at the bottom of its file ===== */
:root {
  --accent: var(--v-brand); --accent-hover: color-mix(in srgb, var(--v-brand) 80%, #fff 20%);
  --accent-2: var(--v-c2); --accent-3: var(--v-c3);
  --accent-soft: color-mix(in srgb, var(--v-brand) 16%, transparent); --tint: color-mix(in srgb, var(--v-brand) 18%, transparent);
  --hud-line: color-mix(in srgb, var(--v-brand) 30%, transparent);
  --grid-lit: color-mix(in srgb, var(--v-brand) 32%, transparent);
  --glow: 0 0 0 1px color-mix(in srgb, var(--v-brand) 40%, transparent), 0 6px 22px color-mix(in srgb, var(--v-brand) 32%, transparent);
  --glow-2: 0 0 26px color-mix(in srgb, var(--v-brand) 24%, transparent);
  --bg: var(--v-bg); --bg-2: var(--v-bg2); --surface: var(--v-surface); --raised: var(--v-raised); --hover: var(--v-hover);
  --cta: linear-gradient(135deg, var(--v-cta1), var(--v-cta2));
}
/* 1. the one main action */
.btn-primary, .play-cover .play-go {
  background: var(--cta) !important; color: var(--v-cta-ink) !important; border-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 6px 20px color-mix(in srgb, var(--v-cta1) 32%, transparent) !important;
}
.btn-primary:hover, .play-cover:hover .play-go { filter: brightness(1.07); }
/* 2. colour in the air of the hero */
.hero::after { content: ""; position: absolute; inset: -10% -5% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(38% 46% at 82% 18%, color-mix(in srgb, var(--v-c2) 24%, transparent), transparent 70%),
              radial-gradient(30% 40% at 8% 88%, color-mix(in srgb, var(--v-c3) 18%, transparent), transparent 70%),
              radial-gradient(26% 30% at 60% 96%, color-mix(in srgb, var(--v-cta1) 16%, transparent), transparent 70%); }
.hero h2 em { background: linear-gradient(100deg, var(--v-brand), var(--v-c2) 45%, var(--v-cta1) 80%, var(--v-cta2)) !important;
  -webkit-background-clip: text !important; background-clip: text !important; }
.pill { background: color-mix(in srgb, var(--v-c2) 16%, transparent); border-color: color-mix(in srgb, var(--v-c2) 40%, transparent); color: color-mix(in srgb, var(--v-c2) 70%, #fff); }
.pill::before { background: var(--v-cta2); box-shadow: 0 0 10px var(--v-cta2); }
/* 3. one colour per feature, per game card, per hashtag */
.features .feature:nth-child(4n + 1), .game-grid > :nth-child(4n + 1), .tag-row .tag:nth-child(4n + 1) { --c: var(--v-brand); }
.features .feature:nth-child(4n + 2), .game-grid > :nth-child(4n + 2), .tag-row .tag:nth-child(4n + 2) { --c: var(--v-c2); }
.features .feature:nth-child(4n + 3), .game-grid > :nth-child(4n + 3), .tag-row .tag:nth-child(4n + 3) { --c: var(--v-c3); }
.features .feature:nth-child(4n + 4), .game-grid > :nth-child(4n + 4), .tag-row .tag:nth-child(4n + 4) { --c: var(--v-cta2); }
.features .feature { border-top: 2px solid color-mix(in srgb, var(--c) 70%, transparent); }
.features .feature-icon { color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 10%, transparent)); }
.game-grid > .game-card { border-top: 3px solid color-mix(in srgb, var(--c) 85%, transparent); }
.game-grid > .game-card:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 18px 38px rgba(0, 0, 0, .5), 0 0 30px color-mix(in srgb, var(--c) 22%, transparent); }
.tag-row .tag { color: color-mix(in srgb, var(--c) 72%, #fff); background: color-mix(in srgb, var(--c) 13%, transparent); border-color: color-mix(in srgb, var(--c) 36%, transparent); }
.meta-item:nth-of-type(1) svg { color: var(--v-c3) !important; }
.meta-item:nth-of-type(2) svg { color: var(--v-like) !important; }
.meta-item:nth-of-type(3) svg { color: var(--v-brand) !important; }   /* comments: blue (likes are pink) */
/* 4. labels and chosen tabs */
.eyebrow { background: linear-gradient(90deg, var(--v-brand), var(--v-c2)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.site-nav a[aria-current="page"]::after { background: linear-gradient(90deg, var(--v-brand), var(--v-c2), var(--v-cta1)) !important; }
.discover-tabs .tab.is-active { background: linear-gradient(135deg, var(--v-brand), var(--v-c2)) !important; color: #fff !important; }
/* 5. the game page's waiting stage */
.play-cover { background: radial-gradient(50% 60% at 50% 45%, color-mix(in srgb, var(--v-c2) 20%, transparent), transparent 70%),
    radial-gradient(40% 50% at 30% 70%, color-mix(in srgb, var(--v-cta1) 14%, transparent), transparent 70%),
    radial-gradient(40% 50% at 70% 30%, color-mix(in srgb, var(--v-c3) 12%, transparent), transparent 70%) !important; }
/* 6. the Studio: each side section a colour, the chat's own messages and the chosen tab */
.side-section:nth-of-type(1) .side-head::before { background: var(--v-brand) !important; box-shadow: 0 0 9px -1px var(--v-brand) !important; }
.side-section:nth-of-type(2) .side-head::before { background: var(--v-c2) !important; box-shadow: 0 0 9px -1px var(--v-c2) !important; }
.side-section:nth-of-type(3) .side-head::before { background: var(--v-c3) !important; box-shadow: 0 0 9px -1px var(--v-c3) !important; }
.side-section:nth-of-type(4) .side-head::before { background: var(--v-cta2) !important; box-shadow: 0 0 9px -1px var(--v-cta2) !important; }
/* the free tools and the groups of their dialogs take blue, pink, yellow and mint in turn */
.free-tool:nth-child(4n + 1), .free-group:nth-child(4n + 1) { --c: var(--v-brand); }
.free-tool:nth-child(4n + 2), .free-group:nth-child(4n + 2) { --c: var(--v-c2); }
.free-tool:nth-child(4n + 3), .free-group:nth-child(4n + 3) { --c: var(--v-c3); }
.free-tool:nth-child(4n + 4), .free-group:nth-child(4n + 4) { --c: var(--v-cta2); }
.msg-user { background: linear-gradient(135deg, var(--v-brand), var(--v-c2)) !important; color: #fff !important; }
.tabs .tab.is-active, .stage-tabs .is-active, #tab-game.is-active, #tab-graph.is-active, #tab-android.is-active {
  box-shadow: inset 0 -2px 0 var(--v-cta1) !important; color: var(--text) !important; }
.count { color: var(--v-c3) !important; }
.folder-name + .count, .folder .count { color: var(--v-c2) !important; }
/* "Dallas3D AI" in the top-left: the AI in the second brand colour, beside the blue of the logo */
.brand-ai { color: var(--v-c2); }
/* 7. the Blog: sections, steps, index links and the two-box rows take blue, pink, yellow and mint in turn */
.blog-section:nth-of-type(4n + 1), .blog-steps li:nth-child(4n + 1), .blog-index a:nth-child(4n + 1), .blog-pair > div:nth-child(4n + 1) { --c: var(--v-brand); }
.blog-section:nth-of-type(4n + 2), .blog-steps li:nth-child(4n + 2), .blog-index a:nth-child(4n + 2), .blog-pair > div:nth-child(4n + 2) { --c: var(--v-c2); }
.blog-section:nth-of-type(4n + 3), .blog-steps li:nth-child(4n + 3), .blog-index a:nth-child(4n + 3) { --c: var(--v-c3); }
.blog-section:nth-of-type(4n + 4), .blog-steps li:nth-child(4n + 4), .blog-index a:nth-child(4n + 4) { --c: var(--v-cta2); }
.blog-section h3 span { color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.blog-section blockquote { border-left-color: var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); }
.blog-steps li::before { color: var(--v-cta-ink); background: var(--c); }
.blog-index a:hover { border-color: var(--c); color: var(--text); }
.blog-index a::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.blog-pair > div { border-top: 3px solid var(--c); }
.blog-head .display em { font-style: normal; background: linear-gradient(100deg, var(--v-brand), var(--v-c2) 45%, var(--v-cta1) 80%, var(--v-cta2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.blog-end { border-color: color-mix(in srgb, var(--v-c2) 40%, transparent);
  background: radial-gradient(60% 90% at 90% 0%, color-mix(in srgb, var(--v-c2) 16%, transparent), transparent 70%),
              radial-gradient(50% 80% at 5% 100%, color-mix(in srgb, var(--v-c3) 12%, transparent), transparent 70%), var(--bg-2); }
