/* ============ MemeMuffin ============ */
:root {
  --y: #FFD400;
  --y2: #E6A800;
  --k: #0A0A0A;
  --k2: #141414;
  --k3: #1C1C1C;
  --line: #2A2A2A;
  --w: #F7F3E8;
  --soft: #D8D3C6;
  --mute: #9A968C;
  --display: "Bungee", "Arial Black", system-ui, sans-serif;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background-color: var(--k);
  background-image:
    linear-gradient(var(--k2) 1px, transparent 1px),
    linear-gradient(90deg, var(--k2) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--w);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--y); color: var(--k); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; }
.brand b { color: var(--y); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--y); color: var(--k);
  font-family: var(--display); font-size: 18px; letter-spacing: .03em;
  padding: 16px 28px; border: 0; border-radius: 16px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 var(--y2);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 8px 0 var(--y2); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--y2); }
.btn:focus-visible, .muffin-btn:focus-visible, a:focus-visible { outline: 3px solid var(--y); outline-offset: 4px; }
.btn-sm { font-size: 14px; padding: 10px 18px; border-radius: 12px; box-shadow: 0 4px 0 var(--y2); }
.btn-sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--y2); }
.btn-ghost { background: transparent; color: var(--y); box-shadow: inset 0 0 0 2px var(--y); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--y); background: rgba(255, 212, 0, .08); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--y); transform: translateY(2px); }

.kicker { font-family: var(--pixel); font-size: 11px; color: var(--y); letter-spacing: .12em; line-height: 1.8; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--k2); color: var(--soft); font-size: 15px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 0 rgba(255, 212, 0, .6); animation: pulse 2s infinite; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); padding: 48px 0 72px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(60px, 10vw, 136px); line-height: .9; margin: 22px 0 0; letter-spacing: -.01em; }
.hero h1 .hl { color: var(--y); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--soft); max-width: 30ch; margin: 26px 0 36px; }
.lead strong { color: var(--w); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 540px; justify-self: center; }
.blob {
  position: absolute; inset: 9%;
  background: var(--y);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  animation: morph 9s ease-in-out infinite;
}
.ring { position: absolute; inset: 1%; border: 2px dashed rgba(255, 212, 0, .45); border-radius: 50%; animation: spin 40s linear infinite; }
.spark { position: absolute; color: var(--y); font-family: var(--pixel); font-size: 18px; animation: twinkle 2.4s ease-in-out infinite; pointer-events: none; }
.spark.s1 { top: 4%; left: 12%; }
.spark.s2 { top: 16%; right: 2%; animation-delay: .8s; font-size: 12px; }
.spark.s3 { bottom: 8%; left: 2%; animation-delay: 1.6s; font-size: 14px; }

.muffin-btn { position: relative; z-index: 2; width: 74%; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: bob 3.2s ease-in-out infinite; border-radius: 50%; }
.muffin-btn svg { width: 100%; height: auto; overflow: visible; }
.muffin-btn.squish svg { animation: squish .32s ease; }
.shades { transform: translateY(-190px); opacity: 0; transition: transform .9s cubic-bezier(.25, 1.35, .5, 1), opacity .15s; }
.cool .shades { transform: none; opacity: 1; }

.hud {
  position: absolute; top: 2%; right: 0; z-index: 3;
  font-family: var(--pixel); font-size: 11px; color: var(--soft);
  background: var(--k); border: 2px solid var(--y); border-radius: 12px;
  padding: 10px 12px; display: flex; gap: 10px; align-items: center;
}
.hud b { color: var(--y); font-weight: 400; }
.hint { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--pixel); font-size: 9px; color: var(--mute); letter-spacing: .1em; white-space: nowrap; }
.deal { position: absolute; bottom: 7%; left: 50%; z-index: 3; transform: translateX(-50%) scale(.6); opacity: 0; font-family: var(--pixel); font-size: 12px; color: var(--y); background: var(--k); padding: 10px 14px; border-radius: 10px; white-space: nowrap; transition: .35s cubic-bezier(.25, 1.5, .5, 1); }
.cool ~ .deal, .deal.on { opacity: 1; transform: translateX(-50%) scale(1); }
.pop { position: absolute; z-index: 4; font-family: var(--pixel); font-size: 16px; color: var(--k); pointer-events: none; animation: pop .8s ease-out forwards; text-shadow: 2px 2px 0 var(--y); }

/* ---------- Marquee ---------- */
.marquee-zone { overflow: hidden; padding: 30px 0; }
.marquee { background: var(--y); color: var(--k); transform: rotate(-2deg); margin: 0 -40px; padding: 18px 0; border-top: 4px solid var(--k); border-bottom: 4px solid var(--k); box-shadow: 0 0 0 2px var(--y); }
.track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.track span { font-family: var(--display); font-size: clamp(22px, 3vw, 32px); white-space: nowrap; padding-right: 24px; }
.track i { font-style: normal; display: inline-block; margin: 0 18px; }

/* ---------- Year ---------- */
.year { text-align: center; padding: 110px 0 120px; }
.big { font-family: var(--display); font-size: clamp(64px, 24vw, 340px); line-height: .82; color: transparent; -webkit-text-stroke: 3px var(--y); margin: 18px 0 8px; user-select: none; }
.year h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.4vw, 46px); line-height: 1.1; }
.year h2 span { color: var(--y); }
.countdown { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.cd { background: var(--k2); border: 2px solid var(--line); border-radius: 18px; padding: 18px 8px 16px; min-width: 92px; }
.cd .n { font-family: var(--display); font-size: clamp(32px, 5vw, 44px); color: var(--y); line-height: 1; font-variant-numeric: tabular-nums; }
.cd .l { font-family: var(--pixel); font-size: 9px; color: var(--mute); margin-top: 10px; letter-spacing: .1em; }
.unlocked { font-family: var(--pixel); font-size: 13px; color: var(--k); background: var(--y); padding: 16px 22px; border-radius: 14px; line-height: 1.7; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 120px; }
.card { background: var(--k2); border: 1px solid var(--line); border-radius: 26px; padding: 34px 30px 36px; transition: transform .25s ease, border-color .25s; }
.card:hover { transform: translateY(-6px) rotate(-.5deg); border-color: var(--y); }
.icon { width: 64px; height: 64px; border-radius: 18px; background: var(--y); display: grid; place-items: center; }
.icon svg { width: 34px; height: 34px; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 38px; margin: 24px 0 4px; }
.card p { color: var(--mute); }

/* ---------- Oven ---------- */
.oven { padding-bottom: 130px; }
.oven-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.oven h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 68px); line-height: 1; margin-top: 14px; }
.carts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cart { position: relative; background: var(--y); color: var(--k); border-radius: 22px 22px 10px 10px; padding: 34px 18px 18px; transition: transform .3s cubic-bezier(.25, 1.5, .5, 1); }
.cart::before { content: ""; position: absolute; top: 12px; left: 22%; right: 22%; height: 8px; background: repeating-linear-gradient(90deg, var(--k) 0 6px, transparent 6px 12px); border-radius: 2px; opacity: .85; }
.cart:hover { transform: translateY(-8px) rotate(-1.5deg); }
.cart:nth-child(2):hover { transform: translateY(-8px) rotate(1.5deg); }
.label { background: var(--k); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--y); }
.label svg { width: 38%; height: auto; animation: wobble 3s ease-in-out infinite; }
.label span { font-family: var(--display); font-size: clamp(18px, 3vw, 30px); letter-spacing: .1em; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-family: var(--pixel); font-size: 10px; letter-spacing: .05em; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--k); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 30px; padding-bottom: 34px; }
.foot .brand { font-size: 16px; }
.foot .brand img { width: 30px; height: 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot nav a { color: var(--soft); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--y); }
.foot small { color: var(--mute); font-size: 13px; width: 100%; }

/* ---------- Contact ---------- */
.contact { min-height: calc(100vh - 72px - 130px); min-height: calc(100svh - 72px - 130px); display: grid; place-items: center; text-align: center; padding: 60px 0 80px; }
.contact .mini { width: 150px; margin: 0 auto 28px; animation: bob 3.2s ease-in-out infinite; }
.contact h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 8.5vw, 104px); line-height: .95; margin: 18px 0 18px; }
.contact h1 span { color: var(--y); }
.contact p.sub { color: var(--soft); font-size: clamp(18px, 2vw, 21px); margin-bottom: 38px; }
.mail { font-size: clamp(17px, 3.6vw, 30px); padding: 22px 30px; border-radius: 20px; word-break: break-all; text-transform: lowercase; letter-spacing: .01em; }
.mail-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.toast { display: block; margin-top: 22px; font-family: var(--pixel); font-size: 10px; color: var(--y); min-height: 14px; letter-spacing: .1em; }

/* ---------- Legal ---------- */
.legal { width: 100%; max-width: 780px; margin: 0 auto; padding: 64px 20px 110px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 7vw, 76px); line-height: .98; margin: 16px 0 14px; }
.updated { color: var(--mute); font-size: 15px; }
.tldr { background: var(--y); color: var(--k); border-radius: 22px; padding: 26px 28px 24px; margin: 36px 0 40px; }
.tldr h2 { font-family: var(--pixel); font-size: 12px; letter-spacing: .1em; margin-bottom: 14px; }
.tldr ul { list-style: none; display: grid; gap: 8px; }
.legal .tldr li { color: var(--k); padding-left: 26px; position: relative; font-weight: 500; }
.tldr li::before { content: "▸"; position: absolute; left: 4px; }
.toc { background: var(--k2); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; margin-bottom: 20px; }
.toc p { font-family: var(--pixel); font-size: 10px; color: var(--y); margin-bottom: 12px; letter-spacing: .1em; }
.toc ol { columns: 2; column-gap: 28px; padding-left: 20px; color: var(--mute); }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--y); }
.legal section { scroll-margin-top: 90px; }
.legal h2.s { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; margin: 56px 0 16px; display: flex; gap: 14px; align-items: baseline; }
.legal h2.s em { font-style: normal; font-family: var(--pixel); font-size: 11px; color: var(--k); background: var(--y); padding: 6px 8px; border-radius: 8px; transform: translateY(-4px); flex-shrink: 0; }
.legal h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; color: var(--w); }
.legal p, .legal li { color: var(--soft); }
.legal p + p { margin-top: 12px; }
.legal ul.l, .legal ol.l { padding-left: 22px; margin: 10px 0 12px; display: grid; gap: 7px; }
.legal ul.l li::marker { color: var(--y); }
.legal a { color: var(--y); text-underline-offset: 3px; }
.legal strong { color: var(--w); }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.legal th { text-align: left; font-family: var(--pixel); font-size: 9px; letter-spacing: .1em; color: var(--y); background: var(--k3); padding: 14px 16px; }
.legal td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--soft); }
.legal td:first-child { color: var(--w); font-weight: 600; white-space: nowrap; }
.note { background: var(--k2); border-left: 4px solid var(--y); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 16px 0; }

/* ---------- Animations ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes squish { 0% { transform: scale(1, 1); } 35% { transform: scale(1.12, .86); } 70% { transform: scale(.94, 1.08); } 100% { transform: scale(1, 1); } }
@keyframes morph { 0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; } 50% { border-radius: 56% 44% 40% 60% / 58% 54% 46% 42%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 212, 0, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 212, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -14px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 10px; padding-top: 24px; min-height: 0; }
  .hero-art { order: -1; max-width: 400px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .hero-art { max-width: 340px; }
  .hud { font-size: 9px; padding: 8px 10px; }
  .year { padding: 80px 0 90px; }
  .big { -webkit-text-stroke-width: 2px; }
  .cd { min-width: 72px; padding: 14px 6px 12px; border-radius: 14px; }
  .countdown { gap: 8px; }
  .carts { gap: 10px; }
  .cart { padding: 26px 8px 10px; border-radius: 16px 16px 8px 8px; }
  .cart::before { top: 9px; height: 6px; }
  .label { border-radius: 10px; gap: 8px; }
  .cart-foot { font-size: 7px; margin-top: 10px; }
  .card { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: center; padding: 22px; }
  .icon { grid-row: span 2; }
  .card h3 { font-size: 28px; margin: 0; line-height: 1.1; }
  .card p { grid-column: 2; }
  .legal { padding: 44px 16px 90px; }
  .toc ol { columns: 1; }
  .tldr { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
