
:root{
  /* Brand-ish defaults (tweak anytime) */
  --bg: #0e1116;
  --text: #e8eef6;
  --muted: #a9b3c2;

  --accent: #7ed957;   /* strain name */
  --accent2: #ffd966;  /* prices */
	--accent3: #D2122E;  /* THC% */
  --danger: #ff5555;

  --card-bg: rgba(27, 31, 42, 0.72);
  --card-border: rgba(255,255,255,0.08);
  --shadow: 0 8px 22px rgba(0,0,0,0.35);

  --radius: 14px;
  --gap: 18px;

  /* scale the UI */
  --ui-scale: 1;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  padding: 20px;
  padding-top: 0;
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

#app{
  transform: scale(var(--ui-scale));
  transform-origin: top left;
  width: calc(100% / var(--ui-scale));
}

/* Title */
h1{
  margin: 0;
  padding: 0;
  text-align: center;
  color: #D2122E; 
  letter-spacing: 0.5px;
}

/* Categories */
.category{
  margin-bottom: 36px;
}

.category > h2{
  margin: 16px 0 8px;
  font-size: 1.7rem;
}

/* Prices line */
.prices{
  margin-bottom: 14px;
  font-size: 1.15rem;
  color: var(--accent2);
  line-height: 1.25;
}

/* Menu grid */
.menu{
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: stretch;
}

/* Item cards */
.item{
  position: relative;
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
}

/* Keep card background semi-transparent without dimming text */
.item::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--card-bg);
  border-radius: inherit;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  z-index: 0;
}

.item > *{
  position: relative;
  z-index: 1;
}

.item h2{
  margin: 0;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1.15;
}

/* THC color (separate from strain name) */
.thc{
  color: var(--accent3);       
  font-weight: 800;
  margin-left: 6px;
}


.item h3{
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #D2122E;
  display: inline;
}

.terpenes{
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Error box */
.error{
  background: var(--danger);
  color: white;
  padding: 18px;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 720px;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* Background watermark logo */
#background{
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
  pointer-events: none;
}

#background img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.14;
  filter: saturate(0.9);
}

/* Particles layer */
#particle-layer{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.particle{
  position: absolute;
  top: -60px;
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  user-select: none;
  animation: fall linear forwards;
}

@keyframes fall{
  to{
    transform: translateY(var(--fall-distance, 1200px)) rotate(360deg);
    opacity: 0.85;
  }
}
