/* Cat & Cobra (package 35, 2026-11-09) -------------------------------------------------------------------------
   /cat-and-cobra/ and the home page's Cat & Cobra section. Built from the site's own parts: the neon section
   headings, the panel cards of /wallpapers/, the jump chips of /stickers/, the pink buttons and the Meet Cat
   video card and dialog of the home page. The comics and films bring the colour; nothing here adds a new look. */

.cc-page .hero { padding-bottom: 0; }
/* Each sentence of the tagline keeps to its own line on phones, so the turn ("Cat runs the show") is never split. */
.cc-page .hero .tagline { text-wrap: balance; }
@media (max-width: 759px) { .cc-page .hero .tagline { font-size: clamp(15px, 4.4vw, 22px); letter-spacing: 0.06em; } .cc-page .hero .tagline span { display: block; } }
/* The subline is two thoughts: on wide screens each gets its own line; on phones they flow, evenly balanced. */
.cc-page .hero .subline { max-width: 34em; margin-left: auto; margin-right: auto; text-wrap: balance; }
@media (min-width: 760px) { .cc-page .hero .subline { max-width: none; } .cc-page .hero .subline span { display: block; } }
.cc-jump { margin-top: 18px; }
.cc-page section[id] { scroll-margin-top: 84px; }
.cc-page section > .group-note { margin-top: -4px; }

/* Comic covers: centred rows like the wallpaper cards, two across on phones, three from 640 px, four from 900 px. */
.cc-grid { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 14px; }
.cc-card { width: min(250px, calc((100% - 15px) / 2)); }
@media (min-width: 640px) { .cc-card { width: min(250px, calc((100% - 29px) / 3)); } }
@media (min-width: 900px) { .cc-grid { column-gap: 18px; } .cc-card { width: min(250px, calc((100% - 55px) / 4)); } }
.cc-card-link { display: flex; flex-direction: column; height: 100%; background: var(--panel); color: var(--text);
  border: 1px solid rgba(255, 45, 158, 0.25); border-radius: 14px; overflow: hidden; box-shadow: 0 0 24px rgba(255, 45, 158, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.cc-card-link:hover, .cc-card-link:focus-visible { text-decoration: none; transform: translateY(-3px);
  border-color: rgba(255, 45, 158, 0.6); box-shadow: 0 0 36px rgba(255, 45, 158, 0.22); }
.cc-card-link img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #1a1a2c; }
.cc-card-info { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px 14px; }
.cc-card-info h3 { margin: 0; font-size: 15px; line-height: 1.25; letter-spacing: -0.02em; }
.cc-card-info span { color: var(--text-dim); font-size: 12px; line-height: 1.5; }

/* Films: the Meet Cat card, many times. Phones get a sideways shelf (the next film peeks in at the edge);
   from 900 px they sit in centred rows of five. */
.cc-shelf { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(176px, calc((100vw - 84px) / 2)); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin-inline: -20px; padding: 4px 20px 14px;
  scrollbar-width: none; }
.cc-shelf::-webkit-scrollbar { display: none; }
.cc-shelf > li { scroll-snap-align: start; }
@media (min-width: 900px) {
  .cc-shelf { display: flex; flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding: 4px 0 0; gap: 22px 18px; }
  .cc-shelf > li { width: calc((100% - 72px) / 5); max-width: 190px; }
}
.cc-film-link { display: flex; flex-direction: column; gap: 9px; color: var(--text); }
.cc-film-link:hover, .cc-film-link:focus-visible { text-decoration: none; }
.cc-poster { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #0a0a14;
  border: 1px solid rgba(255, 45, 158, 0.4); box-shadow: 0 0 30px rgba(255, 45, 158, 0.14); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cc-poster img { width: 100%; height: 100%; object-fit: cover; }
.cc-film-link:hover .cc-poster, .cc-film-link:focus-visible .cc-poster { transform: translateY(-3px); box-shadow: 0 0 44px rgba(255, 45, 158, 0.3); }
/* The play badge sits in the corner: centred, it covered Cat's face on the split-screen covers and the props on the desk. */
.cc-poster .cat-play { width: 40px; height: 40px; left: auto; right: 9px; bottom: 9px; transform: none; }
.cc-poster .cat-play svg { width: 16px; height: 16px; }
.cc-len { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(5, 5, 12, 0.72);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; line-height: 1.6; }
.cc-film-info { display: flex; flex-direction: column; gap: 3px; }
.cc-film-info .cc-game { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; }
.cc-film-info b { color: var(--yellow); font-size: 13px; letter-spacing: 0.2px; line-height: 1.3; }
.cc-film-info span:last-child { color: var(--text-dim); font-size: 12px; line-height: 1.45; }

/* Closing: Cat asleep at home, and where to go next. */
.cc-end { display: grid; gap: 22px 40px; align-items: center; margin-top: 64px; }
@media (min-width: 760px) { .cc-end { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.cc-end figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 50px rgba(255, 45, 158, 0.2); }
.cc-end figure img { width: 100%; height: auto; }
.cc-end h2 { margin: 0 0 6px; }
.cc-end p { margin: 0 0 18px; }
.cc-end .cta-row { justify-content: flex-start; margin: 0; }

/* Buttons beside .btn-store: the outlined form of the same button (as on /stickers/). */
.cc-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px;
  border: 1px solid rgba(255, 45, 158, 0.7); background: transparent; color: #fff; cursor: pointer;
  font: 900 13px/1.2 var(--font); letter-spacing: 0.02em; text-transform: uppercase; }
.cc-ghost:hover, .cc-ghost:focus-visible { text-decoration: none; border-color: var(--pink); color: var(--pink); }
button.btn-store { border: 0; cursor: pointer; font-family: var(--font); line-height: 1.2; }

/* The comic reader: the Meet Cat dialog, sized for 4:5 slides; one slide at a time, swipe, tap or arrow keys. */
.cc-reader { width: min(94vw, 600px, calc((100vh - 160px) * 0.8)); width: min(94vw, 600px, calc((100dvh - 160px) * 0.8)); }
.cc-reader .cat-dialog-bar h2 { display: flex; flex-direction: column; line-height: 1.25; }
.cc-reader .cat-dialog-bar h2 small { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.cc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; background: #05050c; }
.cc-track::-webkit-scrollbar { display: none; }
.cc-track:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.cc-slide { flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 5; scroll-snap-align: start; scroll-snap-stop: always; }
.cc-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.cc-after { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px; text-align: center; }
.cc-after .cc-kicker { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cc-after img { width: min(48%, 220px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; cursor: default;
  border: 1px solid rgba(255, 45, 158, 0.4); box-shadow: 0 0 30px rgba(255, 45, 158, 0.18); }
.cc-after h3 { margin: 4px 0 0; color: var(--yellow); font-size: 18px; line-height: 1.2; }
.cc-after p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; max-width: 22em; }
.cc-after-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cc-after .btn-store { padding: 12px 22px; font-size: 13px; }
.cc-controls { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; padding: 10px 12px 12px; }
.cc-count { text-align: center; color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cc-step { appearance: none; width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff; }
.cc-step svg { width: 18px; height: 18px; fill: currentColor; }
.cc-step:hover { border-color: var(--pink); color: var(--pink); }
.cc-step.cc-next { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 20px rgba(255, 45, 158, 0.5); }
.cc-step.cc-next:hover { color: #fff; filter: brightness(1.12); }
.cc-step:disabled { opacity: 0.3; cursor: default; box-shadow: none; filter: none; }

/* The film player: the Meet Cat dialog, plus the film's line, its game and the next film. */
.cc-player { width: min(92vw, 420px, calc((100vh - 280px) * 0.5625)); width: min(92vw, 420px, calc((100dvh - 280px) * 0.5625)); }
.cc-reader, .cc-player { max-height: calc(100dvh - 12px); overflow-y: auto; overscroll-behavior: contain; }
.cc-player-foot { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.cc-player-foot .cat-words { padding: 0; }
.cc-player-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-player-actions .cc-ghost { flex: 1 1 auto; font-size: 11px; padding: 10px 12px; }
.cc-player-actions .cc-next-film.is-ready { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 0 22px rgba(255, 45, 158, 0.5); }

/* Home: the Cat & Cobra section under the games, and the Meet Cat dialog's way through. */
.cc-home .cc-card { width: min(220px, calc((100% - 15px) / 2)); }
@media (min-width: 640px) { .cc-home .cc-card { width: min(220px, calc((100% - 43px) / 4)); } }
.cc-home .cta-row { margin-top: 22px; }
.cat-more { margin: 0; padding: 0 16px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .cc-card-link, .cc-poster { transition: none; }
  .cc-card-link:hover, .cc-film-link:hover .cc-poster { transform: none; }
}
