/* Kitsumi Kona — "The Shrine Between Worlds" (app/Views/creators/kitsumi-kona.php).
   Three worlds you scroll through, each with its own palette:
     I.   The Shrine — night plum, lantern red, gold, sakura pink
     II.  The Sakura Sky — a bright pastel day, ink-plum text
     III. The Spirit Realm — deep violet, neon pink and lilac
   A torii gate between each rushes up as you scroll through it (scale and
   opacity, set by creators/kitsumi-kona.js on one element per frame while
   the gate is on screen); crossing over swaps three fixed sky layers by
   opacity and recolours the petals. Each world's sections carry their own
   colours, so nothing page-wide repaints per frame. Shippori Mincho for
   titles, Quicksand for reading. Stopped for reduced motion and lite mode
   (docs/MOTION.md, the mobile-performance rules). */

@font-face { font-family: 'Shippori Mincho'; src: url('/assets/fonts/shippori-mincho-800-latin.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Shippori Mincho'; src: url('/assets/fonts/shippori-mincho-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }

body.cp-theme-kitsumi-kona {
  --kko-vermilion: #e2384d; --kko-vermilion-d: #9e1c30; --kko-gold: #f2c46d; --kko-pink: #ff8fc4; --kko-pink-l: #ffd2e8; --kko-blush: #ff5fa2;
  --kko-lilac: #c8a2ff; --kko-neon: #ff7ad9;
  --kko-head: 'Shippori Mincho', Georgia, serif;
  --kko-body: 'Quicksand', system-ui, sans-serif;
  --scroll-acc: #ff8fc4;
  background: #1a0e1f;
}
html:has(> body.cp-theme-kitsumi-kona) { --scroll-acc: #ff8fc4; }

.kko { position: relative; overflow-x: clip; padding: 0 0 40px; font-family: var(--kko-body); font-weight: 600; }
.kko img { display: block; max-width: 100%; }
.kko-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the three skies, fixed behind everything ---- */
.kko-skies { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.kko-sky { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1s ease; }
.kko-sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kko-sky.is-1 { background: radial-gradient(ellipse 45% 35% at 15% 20%, rgba(226, 56, 77, .3), transparent 70%), radial-gradient(ellipse 40% 35% at 88% 30%, rgba(242, 196, 109, .16), transparent 70%), linear-gradient(180deg, #2b1233, #1a0e1f 60%, #12091a); }
.kko-sky.is-1 img { opacity: .16; }
.kko-sky.is-2 { background: radial-gradient(ellipse 60% 40% at 80% 10%, #ffffff, transparent 70%), linear-gradient(180deg, #ffe4f1 0%, #fff6fa 45%, #e6f0ff 100%); }
.kko-sky.is-2 img { opacity: .3; }
.kko-sky.is-3 { background:
  radial-gradient(1px 1px at 12% 20%, #fff, transparent 60%), radial-gradient(1px 1px at 30% 70%, #f6d9ff, transparent 60%), radial-gradient(1.5px 1.5px at 48% 30%, #fff, transparent 60%),
  radial-gradient(1px 1px at 62% 82%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 78% 18%, #ffd6f2, transparent 60%), radial-gradient(1px 1px at 90% 60%, #fff, transparent 60%),
  radial-gradient(ellipse 50% 40% at 50% 40%, rgba(255, 122, 217, .2), transparent 70%), radial-gradient(ellipse 45% 40% at 10% 85%, rgba(200, 162, 255, .2), transparent 70%),
  linear-gradient(180deg, #1d0b38, #0e0620 70%); }
.kko[data-kko-world="1"] .kko-sky.is-1, .kko[data-kko-world="2"] .kko-sky.is-2, .kko[data-kko-world="3"] .kko-sky.is-3 { opacity: 1; }

/* ---- petals, falling through every world ---- */
.kko-petals { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.kko-petals svg { position: absolute; left: var(--x); top: -40px; width: var(--z); height: var(--z); fill: var(--kko-pink); opacity: 0; transition: fill 1s ease; animation: kko-fall var(--d) linear infinite; animation-delay: var(--t); }
.kko[data-kko-world="2"] .kko-petals svg { fill: #ff9ecb; }
.kko[data-kko-world="3"] .kko-petals svg { fill: var(--kko-lilac); }
@keyframes kko-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg) scaleX(var(--s)); }
  8% { opacity: .85; }
  50% { transform: translate3d(40px, 55vh, 0) rotate(calc(var(--s) * 200deg)) scaleX(var(--s)); }
  92% { opacity: .7; }
  100% { opacity: 0; transform: translate3d(-20px, 112vh, 0) rotate(calc(var(--s) * 400deg)) scaleX(var(--s)); }
}

/* ---- the flash of crossing, and where you are ---- */
.kko-flash { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff 0%, #ffd2f0 25%, rgba(240, 120, 230, .85) 55%, rgba(190, 80, 220, .5) 80%, rgba(120, 40, 160, .3) 100%); }
.kko-where { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px 7px 10px; border-radius: 40px; background: rgba(26, 14, 31, .88); border: 1px solid rgba(255, 143, 196, .45); color: #fbeef5; font-size: 13px; font-weight: 700; letter-spacing: .02em; pointer-events: none; transition: background-color .6s, color .6s, border-color .6s; }
.kko-where span { color: var(--kko-vermilion); font-size: 16px; }
.kko[data-kko-world="2"] .kko-where { background: rgba(255, 255, 255, .92); color: #4a1d3a; border-color: rgba(255, 95, 162, .5); }
.kko[data-kko-world="3"] .kko-where { background: rgba(18, 8, 38, .9); color: #f5ecff; border-color: rgba(255, 122, 217, .6); }

/* ---- the torii gates between worlds ---- */
.kko-gate { position: relative; z-index: 2; height: 170vh; pointer-events: none; }
.kko-gate-pin { position: sticky; top: 0; display: grid; place-items: center; align-content: center; height: 100vh; overflow: hidden; }
/* The portal: a halo, two sets of spiral arms turning opposite ways, a
   bright ring and a glowing heart. The arms turn by CSS (transform only); the
   whole portal is grown by creators/kitsumi-kona.js as you scroll in. */
.kko-portal { position: relative; width: min(560px, 82vw); aspect-ratio: 1; transform-origin: 50% 50%; transform: scale(.6); }
.kko-portal > * { position: absolute; inset: 0; }
.kko-portal-halo { border-radius: 50%; background: radial-gradient(circle, rgba(255, 143, 196, .45) 0%, rgba(226, 56, 77, .22) 38%, rgba(200, 162, 255, .12) 56%, transparent 70%); transform: scale(1.36); }
.kko-swirl { width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kko-swirl .is-wide { stroke: rgba(255, 143, 196, .22); stroke-width: 9; }
.kko-swirl .is-thin { stroke-width: 2.6; }
.kko-swirl .is-0 { stroke: #ffd2e8; }
.kko-swirl .is-1 { stroke: var(--kko-vermilion); }
.kko-swirl .is-2 { stroke: var(--kko-gold); }
.kko-swirl .is-3 { stroke: var(--kko-lilac); }
.kko-swirl.is-a { animation: kko-spin 9s linear infinite; -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); mask-image: radial-gradient(circle, #000 55%, transparent 72%); }
.kko-swirl.is-b { opacity: .75; transform: scale(.82); animation: kko-spin-b 13s linear infinite; -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 70%); mask-image: radial-gradient(circle, #000 50%, transparent 70%); }
@keyframes kko-spin { to { transform: rotate(360deg); } }
@keyframes kko-spin-b { from { transform: scale(.82) rotate(0deg); } to { transform: scale(.82) rotate(-360deg); } }
.kko-portal > .kko-portal-ring { inset: 30%; border-radius: 50%; border: 2px solid rgba(255, 236, 246, .8); box-shadow: 0 0 0 6px rgba(255, 143, 196, .25), 0 0 40px 10px rgba(255, 95, 162, .45), inset 0 0 30px rgba(255, 210, 232, .6); animation: kko-pulse 3s ease-in-out infinite; }
.kko-portal > .kko-portal-core { inset: 39%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 0%, #ffe6f4 28%, #ff9fd0 60%, #e2384d 100%); box-shadow: 0 0 50px 20px rgba(255, 180, 220, .55); animation: kko-pulse 3s ease-in-out infinite reverse; }
@keyframes kko-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* The portal's heart: placed on it by creators/kitsumi-kona.js and grown
   from its size to fill the screen as you fall in. Sized big and
   scaled down, so it is drawn once at full size, never blown up. */
.kko-orb { position: absolute; left: 0; top: 0; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.01);
  background: radial-gradient(circle at 50% 50%, #fff 0%, #ffe6f4 14%, #ff9fd0 34%, #ff5f8f 52%, #e2384d 66%, #b04fd8 82%, rgba(90, 30, 140, .85) 100%); }
.kko-gate-label { margin: 18px 0 0; font-family: var(--kko-head); font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; text-align: center; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 143, 196, .7); }
.kko-gate-label span { display: block; margin-bottom: 6px; font-family: var(--kko-body); font-size: 14px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--kko-gold); }

/* ---- worlds: each carries its own colours ---- */
.kko-world { position: relative; z-index: 1; }
.kko-world.is-1 { --tx: #fbeef5; --tx2: #e6cfdc; --tx3: #b598a9; --line: rgba(255, 143, 196, .3); --panel: rgba(36, 18, 42, .86); --panel2: rgba(52, 22, 56, .9); --accent: var(--kko-pink); --hot: var(--kko-vermilion); --hot-d: var(--kko-vermilion-d); --kick: var(--kko-gold); color: var(--tx); }
.kko-world.is-2 { --tx: #4a1d3a; --tx2: #6b3a5a; --tx3: #9a6b88; --line: rgba(255, 95, 162, .35); --panel: rgba(255, 255, 255, .86); --panel2: rgba(255, 244, 250, .92); --accent: #e2337e; --hot: #ff5fa2; --hot-d: #c2185b; --kick: #e2337e; color: var(--tx); }
.kko-world.is-3 { --tx: #f5ecff; --tx2: #d9c8f0; --tx3: #a690c4; --line: rgba(255, 122, 217, .38); --panel: rgba(24, 10, 46, .86); --panel2: rgba(36, 14, 64, .9); --accent: var(--kko-neon); --hot: #b44dff; --hot-d: #6a1fb0; --kick: var(--kko-lilac); color: var(--tx); }

/* ---- type ---- */
.kko-kick { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--kick); }
.kko-title { margin: 0; text-transform: none; font-family: var(--kko-head); font-weight: 800; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.1; letter-spacing: .01em; color: var(--tx); }
.kko-title em { font-style: normal; color: var(--accent); }
.kko-world.is-1 .kko-title, .kko-world.is-3 .kko-title { text-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 0 26px rgba(255, 143, 196, .35); }
.kko-text { margin: 12px 0 0; font-size: 17px; font-weight: 600; line-height: 1.7; color: var(--tx2); }
.kko-text a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---- panels ---- */
.kko-panel { position: relative; border: 1.5px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, var(--panel2), var(--panel)); box-shadow: 0 20px 46px -20px rgba(0, 0, 0, .55); }
.kko-world.is-2 .kko-panel { box-shadow: 0 18px 40px -22px rgba(194, 24, 91, .35); }
.kko-world.is-3 .kko-panel { box-shadow: 0 0 0 1px rgba(255, 122, 217, .12), 0 0 40px -10px rgba(255, 122, 217, .35); }

/* ---- hero (World I) ---- */
.kko-hero { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: min(100vh, 900px); margin: 0 auto; padding: 110px 24px 40px; text-align: center; }
.kko-logo { width: min(760px, 92vw); animation: kko-pop 1s cubic-bezier(.3, 1.5, .5, 1) both; }
.kko-logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(255, 95, 162, .45)); animation: kko-sway 5s ease-in-out 1s infinite; transform-origin: 50% 80%; }
@keyframes kko-pop { 0% { opacity: 0; transform: scale(.2) rotate(-6deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes kko-sway { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-8px); } }
.kko-name { margin: 0; font-family: var(--kko-head); font-weight: 800; font-size: clamp(50px, 8vw, 110px); color: var(--kko-pink); }
.kko-tagline { margin: 8px 0 0; font-family: var(--kko-head); font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); color: var(--kko-pink-l); }
.kko-summary { max-width: 600px; margin: 10px 0 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--tx2); }
.kko-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.kko-tags li { padding: 5px 14px; border-radius: 40px; border: 1px solid var(--line); background: rgba(255, 143, 196, .12); color: var(--tx); font-size: 14px; font-weight: 700; }
.kko-tags li::before { content: "🌸 "; font-size: 11px; }
.kko-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.kko-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 1.5px solid var(--line); border-radius: 40px; background: transparent; color: var(--tx); font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .18s, color .18s, box-shadow .18s, border-color .18s; }
.kko-btn svg { width: 17px; height: 17px; fill: currentColor; }
.kko-btn:hover { transform: translateY(-3px); background: var(--kko-pink-l); border-color: #fff; color: #4a1d3a; box-shadow: 0 10px 24px -10px rgba(255, 95, 162, .7); }
.kko-btn.is-hot { border-color: transparent; background: linear-gradient(180deg, var(--hot), var(--hot-d)); color: #fff; box-shadow: 0 6px 20px -6px rgba(226, 56, 77, .7); }
.kko-btn.is-hot:hover { background: linear-gradient(180deg, #ff8fb0, var(--hot)); color: #fff; }
.kko-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.kko-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--tx2); transition: color .15s, border-color .15s, background-color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.kko-socials a:hover { background: var(--kko-pink); border-color: #fff; color: #3a1030; transform: translateY(-3px) scale(1.06); }
.kko-socials svg { width: 18px; height: 18px; fill: currentColor; }
.kko-scroll { margin: 28px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--kick); animation: kko-nudge 2.2s ease-in-out infinite; }
@keyframes kko-nudge { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(6px); opacity: 1; } }

/* A window onto each world's art. */
.kko-window { position: relative; overflow: hidden; max-width: 1240px; width: calc(100% - 64px); aspect-ratio: 3 / 1; margin: 20px auto; border-radius: 26px; border: 2px solid var(--line); box-shadow: 0 0 0 6px rgba(0, 0, 0, .35), 0 24px 50px -20px rgba(0, 0, 0, .6); }
.kko-window img { width: 100%; height: 100%; object-fit: cover; }
.kko-window.is-sky { aspect-ratio: 2.4 / 1; box-shadow: 0 0 0 6px #fff, 0 24px 50px -20px rgba(194, 24, 91, .35); }
.kko-window.is-sky img { object-position: 50% 30%; }

/* ---- sections ---- */
.kko-sec { position: relative; max-width: 1240px; margin: 0 auto; padding: 56px 32px 34px; }
.kko-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.kko-more { flex: none; padding: 7px 16px; border-radius: 40px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--accent); transition: background-color .15s, color .15s, border-color .15s; }
.kko-more:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.kko .kko-row-h { margin: 26px 0 10px; font-family: var(--kko-head); font-weight: 600; font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--tx2); }
.kko .kko-row-h::before { content: "🌸 "; font-size: 14px; }

/* About */
.kko-about-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; padding: 36px 40px; }
.kko-about-art { width: 240px; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); animation: kko-bob 5s ease-in-out infinite; }
@keyframes kko-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.kko-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 22px 0 0; }
.kko-facts div { padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.kko-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--kick); }
.kko-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--tx); }
.kko-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.kko-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 40px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--tx); transition: border-color .15s, background-color .15s, color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.kko-links a:hover { background: var(--kko-pink); border-color: #fff; color: #3a1030; transform: translateY(-2px); }
.kko-links svg { width: 16px; height: 16px; fill: currentColor; }
.kko-discord, .kko-business { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 15px; color: var(--tx2); }
.kko-discord svg { width: 18px; height: 18px; fill: var(--accent); }
.kko-business a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---- her signature, lighting up in the Spirit Realm ---- */
.kko-sig { position: relative; width: min(620px, 86vw); aspect-ratio: 1; margin: 30px auto -40px; }
.kko-sig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.kko-sig .is-lines { opacity: .55; transition: opacity 1.4s ease; }
.kko-sig .is-color { opacity: 0; transform: scale(.94); transition: opacity 1.4s ease .2s, transform 1.6s cubic-bezier(.3, 1.3, .5, 1) .2s; }
.kko-sig.is-lit .is-lines { opacity: 0; }
.kko-sig.is-lit .is-color { opacity: 1; transform: none; animation: kko-glow 3.4s ease-in-out 1.8s infinite; }
@keyframes kko-glow { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }

/* Videos */
.kko-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30%, 400px); gap: 18px; overflow-x: auto; padding: 6px 6px 18px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.kko-rail.is-tall { grid-auto-columns: clamp(190px, 18%, 230px); }
.kko-rail::-webkit-scrollbar { height: 8px; }
.kko-rail::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
.kko-rail::-webkit-scrollbar-track { background: var(--panel); border-radius: 10px; }
.kko-card { scroll-snap-align: start; margin: 0; }
.kko-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; border: 1.5px solid var(--line); background: var(--panel); transition: border-color .18s, transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.kko-card.is-tall .kko-card-thumb { aspect-ratio: 9 / 16; }
.kko-card-thumb > a, .kko-card-thumb img, .kko-card-thumb iframe { display: block; width: 100%; height: 100%; }
.kko-card-thumb img { object-fit: cover; }
.kko-card:hover .kko-card-thumb { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(255, 95, 162, .6); }
.kko-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: linear-gradient(180deg, var(--hot), var(--hot-d)); border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.kko-play svg { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.kko-card:hover .kko-play { transform: scale(1.14); }
.kko-chip { position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: 40px; background: rgba(26, 14, 31, .85); color: #fff; font-size: 12px; font-weight: 700; }
.kko .kko-card-title { margin: 10px 2px 0; font-family: var(--kko-body); font-weight: 700; font-size: 15px; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kko-empty, .kko-follow { max-width: 620px; padding: 20px 24px; }
.kko-follow { display: flex; align-items: center; gap: 12px; color: var(--tx); }
.kko-follow svg { width: 22px; height: 22px; fill: var(--accent); }
.kko-follow .kko-more { margin-left: auto; }

/* ---- gallery ---- */
.kko-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.kko-gallery a { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 22px; border: 1.5px solid var(--line); background: var(--panel); transition: border-color .18s, transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.kko-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.kko-gallery a:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 0 30px -6px rgba(255, 122, 217, .6); }
.kko-gallery a:hover img { transform: scale(1.05); }

/* ---- the viewer (creators/kitsumi-kona.js) ---- */
.kko-zoom { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: clamp(14px, 4vmin, 44px); background: radial-gradient(ellipse at 50% 50%, rgba(80, 20, 60, .93), rgba(14, 6, 18, .97) 70%); opacity: 0; transition: opacity .22s ease; }
.kko-zoom[hidden] { display: none; }
.kko-zoom.is-open { opacity: 1; }
.kko-zoom-win { position: relative; max-width: min(92vw, 1100px); padding: 7px; border-radius: 22px; background: linear-gradient(160deg, var(--kko-pink-l), var(--kko-vermilion)); transform: scale(.94); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.kko-zoom.is-open .kko-zoom-win { transform: none; }
.kko-zoom-img { display: block; max-width: min(88vw, 1080px); max-height: calc(86vh - 20px); width: auto; height: auto; margin: 0 auto; border-radius: 16px; background: #000; }
.kko-zoom-x, .kko-zoom-nav { display: grid; place-items: center; border: 1.5px solid #fff; background: #1a0e1f; color: #fff; font-weight: 700; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .15s; }
.kko-zoom-x { position: absolute; top: -16px; right: -16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; line-height: 1; }
.kko-zoom-x:hover, .kko-zoom-nav:hover { background: var(--kko-vermilion); transform: scale(1.1); }
.kko-zoom-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; font-size: 22px; }
.kko-zoom-nav.is-prev { left: 18px; }
.kko-zoom-nav.is-next { right: 18px; }
.kko-zoom-nav[hidden] { display: none; }
@media (max-width: 700px) { .kko-zoom-nav { top: auto; bottom: 18px; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .kko-zoom, .kko-zoom-win { transition: none; } }

/* ---- shop ---- */
.kko-soon { display: flex; align-items: center; gap: 22px; max-width: 820px; padding: 22px 28px; }
.kko-soon-art { flex: none; width: 120px; height: auto; }
.kko-soon .kko-text { margin: 0; }

/* ---- join ---- */
.kko-join-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; padding: 36px 34px; }
.kko-join .kko-title { margin: 6px 0 6px; }
.kko-join .kko-actions { justify-content: flex-start; }
.kko-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kko-nums li { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.kko-nums b { display: block; font-family: var(--kko-head); font-weight: 800; font-size: 30px; line-height: 1; color: var(--accent); }
.kko-nums span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--tx3); }

/* ---- end (a div: the site's footer styles would pull a <footer> left) ---- */
.kko-end { position: relative; max-width: 1240px; margin: 60px auto 0; padding: 20px 32px 10px; text-align: center; }
.kko-cta { max-width: 760px; margin: 0 auto; padding: 32px 34px; }
.kko-cta .kko-actions { justify-content: center; }
.kko .kko-credits-h { margin: 40px 0 0; font-family: var(--kko-head); font-weight: 600; font-size: 20px; color: var(--tx2); }
.kko-credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1000px; margin: 14px auto 0; padding: 0; list-style: none; }
.kko-credits li { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 7px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); text-align: left; }
.kko-credits span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.kko-credits a, .kko-credits b { font-size: 15px; font-weight: 700; color: var(--kko-pink); }
.kko .kko-end-line { margin: 30px 0 0; font-family: var(--kko-head); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); color: var(--tx2); }

/* The menu bar, in her colours. */
body.cp-theme-kitsumi-kona .cpnav-in { background: rgba(26, 14, 31, .95); border-color: rgba(255, 143, 196, .3); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); }
body.cp-theme-kitsumi-kona .cpnav-who { color: #fbeef5; border-left-color: rgba(255, 143, 196, .3); font-family: var(--kko-head); font-weight: 800; }
body.cp-theme-kitsumi-kona .cpnav-av { border-color: var(--kko-pink); }
body.cp-theme-kitsumi-kona .cpnav-links a { color: #e6cfdc; font-weight: 700; }
body.cp-theme-kitsumi-kona .cpnav-links a:hover { color: #fff; background: rgba(255, 143, 196, .22); }
body.cp-theme-kitsumi-kona .cpnav-links a[aria-current="true"] { background: var(--kko-vermilion); color: #fff; box-shadow: none; }
body.cp-theme-kitsumi-kona :is(.cpnav-burger, .cpnav-account) { background: #341638; color: #fbeef5; }
body.cp-theme-kitsumi-kona .cpnav-burger span { background: var(--kko-pink); }
body.cp-theme-kitsumi-kona .cpnav-cart { background: var(--kko-vermilion); color: #fff; box-shadow: 0 4px 0 var(--kko-vermilion-d); }
body.cp-theme-kitsumi-kona .cpnav-cart:hover { background: #ff5a6e; }
/* The video player, in her colours. */
body.cp-theme-kitsumi-kona .cp-player { background: radial-gradient(ellipse at 50% 50%, rgba(80, 20, 60, .93), rgba(14, 6, 18, .97) 70%); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.cp-theme-kitsumi-kona .cp-player-frame { border: 2px solid var(--kko-pink-l); border-radius: 18px; box-shadow: 0 0 0 6px var(--kko-vermilion-d), 0 34px 80px rgba(0, 0, 0, .7); }
body.cp-theme-kitsumi-kona .cp-player-caption { font-family: var(--kko-head); font-weight: 600; color: var(--kko-pink-l); }
body.cp-theme-kitsumi-kona .cp-player-close { background: var(--kko-vermilion); color: #fff; border: 0; }

/* ---- small screens ---- */
@media (max-width: 900px) {
  .kko-hero { padding: 140px 16px 30px; min-height: 0; }
  .kko-gate { height: 140vh; }
  .kko-window { width: calc(100% - 32px); aspect-ratio: 2.2 / 1; }
  .kko-sec { padding: 40px 18px 26px; }
  .kko-sec-head { flex-wrap: wrap; }
  .kko-about-card { grid-template-columns: 1fr; gap: 20px; padding: 26px 20px; justify-items: center; }
  .kko-about-art { width: 170px; }
  .kko-rail { grid-auto-columns: 86%; }
  .kko-rail.is-tall { grid-auto-columns: 58%; }
  .kko-join-card { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; }
  .kko-petals svg:nth-of-type(n+9) { display: none; }
  .kko-where { left: 10px; bottom: 10px; font-size: 12px; }
}
@media (max-width: 560px) {
  .kko-facts { grid-template-columns: 1fr; }
  .kko-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kko-soon { flex-direction: column; text-align: center; }
}

/* ---- calmer when asked: the gates stay put, the worlds still change ---- */
@media (prefers-reduced-motion: reduce) {
  .kko-petals { display: none; }
  .kko-swirl, .kko-portal > .kko-portal-ring, .kko-portal > .kko-portal-core { animation: none; }
  .kko-logo, .kko-logo img, .kko-about-art, .kko-scroll, .kko-sig.is-lit .is-color { animation: none; }
  .kko-sky, .kko-sig img { transition: none; }
  .kko-gate { height: 100vh; }
}
.perf-lite .kko-petals { display: none; }
.perf-lite :is(.kko-swirl.is-b, .kko-portal > .kko-portal-ring, .kko-portal > .kko-portal-core) { animation: none; }
.perf-lite :is(.kko-logo img, .kko-about-art, .kko-scroll, .kko-sig.is-lit .is-color) { animation: none; }
