:root {
  --purple: #9500e1;
  --purple-dark: #620094;
  --panel: #29367f;
  --panel-beer: #b8203a;
  --panel-rtd: #2457d6;
  --panel-wine: #ad1457;
  --panel-spirits: #007f8b;
  --panel-alcohol-free: #168b50;
  --panel-mixers: #e85d04;
  --panel-other: #6d3bd1;
  --panel-top-deals: radial-gradient(circle at 50% 32%, #ffef5a 0%, #f2bd22 45%, #b87908 100%);
  --ink: #24152a;
  --muted: #736a77;
  --line: #e8e3eb;
  --orange: #f97316;
  --yellow: #facc15;
  --green: #22a447;
  --soft: #f6f3f7;
}

* { box-sizing: border-box; }
html, body { width: 100%; margin: 0; min-height: 100%; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif; color: var(--ink); }
button, input, a { -webkit-tap-highlight-color: transparent; }
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #b92cff 0%, var(--purple) 44%, var(--purple-dark) 100%);
  padding: 0;
}

.device {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 18px 60px rgba(35, 20, 42, .12);
}
.device::before,
.device::after { display: none; }
.screen {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(180deg, #b92cff 0%, var(--purple) 44%, var(--purple-dark) 100%);
  display: flex;
  flex-direction: column;
}
.splash-screen {
  position: absolute;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: #fff;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: scale(1);
  animation: splashSnapBackground 1.18s ease forwards;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.splash-screen.splash-complete {
  opacity: 0;
  visibility: hidden;
  transform: scale(1);
  pointer-events: none;
}
.splash-stage {
  position: relative;
  width: 320px;
  height: 320px;
  opacity: 0;
  transform: translateY(4px) scale(.985);
  animation: splashCanvasIn .18s ease forwards;
}
.dxf-logo-build {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 205px;
  height: 205px;
  overflow: visible;
  transform: translate3d(-50%, -50%, 0) scale(1);
}
.dxf-piece {
  fill: #9500e1;
  opacity: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    dxfPieceJoin .92s cubic-bezier(.16, .82, .16, 1) .08s both,
    dxfPieceInvert .14s ease 1.1s forwards;
}
.dxf-piece-top {
  --piece-gap-x: 14px;
  --piece-gap-y: -22px;
}
.dxf-piece-right {
  --piece-gap-x: -22px;
  --piece-gap-y: -14px;
}
.dxf-piece-bottom {
  --piece-gap-x: -14px;
  --piece-gap-y: 22px;
}
.dxf-piece-left {
  --piece-gap-x: 22px;
  --piece-gap-y: 14px;
}
@keyframes splashSnapBackground {
  0%, 88% {
    background: #fff;
  }
  100% {
    background: var(--purple);
  }
}
@keyframes splashCanvasIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes dxfPieceJoin {
  0% {
    transform: translate3d(var(--piece-gap-x), var(--piece-gap-y), 0) scale(.98);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes dxfPieceInvert {
  to {
    fill: #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash-screen {
    animation: none;
    background: var(--purple);
    transition: opacity .18s ease, visibility .18s ease;
  }
  .splash-stage {
    animation: none;
  }
  .dxf-logo-build,
  .dxf-piece {
    animation: none;
  }
  .dxf-piece {
    fill: #fff;
  }
}
.app-header { position: relative; flex: 0 0 auto; min-height: 84px; background: #fff; padding: max(10px, env(safe-area-inset-top)) 18px 8px; box-shadow: 0 1px 0 rgba(98, 0, 148, .08); }
.logo-viewport { width: 230px; height: 62px; display: grid; place-items: center; margin: 0 auto; overflow: hidden; }
.logo { display: block; width: 224px; height: auto; }
.location-button { position: absolute; z-index: 32; left: 16px; top: max(18px, calc(env(safe-area-inset-top) + 10px)); width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; appearance: none; background: var(--purple-dark); color: #fff; box-shadow: 0 3px 10px rgba(35,20,42,.12); }
.location-button img { width: 30px; height: 30px; display: block; object-fit: contain; }
.location-button:active { background: var(--purple); }
.location-button:focus-visible, .location-window button:focus-visible, .category-tab:focus-visible, .store-link:focus-visible { outline: 3px solid #d9a3f5; outline-offset: 2px; }
.age-gate { position: absolute; z-index: 130; inset: 0; display: grid; place-items: center; padding: 22px; background-color: rgba(98, 0, 148, .68); background-image: repeating-linear-gradient(120deg, rgba(190, 80, 255, .62) 0 12px, transparent 12px 36px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, visibility .16s ease; }
.age-gate.open { opacity: 1; visibility: visible; pointer-events: auto; }
.age-card { width: min(100%, 340px); display: grid; gap: 10px; padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(35, 20, 42, .36); text-align: center; }
.age-card img { width: 190px; margin: 0 auto 4px; }
.age-card span { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.age-card strong { color: var(--purple-dark); font-size: 24px; line-height: 1.05; }
.age-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.age-card p a { color: var(--purple-dark); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.age-card .age-terms { margin-top: 2px; color: #7b737f; font-size: 11px; }
.age-card .age-terms a { color: #7b737f; font-weight: 750; }
.age-card button { min-height: 40px; border: 0; border-radius: 8px; font-weight: 900; }
.age-primary { background: var(--purple-dark); color: #fff; }
.age-secondary { background: #f3edf8; color: var(--purple-dark); }
.age-card small { min-height: 14px; color: #9a1b1b; font-weight: 800; }
.location-backdrop { position: absolute; z-index: 34; inset: 0; background-color: rgba(98, 0, 148, .66); background-image: repeating-linear-gradient(120deg, rgba(190, 80, 255, .58) 0 12px, transparent 12px 36px); opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.location-backdrop.open { opacity: 1; pointer-events: auto; }
.location-window { position: absolute; z-index: 35; left: 10px; right: 10px; top: 92px; bottom: 10px; max-height: none; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 20px 48px rgba(35,20,42,.34); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .16s ease, transform .16s ease; }
.location-window.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.location-window-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.location-window-header span { display: none; }
.location-window-header strong { display: block; margin-top: 0; color: var(--purple-dark); font-size: 20px; font-weight: 900; line-height: 1; }
.location-window-header button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--purple-dark); color: #fff; font-size: 22px; line-height: 1; }
.location-window-header button[hidden] { display: none; }
.location-search { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.location-search span { font-size: 21px; }
.location-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.location-choice-actions { display: grid; gap: 8px; align-content: start; }
.use-location-button, .manual-location-button { min-height: 40px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 900; }
.use-location-button { background: var(--purple-dark); color: #fff; }
.manual-location-button { background: #f3edf8; color: var(--purple-dark); }
.use-location-button.inactive { background: #f3edf8; color: var(--purple-dark); }
.manual-location-button.inactive { background: #f3edf8; color: var(--purple-dark); }
.use-location-button.selected { background: var(--purple-dark); color: #fff; }
.manual-location-button.selected { background: var(--purple-dark); color: #fff; }
.use-location-button.locating { opacity: .72; pointer-events: none; }
.location-hero-map {
  min-height: 206px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(149, 0, 225, .16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(149, 0, 225, .13), transparent 48%),
    linear-gradient(180deg, #fbf7ff, #f3e9fb);
}
.location-hero-map img {
  width: min(54%, 150px);
  max-height: 188px;
  display: block;
  justify-self: center;
  align-self: center;
  margin: auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 8px 16px rgba(98, 0, 148, .14));
}
.location-window:has(.manual-location-fields:not(.is-hidden)) .location-hero-map {
  display: none;
}
.manual-location-fields { position: relative; min-height: 0; display: grid; grid-template-rows: auto auto minmax(260px, 1.3fr) minmax(116px, .7fr); gap: 9px; }
.manual-location-fields.is-hidden { display: none; }
.location-suggestions { position: absolute; z-index: 1200; left: 0; right: 0; top: 47px; display: none; max-height: min(230px, 42dvh); overflow: auto; border: 1px solid rgba(98, 0, 148, .22); border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(35,20,42,.22); }
.location-suggestions.open { display: grid; }
.location-suggestion { width: 100%; min-height: 42px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: center; padding: 9px 11px; border: 0; border-bottom: 1px solid #f0e8f6; background: #fff; color: var(--ink); text-align: left; font-weight: 850; }
.location-suggestion:last-child { border-bottom: 0; }
.location-suggestion:active { background: #f8efff; }
.location-suggestion-pin { width: 16px; height: 16px; border: 2px solid var(--purple-dark); border-radius: 50%; position: relative; }
.location-suggestion-pin::after { content: ""; position: absolute; width: 7px; height: 2px; right: -5px; bottom: -3px; border-radius: 999px; background: var(--purple-dark); transform: rotate(45deg); transform-origin: left center; }
.location-status { min-height: 14px; color: var(--muted); font-size: 10px; font-weight: 750; }
.location-map { position: relative; z-index: 1; min-height: 280px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #eee8f2; }
.location-map.loading::before { content: ""; position: absolute; inset: 0; z-index: 500; background: linear-gradient(135deg, #f8efff, #ead7f8 48%, #f8efff); background-size: 220% 220%; animation: locationLoadingSheen 1.2s ease-in-out infinite; }
.location-map.loading::after { content: "Loading map..."; position: absolute; z-index: 501; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 128px; padding: 10px 14px; border-radius: 8px; background: var(--purple-dark); color: #fff; box-shadow: 0 12px 26px rgba(35,20,42,.22); text-align: center; font-size: 12px; font-weight: 900; }
.location-options { position: relative; z-index: 3; min-height: 0; display: grid; align-content: start; gap: 7px; overflow: auto; padding: 6px 2px 0 0; background: #fff; }
.location-loading-state { align-self: start; min-height: 88px; background: #fff; color: var(--purple-dark); }
.location-option { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) minmax(58px, auto); gap: 8px; align-items: center; min-height: 56px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; }
.location-option.selected { border-color: var(--purple); background: #f5e8fd; }
.location-option.search-location-option { border-color: rgba(98, 0, 148, .32); background: #fbf5ff; }
.location-option b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.location-option small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.location-distance { display: block; margin-top: 3px; color: var(--purple-dark); font-size: 10px; font-weight: 900; line-height: 1.05; white-space: nowrap; }
.location-pin-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.location-area-pill { min-width: 58px; min-height: 22px; display: grid; place-items: center; padding: 0 7px; border-radius: 6px; background: var(--purple-dark); color: #fff; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.location-map-marker { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--purple); color: #fff; box-shadow: 0 4px 12px rgba(35,20,42,.28); font-size: 9px; font-weight: 900; }
.user-location-marker { width: 28px; height: 28px; background: #168b50; font-size: 8px; box-shadow: 0 0 0 5px rgba(22, 139, 80, .18), 0 4px 12px rgba(35,20,42,.28); }
.search-band { flex: 0 0 auto; background: transparent; padding: 8px 12px 6px; }
.search-box {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #fff;
  border-radius: 8px;
  color: var(--muted);
}
.search-box span { font-size: 23px; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; font: inherit; color: var(--ink); background: transparent; appearance: none; -webkit-appearance: none; }
.search-box input::-webkit-search-decoration,
.search-box input::-webkit-search-results-button,
.search-box input::-webkit-search-results-decoration { display: none; }
.search-box input::-webkit-search-cancel-button {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--purple-dark);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M5.2 3.8 10 8.6l4.8-4.8 1.4 1.4-4.8 4.8 4.8 4.8-1.4 1.4-4.8-4.8-4.8 4.8-1.4-1.4L8.6 10 3.8 5.2z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M5.2 3.8 10 8.6l4.8-4.8 1.4 1.4-4.8 4.8 4.8 4.8-1.4 1.4-4.8-4.8-4.8 4.8-1.4-1.4L8.6 10 3.8 5.2z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(98,0,148,.2); }
.category-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 6px 4px 4px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 7px;
  padding: 8px 12px;
  color: #fff;
  background: var(--purple-dark);
  font-size: 12px;
  font-weight: 700;
  transition: box-shadow .14s ease, border-color .14s ease;
}
.category-tab.panel-top-deals { background: var(--panel-top-deals); color: var(--ink); }
.category-tab.panel-beer { background: var(--panel-beer); }
.category-tab.panel-rtd { background: var(--panel-rtd); }
.category-tab.panel-wine { background: var(--panel-wine); }
.category-tab.panel-spirits { background: var(--panel-spirits); }
.category-tab.panel-alcohol-free { background: var(--panel-alcohol-free); }
.category-tab.panel-mixers { background: var(--panel-mixers); }
.category-tab.panel-other { background: var(--panel-other); }
.category-tab.active { border-color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 5px 14px rgba(35, 20, 42, .2); }
.store-controls { flex: 0 0 auto; min-width: 0; overflow: hidden; padding: 3px 12px 6px; background: transparent; border-bottom: 0; }
.store-controls-title { margin-bottom: 4px; color: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.closest-stores { width: 100%; display: grid; grid-template-columns: repeat(3, calc((100% - 12px) / 3)); gap: 6px; }
.closest-store { min-width: 0; min-height: 36px; display: flex; align-items: center; gap: 5px; padding: 4px 6px; border: 1px solid rgba(255,255,255,.75); border-radius: 7px; background: #fff; }
.closest-store.location-required-card { grid-column: 1 / -1; justify-content: center; border-color: rgba(98, 0, 148, .22); color: var(--purple-dark); }
.store-number { flex: 0 0 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--purple-dark); color: #fff; font-size: 8px; font-weight: 900; }
.closest-store-name { min-width: 0; font-size: 9px; line-height: 1.15; font-weight: 800; }
.closest-store-name em { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 6px; font-style: normal; font-weight: 900; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.closest-store.map-only { opacity: .72; }
.coverage-note { grid-column: 1 / -1; padding: 5px 7px; border: 1px solid rgba(255,255,255,.42); border-radius: 7px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.9); font-size: 8px; line-height: 1.25; font-weight: 750; }
.coverage-note.verified { background: rgba(34,164,71,.18); }

.product-list { flex: 1 1 auto; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable both-edges; background: transparent; padding: 0 9px 12px; }
.product-list { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.78) transparent; }
.product-list::-webkit-scrollbar { width: 6px; }
.product-list::-webkit-scrollbar-track { background: transparent; }
.product-list::-webkit-scrollbar-thumb { border: 1px solid rgba(98,0,148,.35); border-radius: 6px; background: rgba(255,255,255,.78); }
.product-list::-webkit-scrollbar-thumb:hover { background: #fff; }
.product-row {
  position: relative;
  width: 100%;
  min-height: 126px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  margin: 0 auto 8px;
  padding: 9px;
  border: 1px solid rgba(19,27,74,.36);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    inset 0 4px 10px rgba(18, 10, 45, .42),
    inset 0 -2px 5px rgba(255, 255, 255, .1),
    0 3px 8px rgba(30, 15, 70, .14);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.product-row.panel-beer { background: var(--panel-beer); }
.product-row.panel-rtd { background: var(--panel-rtd); }
.product-row.panel-wine { background: var(--panel-wine); }
.product-row.panel-spirits { background: var(--panel-spirits); }
.product-row.panel-alcohol-free { background: var(--panel-alcohol-free); }
.product-row.panel-mixers { background: var(--panel-mixers); }
.product-row.panel-other { background: var(--panel-other); }
.product-row:active { filter: brightness(.9); }
.product-row:focus-visible { outline: 3px solid #d9a3f5; outline-offset: -3px; }
.product-image { align-self: center; width: 74px; height: 92px; padding: 4px; object-fit: contain; border-radius: 6px; background: #fff; }
.product-image.image-missing { padding: 30px 7px; opacity: .42; }
.product-copy { min-width: 0; }
.product-title { margin: 0; color: #fff; font-size: 14px; line-height: 1.16; font-weight: 850; }
.product-meta { margin: 3px 0 6px; color: #e2e4ff; font-size: 9px; font-weight: 650; }
.price-grid { width: 100%; display: grid; grid-template-columns: repeat(3, calc((100% - 10px) / 3)); gap: 5px; overflow: hidden; }
.price-cell { min-width: 0; min-height: 42px; border: 1px solid rgba(255,255,255,.78); border-radius: 6px; padding: 3px 4px; display: flex; flex-direction: column; justify-content: center; gap: 1px; background: #fff; color: #20285d; }
.price-cell.cheapest { border-color: #16883b; background: #22a447; color: #fff; }
.price-cell.missing { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; opacity: .65; }
.price-store { overflow: hidden; width: 100%; font-size: 7px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.price-value { font-size: 12px; font-weight: 900; }
.price-date { overflow: hidden; width: 100%; font-size: 6px; font-weight: 800; opacity: .78; text-overflow: ellipsis; white-space: nowrap; }
.price-date:empty { display: none; }
.winner-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; margin-top: 5px; }
.winner-note { min-width: 0; color: #fff; font-size: 9px; font-weight: 750; }
.card-directions { min-height: 25px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 7px; background: var(--green); color: #fff; font-size: 8px; font-weight: 950; text-decoration: none; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 -4px 9px rgba(0,0,0,.14); }
.card-directions:focus-visible { outline: 3px solid #d9a3f5; outline-offset: 2px; }
.empty-state { padding: 50px 28px; text-align: center; color: #fff; }
.empty-state p { color: rgba(255,255,255,.78); }
.quiet-state { min-height: 280px; padding: 0; color: transparent; }
.location-required-state { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 280px; }
.location-required-state strong { font-size: 18px; line-height: 1.2; }
.location-required-state button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--purple-dark);
  font-weight: 900;
}
.loading-state strong { display: block; font-size: 18px; line-height: 1.2; }
.loading-state small { display: block; margin-top: 8px; color: rgba(255,255,255,.84); font-size: 12px; font-weight: 900; }
.loading-state p { display: flex; justify-content: center; gap: 8px; min-height: 18px; margin: 14px 0 0; }
.loading-state p span { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .38; animation: loadingDot 1s ease-in-out infinite; }
.loading-state p span:nth-child(2) { animation-delay: .16s; }
.loading-state p span:nth-child(3) { animation-delay: .32s; }
.loading-logo-spin {
  display: grid;
  place-items: center;
  width: min(36%, 104px);
  aspect-ratio: 1;
  margin: 18px auto 0;
}
.loading-logo-spin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 8px 14px rgba(20,10,32,.24));
  animation: plonkerLogoSpin 5.5s linear infinite;
}
@keyframes plonkerLogoSpin {
  to { transform: rotate(360deg); }
}
@keyframes loadingDot {
  0%, 80%, 100% { opacity: .34; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-5px); }
}
@keyframes locationLoadingSheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.toast { position: absolute; z-index: 40; left: 50%; bottom: 24px; max-width: calc(100% - 40px); padding: 9px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 750; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .16s ease, transform .16s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.sheet-backdrop { position: absolute; z-index: 15; inset: 0; background: rgba(22,12,26,.38); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.product-sheet { position: absolute; z-index: 16; left: 0; right: 0; bottom: 0; max-height: 75%; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 10px 18px 28px; transform: translateY(102%); transition: transform .2s ease; }
.product-sheet { scrollbar-width: thin; scrollbar-color: var(--purple) #eee9f1; }
.product-sheet::-webkit-scrollbar { width: 6px; }
.product-sheet::-webkit-scrollbar-track { background: #eee9f1; }
.product-sheet::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--purple); }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.product-sheet.open { transform: translateY(0); }
.sheet-handle { display: block; width: 48px; height: 5px; border: 0; border-radius: 3px; margin: 0 auto 13px; background: #cfc8d2; }
.sheet-product { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.sheet-product img { width: 96px; height: 120px; object-fit: contain; background: #fff; }
.sheet-product img.image-missing { padding: 34px 12px; opacity: .3; }
.sheet-product h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.2; }
.sheet-product p { margin: 0; color: var(--muted); font-size: 12px; }
.sheet-primary-action { margin-top: 10px; padding: 10px 12px; font-size: 12px; }
.metric-list { margin: 17px 0; border-top: 1px solid var(--line); }
.metric { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.metric strong { color: var(--purple-dark); }
.sheet-actions { display: grid; gap: 8px; }
.store-link { display: block; width: 100%; padding: 12px; border: 0; border-radius: 8px; background: var(--purple-dark); color: #fff; text-align: center; text-decoration: none; font-weight: 800; font-size: 13px; }
.directions-link, .sheet-primary-action.directions-link { background: var(--green); color: #fff; box-shadow: inset 0 -4px 9px rgba(0,0,0,.14); }

@media (max-width: 500px) {
  body { background: linear-gradient(180deg, #b92cff 0%, var(--purple) 44%, var(--purple-dark) 100%); }
  .device {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-shadow: none;
  }
  .app-header { min-height: 82px; padding: max(8px, env(safe-area-inset-top)) 16px 7px; }
  .logo-viewport { width: 218px; height: 62px; }
  .logo { width: 210px; }
  .location-button { left: 14px; top: max(16px, calc(env(safe-area-inset-top) + 9px)); width: 44px; height: 44px; }
  .location-window {
    left: 8px;
    right: 8px;
    top: calc(86px + env(safe-area-inset-top));
    bottom: calc(8px + env(safe-area-inset-bottom));
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .manual-location-fields { grid-template-rows: auto auto minmax(180px, .78fr) minmax(120px, 1fr); gap: 8px; overflow: hidden; }
  .location-map { min-height: 0; height: 100%; }
  .product-list { padding-bottom: 12px; }
  .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
}

.embedded-phone body { padding: 0; background: #fff; }
.embedded-phone .device {
  width: 100vw;
  height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.embedded-phone .screen { border-radius: 0; }
.embedded-phone .device::before,
.embedded-phone .device::after { display: none; }
.embedded-phone .app-header { min-height: 84px; padding: max(10px, env(safe-area-inset-top)) 18px 8px; }
.embedded-phone .logo-viewport { width: 230px; height: 62px; }
.embedded-phone .logo { width: 224px; }
.embedded-phone .location-button { top: max(18px, calc(env(safe-area-inset-top) + 10px)); }
.embedded-phone .location-window { top: 92px; bottom: 10px; }
.embedded-phone .product-list { padding-bottom: 12px; }
.embedded-phone .toast { bottom: 24px; }
