/* 집가고싶다 · 나만없어 고양이 */
.cat-promo {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #e6e8f5;
  background: #101426;
  border: 1px solid #626889;
  border-radius: 0;
  box-shadow: 6px 6px 0 #05070f;
  font-family: var(--font-body);
  text-align: center;
  cursor: auto;
}
.cat-promo:not([open]) { display: none; }
.cat-promo[open] { animation: cat-promo-enter 180ms ease-out; }
.cat-promo::backdrop { background: rgba(5, 7, 15, .78); }
body.cat-promo-open { overflow: hidden; }
.cat-promo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-left: 18px;
  border-bottom: 1px solid #30364e;
  color: #adb5d2;
  font-size: 11px;
  letter-spacing: .06em;
  text-align: left;
}
.cat-promo__close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-left: 1px solid #30364e;
  background: transparent;
  color: #e6e8f5;
  font: 24px/1 var(--font-body);
  cursor: pointer;
}
.cat-promo__scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 164px;
  margin: 0 24px;
  border-bottom: 2px solid #52546b;
  background: radial-gradient(ellipse at bottom, #303047 0, #101426 70%);
}
.cat-promo__scene img {
  display: block;
  width: 30%;
  max-width: 116px;
  height: auto;
  image-rendering: pixelated;
  transform-origin: bottom;
}
.cat-promo[open] .cat-promo__scene img { animation: cat-promo-hop 440ms steps(4, end) 200ms both; }
.cat-promo[open] .cat-promo__scene img:nth-child(2) { animation-delay: 360ms; }
.cat-promo[open] .cat-promo__scene img:nth-child(3) { animation-delay: 520ms; }
.cat-promo__body { padding: 26px 28px 24px; }
.cat-promo__eyebrow { margin: 0 0 10px; font-size: 12px; color: #adb5d2; }
.cat-promo h2 { margin: 0; color: #ffd27a; font-size: clamp(24px, 6.8vw, 31px); font-weight: normal; line-height: 1.4; letter-spacing: -.04em; }
.cat-promo__description { margin: 16px 0 14px; font-size: 14px; line-height: 1.9; word-break: keep-all; }
.cat-promo__platforms { margin: 0 0 22px; color: #adb5d2; font-size: 11px; line-height: 1.6; }
.cat-promo__visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  padding: 12px;
  background: #ffd27a;
  color: #171a2b;
  box-shadow: inset 0 2px #ffe4ad, 3px 3px 0 #05070f;
  text-decoration: none;
  font-size: 15px;
  transition: transform 120ms ease-out, background 120ms ease-out;
}
.cat-promo__visit:hover { background: #ffdfa0; color: #171a2b; transform: translateY(-2px); }
.cat-promo__footer { display: flex; border-top: 1px solid #30364e; }
.cat-promo__footer button {
  flex: 1;
  min-height: 48px;
  padding: 12px 8px;
  background: transparent;
  border: 0;
  color: #c9cee6;
  font: 12px/1.5 var(--font-body);
  cursor: pointer;
}
.cat-promo__footer button + button { border-left: 1px solid #30364e; }
.cat-promo button:hover { background: #22283e; }
.cat-promo :is(a, button):focus-visible { outline: 2px solid #ffd27a; outline-offset: -4px; }
@keyframes cat-promo-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cat-promo-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 360px), (max-height: 650px) {
  .cat-promo__scene { height: 116px; }
  .cat-promo__scene img { max-width: 96px; }
  .cat-promo__body { padding: 20px; }
  .cat-promo__description { margin: 12px 0; }
  .cat-promo__platforms { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-promo[open], .cat-promo[open] .cat-promo__scene img { animation: none; }
  .cat-promo__visit { transition: none; }
}
