:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fbf7;
  background: #08120d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary), #06100b 35%) 0%, #0b1712 46%, #16100a 100%);
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent), transparent 72%), transparent 30%),
    radial-gradient(circle at 86% 15%, rgba(255, 255, 255, 0.11), transparent 22%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 60%);
  opacity: 0.7;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand-button,
.icon-text-button,
.language-select,
.back-button,
.round-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.brand-button {
  gap: 14px;
  min-height: 64px;
  padding: 10px 20px 10px 12px;
  border-radius: 8px;
}

.brand-button img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-button span {
  font-size: 22px;
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-select,
.icon-text-button,
.back-button {
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 750;
}

.language-select select {
  min-width: 132px;
  border: 0;
  color: #fff;
  background: transparent;
  outline: 0;
}

.language-select option {
  color: #111;
}

.home-screen,
.panel-screen,
.results-screen {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}

.home-screen {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) 1.1fr;
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 180px);
  padding: 28px 0 96px;
}

.home-logo {
  display: block;
  width: min(360px, 72%);
  height: auto;
  margin: 0 0 22px;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.34));
}

.hero-copy p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(58px, 8vw, 102px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy span {
  display: block;
  max-width: 650px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 25px;
  line-height: 1.35;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tile-grid.effects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile-grid.effects .choice-tile {
  min-height: 270px;
}

.tile-grid.effects .tile-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.32), transparent 24%),
    color-mix(in srgb, var(--accent), rgba(255, 255, 255, 0.08) 26%);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
  font-size: 48px;
}

.choice-tile {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  text-align: left;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.choice-tile:hover,
.choice-tile:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent), white 12%);
  background: rgba(255, 255, 255, 0.19);
  outline: 0;
}

.choice-tile.large {
  min-height: 250px;
  padding: 34px;
  background: color-mix(in srgb, var(--primary), rgba(255, 255, 255, 0.13) 38%);
}

.choice-tile.accent {
  background: color-mix(in srgb, var(--accent), rgba(255, 255, 255, 0.1) 34%);
  color: #17130a;
}

.choice-tile strong {
  max-width: 520px;
  font-size: 34px;
  line-height: 1.08;
}

.choice-tile span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 22px;
  font-weight: 800;
}

.choice-tile.accent span {
  color: rgba(0, 0, 0, 0.62);
}

.panel-screen {
  padding: 34px 0 104px;
}

.section-heading {
  margin: 34px 0 24px;
}

.section-heading h2,
.results-toolbar h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.results-toolbar {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: 22px;
  padding: 28px 0 18px;
}

.results-toolbar p {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
}

.search-box input {
  width: 100%;
  border: 0;
  color: #fff;
  background: transparent;
  outline: 0;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0 104px;
}

.product-card {
  min-height: 328px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.product-image {
  position: relative;
  display: grid;
  min-height: 134px;
  margin-bottom: 16px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 18%, hsla(var(--hue), 72%, 72%, 0.35), transparent 30%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.13), transparent 34%),
    linear-gradient(135deg, hsl(var(--hue), 34%, 22%), #111912);
}

.product-photo img {
  width: 100%;
  height: 100%;
  min-height: 134px;
  object-fit: cover;
}

.image-glow {
  position: absolute;
  inset: auto 16px -34px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 40%);
  filter: blur(24px);
  opacity: 0.72;
}

.product-initial {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 68px;
  font-weight: 950;
  line-height: 0.8;
}

.bud-visual {
  position: absolute;
  display: block;
  border-radius: 58% 42% 50% 48%;
  background:
    radial-gradient(circle at 36% 33%, rgba(255, 255, 255, 0.32), transparent 8%),
    radial-gradient(circle at 54% 55%, rgba(236, 185, 77, 0.62), transparent 10%),
    linear-gradient(135deg, #7fc66e, #2e7f48 55%, #183d2c);
  box-shadow:
    inset 0 -12px 18px rgba(0, 0, 0, 0.22),
    0 18px 28px rgba(0, 0, 0, 0.28);
  transform: rotate(var(--tilt));
}

.bud-one {
  width: 72px;
  height: 90px;
  left: calc(50% - 58px);
  top: 22px;
}

.bud-two {
  width: 86px;
  height: 70px;
  left: calc(50% - 12px);
  top: 42px;
  transform: rotate(calc(var(--tilt) * -1));
}

.bud-three {
  width: 58px;
  height: 56px;
  left: calc(50% + 36px);
  top: 18px;
  opacity: 0.92;
}

.joint-visual {
  position: relative;
  display: block;
  width: min(76%, 230px);
  height: 30px;
  border-radius: 999px 6px 6px 999px;
  background:
    linear-gradient(90deg, #f6efe1 0 72%, #d0a46b 72% 86%, #ede1cb 86%),
    linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.18));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt));
}

.joint-visual::after {
  position: absolute;
  top: 7px;
  right: -8px;
  width: 18px;
  height: 16px;
  border-radius: 50%;
  background: #302219;
  content: "";
}

.hash-visual {
  width: 96px;
  height: 76px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.2), transparent 10%),
    linear-gradient(135deg, #8b5b32, #4b2d1a 62%, #2b1a10);
  box-shadow:
    inset -12px -16px 24px rgba(0, 0, 0, 0.25),
    0 18px 32px rgba(0, 0, 0, 0.34);
  transform: rotate(var(--tilt));
}

.hash-crumb {
  position: absolute;
  display: block;
  border-radius: 6px;
  background: #7a4a25;
}

.hash-crumb-one {
  width: 24px;
  height: 18px;
  left: calc(50% + 54px);
  top: 38px;
}

.hash-crumb-two {
  width: 18px;
  height: 14px;
  left: calc(50% - 72px);
  top: 82px;
}

.edible-visual {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, #6d3f23 0 7%, transparent 8%),
    radial-gradient(circle at 63% 58%, #5a331d 0 6%, transparent 7%),
    radial-gradient(circle at 48% 74%, #704528 0 5%, transparent 6%),
    linear-gradient(135deg, #d89a54, #9f6532);
  box-shadow:
    inset -12px -18px 22px rgba(0, 0, 0, 0.2),
    0 18px 32px rgba(0, 0, 0, 0.34);
  transform: rotate(var(--tilt));
}

.chip {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4f2d1a;
}

.chip-one {
  left: calc(50% + 42px);
  top: 32px;
}

.chip-two {
  left: calc(50% - 62px);
  top: 42px;
}

.chip-three {
  left: calc(50% + 10px);
  top: 96px;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.product-card-top span,
.tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.product-card-top strong {
  color: var(--accent);
  font-size: 22px;
}

.product-card h3 {
  min-height: 66px;
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1.08;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags .active-effect-tag {
  color: #1a1508;
  background: color-mix(in srgb, var(--accent), white 12%);
}

.empty-state {
  margin: 70px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 28px;
  text-align: center;
}

.disclaimer {
  position: fixed;
  z-index: 3;
  right: 24px;
  bottom: 20px;
  left: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  text-align: center;
  pointer-events: none;
}

.brand-drawer {
  position: fixed;
  z-index: 8;
  top: 0;
  right: 0;
  display: flex;
  width: min(460px, 100%);
  height: 100vh;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 17, 13, 0.96);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.45);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 34px;
}

.round-button {
  width: 48px;
  height: 48px;
  justify-content: center;
  border-radius: 50%;
}

.field {
  display: grid;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.field input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.color-field input {
  width: 100%;
  height: 58px;
  padding: 6px;
}

.upload-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.upload-field input {
  display: none;
}

.danger {
  justify-content: center;
  color: #ffd2d2;
}

@media (max-width: 1100px) {
  .home-screen,
  .results-toolbar {
    grid-template-columns: 1fr;
  }

  .tile-grid,
  .tile-grid.effects,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1100px) and (min-height: 1400px) {
  .app {
    min-height: 100vh;
  }

  .topbar,
  .home-screen,
  .panel-screen,
  .results-screen {
    width: min(100% - 88px, 992px);
  }

  .topbar {
    padding: 44px 0 28px;
  }

  .brand-button {
    min-height: 88px;
    padding: 14px 26px 14px 18px;
  }

  .brand-button span {
    font-size: 31px;
  }

  .top-actions {
    gap: 18px;
  }

  .language-select,
  .icon-text-button,
  .back-button {
    min-height: 78px;
    padding: 0 28px;
    font-size: 24px;
  }

  .language-select select {
    min-width: 198px;
  }

  .home-screen {
    align-content: center;
    gap: 74px;
    min-height: calc(100vh - 190px);
    padding: 36px 0 150px;
  }

  .home-logo {
    width: min(430px, 64%);
    margin-bottom: 28px;
  }

  .hero-copy p {
    margin-bottom: 18px;
    font-size: 32px;
  }

  .hero-copy h1 {
    max-width: 880px;
    font-size: 150px;
  }

  .hero-copy span {
    max-width: 820px;
    margin-top: 34px;
    font-size: 36px;
    line-height: 1.28;
  }

  .choice-grid {
    gap: 28px;
  }

  .choice-tile,
  .choice-tile.large {
    min-height: 278px;
    padding: 42px;
  }

  .choice-tile strong {
    max-width: 760px;
    font-size: 48px;
  }

  .choice-tile span {
    font-size: 30px;
  }

  .tile-icon {
    font-size: 46px;
    line-height: 1;
  }

  .panel-screen {
    padding: 58px 0 150px;
  }

  .section-heading {
    margin: 56px 0 36px;
  }

  .section-heading h2,
  .results-toolbar h2 {
    font-size: 74px;
  }

  .tile-grid,
  .tile-grid.effects {
    gap: 24px;
  }

  .tile-grid.effects .choice-tile {
    min-height: 310px;
    padding: 42px;
  }

  .tile-grid.effects .tile-icon {
    width: 116px;
    height: 116px;
    font-size: 68px;
  }

  .results-toolbar {
    gap: 26px;
    padding: 46px 0 28px;
  }

  .results-toolbar p {
    font-size: 24px;
  }

  .search-box {
    min-height: 82px;
    padding: 0 24px;
    font-size: 24px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 24px 0 150px;
  }

  .product-card {
    min-height: 438px;
    padding: 22px;
  }

  .product-image {
    min-height: 184px;
    margin-bottom: 20px;
  }

  .product-photo img {
    min-height: 184px;
  }

  .product-initial {
    right: 16px;
    bottom: 12px;
    font-size: 84px;
  }

  .bud-one {
    width: 92px;
    height: 114px;
    left: calc(50% - 78px);
    top: 34px;
  }

  .bud-two {
    width: 108px;
    height: 88px;
    left: calc(50% - 18px);
    top: 62px;
  }

  .bud-three {
    width: 72px;
    height: 70px;
    left: calc(50% + 50px);
    top: 32px;
  }

  .joint-visual {
    width: min(78%, 300px);
    height: 40px;
  }

  .joint-visual::after {
    top: 9px;
    right: -10px;
    width: 24px;
    height: 22px;
  }

  .hash-visual {
    width: 126px;
    height: 96px;
  }

  .edible-visual {
    width: 124px;
    height: 124px;
  }

  .product-card-top {
    margin-bottom: 20px;
  }

  .product-card-top span,
  .tags span {
    min-height: 36px;
    padding: 0 13px;
    font-size: 16px;
  }

  .product-card-top strong {
    font-size: 31px;
  }

  .product-card h3 {
    min-height: 92px;
    margin-bottom: 22px;
    font-size: 36px;
  }

  .tags {
    gap: 10px;
  }

  .disclaimer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100% - 88px, 992px);
    margin: 20px auto 42px;
    font-size: 20px;
  }

  .brand-drawer {
    width: min(620px, 100%);
    gap: 28px;
    padding: 44px;
  }

  .drawer-header h2 {
    font-size: 44px;
  }

  .field,
  .upload-field {
    font-size: 22px;
  }

  .field input {
    min-height: 70px;
    font-size: 22px;
  }
}

@media (max-width: 720px) {
  .topbar,
  .home-screen,
  .panel-screen,
  .results-screen {
    width: min(100% - 28px, 1480px);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .language-select,
  .icon-text-button {
    justify-content: center;
  }

  .language-select select {
    min-width: 0;
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 72px;
  }

  .hero-copy span {
    font-size: 20px;
  }

  .tile-grid,
  .tile-grid.effects,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .choice-tile,
  .choice-tile.large {
    min-height: 178px;
  }

  .choice-tile strong {
    font-size: 28px;
  }

  .product-card {
    min-height: 300px;
  }

  .product-image {
    min-height: 122px;
  }

  .disclaimer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100% - 28px, 1480px);
    margin: 18px auto 24px;
  }
}
