/* Funnyeye — credits (partner logo rows · awards stepper · press) + CTA panel
   + statutory drinking notice strip.
   The CTA panel styles (.fe-co-cta*) live in collaboration.css. */

.fe-cr {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
  background: var(--paper);
}

.fe-cr-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
}

.fe-cr-link {
  text-decoration: none;
}

.fe-cr-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fe-cr-title {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Partner & client logos — two rows drifting in opposite directions */
.fe-cr-logo-rows {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.fe-cr-logos {
  display: flex;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.fe-cr-logos + .fe-cr-logos {
  border-top: 1px dashed var(--rule);
}

.fe-cr-logo-run {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0;
  padding: 1.4rem clamp(2.5rem, 5vw, 4.5rem) 1.4rem 0;
  list-style: none;
  animation: fe-marquee 48s linear infinite;
}

.fe-cr-logos--right .fe-cr-logo-run {
  animation-direction: reverse;
  animation-duration: 56s;
}

.fe-cr-logos:hover .fe-cr-logo-run {
  animation-play-state: paused;
}

.fe-cr-logo-run img {
  display: block;
  height: clamp(2.4rem, 4vw, 3.3rem);
  width: auto;
  max-width: 10.5rem;
  object-fit: contain;
  mix-blend-mode: multiply; /* white-box logos sit on the paper */
}

@media (prefers-reduced-motion: reduce) {
  .fe-cr-logo-run { animation: none; }
}

/* Awards — ink band: award photo + a list that steps upward */
.fe-cr-awards {
  margin: clamp(3.5rem, 7vw, 5rem) 0;
  background:
    linear-gradient(rgba(35, 55, 176, 0.96), rgba(35, 55, 176, 0.96)),
    var(--pack-lace) center / 420px auto;
  color: var(--paper);
}

.fe-cr-awards-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.fe-cr-award-photo {
  position: relative;
  margin: 0;
  max-width: 21rem;
}

.fe-cr-award-photo > img:first-child {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 8px solid var(--paper);
  transform: rotate(-2.5deg);
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, 0.55);
}

.fe-cr-award-badge {
  position: absolute;
  right: -1.6rem;
  bottom: 2.4rem;
  width: 5.2rem;
  height: auto;
  transform: rotate(8deg);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

.fe-cr .fe-cr-award-photo figcaption {
  margin-top: 1.1rem;
  color: var(--paper);
}

.fe-cr .fe-cr-award-list > .fe-label {
  color: var(--paper);
  opacity: 0.75;
  margin: 0 0 1.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(242, 239, 230, 0.4);
}

.fe-cr-award-window {
  position: relative;
  height: 18.5rem;
  overflow: hidden;
  -webkit-mask: linear-gradient(#000 70%, transparent);
  mask: linear-gradient(#000 70%, transparent);
}

.fe-cr-award-track {
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.25, 1);
}

.fe-cr-award {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: 0.45rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(242, 239, 230, 0.25);
  opacity: 0.55;
  transition: opacity 0.6s;
}

.fe-cr-award.is-current,
.fe-cr-award.is-current + .fe-cr-award {
  opacity: 1;
}

.fe-cr-award b {
  grid-row: span 2;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding-top: 0.35rem;
}

.fe-cr-award span {
  font-family: var(--f-zh-sans);
  font-weight: 900;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.3;
}

.fe-cr-award em {
  line-height: 1.5;
}

.fe-cr-award em {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  opacity: 0.85;
}

:lang(zh) .fe-cr-award em {
  font-family: var(--f-zh-serif);
  font-style: normal;
  font-weight: 500;
  font-size: 0.92rem;
}

.fe-cr-award.is-featured span {
  color: #f5c84c;
}

.fe-cr-award.is-featured b::after {
  content: "NEW";
  display: block;
  width: max-content;
  margin-top: 0.4rem;
  padding: 1px 6px;
  background: #f5c84c;
  color: var(--ink-deep);
  font-size: 0.6rem;
}

/* Press — featured card + full outlet list */
.fe-cr-press {
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--rule);
}

.fe-cr-press-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 1.25rem 0 1.75rem;
}

/* Vintage TV with CRT static + glitching logo (lib/crt-tv.js) */
.fe-cr-tv {
  align-self: start;
  margin: 0;
}
.fe-cr-tv-set {
  position: relative;
}
.fe-cr-tv-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.fe-cr-tv-screen {
  /* sits in the TV's glass: measured on assets/img/mood/tv.webp */
  position: absolute;
  z-index: 3;
  left: 25.6%;
  top: 34.6%;
  width: 50.2%;
  height: 49.2%;
  border-radius: 9% / 12%;
  overflow: hidden;
  background: #070a24;
  box-shadow: inset 0 0 30px 8px rgba(0, 0, 0, 0.85);
  animation: fe-crt-flicker 3.2s steps(1) infinite;
}
.fe-cr-tv-screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0.95;
}
.fe-cr-tv-screen::before,
.fe-cr-tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.fe-cr-tv-screen::before {
  /* scanlines */
  background: repeating-linear-gradient(rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
}
.fe-cr-tv-screen::after {
  /* glass glare + vignette */
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.16), transparent 45%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55));
}
.fe-cr-tv-logo {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  animation: fe-crt-tear 4.6s steps(1) infinite;
}
.fe-cr-tv-logo img {
  grid-area: 1 / 1;
  width: 72%;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(200, 210, 255, 0.7));
}
.fe-cr-tv-logo img:nth-child(1) {
  filter: brightness(0) invert(36%) sepia(90%) saturate(5000%) hue-rotate(340deg);
  mix-blend-mode: screen;
  animation: fe-crt-jitter-r 0.9s steps(2) infinite;
}
.fe-cr-tv-logo img:nth-child(2) {
  filter: brightness(0) invert(60%) sepia(90%) saturate(4000%) hue-rotate(170deg);
  mix-blend-mode: screen;
  animation: fe-crt-jitter-c 1.1s steps(2) infinite;
}
@keyframes fe-crt-flicker {
  0%, 100% { filter: none; }
  41% { filter: brightness(1.25) contrast(1.1); }
  43% { filter: brightness(0.8); }
  77% { filter: brightness(1.1); }
}
@keyframes fe-crt-tear {
  0%, 100% { clip-path: none; transform: none; }
  18% { clip-path: inset(38% 0 44% 0); transform: translateX(7%); }
  19% { clip-path: none; transform: translateX(-1%); }
  61% { clip-path: inset(62% 0 20% 0); transform: translateX(-6%); }
  62% { clip-path: none; transform: none; }
  88% { transform: skewX(-6deg); }
  89% { transform: none; }
}
@keyframes fe-crt-jitter-r {
  0% { translate: -3px 0; }
  50% { translate: -1px 1px; }
}
@keyframes fe-crt-jitter-c {
  0% { translate: 3px 0; }
  50% { translate: 1px -1px; }
}
@media (prefers-reduced-motion: reduce) {
  .fe-cr-tv-screen,
  .fe-cr-tv-logo,
  .fe-cr-tv-logo img { animation: none !important; }
}
.fe-cr-tv figcaption {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.75rem;
}
.fe-cr-tv figcaption b {
  font-family: var(--f-sans);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 1.35rem;
  color: var(--ink);
}
.fe-cr-tv figcaption span {
  font-family: var(--f-zh-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-deep);
}

.fe-cr-press-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 18rem;
  column-gap: 2.5rem;
}

.fe-cr-press-list li {
  break-inside: avoid;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fe-cr-press-list b {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
}

.fe-cr-press-list span {
  color: var(--ink-deep);
}

/* ============================================================
   Statutory drinking notice (above footer)
   ============================================================ */

.fe-notice {
  padding: 1.4rem clamp(1rem, 5vw, 5rem);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.fe-notice p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--text);
}

.fe-notice p + p {
  margin-top: 0.35rem;
}

.fe-notice span[data-l="zh"] {
  font-family: var(--f-zh-sans);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  .fe-cr-awards-inner,
  .fe-cr-press-grid {
    grid-template-columns: 1fr;
  }

  .fe-cr-award-photo {
    max-width: 15rem;
    margin: 0 auto;
  }
}
