:root {
  --canvas: #080d10;
  --surface: rgba(16, 22, 26, 0.96);
  --surface-top: rgba(20, 26, 30, 0.97);
  --slot-line: rgba(255, 255, 255, 0.11);
  --slot-line-soft: rgba(255, 255, 255, 0.075);
  --slot-text: #f7f8f8;
  --slot-muted: #b7bdc1;
  --amber: #ffb800;
  --amber-deep: #ef9600;
  --header-height: 94px;
  --result-width: 1266px;
  --result-bottle-lift: clamp(14px, 1.92vh, 20px);
  --result-filter-lift: clamp(5px, 0.67vh, 7px);
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--slot-text);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.45;
}

body::before {
  content: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

.roulette-app {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  height: calc(100svh - var(--header-height));
  overflow: hidden;
  isolation: isolate;
  background: var(--canvas);
}

.stage-backdrop-clip {
  position: absolute;
  z-index: 0;
  top: calc(-1 * var(--header-height));
  right: 0;
  left: 0;
  height: 100svh;
  overflow: hidden;
  background-image: url("../01_Elements/bg.png");
  background-repeat: no-repeat;
  background-position: 50% calc(50% - 67px);
  background-size: 1536px 1024px;
  pointer-events: none;
  transition: background-position 480ms ease;
}

.stage-backdrop {
  display: none;
}

.bottle-layer {
  position: absolute;
  z-index: 3;
  top: calc(135px - var(--result-bottle-lift));
  left: 50%;
  width: 328px;
  height: 606px;
  transform: translateX(-50%);
  pointer-events: none;
  transition: top 480ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.slot-bottle {
  position: absolute;
  inset: 0;
  width: 328px;
  height: 600px;
  object-fit: contain;
  transform-origin: 164px 551px;
  filter: drop-shadow(0 24px 23px rgba(0, 0, 0, 0.55));
  user-select: none;
  transition: opacity 110ms linear, filter 180ms ease;
}

.slot-bottle.is-mystery {
  left: 40px;
  width: 248px;
  height: 606px;
  filter: none;
}

.slot-bottle.is-ticking {
  animation: bottle-tick 110ms ease-out;
}

.slot-bottle.has-landed {
  animation: bottle-land 650ms cubic-bezier(0.16, 0.85, 0.24, 1.2);
}

@keyframes bottle-tick {
  0% {
    opacity: 0.48;
    transform: scale(0.965) translateY(-3px);
    filter: brightness(1.28) drop-shadow(0 20px 22px rgba(0, 0, 0, 0.5));
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bottle-land {
  0% {
    opacity: 0.72;
    transform: scale(0.94) translateY(-13px);
    filter: brightness(1.55) drop-shadow(0 19px 22px rgba(0, 0, 0, 0.5));
  }
  58% {
    transform: scale(1.025) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.spin-status {
  position: absolute;
  left: 50%;
  bottom: -35px;
  min-width: 220px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms ease;
}

.slot-spinning .spin-status {
  opacity: 1;
}

.intro-panel,
.result-interface {
  position: absolute;
  inset: 0;
}

.intro-panel {
  z-index: 5;
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms ease, visibility 260ms step-end;
}

.intro-copy {
  position: absolute;
  top: 471px;
  left: 50%;
  width: min(620px, 94vw);
  transform: translateX(-50%);
  text-align: center;
}

.intro-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 60px;
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: -0.042em;
  text-transform: uppercase;
  text-shadow: 0 7px 25px rgba(0, 0, 0, 0.48);
}

.intro-copy h1 span,
.intro-copy h1 strong {
  display: block;
  transform: scaleX(1.14);
}

.intro-copy h1 strong {
  margin-top: 5px;
  color: var(--amber-deep);
  font-size: 70px;
  font-weight: inherit;
}

.intro-copy p {
  margin: 28px 0 0;
  font-size: 23px;
  font-weight: 800;
  text-shadow: 0 4px 14px #000;
}

.discover-random {
  min-width: 388px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 72px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #f6a000, #ed8c00);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.17);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.discover-random:hover,
.discover-random:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 17px 34px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(255, 184, 0, 0.12);
  outline: 0;
}

.discover-random:active {
  transform: translateY(0) scale(0.986);
}

.discover-random:disabled {
  cursor: wait;
}

.discover-random svg {
  width: 39px;
  height: 39px;
}

.discover-random svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
}

.discover-random svg circle {
  fill: currentColor;
}

.result-interface {
  z-index: 4;
  padding-top: 13px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms step-end;
}

.result-shell {
  width: var(--result-width);
  height: 794px;
  display: grid;
  grid-template-columns: 306px 614px 346px;
  margin: 0 auto;
}

.result-left,
.result-right {
  position: relative;
  min-width: 0;
}

.slot-card {
  overflow: hidden;
  border: 1px solid var(--slot-line);
  border-radius: 7px;
  background: linear-gradient(145deg, var(--surface-top), var(--surface));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.17), inset 0 1px rgba(255, 255, 255, 0.025);
}

.slot-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.brewery-summary {
  height: 281px;
  padding: 20px 20px;
}

.brewery-summary-header {
  margin-bottom: 12px;
}

.brewery-summary-logo {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--slot-line);
  border-radius: 6px;
  color: var(--amber);
  background: rgba(255, 255, 255, 0.045);
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.brewery-summary-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brewery-profile-summary-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.brewery-profile-summary-link .brewery-summary-logo,
.brewery-profile-summary-link h2 { transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease; }
.brewery-profile-summary-link:is(:hover, :focus-visible) { outline: none; }
.brewery-profile-summary-link:is(:hover, :focus-visible) .brewery-summary-logo {
  border-color: rgba(245, 180, 0, .62);
  box-shadow: 0 0 0 1px rgba(245, 180, 0, .14);
}
.brewery-profile-summary-link:is(:hover, :focus-visible) h2 { color: var(--amber); }

.brewery-summary h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 20px;
}

.summary-facts p {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
}

.summary-facts > p:nth-child(1) {
  order: 2;
}

.summary-facts > p:nth-child(1) svg {
  width: 18px;
  height: 18px;
}

.summary-facts > p:nth-child(2) {
  flex: 0 0 100%;
  order: 1;
}

.summary-facts > p:nth-child(3) {
  order: 3;
}


.summary-facts svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--amber);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.summary-facts img {
  width: 18px;
  height: 13px;
  object-fit: cover;
}

.summary-facts a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms ease;
}

.summary-facts a:hover,
.summary-facts a:focus-visible {
  color: var(--amber);
  outline: 0;
}

.summary-description {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: #eceeef;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.beer-facts {
  position: absolute;
  top: 301px;
  left: 0;
  width: 100%;
  height: 371px;
  padding: 20px 20px 18px;
}

.beer-facts dl {
  margin: 0;
}

.beer-facts dl > div {
  min-height: 31px;
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: center;
  border-bottom: 1px solid var(--slot-line-soft);
  font-size: 12.5px;
}

.beer-facts dl > div:last-child {
  border-bottom: 0;
}

.beer-facts dt,
.beer-facts dd {
  min-width: 0;
  margin: 0;
}

.beer-facts dd {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beer-facts dd img {
  width: 15px;
  height: 11px;
  margin-right: 3px;
  object-fit: cover;
  vertical-align: -1px;
}

.source-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 26px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slot-line-soft);
}

.source-rating > span {
  --star-spacing: 2px;
  color: var(--amber);
  display: inline-flex;
  gap: 0;
  font-size: 21px;
}

.beer-facts.has-seasonal dl > div {
  min-height: 28px;
}

.source-rating.is-unrated > span,
.recommendation-rating.is-unrated {
  color: #7d8388;
  text-shadow: none;
}

.source-rating strong {
  font-size: 14px;
  white-space: nowrap;
  transform: translateY(2px);
}

.source-rating strong span {
  color: #e9ebec;
  font-weight: 700;
}

.detail-page-link {
  position: absolute;
  top: 691px;
  left: 0;
  width: 100%;
  height: 83px;
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  align-items: center;
  gap: 13px;
  padding: 0 17px;
  border: 2px solid rgba(255, 184, 0, 0.8);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(22, 29, 33, 0.98), rgba(15, 21, 24, 0.98));
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.detail-page-link:hover,
.detail-page-link:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(32, 37, 38, 0.99), rgba(21, 26, 27, 0.99));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  outline: 0;
}

.detail-page-link svg {
  width: 37px;
  height: 45px;
  color: var(--amber);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.detail-page-link > span:not(.detail-arrow) {
  display: grid;
  gap: 2px;
}

.detail-page-link strong {
  color: var(--amber);
  font-size: 14px;
  text-transform: uppercase;
}

.detail-page-link small {
  color: #c0c4c7;
  font-size: 12.5px;
}

.detail-arrow {
  color: var(--amber);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}

.result-center {
  position: relative;
  min-width: 0;
  text-align: center;
}

.selected-heading {
  position: absolute;
  z-index: 6;
  top: 7px;
  left: 0;
  right: 0;
}

.selected-title-row {
  width: min(600px, calc(100% - 14px));
  display: grid;
  grid-template-columns: minmax(43px, 1fr) auto minmax(43px, 1fr);
  align-items: center;
  gap: 0;
  margin: 0 auto;
}

.selected-heading h1 {
  grid-column: 2;
  max-width: 514px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 32px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-title-row .bookmark-button {
  grid-column: 3;
  justify-self: start;
  margin-left: 13px;
  color: var(--amber);
}

.selected-heading p {
  max-width: 480px;
  margin: 3px auto 0;
  overflow: hidden;
  color: var(--amber);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-filter-rail {
  position: absolute;
  z-index: 6;
  top: calc(85px - var(--result-filter-lift));
  left: 50%;
  display: flex;
  min-height: 26px;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: #d4d8da;
  white-space: nowrap;
}

.filter-menu {
  position: static;
}

.filter-trigger {
  min-width: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 5px;
  color: #d4d8da;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease;
}

.filter-trigger:hover,
.filter-trigger:focus-visible,
.filter-trigger[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  outline: 0;
}

.filter-trigger:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.55);
}

.filter-trigger:disabled {
  cursor: wait;
  opacity: 0.56;
}

.filter-trigger-label {
  color: #aeb4b7;
}

.filter-trigger-summary {
  max-width: 104px;
  display: inline-flex;
  min-width: 22px;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: #fff;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 120ms ease;
}

.filter-trigger.is-active .filter-trigger-summary,
.filter-trigger.is-active .filter-trigger-chevron {
  color: var(--amber);
}

.filter-summary-flag {
  width: 17px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13);
  object-fit: cover;
}

.filter-summary-globe {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.filter-summary-flags {
  display: inline-flex;
  align-items: center;
}

.filter-summary-flags .filter-summary-flag + .filter-summary-flag {
  margin-left: -4px;
}

.filter-summary-code {
  min-width: 18px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  color: #101619;
  background: var(--amber);
  font-size: 8px;
  font-weight: 950;
}

.filter-summary-code + .filter-summary-code,
.filter-summary-flag + .filter-summary-code,
.filter-summary-code + .filter-summary-flag {
  margin-left: -3px;
}

.filter-summary-more {
  margin-left: 1px;
  color: #fff;
  font-size: 11px;
}

.filter-trigger-chevron {
  width: 9px;
  height: 7px;
  flex: 0 0 auto;
  transition: color 120ms ease, transform 150ms ease;
}

.filter-trigger[aria-expanded="true"] .filter-trigger-chevron {
  transform: rotate(180deg);
}

.filter-trigger-chevron path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.filter-divider {
  width: 1px;
  height: 16px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.22);
}

.filter-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 50%;
  width: 286px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  opacity: 0;
  background: rgba(12, 18, 22, 0.985);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.035) inset;
  transform: translate(-50%, -5px) scale(0.985);
  transform-origin: top center;
  transition: opacity 130ms ease, transform 150ms cubic-bezier(0.2, 0.8, 0.3, 1);
  white-space: normal;
}

.style-filter-popover {
  width: 304px;
}

.filter-popover[hidden] {
  display: none;
}

.filter-popover.is-open {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.filter-popover-header,
.filter-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-popover-header {
  min-height: 26px;
  margin-bottom: 9px;
}

.filter-popover-header strong {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.filter-reset,
.filter-done {
  border: 0;
  color: var(--amber);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-reset {
  padding: 3px 0 3px 8px;
}

.filter-reset:disabled {
  color: #737b80;
  cursor: default;
}

.filter-reset:not(:disabled):hover,
.filter-reset:not(:disabled):focus-visible,
.filter-done:hover,
.filter-done:focus-visible {
  color: #ffd05a;
  outline: 0;
}

.filter-search {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  color: #7f888d;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.filter-search:focus-within {
  border-color: rgba(255, 184, 0, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

.filter-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.filter-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #f7f8f8;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.filter-search input::placeholder {
  color: #7f888d;
}

.filter-option-list {
  max-height: 216px;
  margin: 8px -5px;
  padding: 0 5px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  scrollbar-width: thin;
}

.filter-option {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 1px 0;
  padding: 6px 7px;
  border-radius: 5px;
  color: #dce0e2;
  font-size: 12.5px;
  line-height: 1.25;
  cursor: pointer;
  transition: color 100ms ease, background-color 100ms ease;
}

.filter-option:hover,
.filter-option:focus-within {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 100ms ease, background-color 100ms ease, transform 100ms ease;
}

.filter-checkbox::after {
  width: 7px;
  height: 4px;
  border-bottom: 1.8px solid #101619;
  border-left: 1.8px solid #101619;
  content: "";
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0.5);
  transition: opacity 90ms ease, transform 120ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.filter-option input:checked + .filter-checkbox {
  border-color: var(--amber);
  background: var(--amber);
  transform: scale(1.04);
}

.filter-option input:checked + .filter-checkbox::after {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.filter-option input:focus-visible + .filter-checkbox {
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.22);
}

.filter-empty {
  margin: 18px 0;
  color: #8f979b;
  font-size: 12px;
  text-align: center;
}

.filter-popover-footer {
  min-height: 30px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
  color: #899196;
  font-size: 11.5px;
}

.filter-done {
  min-width: 55px;
  height: 29px;
  border-radius: 5px;
  color: #101619;
  background: var(--amber);
}

.filter-done:hover,
.filter-done:focus-visible {
  color: #101619;
  background: #ffc433;
}

.reroll-button {
  position: absolute;
  z-index: 7;
  top: 691px;
  left: 50%;
  width: 472px;
  height: 83px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #101619;
  background: #feb500;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
  cursor: pointer;
  transition: filter 160ms ease, box-shadow 160ms ease;
}

.reroll-button:hover,
.reroll-button:focus-visible {
  filter: brightness(1.07);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 184, 0, 0.1);
  outline: 0;
}

.reroll-button:active {
  filter: brightness(0.96);
}

.reroll-button svg {
  width: 39px;
  height: 39px;
}

.reroll-button:disabled {
  cursor: wait;
  filter: saturate(0.65);
}

.buy-summary {
  display: flex;
  height: 339px;
  padding: 20px 20px 18px;
  flex-direction: column;
}

.buy-summary h2 {
  margin-bottom: 12px;
}

.buy-summary.is-empty > h2 {
  display: none;
}

.purchase-links {
  min-height: 201px;
}

.purchase-links.is-empty {
  min-height: 0;
  flex: 1;
}

.purchase-row {
  height: 67px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--slot-line-soft);
}

.purchase-logo {
  width: 30px;
  height: 30px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #d92730;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.purchase-row .purchase-logo.has-image {
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: transparent;
  background: rgba(247, 249, 250, 0.96);
}

.purchase-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: contain;
}

.purchase-row:nth-child(2) .purchase-logo {
  background: #a84f57;
}

.purchase-row:nth-child(3) .purchase-logo {
  border-radius: 0;
  color: var(--amber);
  background: transparent;
  font-size: 23px;
}

.purchase-row:nth-child(2) .purchase-logo.has-image,
.purchase-row:nth-child(3) .purchase-logo.has-image {
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: transparent;
  background: rgba(247, 249, 250, 0.96);
  font-size: 14px;
}

.purchase-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-row .deal-button {
  transition: filter 150ms ease;
}

.purchase-row .deal-button:hover,
.purchase-row .deal-button:focus-visible {
  filter: brightness(1.12);
  outline: 0;
}

.purchase-row .purchase-action:disabled {
  color: #101417;
  opacity: 1;
  cursor: default;
}

.purchase-empty-state {
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  animation: purchase-empty-arrive 360ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  text-align: center;
}

.buy-summary.is-empty .purchase-empty-state {
  padding-top: 27px;
}

.buy-summary.is-empty .purchase-empty-state.is-discontinued {
  justify-content: center;
  padding: 0 0 6px;
}

.purchase-empty-illustration {
  width: 166px;
  height: 166px;
  display: block;
  margin: -3px 0 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.2));
}

.purchase-empty-title {
  margin: 0;
  color: var(--amber);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.purchase-empty-copy {
  display: grid;
  margin: 10px 0 0;
  color: #c4c9cc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.purchase-empty-action {
  min-height: calc(32px * 1.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: color 150ms ease, transform 150ms ease, filter 150ms ease;
}

.purchase-empty-action img {
  width: calc(32px * 1.07);
  height: calc(32px * 1.07);
  display: block;
  object-fit: contain;
  transition: transform 170ms ease;
}

.purchase-empty-action:hover,
.purchase-empty-action:focus-visible {
  color: #ffc933;
  filter: brightness(1.08);
  outline: 0;
  transform: translateY(-1px);
}

.purchase-empty-action:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.28);
}

.purchase-empty-action:hover img,
.purchase-empty-action:focus-visible img {
  transform: translate(2px, -2px) rotate(2deg);
}

@keyframes purchase-empty-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-all-stores {
  margin-top: auto;
  transition: color 150ms ease, background 150ms ease;
}

.view-all-stores:hover,
.view-all-stores:focus-visible {
  color: #111719;
  background: var(--amber);
  outline: 0;
}

@media (prefers-reduced-motion: reduce) {
  .purchase-empty-state,
  .purchase-empty-action,
  .purchase-empty-action img {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.recommendations {
  position: absolute;
  top: 355px;
  left: 0;
  width: 100%;
  height: 420px;
  padding: 18px 20px 8px;
}

.recommendations header {
  height: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--slot-line-soft);
}

.recommendations header button {
  padding: 0;
  color: var(--amber);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.recommendation-row {
  width: 100%;
  height: 88px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--slot-line-soft);
  color: #fff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.recommendation-row:last-child {
  border-bottom: 0;
}

.recommendation-row:hover,
.recommendation-row:focus-visible {
  background: rgba(255, 255, 255, 0.025);
  outline: 0;
}

.recommendation-row img {
  width: 38px;
  height: 70px;
  justify-self: center;
  object-fit: contain;
}

.recommendation-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.recommendation-copy strong,
.recommendation-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-copy strong {
  font-size: 13px;
}

.recommendation-copy small {
  color: #c0c5c8;
  font-size: 11px;
}

.recommendation-rating {
  --star-spacing: 1px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
}

.recommendation-rating b {
  margin-left: 5px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
  transform: translateY(2px);
}

.reveal-group {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease var(--reveal-delay, 0ms), transform 480ms ease var(--reveal-delay, 0ms);
}

.result-left {
  --reveal-delay: 100ms;
}

.selected-heading {
  --reveal-delay: 0ms;
}

.result-filter-rail {
  --reveal-delay: 55ms;
}

.result-right {
  --reveal-delay: 115ms;
}

.reroll-button {
  --reveal-delay: 190ms;
}

.slot-spinning .intro-panel,
.slot-result .intro-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.slot-spinning .result-interface {
  opacity: 1;
  visibility: visible;
}

.slot-spinning .result-interface {
  pointer-events: none;
}

.slot-result .result-interface {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slot-result .reveal-group {
  opacity: 1;
  transform: translateY(0);
}

.result-filter-rail.reveal-group,
.reroll-button.reveal-group {
  transform: translate(-50%, 12px);
}

.slot-result .result-filter-rail.reveal-group,
.slot-result .reroll-button.reveal-group {
  transform: translate(-50%, 0);
}

.roulette-error {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 30px;
  max-width: min(520px, calc(100% - 32px));
  margin: 0;
  padding: 11px 16px;
  border: 1px solid rgba(255, 96, 96, 0.5);
  border-radius: 6px;
  color: #fff;
  background: rgba(76, 19, 22, 0.94);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  font-size: 12px;
  text-align: center;
}

@media (min-width: 1451px) {
  .result-shell {
    position: relative;
    left: 6px;
  }

  .bottle-layer,
  .intro-copy {
    margin-left: -14px;
  }

  .result-filter-rail {
    margin-left: 8px;
  }
}
@media (max-width: 1450px) {
  .result-shell {
    width: min(var(--page-content-max), calc(100% - 40px));
    grid-template-columns: 290px minmax(470px, 1fr) 320px;
  }
}

@media (max-width: 1120px) {
  .result-interface {
    overflow-y: auto;
  }

  .result-shell {
    width: min(780px, calc(100% - 32px));
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 70px;
  }

  .result-center {
    order: 1;
    width: 100%;
    height: 794px;
  }

  .result-left,
  .result-right {
    order: 2;
    width: calc(50% - 10px);
    height: 794px;
  }
}

@media (max-width: 760px) {
  .roulette-app {
    min-height: calc(100svh - var(--header-height));
  }

  .bottle-layer {
    top: calc(183px - var(--header-height) - var(--result-bottle-lift));
    transform: translateX(-50%) scale(0.82);
  }

  .intro-copy {
    top: calc(462px - var(--header-height));
  }

  .intro-copy h1 {
    font-size: clamp(35px, 11vw, 52px);
  }

  .intro-copy h1 span,
  .intro-copy h1 strong {
    transform: scaleX(1);
  }

  .intro-copy h1 strong {
    font-size: clamp(42px, 13vw, 60px);
  }

  .intro-copy p {
    margin-top: 22px;
    font-size: 17px;
  }

  .discover-random {
    min-width: 0;
    width: min(360px, 92vw);
    height: 58px;
    margin-top: 54px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .discover-random svg {
    width: 33px;
    height: 33px;
  }

  .result-shell {
    display: flex;
    width: min(430px, calc(100% - 24px));
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .result-center {
    height: 720px;
  }

  .result-left,
  .result-right {
    width: 100%;
    height: 794px;
  }

  .selected-heading h1 {
    max-width: calc(100vw - 32px);
    font-size: 27px;
  }

  .selected-title-row {
    width: min(370px, calc(100% - 14px));
    grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
  }

  .selected-heading h1 {
    max-width: calc(100vw - 92px);
  }

  .bookmark-button {
    width: 27px;
    height: 32px;
    margin-left: 9px;
  }

  .bookmark-button svg {
    width: 21px;
    height: 25px;
  }

  .result-filter-rail {
    top: calc(82px - var(--result-filter-lift));
    max-width: calc(100vw - 24px);
    justify-content: center;
    gap: 5px;
  }

  .filter-trigger {
    gap: 4px;
    padding-inline: 3px;
    font-size: 12px;
  }

  .filter-trigger-summary {
    max-width: 82px;
  }

  .filter-summary-flag {
    width: 16px;
    height: 11px;
  }

  .reroll-button {
    top: 630px;
    width: min(360px, calc(100vw - 40px));
    height: 68px;
  }
}

@media (max-height: 820px) and (min-width: 1121px) {
  .roulette-app {
    min-height: 732px;
    height: calc(100svh - var(--header-height));
    overflow-y: auto;
  }

  .result-interface {
    min-height: 812px;
  }

  .intro-copy {
    top: 405px;
  }

  .intro-copy h1 {
    font-size: 49px;
  }

  .intro-copy h1 strong {
    font-size: 58px;
  }

  .intro-copy p {
    margin-top: 18px;
    font-size: 19px;
  }

  .discover-random {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
