@charset "UTF-8";

:root {
  --bg: #fdf6ec;
  --bg2: #fef0d8;
  --surface: #fff8f0;
  --text: #2c1a00;
  --text-muted: #8a6a3a;
  --accent: #d4531e;
  --accent2: #f0a500;
  --brand-bg: #fff3e0;
  --brand-border: #e8c88a;
  --chicken-filter: brightness(0.75) saturate(1.3);
  --shadow: rgba(180, 90, 0, 0.18);
  --popup-bg: rgba(255, 248, 240, 0.97);
  --nav-bg: rgba(253, 246, 236, 0.95);
}

[data-theme="dark"] {
  --bg: #1a1008;
  --bg2: #221508;
  --surface: #2a1c0a;
  --text: #fde8b8;
  --text-muted: #c4955a;
  --accent: #f0a500;
  --accent2: #ff6b35;
  --brand-bg: #2e1f08;
  --brand-border: #5a3d18;
  --chicken-filter: brightness(1.4) saturate(0.9) hue-rotate(15deg);
  --shadow: rgba(255, 180, 0, 0.15);
  --popup-bg: rgba(30, 20, 8, 0.97);
  --nav-bg: rgba(26, 16, 8, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition:
    background 0.5s,
    color 0.5s;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.5s;
}

.logo {
  font-family: "Black Han Sans", sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--text);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brand-border);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}

/* ─── BRAND BANNER ─── */
.brand-strip {
  /* overflow: hidden; */
  background: var(--brand-bg);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  height: 56px;
  display: flex;
  align-items: center;
  position: relative;
}

.brand-strip.top {
  margin-top: 60px;
}

.brand-strip.bottom {
  position: relative;
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.brand-strip.top .brand-track {
  animation: scrollLeft 20s linear infinite;
}

.brand-strip.bottom .brand-track {
  animation: scrollRight 22s linear infinite;
}

.brand-strip:hover .brand-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.brand-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 28px;
  cursor: pointer;
  font-family: "Black Han Sans", sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  border-right: 1px solid var(--brand-border);
  transition:
    color 0.2s,
    background 0.2s;
  height: 56px;
  position: relative;
}

.brand-item:hover {
  color: var(--accent);
  background: var(--bg2);
}

.brand-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  opacity: 0.5;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.brand-item:hover .dot {
  opacity: 1;
  transform: scale(1.4);
}

/* Brand popup */
.brand-popup {
  position: absolute;
  left: 50%;
  width: 240px;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 12px 40px #1a1008;
  z-index: 200;
  /* pointer-events: none; */
  transition:
    opacity 0.2s,
    transform 0.2s;
  text-align: left;
  opacity: 0;
}

/* 윗 트랙일 때 팝업 */
.top .brand-popup {

  top: 100%;
  transform: translateX(-50%) translateY(-6px);

}


/* 아랫 트랙일 때 팝업 */

.bottom .brand-popup {

  bottom: 100%;
  transform: translateX(-50%) translateY(6px);

}

/* .brand-item:hover .brand-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
} */


/* brand-item호버시의 brand-popup */
/* show 클래스로도 동일 동작 허용 */
.brand-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



.brand-popup h4 {
  font-family: "Black Han Sans", sans-serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.brand-popup p {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.6;
}

.brand-popup .rec {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--brand-border);
  padding-top: 8px;
}

/* ─── MAIN SECTION ─── */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px - 56px - 56px);
  padding: 40px 20px;
  position: relative;
}

.chicken-wrapper {
  position: relative;
  width: min(600px, 90vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── SVG CHICKEN ─── */
#chicken-svg {
  width: 100%;
  max-width: 580px;
  filter: var(--chicken-filter);
  transition: filter 0.6s ease;
  cursor: default;
  user-select: none;
}

/* Part paths */
.part {
  cursor: pointer;
  transition:
    opacity 0.25s,
    filter 0.25s;
  opacity: 0.92;
}

.part:hover,
.part.active {
  opacity: 1;
  filter: drop-shadow(0 0 12px var(--accent2)) brightness(1.15);
}

.part:not(:hover):not(.active) {
  opacity: 0.85;
}

/* Part label popup */
.part-label {
  position: absolute;
  background: var(--popup-bg);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 12px 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 50;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 8px 32px var(--shadow);
}

.part-label.show {
  opacity: 1;
}

.part-label h3 {
  font-family: "Black Han Sans", sans-serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.part-label p {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.5;
}

/* ─── BG DECO ─── */
.bg-circles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-circles div {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent2), transparent 70%);
  opacity: 0.06;
}

.c1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
}

.c2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
}

.c3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 60%;
}

/* ─── SCROLL HINT ─── */
.hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =================유틸리티 클래스 */

/* hide */
/* opacity 0  */
.hide {
  opacity: 0;
}

/* z-index */

.z-100 {
  z-index: 100;
}