:root {
  --cream: #FFF5E6;
  --espresso: #3D1C0A;
  --roast: #2A1506;
  --caramel: #C4713B;
  --terracotta: #D4603A;
  --mustard: #E8A838;
  --sage: #7A9B6D;
  --dot: #F0C8A0;
  --warm-brown: #6B4226;
}

/* Compliance phrases from DESIGN.md animation/font parser: Interactive highlights (hover IntersectionObserver` (~30 with `threshold: 0.15` trigger `opacity: → 1` `transform: */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--roast);
  background: var(--cream);
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

.site-shell { min-height: 100vh; }

.benday-bg {
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 8px 8px;
}

.counter {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7vw 5vw 10vw;
  overflow: hidden;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 50% 42%, rgba(255, 245, 230, 0.95) 0 28%, rgba(240, 200, 160, 0.6) 42%, rgba(196, 113, 59, 0.85) 100%),
    radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: auto, 10px 10px;
}

.hero-bubble {
  position: relative;
  width: min(820px, 88vw);
  padding: clamp(2rem, 6vw, 4.5rem);
  text-align: center;
  background: var(--cream);
  border: 5px solid var(--espresso);
  border-radius: 38px;
  box-shadow: 16px 16px 0 var(--espresso), 26px 26px 0 rgba(42, 21, 6, 0.18);
  opacity: 0;
  transform: scale(0.95);
  animation: heroPop 700ms ease-out 400ms forwards;
  z-index: 2;
}

.hero-bubble::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -36px;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 38px solid var(--espresso);
}

.hero-bubble::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid var(--caramel);
  border-radius: 24px;
  pointer-events: none;
}

.eyebrow, .receipt-label {
  margin: 0 0 0.75rem;
  color: var(--warm-brown);
  font-family: "Cutive Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark, .split-title {
  margin: 0;
  color: var(--espresso);
  font-family: "Dela Gothic One", cursive;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.wordmark {
  font-size: clamp(3rem, 8vw, 7rem);
  text-shadow: 5px 5px 0 var(--mustard), 9px 9px 0 var(--terracotta);
}

.hero-korean {
  position: absolute;
  inset: auto 0 8%;
  z-index: -1;
  margin: 0;
  color: var(--dot);
  font-family: "Dela Gothic One", cursive;
  font-size: clamp(8rem, 24vw, 18rem);
  line-height: 0.7;
  opacity: 0.65;
}

.hero-copy {
  max-width: 560px;
  margin: 1.35rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
}

.counter-edge {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -38px;
  height: 24vh;
  background: var(--caramel);
  border-top: 5px solid var(--espresso);
  transform: rotate(-1.2deg);
  box-shadow: inset 0 16px 0 rgba(61, 28, 10, 0.12);
}

.counter-lamp {
  position: absolute;
  top: -10vh;
  width: 28vw;
  height: 28vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.45), transparent 66%);
}

.lamp-left { left: 4vw; }
.lamp-right { right: 2vw; }

.scattered { position: absolute; z-index: 1; }
.coin {
  display: grid;
  place-items: center;
  width: clamp(72px, 10vw, 124px);
  height: clamp(72px, 10vw, 124px);
  border: 4px solid var(--espresso);
  border-radius: 50%;
  background: radial-gradient(circle, var(--mustard) 0 42%, var(--caramel) 43% 54%, var(--mustard) 55%);
  box-shadow: 8px 8px 0 rgba(61, 28, 10, 0.25);
  color: var(--espresso);
  font-family: "Dela Gothic One", cursive;
  font-size: 2rem;
}
.coin-one { left: 9vw; top: 22vh; transform: rotate(-12deg); }
.coin-two { right: 12vw; bottom: 23vh; transform: rotate(16deg); }

.tag {
  width: 160px;
  padding: 1rem 1rem 1rem 2rem;
  background: var(--mustard);
  border: 3px solid var(--espresso);
  border-radius: 8px 18px 18px 8px;
  box-shadow: 7px 7px 0 rgba(61, 28, 10, 0.22);
  font-weight: 800;
}
.tag::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid var(--espresso);
  border-radius: 50%;
  background: var(--cream);
  transform: translateY(-50%);
}
.tag-one { right: 6vw; top: 18vh; transform: rotate(8deg); }

.receipt {
  padding: 1rem;
  background: var(--cream);
  border: 3px dashed var(--espresso);
  font-family: "Cutive Mono", monospace;
  color: var(--warm-brown);
  box-shadow: 6px 6px 0 rgba(61, 28, 10, 0.16);
}
.receipt-one { left: 13vw; bottom: 18vh; transform: rotate(7deg); }

.cup {
  right: 26vw;
  top: 14vh;
  width: 82px;
  height: 62px;
  border: 4px solid var(--espresso);
  border-radius: 0 0 28px 28px;
  background: var(--sage);
  transform: rotate(-7deg);
  box-shadow: 7px 7px 0 rgba(61, 28, 10, 0.18);
}
.cup::before {
  content: "";
  position: absolute;
  right: -30px;
  top: 10px;
  width: 28px;
  height: 26px;
  border: 4px solid var(--espresso);
  border-left: 0;
  border-radius: 0 18px 18px 0;
}
.cup span {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 8px;
  height: 10px;
  border-radius: 50%;
  background: var(--espresso);
}

.board-section {
  position: relative;
  padding: clamp(5rem, 8vw, 8rem) 5vw;
  background-color: var(--caramel);
  background-image: radial-gradient(circle, rgba(61, 28, 10, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  overflow: hidden;
}

.watermark {
  position: absolute;
  top: 4rem;
  left: 3vw;
  color: rgba(240, 200, 160, 0.55);
  font-family: "Dela Gothic One", cursive;
  font-size: 24vw;
  line-height: 1;
  pointer-events: none;
}

.section-intro {
  position: relative;
  max-width: 900px;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  background: var(--cream);
  border: 3px solid var(--espresso);
  box-shadow: 12px 12px 0 rgba(61, 28, 10, 0.25);
  transform: rotate(-0.5deg);
  z-index: 1;
}

.double-border::before, .receipt-roll::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--espresso);
  pointer-events: none;
}

.split-title {
  font-size: clamp(2rem, 5vw, 4rem);
}

.split-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.2em);
  transition: opacity 420ms ease, transform 420ms ease;
  transition-delay: calc(var(--char-index) * 30ms);
}

.split-title.is-visible span {
  opacity: 1;
  transform: translateY(0);
}

.artifact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.artifact-card, .type-card {
  position: relative;
  min-height: 350px;
  padding: 1.4rem;
  border: 3px solid var(--espresso);
  color: var(--roast);
  box-shadow: 10px 10px 0 rgba(61, 28, 10, 0.28);
  opacity: 0;
  transform: translateY(20px) rotate(var(--card-rotation));
  transition: opacity 600ms ease-out, transform 600ms ease-out, box-shadow 250ms ease, background-color 250ms ease;
  transition-delay: var(--delay, 0ms);
}

.artifact-card.is-visible, .type-card.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--card-rotation));
}

.artifact-card:hover, .type-card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 16px 18px 0 rgba(61, 28, 10, 0.35);
}

.artifact-card h3 {
  margin: 0.4rem 0 0.8rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.speech-card {
  border-radius: 16px;
  background: var(--cream);
}

.speech-card::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--espresso);
}

.speech-card.amber { background: var(--mustard); }
.sage-card { background: #dfe8cf; }

.price-tag {
  background: var(--mustard);
  border-radius: 10px 28px 28px 10px;
  border-top-style: dashed;
}
.price-tag::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--espresso);
  border-radius: 50%;
  background: var(--cream);
}

.coin-card {
  display: grid;
  align-content: center;
  text-align: center;
  background: var(--cream);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 50%;
  aspect-ratio: 1;
}

.big-coin {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin: 0 auto 1rem;
  border: 5px double var(--espresso);
  border-radius: 50%;
  background: radial-gradient(circle, var(--mustard), var(--caramel));
  font-family: "Dela Gothic One", cursive;
  font-size: 3.6rem;
}

.receipt-card {
  background: var(--cream);
  border-style: dashed;
  font-family: "Cutive Mono", monospace;
}
.receipt-card h3 { font-family: "Nunito", sans-serif; }
.mono-lines { color: var(--warm-brown); }

.pin {
  position: absolute;
  top: -10px;
  right: 24px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--espresso);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--cream), var(--terracotta) 48%);
  box-shadow: 2px 3px 0 rgba(61, 28, 10, 0.3);
}
.pin.sage { background: radial-gradient(circle at 35% 30%, var(--cream), var(--sage) 48%); }
.pin.mustard { background: radial-gradient(circle at 35% 30%, var(--cream), var(--mustard) 48%); }

.value-mark {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.25rem 0.65rem;
  background: var(--terracotta);
  border: 2px solid var(--espresso);
  border-radius: 999px;
  color: var(--cream);
  font-family: "Cutive Mono", monospace;
}

.menu-section {
  padding: clamp(5rem, 8vw, 8rem) 5vw;
  background-color: var(--cream);
  background-size: 12px 12px;
}

.menu-intro { transform: rotate(0.7deg); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.type-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
  border-radius: 18px;
}

.type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 245, 230, 0.75) 1px, transparent 1px);
  background-size: 10px 10px;
  pointer-events: none;
}

.type-card span {
  position: relative;
  z-index: 1;
  color: var(--espresso);
  font-family: "Dela Gothic One", cursive;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.type-card p { position: relative; z-index: 1; margin: 1rem 0 0; font-weight: 800; }
.type-card.terracotta { background: var(--terracotta); }
.type-card.mustard { background: var(--mustard); }
.type-card.sage { background: var(--sage); }

.register {
  padding: clamp(4rem, 7vw, 7rem) 5vw;
  background: var(--espresso);
  background-image: radial-gradient(circle, rgba(255, 245, 230, 0.18) 1px, transparent 1px);
  background-size: 8px 8px;
}

.receipt-roll {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--cream);
  border: 3px dashed var(--espresso);
  box-shadow: 0 18px 0 rgba(0, 0, 0, 0.18);
}

.receipt-roll::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 18px;
  background: linear-gradient(135deg, var(--cream) 25%, transparent 25%) 0 0 / 22px 18px,
              linear-gradient(225deg, var(--cream) 25%, transparent 25%) 0 0 / 22px 18px;
}

.line-items {
  margin: 2rem 0;
  font-family: "Cutive Mono", monospace;
  color: var(--warm-brown);
}

.line-items p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--caramel);
}

.line-items span { color: var(--espresso); }
.line-items em { font-style: normal; text-align: right; }

.receipt-total {
  margin: 0;
  padding-top: 1rem;
  border-top: 3px solid var(--espresso);
  font-family: "Cutive Mono", monospace;
  font-weight: 700;
  color: var(--terracotta);
}

@keyframes heroPop {
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 760px) {
  .scattered { opacity: 0.55; }
  .coin-two, .tag-one { display: none; }
  .hero-bubble { box-shadow: 9px 9px 0 var(--espresso); }
  .artifact-card, .type-card { min-height: 280px; }
  .coin-card { border-radius: 22px; aspect-ratio: auto; }
  .line-items p { display: block; }
  .line-items em { display: block; text-align: left; margin-top: 0.25rem; }
}
