/* Celestial Court (portal id shifter-council). Edith, 2026-11-21: "It should look otherworldly... I don't want it
   to look like any of the other portals... Every time you go to a level in this area, it should be a celestial
   experience with clouds, with sparkles... like you're literally going through the clouds."
   So this page alone is bright: an open sky of gold and pearl, never the dark ground of the other worlds. Each
   medallion flies the visitor through cloud (.cc-flight) to a full-screen level (.cc-chamber); every step inside a
   level passes through cloud too. Loaded only on this page, after style.css. Script: static/js/council.js. */
body[data-portal="shifter-council"] {
  --cc-ink: #3a2810; --cc-ink-2: #6a4d1f; --cc-gold: #b78628; --cc-gold-2: #ecca7c; --cc-pearl: #fffaee;
  --cc-display: "Cinzel Decorative", "Cinzel", Georgia, serif;
  background: #f4e7c8; color: var(--cc-ink); color-scheme: light;
}
html.cc-open { overflow: hidden; }

/* ---------- the sky behind everything ---------- */
.cc-sky { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(rgba(255,250,236,.30), rgba(255,250,236,.12)), url("/static/art/council/sky.webp") center / cover no-repeat; }
.cc-sky::before, .cc-sky::after, .cc-drift { content: ""; position: absolute; left: -30%; width: 160%; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0)) 4% 60% / 34% 62% no-repeat,
    radial-gradient(closest-side, rgba(255,250,235,.8), rgba(255,255,255,0)) 30% 30% / 30% 70% no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0)) 58% 70% / 36% 60% no-repeat,
    radial-gradient(closest-side, rgba(255,246,224,.8), rgba(255,255,255,0)) 86% 40% / 30% 66% no-repeat;
  filter: blur(14px); }
.cc-sky::before { bottom: -8%; height: 46%; animation: ccDrift 70s linear infinite alternate; }
.cc-sky::after { top: -10%; height: 34%; opacity: .7; animation: ccDrift 95s linear infinite alternate-reverse; }
@keyframes ccDrift { from { transform: translateX(-9%); } to { transform: translateX(9%); } }

/* sparkles: one canvas over the whole page (council.js draws it) */
.cc-sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }

/* ---------- the header and footer in this sky ---------- */
body[data-portal="shifter-council"] .site-header { background: rgba(255,250,238,.74); border-bottom-color: rgba(190,150,70,.4); }
body[data-portal="shifter-council"] .site-header .logo,
body[data-portal="shifter-council"] .site-header .site-nav a:not(.btn),
body[data-portal="shifter-council"] .site-header .nav-toggle { color: var(--cc-ink); }
body[data-portal="shifter-council"] .site-header .logo span { color: var(--cc-gold); }
body[data-portal="shifter-council"] .site-header .nav-toggle { border-color: rgba(150,110,40,.5); }
@media (max-width: 860px) { body[data-portal="shifter-council"] .site-header .site-nav { background: rgba(255,250,238,.97); } }
html.cc-open .guide { display: none; }

/* ---------- the ring (the hub) ---------- */
body[data-portal="shifter-council"] .council-opening, body[data-portal="shifter-council"] main > .cc-below { max-width: none; }
body[data-portal="shifter-council"] .site-footer { color: var(--text); color-scheme: dark; }
body[data-portal="shifter-council"] .co-stage { background: transparent; border-radius: 0 0 28px 28px;
  box-shadow: 0 30px 80px rgba(255,238,196,.9), 0 0 0 1px rgba(214,170,84,.35); }
/* the cloud you hit on the way in: the page opens white-gold and clears in half a second onto the rising colonnade */
body[data-portal="shifter-council"] .co-stage::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #fff, #fff6e0 55%, #f8e9c6); animation: ccHit .55s ease-out forwards; }
@keyframes ccHit { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { body[data-portal="shifter-council"] .co-stage::after { display: none; } }
/* faster: the crest is up in about a second (Edith: "the delay is too long... then boom, everything is there") */
body[data-portal="shifter-council"] .co-crest { transition: transform 1s cubic-bezier(.16,.84,.3,1), opacity .45s ease; }
body[data-portal="shifter-council"] .crest-on .co-glow { animation-duration: 1.5s; }
body[data-portal="shifter-council"] .co-label { background: rgba(255,250,236,.92); color: var(--cc-ink); border: 1px solid rgba(190,150,70,.6);
  font: 700 .82rem var(--display); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 26px rgba(255,236,180,.95); }
body[data-portal="shifter-council"] .co-title { text-align: center; padding: clamp(22px, 4vw, 46px) var(--gutter) 10px; }
body[data-portal="shifter-council"] .co-title .eyebrow { color: var(--cc-gold); }
body[data-portal="shifter-council"] .co-title .display { font-family: var(--cc-display);
  background: linear-gradient(180deg, #8a5a14, #d6a53c 48%, #7c4f10); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 0 22px rgba(255,240,200,.9)); }
body[data-portal="shifter-council"] .co-title .tagline { color: var(--cc-ink); margin: 6px auto 0; text-shadow: 0 0 14px #fff, 0 0 4px #fff; }
.cc-welcome { max-width: 58ch; margin: 14px auto 0; color: var(--cc-ink-2); text-shadow: 0 0 14px #fff, 0 0 4px #fff; }
body[data-portal="shifter-council"] .co-hint { color: var(--cc-gold); text-shadow: 0 0 12px #fff; animation: ccBreath 3.2s ease-in-out infinite; }
@keyframes ccBreath { 50% { opacity: .55; } }
/* the names of the seven paths, under the ring (so a phone, which can't hover, still sees where each one goes) */
.cc-paths { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px auto 0; padding: 0; max-width: 980px; }
.cc-btn, .cc-paths button { font: 700 .8rem var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  color: var(--cc-ink); background: linear-gradient(180deg, rgba(255,253,246,.92), rgba(255,244,214,.86)); border: 1px solid rgba(190,150,70,.7);
  border-radius: 999px; padding: 11px 20px; box-shadow: 0 0 22px rgba(255,236,180,.85), inset 0 1px 0 #fff; transition: transform .2s ease, box-shadow .2s ease; }
.cc-btn:hover, .cc-paths button:hover, .cc-btn:focus-visible, .cc-paths button:focus-visible { transform: translateY(-2px); color: var(--cc-ink);
  box-shadow: 0 0 34px rgba(255,226,150,1), 0 0 0 2px rgba(214,170,84,.9), inset 0 1px 0 #fff; outline: none; }
.cc-btn.gold { background: linear-gradient(180deg, #f6dc98, #d7a640 55%, #b98424); border-color: #9c6f1c; color: #2c1c05; }
.cc-btn.ghost { background: rgba(255,252,244,.5); }

/* ---------- below the veil: the worlds these rules land on ---------- */
.cc-below { position: relative; margin-top: clamp(40px, 8vw, 110px); padding: clamp(60px, 10vw, 150px) var(--gutter) clamp(40px, 6vw, 80px); text-align: center;
  background: linear-gradient(180deg, rgba(244,231,200,0), rgba(120,128,170,.55) 34%, #12152a 72%, var(--bg)); color: var(--text); }
.cc-below .eyebrow { color: #fff3cf; text-shadow: 0 1px 12px rgba(40,34,70,.95), 0 0 3px rgba(40,34,70,.8); }
.cc-below h2 { font: 700 clamp(1.4rem, 3.4vw, 2.2rem) var(--display); letter-spacing: .08em; text-transform: uppercase; margin: .3em 0 1em; color: #fff; text-shadow: 0 2px 18px rgba(10,12,30,.8); }
/* the four worlds below the veil: round windows in the dark, each at the end of a shaft of light from the Court */
.cc-below { overflow: hidden; }
.cc-veil-edge { position: absolute; left: -4%; right: -4%; top: 0; height: clamp(70px, 11vw, 150px); pointer-events: none;
  background:
    radial-gradient(ellipse 9% 70% at 6% 8%, #fff 60%, transparent 68%), radial-gradient(ellipse 11% 90% at 19% 4%, #fff 60%, transparent 68%),
    radial-gradient(ellipse 10% 74% at 33% 6%, #fff 60%, transparent 68%), radial-gradient(ellipse 12% 96% at 47% 2%, #fff 60%, transparent 68%),
    radial-gradient(ellipse 10% 78% at 61% 6%, #fff 60%, transparent 68%), radial-gradient(ellipse 11% 92% at 75% 4%, #fff 60%, transparent 68%),
    radial-gradient(ellipse 10% 72% at 89% 8%, #fff 60%, transparent 68%), radial-gradient(ellipse 8% 60% at 99% 6%, #fff 60%, transparent 68%);
  filter: blur(7px); opacity: .92; animation: ccVeil 26s ease-in-out infinite alternate; }
@keyframes ccVeil { to { transform: translateX(2.5%); } }
.cc-below .eyebrow, .cc-below h2 { position: relative; }
.cc-worlds { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2.4vw, 34px); max-width: 1180px; margin: clamp(30px, 6vw, 80px) auto 40px; align-items: start; }
.cc-world { position: relative; display: block; text-decoration: none; text-align: center; color: #fff; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(70px) scale(.86); filter: blur(10px); transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.2,.7,.2,1), filter 1.1s ease; }
.cc-world.in { opacity: 1; transform: none; filter: none; }
.cc-world:nth-child(1) { margin-top: clamp(20px, 5vw, 70px); } .cc-world:nth-child(2) { margin-top: clamp(70px, 13vw, 190px); }
.cc-world:nth-child(3) { margin-top: 0; } .cc-world:nth-child(4) { margin-top: clamp(50px, 9vw, 130px); }
/* the shaft of light that falls from the Court onto this world */
/* every shaft of light falls behind every world, so one world's light never crosses another's face */
.cc-worlds { isolation: isolate; }
.cc-world-beam { z-index: -1; position: absolute; left: 50%; bottom: calc(100% - 12%); width: 46%; height: 900px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,240,196,0) 0%, rgba(255,240,196,.34) 55%, rgba(255,240,196,.7) 100%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); filter: blur(3px); mix-blend-mode: screen; animation: ccBeam 5s ease-in-out infinite; }
.cc-world:nth-child(2n) .cc-world-beam { animation-delay: -2.4s; }
@keyframes ccBeam { 50% { opacity: .55; } }
.cc-world-float { position: relative; display: block; animation: ccTier 8s ease-in-out infinite; }
.cc-world:nth-child(2) .cc-world-float { animation-duration: 9.5s; animation-delay: -4s; } .cc-world:nth-child(3) .cc-world-float { animation-duration: 7.2s; animation-delay: -2s; }
.cc-world:nth-child(4) .cc-world-float { animation-duration: 10.4s; animation-delay: -6s; }
.cc-world-orb { position: relative; display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 0 5px var(--wc), 0 0 60px 6px var(--wc), inset 0 0 50px rgba(5,6,20,.55); transition: transform .5s ease, box-shadow .4s ease; }
.cc-world-orb img, .cc-world-orb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) 30%; }
.cc-world-orb video { opacity: 0; transition: opacity .7s ease; }
.cc-world-orb video.on { opacity: 1; }
/* a ring of light turning around each world */
.cc-world-ring { position: absolute; inset: -7%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 62%, var(--wc) 78%, #fff 84%, var(--wc) 90%, transparent 100%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: ccRing 9s linear infinite; opacity: .9; }
.cc-world:nth-child(2n) .cc-world-ring { animation-duration: 12s; animation-direction: reverse; }
@keyframes ccRing { to { transform: rotate(360deg); } }
.cc-world strong { display: block; margin-top: 1.1em; font: 700 clamp(.9rem, 1.6vw, 1.2rem) var(--display); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 16px rgba(5,6,20,.9); }
.cc-world small { display: block; max-width: 24ch; margin: .45em auto 0; font: italic 400 clamp(.78rem, 1.15vw, .92rem)/1.45 var(--body, Lora, serif); color: #d9deea; text-shadow: 0 1px 10px rgba(5,6,20,.9); }
.cc-world:hover .cc-world-orb, .cc-world:focus-visible .cc-world-orb { transform: scale(1.06); box-shadow: 0 0 0 2px #fff, 0 0 0 6px var(--wc), 0 0 90px 18px var(--wc), inset 0 0 40px rgba(5,6,20,.4); }
.cc-world:focus-visible { outline: none; }
@media (max-width: 760px) {
  .cc-worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .cc-world:nth-child(1), .cc-world:nth-child(3) { margin-top: 0; } .cc-world:nth-child(2), .cc-world:nth-child(4) { margin-top: 56px; }
  .cc-world-beam { height: 520px; }
}
@media (prefers-reduced-motion: reduce) { .cc-world { opacity: 1; transform: none; filter: none; transition: none; } .cc-world-float, .cc-world-ring, .cc-world-beam, .cc-veil-edge { animation: none; } }

/* ---------- the flight through the clouds ---------- */
.cc-flight { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; opacity: 0; overflow: hidden; background: #fff7e4; }
.cc-flight.go { visibility: visible; pointer-events: auto; }
.cc-flight.long { animation: ccFlightLong 1.7s ease both; }
.cc-flight.hop { animation: ccFlightHop .8s ease both; background: transparent; }
@keyframes ccFlightLong { 0% { opacity: 0; } 22% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ccFlightHop { 0% { opacity: 0; } 35% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: 0; } }
.cc-clouds { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-flight.long .cc-clouds { animation: ccRush 1.7s cubic-bezier(.5,0,.7,.4) both; }
.cc-flight.hop .cc-clouds { display: none; }
@keyframes ccRush { from { transform: scale(1.05); } to { transform: scale(1.9); } }
.cc-puff { position: absolute; width: 60vmax; height: 46vmax; margin: -23vmax 0 0 -30vmax; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,1), rgba(255,252,240,.9) 45%, rgba(255,246,222,0) 72%); filter: blur(10px); will-change: transform, opacity; }
.cc-puff.p1 { left: 50%; top: 50%; } .cc-puff.p2 { left: 22%; top: 34%; } .cc-puff.p3 { left: 78%; top: 38%; }
.cc-puff.p4 { left: 30%; top: 74%; } .cc-puff.p5 { left: 72%; top: 72%; } .cc-puff.p6 { left: 50%; top: 20%; }
.cc-flight.go .cc-puff { animation: ccPuff 1.1s cubic-bezier(.3,0,.6,1) both; }
.cc-flight.hop .cc-puff { animation-duration: .78s; }
.cc-flight.go .p2 { animation-delay: .06s; } .cc-flight.go .p3 { animation-delay: .12s; } .cc-flight.go .p4 { animation-delay: .2s; }
.cc-flight.go .p5 { animation-delay: .28s; } .cc-flight.go .p6 { animation-delay: .36s; }
.cc-flight.hop .p4, .cc-flight.hop .p5, .cc-flight.hop .p6 { animation-delay: .1s; }
@keyframes ccPuff { 0% { transform: scale(.15); opacity: 0; } 30% { opacity: 1; } 70% { opacity: .95; } 100% { transform: scale(4.2); opacity: 0; } }
.cc-bloom { position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(255,255,255,1), rgba(255,248,226,.85) 30%, rgba(255,240,200,0) 70%); opacity: 0; }
.cc-flight.long .cc-bloom { animation: ccBloom 1.7s ease both; }
.cc-flight.hop .cc-bloom { animation: ccBloom .8s ease both; }
@keyframes ccBloom { 0%, 25% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- a level ---------- */
body[data-portal="shifter-council"] main > .cc-chamber { max-width: none; margin: 0; padding: 0; }   /* not a page section: it fills the screen */
.cc-chamber { position: fixed; inset: 0; z-index: 70; overflow: hidden; overflow: clip; background: #fbefd2; color: var(--cc-ink); --tint: rgba(255,244,214,.0); }   /* clip: focusing a button must never slide the sky sideways */
.cc-chamber[hidden] { display: none; }
.cc-backdrop { position: absolute; inset: -4%; background: linear-gradient(var(--tint), var(--tint)), linear-gradient(rgba(255,251,240,.42), rgba(255,251,240,.2)), url("/static/art/council/sky.webp") center / cover no-repeat;
  animation: ccSky 40s ease-in-out infinite alternate; }
@keyframes ccSky { from { transform: scale(1) translateY(0); } to { transform: scale(1.12) translateY(-2%); } }
.cc-drift.d1 { bottom: -10%; height: 44%; animation: ccDrift 46s linear infinite alternate; }
.cc-drift.d2 { top: -12%; height: 36%; opacity: .75; animation: ccDrift 64s linear infinite alternate-reverse; }
.cc-shaft { position: absolute; left: 50%; top: -20%; width: 70vmin; height: 140%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.75), rgba(255,246,214,.28) 55%, rgba(255,255,255,0)); filter: blur(34px); mix-blend-mode: screen; animation: ccBreath 7s ease-in-out infinite; }
/* each level has its own sky */
#cc-rules { --tint: rgba(255,226,150,.14); } #cc-fathers { --tint: rgba(214,140,60,.16); } #cc-wolves { --tint: rgba(150,180,235,.26); }
#cc-ardon { --tint: rgba(235,110,90,.18); } #cc-makers { --tint: rgba(190,160,240,.24); } #cc-courts { --tint: rgba(255,255,255,.22); }
#cc-council { --tint: rgba(170,215,170,.18); }

.cc-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 14px var(--gutter); }
.cc-where { flex: 1; margin: 0; text-align: center; font: 700 .78rem var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--cc-ink-2); text-shadow: 0 0 12px #fff, 0 0 3px #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-bar .cc-btn { padding: 9px 16px; font-size: .72rem; white-space: nowrap; }
.cc-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; min-width: 96px; justify-content: flex-end; flex-wrap: wrap; max-width: 30vw; }
.cc-dots li { width: 7px; height: 7px; border-radius: 50%; background: rgba(150,110,40,.3); transition: background .3s, transform .3s, box-shadow .3s; }
.cc-dots li.on { background: #c8962e; transform: scale(1.5); box-shadow: 0 0 10px 2px rgba(255,226,150,.95); }
.cc-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px var(--gutter) max(16px, env(safe-area-inset-bottom)); }
.cc-count { font: 700 .74rem var(--display); letter-spacing: .2em; color: var(--cc-ink-2); min-width: 64px; text-align: center; text-shadow: 0 0 10px #fff; }
.cc-nav .cc-btn[disabled] { opacity: .35; cursor: default; transform: none; }
.cc-next.gold { animation: ccPulse 2.6s ease-in-out infinite; }
@keyframes ccPulse { 50% { box-shadow: 0 0 44px rgba(255,220,130,1), 0 0 0 3px rgba(255,236,180,.6), inset 0 1px 0 #fff; } }

.cc-scenes { position: absolute; inset: 62px 0 78px; z-index: 2; }
.cc-scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px var(--gutter); overflow-y: auto; opacity: 0; visibility: hidden; }
.cc-scene.on { opacity: 1; visibility: visible; }
.cc-scene.on .cc-in { animation: ccIn .9s cubic-bezier(.2,.7,.2,1) both; }
.cc-scene.on .cc-in:nth-child(2) { animation-delay: .14s; } .cc-scene.on .cc-in:nth-child(3) { animation-delay: .28s; }
.cc-scene.on .cc-in:nth-child(4) { animation-delay: .42s; } .cc-scene.on .cc-in:nth-child(5) { animation-delay: .56s; }
@keyframes ccIn { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* words standing in the light, no box around them */
.cc-word { position: relative; max-width: 800px; text-align: center; padding: clamp(18px, 4vw, 56px); }
.cc-word::before { content: ""; position: absolute; inset: -6% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,253,246,.94), rgba(255,251,238,.7) 58%, rgba(255,251,238,0)); }
.cc-eyebrow { margin: 0 0 .6em; font: 700 .8rem var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--cc-gold); }
.cc-title, .cc-name { margin: 0; font: 700 clamp(2rem, 6.2vw, 4.4rem)/1.05 var(--cc-display); letter-spacing: .03em;
  background: linear-gradient(180deg, #8a5a14, #d9a83e 46%, #7a4d0f); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.95)) drop-shadow(0 0 20px rgba(255,238,190,.95)); }
.cc-name { font-size: clamp(1.7rem, 4.2vw, 3rem); }
.cc-h { margin: 0 0 .5em; font: 700 clamp(1.3rem, 3.2vw, 2.1rem)/1.15 var(--cc-display); color: #7a4f10; letter-spacing: .03em; text-transform: none; }
.cc-line, .cc-big { margin: .8em auto 0; max-width: 34em; font: 400 clamp(1.1rem, 2.1vw, 1.42rem)/1.6 var(--body); color: var(--cc-ink); }
.cc-line { font-style: italic; }
.cc-flourish { display: block; width: 180px; height: 14px; margin: 18px auto 0; background:
  radial-gradient(circle, #c8962e 0 3px, transparent 4px) center / 14px 14px no-repeat,
  linear-gradient(90deg, transparent, #c8962e 40%, transparent 46%, transparent 54%, #c8962e 60%, transparent) center / 100% 1px no-repeat; }
.cc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.cc-doors .cc-return-low { margin-top: 18px; }

/* a picture and its words */
.cc-slide, .cc-ancient { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(18px, 3.4vw, 52px); align-items: center; width: 100%; max-width: 1200px; }
.cc-slide.shape-tall, .cc-ancient { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
.cc-frame { position: relative; margin: 0; justify-self: center; border-radius: 20px; overflow: hidden; animation-name: ccIn, ccFloat !important; animation-duration: .9s, 7s !important;
  animation-iteration-count: 1, infinite !important; animation-timing-function: cubic-bezier(.2,.7,.2,1), ease-in-out !important; animation-delay: 0s, .9s !important;
  box-shadow: 0 0 0 2px rgba(214,170,84,.95), 0 0 0 9px rgba(255,255,255,.6), 0 0 70px rgba(255,232,170,.95), 0 34px 70px rgba(120,90,30,.28); }
@keyframes ccFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.cc-frame img { display: block; width: 100%; max-height: calc(100svh - 210px); object-fit: cover; }
.shape-tall .cc-frame { border-radius: 50% 50% 18px 18px / 24% 24% 18px 18px; }
.shape-tall .cc-frame img { aspect-ratio: 3 / 4; width: auto; height: min(calc(100svh - 200px), 720px); object-position: 50% 10%; }
.cc-pane { position: relative; padding: clamp(18px, 2.6vw, 36px); border-radius: 24px; color: var(--cc-ink);
  background: linear-gradient(160deg, rgba(255,253,246,.86), rgba(255,247,226,.72)); border: 1px solid rgba(214,170,84,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 46px rgba(255,236,190,.85), inset 0 1px 0 #fff; }
.cc-pane p { margin: 0; font: 400 clamp(1.02rem, 1.7vw, 1.22rem)/1.62 var(--body); }

/* the Rules of Engagement: each rule alone in the sky */
.cc-rule { position: relative; max-width: 760px; text-align: center; padding: clamp(14px, 3vw, 40px); }
.cc-rule::before { content: ""; position: absolute; inset: -4% -12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,253,246,.95), rgba(255,251,238,.72) 58%, rgba(255,251,238,0)); }
.cc-numeral { position: relative; width: clamp(110px, 19vmin, 168px); aspect-ratio: 1; margin: 5vmin auto clamp(46px, 9vmin, 70px); display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d8, #ecc66e 42%, #b98424 78%, #8b5d12); box-shadow: 0 0 0 3px #fff7dc, 0 0 0 5px #b98424, 0 0 60px rgba(255,220,130,1), inset 0 -8px 18px rgba(110,70,10,.35); }
.cc-numeral span { font: 700 clamp(2rem, 6vmin, 3.4rem) var(--cc-display); color: #3a2206; text-shadow: 0 1px 0 rgba(255,246,210,.8); }
.cc-numeral svg { position: absolute; inset: -34%; width: 168%; height: 168%; overflow: visible; animation: ccTurn 60s linear infinite; }
.cc-numeral svg circle { fill: none; stroke: rgba(184,134,40,.8); } .cc-numeral svg g { fill: #d6a53c; }
@keyframes ccTurn { to { transform: rotate(360deg); } }
.cc-scene.on .cc-numeral { animation: ccStamp 1s cubic-bezier(.2,1.3,.3,1) both; }
@keyframes ccStamp { from { opacity: 0; transform: scale(2.2) rotate(-40deg); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.cc-rule.cost .cc-numeral { background: radial-gradient(circle at 35% 30%, #ffe9e0, #d98a6a 42%, #9c3a22 78%, #6a1d0d); box-shadow: 0 0 0 3px #fff0e6, 0 0 0 5px #9c3a22, 0 0 60px rgba(255,170,130,.9), inset 0 -8px 18px rgba(80,20,5,.4); }
.cc-rule.cost .cc-numeral span { color: #fff3e6; text-shadow: none; }
.cc-sealed { text-align: center; max-width: 720px; position: relative; padding: clamp(14px, 3vw, 40px); }
.cc-sealed::before { content: ""; position: absolute; inset: -4% -12%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,253,246,.95), rgba(255,251,238,.7) 58%, rgba(255,251,238,0)); }
.cc-seal { position: relative; width: clamp(150px, 26vmin, 230px); aspect-ratio: 1; margin: 4vmin auto clamp(46px, 8vmin, 64px); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff6d8, #ecc66e 40%, #b98424 76%, #8b5d12); box-shadow: 0 0 0 4px #fff7dc, 0 0 0 7px #b98424, 0 0 90px rgba(255,220,130,1); }
.cc-seal::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #2b3f86, #101a44 70%); box-shadow: inset 0 0 0 2px #ecc66e, inset 0 6px 16px rgba(0,0,0,.5); }
.cc-seal img { position: relative; width: 58%; filter: brightness(1.25) drop-shadow(0 0 10px rgba(255,226,150,.8)); }
.cc-seal svg { position: absolute; inset: -22%; width: 144%; height: 144%; overflow: visible; animation: ccTurn 50s linear infinite reverse; }
.cc-seal svg circle { fill: none; stroke: rgba(184,134,40,.8); } .cc-seal svg g { fill: #d6a53c; }
.cc-scene.on .cc-seal { animation: ccStamp 1.1s cubic-bezier(.2,1.3,.3,1) both; }
.cc-sealed p { font: 700 clamp(1rem, 2.2vw, 1.3rem)/1.6 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #6a4410; margin: 0; }

/* an Ancient, in each of his forms */
.cc-forms { position: relative; justify-self: center; height: min(calc(100svh - 200px), 720px); aspect-ratio: 3 / 4; max-width: 100%; border-radius: 50% 50% 18px 18px / 24% 24% 18px 18px; overflow: hidden;
  box-shadow: 0 0 0 2px var(--c2, #d6aa54), 0 0 0 9px rgba(255,255,255,.6), 0 0 80px rgba(255,232,170,.95), 0 34px 70px rgba(120,90,30,.28); animation: ccFloat 7s ease-in-out infinite; }
.cc-form { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease, transform 1.2s ease; transform: scale(1.06); }
.cc-form.on { opacity: 1; transform: none; }
.cc-form img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.cc-veil { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 12%;
  background: radial-gradient(circle at 50% 38%, #fff, rgba(255,246,222,.9) 26%, color-mix(in srgb, var(--c2, #e0b04f) 55%, #fff) 60%, color-mix(in srgb, var(--c1, #b9783a) 55%, #fff)); overflow: hidden; }
.cc-veil::before, .cc-veil::after { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, rgba(255,255,255,0), rgba(255,255,255,.75) 12%, rgba(255,255,255,0) 24%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 62%, rgba(255,255,255,.7) 80%, rgba(255,255,255,0));
  filter: blur(26px); animation: ccTurn 22s linear infinite; }
.cc-veil::after { animation-duration: 34s; animation-direction: reverse; opacity: .7; }
.cc-veil strong, .cc-veil small { position: relative; z-index: 1; }
.cc-veil strong { font: 700 clamp(1.1rem, 2.4vw, 1.5rem) var(--cc-display); color: #6a4410; }
.cc-veil small { font: 400 .95rem/1.4 var(--body); color: #6a4d1f; font-style: italic; }
.cc-burst { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 42%, #fff, rgba(255,246,214,.95) 30%, rgba(255,236,180,0) 72%); }
.cc-forms.shift .cc-burst { animation: ccBurst .9s ease both; }
@keyframes ccBurst { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.6); } }
.cc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }
.cc-tabs button { font: 700 .74rem var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: var(--cc-ink); background: rgba(255,255,255,.6);
  border: 1px solid rgba(190,150,70,.7); border-radius: 999px; padding: 9px 16px; transition: background .25s, box-shadow .25s; }
.cc-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #f6dc98, #d7a640 55%, #b98424); border-color: #9c6f1c; color: #2c1c05; box-shadow: 0 0 22px rgba(255,220,130,.95); }
.cc-tabs button:focus-visible { outline: 2px solid #9c6f1c; outline-offset: 2px; }
.cc-texts { position: relative; }
.cc-texts p { display: none; } .cc-texts p.on { display: block; animation: ccIn .7s ease both; }
.cc-motto { display: flex; align-items: center; gap: 12px; margin: 18px 0 0 !important; padding-top: 14px; border-top: 1px solid rgba(190,150,70,.45); font-style: italic; font-size: 1rem !important; color: var(--cc-ink-2); }
.cc-jewels { display: inline-flex; gap: 5px; flex: none; }
.cc-jewels i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 -3px 5px rgba(0,0,0,.3), inset 0 2px 3px rgba(255,255,255,.7), 0 0 0 1px rgba(120,90,30,.5); }
.cc-jewels i:nth-child(1) { background: var(--c1); } .cc-jewels i:nth-child(2) { background: var(--c2); } .cc-jewels i:nth-child(3) { background: var(--c3); }

@media (max-width: 820px) {
  .cc-slide, .cc-slide.shape-tall, .cc-ancient { grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; padding: 6px 0 14px; }
  .cc-scene { place-items: start center; }
  .cc-scene:has(.cc-word), .cc-scene:has(.cc-rule), .cc-scene:has(.cc-sealed) { place-items: center; }
  .cc-frame img { max-height: 40svh; }
  .shape-tall .cc-frame img { height: min(46svh, 420px); }
  .cc-forms { height: min(38svh, 360px); }
  .cc-pane { padding: 16px 18px; border-radius: 20px; }
  .cc-pane .cc-eyebrow { font-size: .66rem; letter-spacing: .16em; margin-bottom: .3em; }
  .cc-name { font-size: 1.55rem; }
  .cc-tabs { margin: 10px 0; gap: 6px; } .cc-tabs button { padding: 8px 12px; font-size: .68rem; }
  .cc-motto { margin-top: 12px !important; padding-top: 10px; font-size: .9rem !important; }
  .cc-scene { scrollbar-width: none; } .cc-scene::-webkit-scrollbar { display: none; }
  .cc-scenes { inset: 58px 0 72px; }
  .cc-where { display: none; }
  .cc-bar { justify-content: space-between; }
  .cc-dots { max-width: 55vw; }
  .cc-nav .cc-btn { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-sky::before, .cc-sky::after, .cc-drift, .cc-backdrop, .cc-shaft, .cc-frame, .cc-forms, .cc-numeral svg, .cc-seal svg, .cc-veil::before, .cc-veil::after, .cc-next.gold, .co-hint { animation: none !important; }
  .cc-scene.on .cc-in, .cc-scene.on .cc-numeral, .cc-scene.on .cc-seal { animation: none !important; }
}


/* narration: the site's Listen button, in this page's light */
.cc-chamber .listen { margin: 1.4rem auto 0; color: #4a3508; background: rgba(255,250,236,.82); border-color: rgba(190,140,40,.75); box-shadow: 0 6px 26px -10px rgba(190,140,40,.8); }
.cc-chamber .listen:hover, .cc-chamber .listen:focus-visible { background: #fff6d8; box-shadow: 0 0 30px -4px rgba(232,185,104,.95); }
.cc-chamber .listen .listen-icon { border-left-color: #a8761a; }
.cc-chamber .listen.playing .listen-icon { background: linear-gradient(90deg, #a8761a 0 35%, transparent 35% 65%, #a8761a 65%); }
.cc-chamber .listen .listen-who { color: #7a6a4a; }
.cc-chamber .listen .listen-bar { background: rgba(190,140,40,.18); }
.cc-chamber .listen .listen-bar span { background: #c9973a; }
.cc-pane .listen { margin: 1rem 0 0; }
.cc-listens { min-height: 0; }
.cc-chamber .cc-form-listen { display: none; }
.cc-chamber .listen.cc-form-listen.on { display: inline-flex; }
.cc-doors .listen { margin: .9rem auto .2rem; }
.cc-nav .cc-btn { white-space: nowrap; }
/* on a phone, an Ancient's Listen button sits right under his tabs, so it is in view without scrolling */
@media (max-width: 820px) { .cc-ancient .cc-pane { display: flex; flex-direction: column; } .cc-ancient .cc-pane > * { order: 5; } .cc-ancient .cc-pane > .cc-eyebrow { order: 1; } .cc-ancient .cc-pane > .cc-name { order: 2; } .cc-ancient .cc-pane > .cc-tabs { order: 3; } .cc-ancient .cc-pane > .cc-listens { order: 4; } .cc-ancient .cc-pane > .cc-motto { order: 6; } .cc-ancient .cc-pane .listen { margin: 0 0 .7rem; align-self: flex-start; padding-top: 8px; padding-bottom: 10px; } }
@media (max-height: 720px) and (min-width: 821px) { .cc-chamber .listen { margin-top: .35rem; padding-top: 7px; padding-bottom: 9px; } }
@media (max-width: 820px) { .cc-nav { gap: 8px; } .cc-nav .cc-btn { padding: 10px 12px; font-size: .7rem; letter-spacing: .08em; } .cc-nav .cc-count { font-size: .72rem; } .cc-chamber .listen .listen-who { display: none; } }

/* living pictures: the moving copy fades in over its still once it is playing */
.cc-live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.cc-form .cc-live { object-position: 50% 12%; }
.cc-live.on { opacity: 1; }


/* ---------- the levels on their clouds (Edith, 2026-11-21: "let's make this look like a celestial court with different
   levels... make them either images or let's have them on different clouds") ---------- */
.cc-tiers { position: relative; display: grid; max-width: 1120px; margin: clamp(6px, 2vw, 26px) auto 0; padding: 10px var(--gutter) 30px; }
.cc-thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.cc-thread path { fill: none; stroke: rgba(201,151,58,.6); stroke-width: 1.4; stroke-dasharray: 1 7; stroke-linecap: round; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(255,226,160,1)); animation: ccThread 2.6s linear infinite; }
@keyframes ccThread { to { stroke-dashoffset: -32; } }
.cc-tier { position: relative; z-index: 1; justify-self: start; width: clamp(240px, 36vw, 400px); margin: clamp(-70px, -5vw, -20px) 0 0 5%; padding: 0; border: 0; background: none;
  color: var(--cc-ink); font: inherit; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(60px) scale(.9); filter: blur(10px); transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.2,.7,.2,1), filter 1.1s ease; }
.cc-tier:first-of-type { margin-top: 0; }
.cc-tier:nth-of-type(even) { justify-self: end; margin-left: 0; margin-right: 5%; }
.cc-tier.in { opacity: 1; transform: none; filter: none; }
.cc-tier-float { display: block; animation: ccTier 7s ease-in-out infinite; }
.cc-tier:nth-of-type(2n) .cc-tier-float { animation-duration: 8.6s; animation-delay: -3s; }
.cc-tier:nth-of-type(3n) .cc-tier-float { animation-duration: 9.8s; animation-delay: -5.5s; }
@keyframes ccTier { 50% { transform: translateY(-14px); } }
.cc-tier-pic { position: relative; display: block; width: 76%; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 0 0 6px rgba(201,151,58,.5), 0 0 70px 14px rgba(255,238,196,.95), 0 34px 60px -24px rgba(150,110,40,.55);
  transition: box-shadow .4s ease, transform .5s ease; }
.cc-tier-pic img, .cc-tier-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--focus, 20%); }
.cc-tier-pic video { opacity: 0; transition: opacity .8s ease; }
.cc-tier-pic video.on { opacity: 1; }
/* the cloud it stands in: a bank of soft white puffs across the bottom of the picture */
.cc-tier-cloud { position: relative; display: block; margin: -21% -13% 0; aspect-ratio: 3 / 1; pointer-events: none;
  background:
    radial-gradient(ellipse 15% 44% at 12% 64%, #fff 62%, transparent 68%),
    radial-gradient(ellipse 15% 56% at 27% 50%, #fff 62%, transparent 68%),
    radial-gradient(ellipse 17% 70% at 43% 42%, #fff 62%, transparent 68%),
    radial-gradient(ellipse 17% 64% at 60% 44%, #fff 62%, transparent 68%),
    radial-gradient(ellipse 15% 54% at 75% 52%, #fff 62%, transparent 68%),
    radial-gradient(ellipse 14% 42% at 88% 64%, #fff 62%, transparent 68%),
    radial-gradient(ellipse 46% 34% at 50% 76%, #fff 70%, transparent 78%);
  filter: blur(5px) drop-shadow(0 16px 20px rgba(170,130,60,.3)); }
.cc-tier-text { position: relative; display: block; margin-top: -21%; padding: 0 6% 4%; }
.cc-tier-text small { display: block; font: 700 clamp(.56rem, .95vw, .68rem) var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--cc-gold); margin-bottom: .25em; }
.cc-tier-text strong { display: block; font: 700 clamp(1.02rem, 2.05vw, 1.5rem) var(--cc-display); letter-spacing: .03em; line-height: 1.15; color: #6d4a0c; }
.cc-tier:hover .cc-tier-pic, .cc-tier:focus-visible .cc-tier-pic { transform: scale(1.045);
  box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(201,151,58,.9), 0 0 90px 26px rgba(255,232,170,1), 0 34px 60px -24px rgba(150,110,40,.6); }
.cc-tier:focus-visible { outline: none; }
body[data-portal="shifter-council"] .co-title { padding-bottom: 0; }
@media (max-width: 820px) {
  .cc-thread { display: none; }
  .cc-tiers { padding-top: 0; }
  .cc-tier, .cc-tier:nth-of-type(even) { justify-self: center; width: min(78vw, 320px); margin: 6px 0 0; }
  .cc-tier:nth-of-type(odd) { transform: translate(-7vw, 60px) scale(.9); } .cc-tier:nth-of-type(even) { transform: translate(7vw, 60px) scale(.9); }
  .cc-tier:nth-of-type(odd).in { transform: translateX(-7vw); } .cc-tier:nth-of-type(even).in { transform: translateX(7vw); }
}
@media (prefers-reduced-motion: reduce) { .cc-tier { opacity: 1; transform: none; filter: none; transition: none; } .cc-tier-float, .cc-thread path { animation: none; } }
