/* Cluckin' Crash game page. Loaded after style.css and site.css and uses
   their colour tokens, so dark and light mode work like everywhere else.
   The hero and the closing call sit on artwork and therefore stay dark. */

.cc-page { --cc-green: #7cf05a; --cc-green-deep: #3fbf2a; --cc-purple: #b44dff; }
.cc-wrap { width: min(100% - 11vw, 1320px); margin-inline: auto; }

/* ---------- Hero ----------
   The key art is shown whole at its own 3840×1240 ratio, never cropped or
   zoomed, so it stays sharp up to 4K. Phones get a square crop of the middle. */
.cc-hero { position: relative; color: #fff; background: #07060c; padding-bottom: 96px; }
.cc-hero-art { position: relative; display: block; aspect-ratio: 3840 / 1240; overflow: hidden; }
.cc-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-hero-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #07060ca6 0%, transparent 24%, transparent 52%, #07060ccc 82%, #07060c 100%); }
.cc-hero-inner { position: relative; width: min(100% - 11vw, 1320px); margin: clamp(-190px, -10vw, -70px) auto 0; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 110px); align-items: end; }
.cc-crumbs { display: flex; gap: 12px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #c9c2d6; margin-bottom: 22px; text-shadow: 0 1px 12px #000; }
.cc-crumbs a { color: #e9e4f2; border-bottom: 1px solid #ffffff55; }
.cc-crumbs a:hover { color: #fff; border-color: #fff; }
.cc-badge { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 99px; background: #0c1a0acc; border: 1px solid color-mix(in srgb, var(--cc-green) 55%, transparent); color: var(--cc-green); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cc-logo { margin: 20px 0 0; line-height: 0; }
.cc-logo img { width: min(560px, 100%); height: auto; filter: drop-shadow(0 18px 40px #000a); }
.cc-hero-copy { padding-bottom: 14px; }
.cc-lead { max-width: 34em; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.7; color: #ece8f3; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cc-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 6px; font-size: .86rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease; }
.cc-btn span { font-size: 1.1rem; }
.cc-btn-primary { background: linear-gradient(180deg, var(--cc-green), var(--cc-green-deep)); color: #0b1a06; box-shadow: 0 10px 40px -8px #7cf05a88, inset 0 1px 0 #ffffff80; }
.cc-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -8px #7cf05aaa, inset 0 1px 0 #ffffff80; color: #0b1a06; }
.cc-btn-ghost { color: #fff; border: 1px solid #ffffff55; background: #ffffff0d; }
.cc-btn-ghost:hover { border-color: #fff; background: #ffffff1f; color: #fff; }

/* Hero entrance */
.cc-js .cc-hero-brand, .cc-js .cc-hero-copy { opacity: 0; transform: translateY(18px); animation: cc-rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.cc-js .cc-hero-copy { animation-delay: .2s; }
@keyframes cc-rise { to { opacity: 1; transform: none; } }

/* ---------- Facts ---------- */
.cc-facts { margin-top: -1px; }
.cc-facts dl { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--xp-line); border-bottom: 1px solid var(--xp-line); }
.cc-facts dl > div { padding: 26px 20px 26px 0; }
.cc-facts dl > div + div { padding-left: 20px; border-left: 1px solid var(--xp-line-soft); }
.cc-facts dt, .cc-stats dt { color: var(--xp-label); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.cc-facts dd { color: var(--xp-heading); font-size: .98rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }

/* ---------- Trailer ---------- */
.cc-trailer { padding: 110px 0 40px; scroll-margin-top: 70px; }
.cc-player { position: relative; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--xp-line-soft); box-shadow: 0 40px 120px -40px var(--xp-card-shadow); aspect-ratio: 16 / 9; }
.cc-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cc-play { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at center, #0000 0, #0006 70%); border: 0; cursor: pointer; transition: opacity .3s ease; }
.cc-play span { width: clamp(70px, 9vw, 108px); aspect-ratio: 1; border-radius: 50%; background: #ffffffe6; box-shadow: 0 0 0 10px #ffffff26, 0 20px 60px #0008; position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.cc-play span::after { content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #120c20; }
.cc-play:hover span, .cc-play:focus-visible span { transform: scale(1.07); box-shadow: 0 0 0 16px #ffffff26, 0 20px 60px #0008; }
.cc-player.is-playing .cc-play { opacity: 0; pointer-events: none; }
.cc-note { color: var(--xp-quiet); font-size: .82rem; margin-top: 16px; }
.cc-note a { color: var(--xp-link); border-bottom: 1px solid var(--xp-rule); }
.cc-note a:hover { color: var(--xp-link-hover); }

/* ---------- Story ---------- */
.cc-story { padding: 90px 0 20px; scroll-margin-top: 70px; }
.cc-story-head { padding-bottom: 40px; }
.cc-story-head .section-label { border-bottom: 1px solid var(--xp-line); padding-bottom: 16px; margin-bottom: 50px; }
.cc-story-head h2, .cc-h2 { max-width: 16em; font-size: clamp(2.1rem, 4.2vw, 4.2rem); line-height: 1.08; letter-spacing: -.05em; font-weight: 500; color: var(--xp-heading); }
.cc-story-head p { max-width: 36em; color: var(--xp-text); font-size: 1.08rem; line-height: 1.75; margin-top: 24px; }

.cc-chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; padding: 70px 0; }
.cc-chapter.is-flipped .cc-chapter-text { order: 2; }
.cc-chapter-text { position: relative; }
.cc-num { display: block; font-size: clamp(3.4rem, 6vw, 5.8rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--xp-lilac) 70%, transparent); margin-bottom: 18px; }
.cc-chapter h3 { font-size: clamp(1.7rem, 2.5vw, 2.45rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 600; color: var(--xp-heading); margin-bottom: 22px; }
.cc-chapter-text > p { color: var(--xp-text); font-size: 1.04rem; line-height: 1.8; }
.cc-chapter-text > p + p { margin-top: 16px; }
.cc-chapter-text strong { color: var(--xp-heading); }
.cc-chapter .tour-link { margin-top: 30px; }
.cc-media { margin: 0; }
.cc-media img, .cc-pair img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--xp-line-soft); box-shadow: 0 30px 90px -40px var(--xp-card-shadow); }
.cc-media figcaption, .cc-pair figcaption { color: var(--xp-quiet); font-size: .8rem; margin-top: 12px; }
.cc-pair { display: grid; gap: 16px; }
.cc-pair figure { margin: 0; }
.cc-pair figure:first-child { width: 86%; }
.cc-pair figure:last-child { width: 86%; margin-left: auto; margin-top: -14%; position: relative; }

/* The friend dialogue */
.cc-dialogue { margin: 26px 0; padding: 22px 0 22px 26px; border-left: 2px solid var(--xp-lilac); }
.cc-dialogue p { color: var(--xp-text); font-size: 1rem; line-height: 1.75; }
.cc-dialogue p + p { margin-top: 10px; }
.cc-dialogue .cc-line { color: var(--xp-heading); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.4; }
.cc-dialogue .cc-line.is-friend { color: var(--xp-em); padding-left: 1.2em; }

/* Then vs. now */
.cc-compare-block { padding: 10px 0 60px; }
.cc-compare-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.cc-kicker { color: var(--xp-label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.cc-tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--xp-line); border-radius: 99px; }
.cc-tabs button { padding: 8px 18px; border-radius: 99px; border: 0; background: transparent; color: var(--xp-label); font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .25s ease, color .25s ease; }
.cc-tabs button:hover { color: var(--xp-heading); }
.cc-tabs button[aria-pressed="true"] { background: var(--xp-lilac); color: var(--xp-on-lilac); }
.cc-compare { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--xp-line-soft); background: #000; user-select: none; box-shadow: 0 40px 120px -40px var(--xp-card-shadow); }
.cc-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cc-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px #0009; pointer-events: none; }
.cc-handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #120c20; font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; box-shadow: 0 8px 30px #0008; }
.cc-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cc-compare:has(.cc-range:focus-visible) { outline: 2px solid var(--xp-focus); outline-offset: 4px; }
.cc-tag { position: absolute; bottom: 16px; padding: 7px 12px; border-radius: 4px; background: #000000a8; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; backdrop-filter: blur(6px); }
.cc-tag.is-then { left: 16px; }
.cc-tag.is-now { right: 16px; color: var(--cc-green); }

/* Stats */
.cc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--xp-line); border-bottom: 1px solid var(--xp-line); margin: 0 0 20px; }
.cc-stats > div { padding: 30px 24px 30px 0; }
.cc-stats > div + div { padding-left: 24px; border-left: 1px solid var(--xp-line-soft); }
.cc-stats dd { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--xp-heading); }
.cc-stats > div:last-child dd { color: var(--xp-em); }

/* Music */
.cc-music-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cc-music-media figure { margin: 0; }
.cc-music-media .cc-duet { grid-column: 1 / -1; }
.cc-listen { padding: 0 0 40px; }
.cc-listen .section-label { border-bottom: 1px solid var(--xp-line); padding-bottom: 16px; margin-bottom: 0; }
.xp-site .compositions-list.cc-tracks { margin: 0; }

/* Release */
.cc-big { color: var(--xp-heading) !important; font-size: clamp(1.5rem, 2.3vw, 2.1rem) !important; line-height: 1.25 !important; letter-spacing: -.035em; font-weight: 600; margin-top: 22px !important; }

/* ---------- Gallery ---------- */
.cc-gallery-block { padding: 110px 0 40px; }
.cc-gallery-block .section-label, .cc-videos .section-label { border-bottom: 1px solid var(--xp-line); padding-bottom: 16px; margin-bottom: 40px; }
.cc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.cc-shot { position: relative; display: block; overflow: hidden; border-radius: 6px; border: 1px solid var(--xp-line-soft); aspect-ratio: 16 / 9; background: var(--xp-media); }
.cc-shot.is-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.cc-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.cc-shot:hover img, .cc-shot:focus-visible img { transform: scale(1.045); }
.cc-shot::after { content: '⤢'; position: absolute; right: 12px; bottom: 10px; color: #fff; font-size: 1.1rem; opacity: 0; transition: opacity .3s ease; text-shadow: 0 2px 10px #000; }
.cc-shot:hover::after { opacity: 1; }

.cc-lightbox { width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; border-radius: 8px; background: #000; overflow: visible; }
.cc-lightbox::backdrop { background: #05040af0; backdrop-filter: blur(6px); }
.cc-lightbox img { display: block; width: 100%; height: auto; max-height: 94vh; object-fit: contain; border-radius: 8px; }
.cc-lightbox-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff55; background: #0008; color: #fff; font-size: 1rem; cursor: pointer; }
.cc-lightbox-close:hover { background: #fff; color: #000; }

/* ---------- Videos ---------- */
.cc-videos { padding: 100px 0 120px; }
.cc-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; margin-top: 44px; }
.cc-video { display: flex; flex-direction: column; gap: 10px; color: var(--xp-heading); }
.cc-video-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; border: 1px solid var(--xp-line-soft); background: var(--xp-media); }
.cc-video-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cc-video-media::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 54px; height: 54px; transform: translate(-50%, -50%) scale(.85); border-radius: 50%; background: #ffffffe6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23120c20'/%3E%3C/svg%3E") center / 26px no-repeat; opacity: 0; transition: opacity .3s ease, transform .3s ease; }
.cc-video:hover .cc-video-media img, .cc-video:focus-visible .cc-video-media img { transform: scale(1.04); }
.cc-video:hover .cc-video-media::after, .cc-video:focus-visible .cc-video-media::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cc-time { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 4px; background: #000c; color: #fff; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cc-video-meta { color: var(--xp-label); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.cc-video-title { font-size: 1.06rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; transition: color .25s ease; }
.cc-video:hover .cc-video-title { color: var(--xp-link-hover); }

/* ---------- Closing call ---------- */
.cc-cta { position: relative; isolation: isolate; overflow: hidden; min-height: 78svh; display: grid; place-items: center; text-align: center; color: #fff; background: #07060c; }
.cc-cta-art { position: absolute; inset: 0; z-index: -2; }
.cc-cta-art img { width: 100%; height: 100%; object-fit: cover; }
.cc-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 55%, #07060c99, #07060ce6 75%), linear-gradient(180deg, var(--xp-bg) 0%, transparent 18%, transparent 82%, var(--xp-surface) 100%); }
.cc-cta-inner { padding: 120px 24px; display: flex; flex-direction: column; align-items: center; }
.cc-cta h2 { font-size: clamp(2.6rem, 6vw, 6rem); line-height: 1; letter-spacing: -.055em; font-weight: 600; margin: 26px 0 38px; text-shadow: 0 6px 40px #000c; }
.cc-next { margin-top: 30px; color: #d6d0e0; font-size: .92rem; }
.cc-next a { color: #fff; border-bottom: 1px solid #ffffff80; }
.cc-next a:hover { border-color: #fff; }

/* ---------- Scroll reveal (only with JS) ---------- */
.cc-js [data-fade] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.cc-js [data-fade].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cc-facts dl { grid-template-columns: repeat(3, 1fr); }
  .cc-facts dl > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .cc-facts dl > div:nth-child(n+4) { border-top: 1px solid var(--xp-line-soft); }
}
@media (max-width: 1000px) {
  .cc-hero-inner { grid-template-columns: 1fr; row-gap: 26px; }
}
@media (max-width: 900px) {
  .cc-chapter { grid-template-columns: 1fr; padding: 50px 0; gap: 30px; }
  .cc-chapter.is-flipped .cc-chapter-text { order: 0; }
  .cc-stats { grid-template-columns: repeat(2, 1fr); }
  .cc-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cc-stats > div:nth-child(n+3) { border-top: 1px solid var(--xp-line-soft); }
  .cc-video-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-gallery { grid-template-columns: repeat(2, 1fr); }
  .cc-shot.is-big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 768px) {
  .cc-wrap, .cc-hero-inner { width: calc(100% - 48px); }
  .cc-hero { padding-bottom: 70px; }
  .cc-hero-art { aspect-ratio: 1 / 1; }
  .cc-hero-inner { margin-top: -46px; }
  .cc-logo img { width: min(440px, 88vw); }
  .cc-btn { width: 100%; justify-content: center; }
  .cc-facts dl { grid-template-columns: repeat(2, 1fr); }
  .cc-facts dl > div { padding: 20px 14px 20px 0; }
  .cc-facts dl > div + div { padding-left: 14px; }
  .cc-facts dl > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cc-facts dl > div:nth-child(4) { padding-left: 14px; border-left: 1px solid var(--xp-line-soft); }
  .cc-facts dl > div:nth-child(n+3) { border-top: 1px solid var(--xp-line-soft); }
  .cc-trailer { padding-top: 80px; }
  .cc-video-grid { grid-template-columns: 1fr; }
  .cc-gallery { gap: 10px; }
  .cc-tag { bottom: 10px; font-size: .6rem; }
  .cc-handle::after { width: 42px; height: 42px; }
  .cc-pair figure:first-child, .cc-pair figure:last-child { width: 100%; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-js .cc-hero-brand, .cc-js .cc-hero-copy { animation: none; opacity: 1; transform: none; }
  .cc-js [data-fade] { opacity: 1; transform: none; transition: none; }
}
