:root {
  --bg: #2b1150;
  --panel: #3a1c6e;
  --panel2: #2c1560;
  --accent: #ff4d94;
  --accent2: #ffd15c;
  --good: #4ade80;
  --bad: #ff6b6b;
  --text: #fdf5ff;
  --radius-sm: 14px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 999px;
  --shadow-1: 0 2px 6px rgba(0,0,0,.28);
  --shadow-2: 0 8px 22px rgba(0,0,0,.35);
  --shadow-3: 0 24px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; }

html, body {
  margin: 0;
  height: 100%;
  background: radial-gradient(circle at 50% -10%, #5a2aa0 0%, var(--bg) 65%);
  color: var(--text);
  font-family: "Pretendard", -apple-system, "Malgun Gothic", sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
}

#app {
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 12px) 12px env(safe-area-inset-bottom, 12px);
  gap: 10px;
}

#hud {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #47248c, var(--panel) 72%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.16);
}
#modeLabel { font-weight: 800; font-size: 12px; color: var(--accent2); letter-spacing: .14em; text-shadow: 0 1px 0 rgba(0,0,0,.4), 0 0 16px rgba(255,209,92,.35); }
#statWrap, #scoreWrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#statWrap { flex-direction: row; gap: 6px; justify-self: start; font-size: 18px; }
#statValue { font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(0,0,0,.45); }
#scoreCount { font-weight: 900; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(0,0,0,.45); }
.statLabel { font-size: 9px; opacity: .55; font-weight: 800; letter-spacing: .16em; }
#statWrap.low-time #statValue { color: var(--bad); }

#boardWrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#board {
  --n: 8;
  position: relative;
  width: min(94vw, 460px, calc(70vh * 0.8));
  aspect-ratio: 8 / 10;
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(160deg, #241047, #170a30);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.4), 0 34px 70px rgba(0,0,0,.3);
  padding: 6px;
}

#fxLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cell {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* transform instead of top/left: GPU-composited, doesn't force layout on
     every frame -- with 80 cells animating at once during a big cascade,
     top/left transitions were re-running layout constantly and that (not
     just the particle effects) was a real chunk of the stutter. */
  transition: transform .14s cubic-bezier(.34,1.4,.64,1);
  will-change: transform;
  touch-action: none;
}

.candy {
  width: 94%;
  height: 94%;
  position: relative;
  cursor: pointer;
  transition: transform .12s ease;
}
.candy.selected { animation: selectBounce .5s cubic-bezier(.34,1.56,.64,1) infinite; filter: drop-shadow(0 0 10px rgba(255,255,255,.9)) drop-shadow(0 0 6px rgba(255,77,148,.55)); }
@keyframes selectBounce {
  0%, 100% { transform: scale(1.1); }
  50% { transform: scale(1.22); }
}
.candy.popping { animation: pop .16s ease forwards; }
.candy.spawning { animation: spawnIn .34s cubic-bezier(.34,1.56,.64,1); }
.candy.shake { animation: shake .18s ease; }

@keyframes pop {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
@keyframes spawnIn {
  0% { transform: scale(.3); opacity: 0; }
  55% { transform: scale(1.22); opacity: 1; }
  75% { transform: scale(.9); }
  90% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-14%); }
  75% { transform: translateX(14%); }
}

.gem {
  position: absolute;
  inset: 2%;
  border-radius: 26%;
  box-shadow: inset 0 -5px 7px rgba(0,0,0,.3), inset 0 3px 4px rgba(255,255,255,.5), 0 2px 5px rgba(0,0,0,.35);
}
/* food icons (rendered inside .gem for regular candies) sit on a 70px design
   grid and get scaled down to fit the actual cell via --icon-scale, which
   game.js measures from the live board size on load/resize. */
.food-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  transform: scale(var(--icon-scale, 0.55));
  transform-origin: center;
}
.gem:has(.food-icon) { background: none; box-shadow: none; }
.special-stripeH .food-icon, .special-stripeV .food-icon,
.special-wrapped .food-icon, .special-bomb .food-icon { display: none; }

.c0 .gem { background: radial-gradient(130% 90% at 50% 118%, rgba(0,0,0,.18), transparent 52%), radial-gradient(circle at 32% 28%, #ff9bb8, #ff2d6b 70%); }
.c1 .gem { background: radial-gradient(130% 90% at 50% 118%, rgba(0,0,0,.18), transparent 52%), radial-gradient(circle at 32% 28%, #ffc27a, #ff8a1e 70%); }
.c2 .gem { background: radial-gradient(130% 90% at 50% 118%, rgba(0,0,0,.18), transparent 52%), radial-gradient(circle at 32% 28%, #fff2a0, #ffcf1f 70%); }
.c3 .gem { background: radial-gradient(130% 90% at 50% 118%, rgba(0,0,0,.18), transparent 52%), radial-gradient(circle at 32% 28%, #b6ffbf, #23c964 70%); }
.c4 .gem { background: radial-gradient(130% 90% at 50% 118%, rgba(0,0,0,.18), transparent 52%), radial-gradient(circle at 32% 28%, #a9e0ff, #1e9aff 70%); }
.c5 .gem { background: radial-gradient(130% 90% at 50% 118%, rgba(0,0,0,.18), transparent 52%), radial-gradient(circle at 32% 28%, #e5b8ff, #a534e0 70%); }

.special-stripeH .gem, .special-stripeV .gem {
  box-shadow: inset 0 -4px 6px rgba(0,0,0,.28), inset 0 3px 4px rgba(255,255,255,.6), 0 0 10px rgba(255,255,255,.55);
}
.special-stripeH .gem::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.55) 0 14%, transparent 14% 30%);
}
.special-stripeV .gem::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 14%, transparent 14% 30%);
}
.special-wrapped .gem {
  box-shadow: inset 0 -4px 6px rgba(0,0,0,.3), inset 0 3px 4px rgba(255,255,255,.5), 0 0 0 3px rgba(255,255,255,.35), 0 0 0 6px rgba(255,255,255,.16);
}
.special-bomb .gem {
  background: conic-gradient(from 0deg, #ff2d6b, #ff8a1e, #ffcf1f, #23c964, #1e9aff, #a534e0, #ff2d6b);
  animation: spin 2.4s linear infinite;
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

.combo-pop {
  position: absolute;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.45), 0 0 12px rgba(255,77,148,.65), 0 0 24px rgba(255,209,92,.4);
  animation: comboFloat .45s ease forwards;
  pointer-events: none;
  white-space: nowrap;
}
@keyframes comboFloat {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  20% { transform: translateY(-6px) scale(1.1); opacity: 1; }
  100% { transform: translateY(-42px) scale(1); opacity: 0; }
}

.blast {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
  animation: blastAnim .22s ease forwards;
  pointer-events: none;
}
@keyframes blastAnim {
  0% { transform: scale(.2); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

#modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 24, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}
#modal.open { display: flex; }
.modal-card {
  background: linear-gradient(180deg, #47248c, var(--panel) 66%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.16);
}
.modal-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 10%, #ffd9ec);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.4));
}
.modal-card p { margin: 0 0 20px; font-size: 14px; letter-spacing: .01em; line-height: 1.55; white-space: pre-line; opacity: .88; }
.modal-card button {
  border: none;
  background: linear-gradient(135deg, var(--accent), #a534e0);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .02em;
  padding: 13px 32px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -3px 6px rgba(0,0,0,.22), var(--shadow-2);
  transition: transform .12s ease, filter .12s ease;
}
.modal-card button:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); }
.modal-card button:active { transform: translateY(0) scale(.98); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 24, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}
.overlay.open { display: flex; }
.overlay .modal-card p { opacity: .75; margin-bottom: 22px; }
.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, #4a2590, var(--panel2));
  color: #fff;
  padding: 15px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.mode-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.18); filter: brightness(1.06); }
.mode-btn:active { transform: translateY(0) scale(.99); }
.mode-btn:last-child { margin-bottom: 0; }
.mode-btn strong { font-size: 16px; letter-spacing: .01em; }
.mode-btn span { font-size: 12px; opacity: .78; line-height: 1.45; font-weight: 400; letter-spacing: .01em; }
/* ---- shrimp v2 ---- */
.food-shrimp {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,.4), transparent 58%),
    radial-gradient(130% 90% at 50% 115%, rgba(0,0,0,.22), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px),
    linear-gradient(to bottom, #ff6b6b, #ff2d2d);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.16),
    inset 0 3px 5px rgba(255,255,255,.26),
    inset 0 -6px 10px rgba(0,0,0,.22),
    0 5px 0 rgba(0,0,0,.28),
    0 12px 18px rgba(0,0,0,.32);
  overflow: hidden;
}

.food-shrimp::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 16px;
  width: 46px;
  height: 34px;
  border-radius: 55% 45% 40% 55% / 50% 55% 45% 50%;
  background:
    radial-gradient(circle at 12px 10px, #fff 0 2.2px, transparent 2.6px),
    radial-gradient(circle at 25px 10px, #fff 0 2.2px, transparent 2.6px),
    radial-gradient(circle at 13px 13px, #4a1e1e 0 5px, transparent 5.4px),
    radial-gradient(circle at 26px 13px, #4a1e1e 0 5px, transparent 5.4px),
    radial-gradient(circle at 8px 24px, #ffb9b9 0 3.6px, transparent 4px),
    radial-gradient(circle at 33px 24px, #ffb9b9 0 3.6px, transparent 4px),
    #fff;
  box-shadow: inset 0 0 0 3px rgba(74, 30, 30, 0.28);
  transform: rotate(12deg);
}

.food-shrimp span {
  position: absolute;
  right: 8px;
  top: 31px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px rgba(74, 30, 30, 0.28);
}

.food-shrimp::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 29px;
  width: 17px;
  height: 16px;
  background: #fff;
  clip-path: polygon(50% 0%, 97% 45%, 78% 100%, 22% 100%, 3% 45%);
  transform: rotate(24deg);
}

/* ---- sushi v2 ---- */
/* ---- sushi ---- */
.food-sushi {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,.4), transparent 58%),
    radial-gradient(130% 90% at 50% 115%, rgba(0,0,0,.22), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #ff8a1e 0%, #e8630c 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.16),
    inset 0 3px 5px rgba(255,255,255,.26),
    inset 0 -6px 10px rgba(0,0,0,.22),
    0 5px 0 rgba(0,0,0,.28),
    0 12px 18px rgba(0,0,0,.32);
}

.food-sushi::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  width: 42px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fff4e0 60%, #ffe9c9 100%);
  box-shadow:
    0 0 0 2px #7a2e08,
    inset 0 3px 3px rgba(255, 255, 255, 0.95),
    inset 0 -4px 5px rgba(200, 160, 100, 0.4),
    0 3px 0 rgba(120, 40, 5, 0.6);
}

.food-sushi::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 48px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background:
    radial-gradient(ellipse at 30% 24%, rgba(255, 255, 255, 0.95) 0 5px, rgba(255, 255, 255, 0) 8px),
    linear-gradient(180deg, #ffe0cf 0%, #ffb390 55%, #ff8a63 100%);
  box-shadow:
    0 0 0 2px #7a2e08,
    inset 0 4px 4px rgba(255, 255, 255, 0.55),
    inset 0 -4px 5px rgba(200, 80, 30, 0.4),
    0 3px 0 rgba(120, 40, 5, 0.5);
}

.food-sushi .eye {
  position: absolute;
  left: 22px;
  top: 36px;
  z-index: 1;
  width: 26px;
  height: 9px;
  background:
    radial-gradient(circle at 8px 3px, #fff 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 8px 5px, #3a1606 0 3.4px, transparent 4px),
    radial-gradient(circle at 24px 3px, #fff 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 24px 5px, #3a1606 0 3.4px, transparent 4px);
}

/* ---- galbi v2 ---- */
.food-galbi{
  position:relative;
  width:70px;
  height:70px;
  border-radius:var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% -10%,rgba(255,255,255,.4),transparent 58%),
    radial-gradient(130% 90% at 50% 115%,rgba(0,0,0,.22),transparent 55%),
    repeating-linear-gradient(45deg,rgba(255,255,255,.04) 0 2px,transparent 2px 5px),
    linear-gradient(180deg,#ffcf1f,#e0a800);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.16),
    inset 0 3px 5px rgba(255,255,255,.26),
    inset 0 -6px 10px rgba(0,0,0,.22),
    0 5px 0 rgba(0,0,0,.28),
    0 12px 18px rgba(0,0,0,.32);
}
.food-galbi::before{
  content:"";
  position:absolute;
  left:9px;
  top:8px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff;
  box-shadow:
    0 14px 0 0 #fff,
    38px 0 0 0 #fff,
    38px 14px 0 0 #fff;
}
.food-galbi::after{
  content:"";
  position:absolute;
  left:9px;
  top:16px;
  width:52px;
  height:12px;
  border-radius:6px;
  background:#fff;
}
.food-galbi > span{
  position:absolute;
  left:22px;
  top:38px;
  width:12px;
  height:14px;
  border-radius:50%;
  background:#40260f;
  box-shadow:
    inset 2px 4px 0 0 #fff,
    28px 0 0 0 #40260f,
    30px 4px 0 0 #fff,
    3px 12px 0 -3px #ff9bb0,
    31px 12px 0 -3px #ff9bb0,
    20px 19px 0 -4px #40260f;
}

/* ---- fish v2 ---- */
/* ---- grilled fish ---- */
.food-fish {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,.4), transparent 58%),
    radial-gradient(130% 90% at 50% 115%, rgba(0,0,0,.22), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #23c964 0%, #0f9c48 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.16),
    inset 0 3px 5px rgba(255,255,255,.26),
    inset 0 -6px 10px rgba(0,0,0,.22),
    0 5px 0 rgba(0,0,0,.28),
    0 12px 18px rgba(0,0,0,.32);
}

.food-fish::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 21px;
  width: 50px;
  height: 27px;
  border-radius: 50%;
  transform: rotate(-6deg);
  background:
    radial-gradient(circle at 24% 30%, rgba(255,255,255,.95) 0 3.2px, transparent 4.5px),
    repeating-linear-gradient(118deg, rgba(178,102,36,.38) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(62deg, rgba(178,102,36,.32) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #ffffff 0%, #f7f0e4 55%, #ece1d1 100%);
  box-shadow: 0 3px 0 rgba(0,70,28,.45), 0 6px 8px rgba(0,45,18,.3);
}

.food-fish::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 25px;
  width: 14px;
  height: 18px;
  transform: rotate(-8deg);
  background: linear-gradient(180deg, #ffffff 0%, #efe5d5 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  filter: drop-shadow(0 2px 0 rgba(0,70,28,.4));
}

.food-fish span {
  position: absolute;
  left: 28px;
  top: 23px;
  width: 32px;
  height: 16px;
  border-radius: 50%;
  transform: rotate(-6deg);
  background:
    radial-gradient(circle at 26% 38%, #fff 0 2px, transparent 2.7px),
    radial-gradient(circle at 74% 38%, #fff 0 2px, transparent 2.7px),
    radial-gradient(circle at 26% 60%, #24150d 0 4.8px, transparent 5.6px),
    radial-gradient(circle at 74% 60%, #24150d 0 4.8px, transparent 5.6px),
    #ffffff;
}

/* ---- donut v2 ---- */
.food-donut {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,.4), transparent 58%),
    radial-gradient(130% 90% at 50% 115%, rgba(0,0,0,.22), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #1e9aff 0%, #0c6fd6 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.16),
    inset 0 3px 5px rgba(255,255,255,.26),
    inset 0 -6px 10px rgba(0,0,0,.22),
    0 5px 0 rgba(0,0,0,.28),
    0 12px 18px rgba(0,0,0,.32);
}

.food-donut::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 11px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, .15),
    inset 0 -8px 10px rgba(255, 255, 255, .35);
}

.food-donut::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 2px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow:
    -9px -14px 0 3px #332b42,
    -7px -16px 0 1.5px #fff,
    9px -14px 0 3px #332b42,
    11px -16px 0 1.5px #fff;
}

.food-donut span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 2px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow:
    -16px 7px 0 2px #ff86ad,
    -11px 13px 0 2px #ffd94d,
    -4px 19px 0 2px #7ee081,
    6px 18px 0 2px #c49bff,
    13px 12px 0 2px #ff86ad,
    18px 3px 0 2px #ffd94d,
    17px -7px 0 2px #7ee081,
    -19px -2px 0 2px #c49bff;
}

/* ---- macaron v2 ---- */
.food-macaron{
  position:relative;
  width:70px;height:70px;
  border-radius:var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% -10%,rgba(255,255,255,.4),transparent 58%),
    radial-gradient(130% 90% at 50% 115%,rgba(0,0,0,.22),transparent 55%),
    repeating-linear-gradient(45deg,rgba(255,255,255,.04) 0 2px,transparent 2px 5px),
    linear-gradient(180deg,#a534e0,#7a1fb0);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.16),
    inset 0 3px 5px rgba(255,255,255,.26),
    inset 0 -6px 10px rgba(0,0,0,.22),
    0 5px 0 rgba(0,0,0,.28),
    0 12px 18px rgba(0,0,0,.32);
}
.food-macaron::before{
  content:'';
  position:absolute;top:11px;left:50%;transform:translateX(-50%);
  width:46px;height:28px;
  border-radius:23px 23px 9px 9px;
  background:
    radial-gradient(circle 1.4px at 40% 44%,#fff 0 100%) no-repeat,
    radial-gradient(circle 1.4px at 64% 44%,#fff 0 100%) no-repeat,
    radial-gradient(circle 3.2px at 38% 54%,#4a1e6e 0 100%) no-repeat,
    radial-gradient(circle 3.2px at 62% 54%,#4a1e6e 0 100%) no-repeat,
    radial-gradient(circle 12px at 30% 20%,rgba(255,255,255,.95) 0,rgba(255,255,255,0) 72%) no-repeat,
    linear-gradient(180deg,#fff,#f0e2ff);
  box-shadow:0 2px 0 rgba(0,0,0,.18);
}
.food-macaron::after{
  content:'';
  position:absolute;top:37px;left:50%;transform:translateX(-50%);
  width:46px;height:22px;
  border-radius:7px 7px 22px 22px;
  background:
    linear-gradient(#f4e8ff,#e6ccff) 0 0/100% 10px no-repeat,
    linear-gradient(#fff,#f0e2ff) 0 10px/100% 12px no-repeat;
  box-shadow:0 2px 0 rgba(0,0,0,.18);
}

