/* Colorfall discovery and journey navigation. Own components, no game timing changes. */
.cf-discovery,.m3j-page { --cf-ink:#f4f1ff;--cf-muted:#bdc5d9;--cf-line:#b6a2e52e;--cf-accent:#f5b0de }
.cf-discovery { width:min(1280px,calc(100% - 48px));margin-inline:auto }
.cf-discovery-hero { display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:clamp(24px,5vw,72px);padding:32px 0 48px }
.cf-logo { display:block;width:190px;height:64px;object-fit:contain;object-position:left center }
.cf-discovery-copy h1 { font-size:clamp(32px,4vw,58px);line-height:1.07;letter-spacing:-.035em;max-width:12ch;margin:20px 0;color:var(--cf-ink);text-wrap:balance }
.cf-discovery-copy>p { max-width:51ch;font-size:17px;line-height:1.7;color:var(--cf-muted) }
.cf-actions { display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;margin:22px 0 16px }
.cf-actions .button { min-height:48px;gap:12px;white-space:normal;text-align:center }
.cf-text-link { display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#f2c5ea;text-decoration:none;font-weight:650;line-height:1.4 }
.cf-text-link:hover { color:#fff;text-decoration:underline;text-underline-offset:5px }
.cf-discovery .cf-guest-copy { font-size:13px;line-height:1.6;max-width:48ch;color:var(--cf-muted) }
.cf-world { position:relative;margin:0;aspect-ratio:1.04;overflow:hidden;border-radius:48% 48% 12px 12px;background:#131727;box-shadow:0 0 0 1px var(--cf-line) }
.cf-world>picture { display:block;width:100%;height:100% }
.cf-world img { width:100%;height:100%;object-fit:cover;object-position:center 40%;display:block }
.cf-world:after { content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#0a1024f5);pointer-events:none }
.cf-world figcaption { position:absolute;z-index:1;bottom:20px;left:24px;right:24px;display:flex;justify-content:space-around;gap:12px;color:#e0dbef;font-size:12px }
.cf-world figcaption span { display:grid;gap:5px;text-align:center }
.cf-world figcaption b { font-size:24px;color:#fff0be;letter-spacing:.02em;font-variant-numeric:tabular-nums }
.cf-learn { padding:36px 0;border-block:1px solid var(--cf-line) }
.cf-learn>header { display:grid;grid-template-columns:1fr auto;gap:8px 24px;align-items:center }
.cf-learn>header .eyebrow { grid-column:1/-1;color:var(--cf-accent) }
.cf-learn h2 { margin:0;font-size:clamp(23px,3vw,32px);line-height:1.2 }
.cf-learn-steps { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-top:28px }
.cf-learn-steps article { min-width:0 }
.cf-step-icon { display:grid;place-items:center;width:44px;height:44px;border:1px solid #e0b6ff66;border-radius:12px;background:#391d50;color:#f3c2ff;font-size:25px }
.cf-learn-steps article:nth-child(2) .cf-step-icon { color:#8ce8f4;background:#10333e;border-color:#8ce8f466 }
.cf-learn-steps article:nth-child(3) .cf-step-icon { color:#ffe3a1;background:#3b3020;border-color:#ffe3a166 }
.cf-learn h3 { margin:18px 0 10px;font-size:19px;color:var(--cf-ink) }
.cf-learn p { margin:0;color:var(--cf-muted);line-height:1.7;font-size:15px }
.cf-classic-ranking { margin:36px 0 }
.cf-classic-best { color:var(--cf-muted);padding-top:22px }
.cf-journey-heading { display:flex;justify-content:space-between;align-items:center;gap:24px;margin:8px 0 24px }
.cf-journey-heading .cf-logo { width:140px;height:44px }
html body .m3j-page .cf-journey-heading h1 { font-size:clamp(25px,3vw,38px);line-height:1.15;margin:10px 0 6px;letter-spacing:-.025em;color:var(--cf-ink) }
.cf-journey-heading p { color:var(--cf-muted);margin:0;font-size:14px }
.cf-journey-links { display:flex;justify-content:flex-end;margin:-10px 0 16px }
.cf-journey-links .cf-text-link { display:inline-flex;align-items:center;gap:9px;min-height:44px;max-width:100%;padding:8px 0;line-height:1.4 }
.cf-journey-links svg { flex:none;color:var(--cf-accent) }
.cf-journey-total { display:grid;gap:8px;text-align:right;color:var(--cf-muted);font-size:13px }
html body .m3j-page .cf-journey-total strong { color:#ffe2a4;font-size:18px;font-variant-numeric:tabular-nums }
.cf-next-stop { position:relative;display:grid;grid-template-columns:minmax(160px,.55fr) 1fr;overflow:hidden;isolation:isolate;border:1px solid #a8b4df47;border-radius:16px;background:#111a2b;min-height:280px }
.cf-next-art { width:100%;height:100%;max-height:380px;min-height:100%;object-fit:cover;object-position:center 43%;grid-column:1;grid-row:1 }
.cf-next-copy { padding:28px 32px;min-width:0;background:linear-gradient(120deg,#1e2037,#121c2b) }
.cf-next-copy .eyebrow { color:var(--cf-accent);font-size:11px;letter-spacing:.12em }
.cf-next-copy h2 { margin:8px 0;font-size:clamp(22px,3vw,32px);line-height:1.2;text-wrap:balance }
.cf-next-copy>p { margin:0;color:var(--cf-muted);font-size:14px }
.cf-next-facts { display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:16px;font-size:13px;color:#bbc8dc }
.cf-next-facts b { color:#f1f5ff;margin-left:4px;font-variant-numeric:tabular-nums }
.cf-chapter-progress { display:grid;grid-template-columns:1fr auto;gap:7px 16px;align-items:center;margin-top:18px;font-size:12px;color:#ced6e6 }
.cf-chapter-progress progress { grid-row:2;grid-column:1/-1;appearance:none;width:100%;height:6px;overflow:hidden;border:0;border-radius:6px;background:#ffffff14 }
.cf-chapter-progress progress::-webkit-progress-bar { background:#ffffff14;border-radius:6px }
.cf-chapter-progress progress::-webkit-progress-value { background:linear-gradient(90deg,#c598ff,#6cdece);border-radius:6px }
.cf-chapter-progress progress::-moz-progress-bar { background:#97cddd;border-radius:6px }
.cf-chapter-progress small { color:#ffe2a4;font-variant-numeric:tabular-nums }
.cf-guest-note { display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 4px;color:var(--cf-muted);font-size:13px;line-height:1.6 }
.cf-guest-note p { margin:0;max-width:65ch }
.cf-guest-note a { flex-shrink:0;font-size:13px }
.cf-chapter-nav { display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:20px 0 12px }
.cf-chapter-nav>span { margin-right:8px;color:var(--cf-muted);font-size:13px }
.cf-chapter-nav a { display:flex;align-items:center;justify-content:center;gap:3px;min-width:44px;min-height:44px;padding:0 8px;border:1px solid var(--cf-line);border-radius:8px;color:#d3dceb;text-decoration:none;font-variant-numeric:tabular-nums;background:#101827 }
.cf-chapter-nav a[aria-current] { background:#33264d;border-color:#d3a0f6;color:#fff }
.cf-chapter-nav a span { font-size:10px;color:#9aaac1 }
.cf-journey-extras { margin:16px 0 24px;border-block:1px solid var(--cf-line);padding:0 4px }
.cf-journey-extras>summary { padding:15px 0;min-height:48px;cursor:pointer;font-weight:650;color:#d5deed;font-size:14px }
.cf-journey-extras>p { font-size:14px;color:var(--cf-muted) }
.cf-journey-extras[open] { padding-bottom:20px }
.cf-journey-extras .m3j-top { margin-block:16px }
.cf-journey-extras .m3j-top>footer { display:flex;justify-content:flex-end;margin-top:12px }
.cf-journey-extras .m3j-top>footer a { display:inline-flex;align-items:center;gap:8px;min-height:44px;line-height:1.4 }
.m3j-chapter,.m3j-node { scroll-margin-top:calc(var(--app-header-height,72px) + 16px) }
.cf-discovery :focus-visible,.m3j-page .cf-text-link:focus-visible,.cf-chapter-nav a:focus-visible,.cf-journey-extras>summary:focus-visible { outline:3px solid #9be8f6;outline-offset:4px }
@media(max-width:760px) {
 .cf-discovery { width:calc(100% - 28px) }
 .cf-discovery-hero { grid-template-columns:1fr;gap:22px;padding:10px 0 28px }
 .cf-discovery-copy h1 { max-width:17ch;font-size:35px;margin-top:12px }
 .cf-discovery-copy>p { font-size:15px;line-height:1.6 }
 .cf-discovery .cf-logo { width:156px;height:52px }
 .cf-world { aspect-ratio:1.8;border-radius:14px }
 .cf-world>picture { display:block;width:100%;height:100% }
.cf-world img { object-position:center 48% }
 .cf-world figcaption { bottom:14px }
 .cf-world figcaption b { font-size:22px }
 .cf-learn>header { grid-template-columns:1fr }
 .cf-learn-steps { grid-template-columns:1fr;gap:24px }
 .cf-learn-steps article { display:grid;grid-template-columns:44px 1fr;gap:8px 14px }
 .cf-learn h3 { margin:0;align-self:center }
 .cf-learn p { grid-column:2 }
 .cf-journey-links { justify-content:flex-start;margin:-4px 0 12px }
 .cf-journey-heading { align-items:flex-start;gap:12px;margin:0 0 16px }
 html body .m3j-page .cf-journey-heading h1 { font-size:26px }
 .cf-journey-heading p { display:none }
 .cf-journey-total { font-size:11px;max-width:110px;padding-top:8px }
 html body .m3j-page .cf-journey-total strong { font-size:14px }
 .cf-next-stop { display:block;min-height:0 }
 .cf-next-art { position:absolute;inset:0;width:100%;height:100%;max-height:none;z-index:-1;object-position:50% 45% }
 .cf-next-copy { padding:20px 16px;background:linear-gradient(100deg,#0e172df7,#10192ce0 65%,#111c31b8) }
 .cf-next-copy h2 { font-size:25px }
 .cf-next-copy .cf-actions { margin:18px 0 12px;gap:8px 16px }
 .cf-next-facts { margin-top:14px }
 .cf-guest-note { display:block;padding:12px 2px 0 }
 .cf-guest-note a { min-height:40px }
 .cf-chapter-nav { gap:6px;margin:12px 0 }
 .cf-chapter-nav>span { width:100%;margin-bottom:3px }
 .cf-chapter-nav a { min-width:40px;min-height:44px }
 .cf-journey-extras { margin:14px 0 }
}
.cf-result-insight { display:block;margin-top:16px;padding:14px 16px;border-left:3px solid #8adcc8;background:#132b2f;color:#d8f4ed;text-align:left;line-height:1.55;font-size:14px }
.cf-result-insight small { display:block;margin-top:8px;color:#c8d4e6;font-size:12px;line-height:1.5 }

/* A single next action; optional retries/account links remain secondary. */
html body .m3j-game .cf-result-view .match3-modal-actions .button.secondary { background:#172335!important;border:1px solid #64758c!important;box-shadow:none!important;color:#e5eaf4!important }
