.brand-slot {
  --brand-slot-cell: 78px;
  margin-top: 0.25rem;
  font-family: var(--site-font-body), "Segoe UI", sans-serif;
}

.brand-slot-cabinet {
  background:
    radial-gradient(120% 90% at 50% 0%, #1b2948 0%, #0c1222 48%, #070b14 100%);
  border: 1px solid #2c3b58;
  border-radius: 1.25rem;
  padding: 1.15rem 1rem 1.2rem;
  color: #f8fafc;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.16);
}

.brand-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.brand-slot-title {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
}

.brand-slot-pay {
  margin: 0.35rem 0 0;
  color: #c5d2e6;
  font-size: 0.92rem;
  line-height: 1.45;
}

.brand-slot-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.85rem;
  overflow: hidden;
  background: #070d18;
  border: 1px solid #314562;
  border-radius: 0.75rem;
}

.brand-slot-meter {
  min-width: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid #24344f;
  padding: 0.7rem 0.85rem 0.75rem;
  text-align: center;
}

.brand-slot-meter:last-child {
  border-right: 0;
}

.brand-slot-meter span {
  display: block;
  color: #93a4bd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-slot-meter strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.brand-slot-meter.is-win strong {
  color: #f5d76e;
}

.brand-slot-bet-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.brand-slot-bet-row strong {
  margin-top: 0;
  min-width: 4.6rem;
}

.brand-slot-bet-btn {
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 1.85rem;
  border: 1px solid #3d5278;
  border-radius: 999px;
  background: #152033;
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.brand-slot-bet-btn:hover {
  background: #1d2c46;
}

.brand-slot-bet-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.brand-slot-bet-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.brand-slot-screen {
  background:
    radial-gradient(90% 80% at 50% 0%, #2a2112 0%, #100e0c 42%, #07080c 100%);
  border: 2px solid #d4af37;
  border-radius: 0.9rem;
  padding: 0.6rem;
  box-shadow:
    inset 0 0 0 3px #1c1608,
    inset 0 10px 24px rgb(0 0 0 / 0.45),
    0 0 22px rgb(212 175 55 / 0.16);
}

.brand-slot-well {
  position: relative;
  display: grid;
}

.brand-slot-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.brand-slot-reel {
  position: relative;
  overflow: hidden;
  height: calc(var(--brand-slot-cell) * 3);
  border-radius: 1.1rem;
  background: #050505;
  box-shadow:
    0 0 0 3px #8d7040,
    0 0 0 5px #241b0c,
    inset 0 22px 24px rgb(0 0 0 / 0.55),
    inset 0 -22px 24px rgb(0 0 0 / 0.55),
    inset 16px 0 18px rgb(0 0 0 / 0.35),
    inset -16px 0 18px rgb(0 0 0 / 0.35);
}

.brand-slot-reel::before,
.brand-slot-reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  z-index: 2;
  pointer-events: none;
}

.brand-slot-reel::before {
  top: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.62), transparent);
}

.brand-slot-reel::after {
  bottom: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.62), transparent);
}

.brand-slot-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.brand-slot-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--brand-slot-cell);
  flex: 0 0 var(--brand-slot-cell);
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.08);
}

.brand-slot-cell img {
  width: 84%;
  height: 68%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.brand-slot-cell.is-hit {
  box-shadow: inset 0 0 0 3px #f5d76e;
}

.brand-slot-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.brand-slot-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  margin: 0 0 0.55rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #2f8f5b;
  border-radius: 0.45rem;
  background: #04140d;
  box-shadow:
    inset 0 0 16px rgb(52 211 153 / 0.16),
    0 0 0 2px #10261b;
  color: #86efac;
  font-family: "Consolas", "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-align: center;
}

.brand-slot-result.is-win {
  border-color: #c6a15a;
  background: #161004;
  box-shadow:
    inset 0 0 16px rgb(245 215 110 / 0.2),
    0 0 0 2px #2a2110;
  color: #f5d76e;
}

.brand-slot-result.is-miss {
  color: #9ae6b4;
}

.brand-slot-spin {
  display: block;
  margin: 0.85rem auto 0;
  min-width: 11.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 2.4rem;
  background: var(--cta-color, #ef4444);
  color: var(--cta-text-color, #fff);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgb(239 68 68 / 0.28);
}

.brand-slot-spin:hover {
  background: var(--cta-hover, #dc2626);
}

.brand-slot-spin:disabled {
  opacity: 0.62;
  cursor: default;
}

.brand-slot-spin:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .brand-slot {
    --brand-slot-cell: 108px;
  }

  .brand-slot-cabinet {
    padding: 1.35rem 1.35rem 1.4rem;
  }

  .brand-slot-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 640px) {
  .brand-slot-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-slot-meters {
    margin-bottom: 0.5rem;
    border-radius: 0.55rem;
  }

  .brand-slot-meter {
    padding: 0.32rem 0.2rem 0.36rem;
  }

  .brand-slot-meter span {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }

  .brand-slot-meter strong,
  .brand-slot-bet-row strong {
    margin-top: 0.08rem;
    font-size: 0.78rem;
    min-width: 0;
  }

  .brand-slot-bet-row {
    gap: 0.15rem;
    margin-top: 0.04rem;
  }

  .brand-slot-bet-btn {
    width: 1.2rem;
    height: 1.2rem;
    flex-basis: 1.2rem;
    font-size: 0.85rem;
  }

  .brand-slot-result {
    min-height: 2.2rem;
    margin-bottom: 0.4rem;
    padding: 0.28rem 0.4rem;
    font-size: 0.72rem;
  }

  .brand-slot-reels {
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-slot-strip {
    transition: none !important;
  }
}
