.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.game-grid {
  grid-template-columns: repeat(var(--desk), minmax(280px, 1fr));
  gap: 18px;
}

.slot-card {
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: 51.7% 48.3%;
  aspect-ratio: 351 / 222;
  min-width: 0;
  padding: 10px 3px 10px 15px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--pattern-card-color, #ffca28);
  box-shadow: 0 9px 24px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.34);
  isolation: isolate;
}

.slot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 84%, rgba(255,255,255,.52), transparent 49%),
    linear-gradient(115deg, rgba(255,255,255,.18), transparent 38%, rgba(0,0,0,.14));
}

.slot-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 15px 34px rgba(0,0,0,.42), 0 0 0 1px var(--pattern-card-color, #ffca28);
}

.top-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 52px;
  height: 49px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  color: #fff;
  background: linear-gradient(135deg, #57ea26 0%, #00ae37 78%);
  clip-path: polygon(0 0, 100% 0, 100% 67%, 50% 100%, 0 67%);
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -.04em;
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.18));
}

.slot-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  padding-right: 5px;
}

.slot-cover {
  width: 100%;
  aspect-ratio: 1.3;
  overflow: hidden;
  padding: 5px;
  border: 3px solid #727100;
  border-radius: 8px;
  background: #0d2607;
  box-shadow: 0 2px 4px rgba(0,0,0,.52), inset 0 0 0 2px #e2d71b;
}

.slot-cover > img,
.slot-cover .placeholder {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}

.slot-cover > img {
  object-fit: cover;
}

.slot-cover .placeholder {
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle, #177733, #062b16 68%);
}

.slot-cover .placeholder span {
  display: block;
  color: #ffe400;
  font-size: 30px;
}

.slot-cover .placeholder b {
  color: #fff;
  font-size: 16px;
}

.slot-panel {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 9px 14px 10px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 7px;
  background: linear-gradient(180deg, #080908, #050505);
  box-shadow: 0 2px 8px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
}

.pattern-head {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding-bottom: 7px;
  margin-bottom: 5px;
  border-bottom: 1px solid #2c2d2c;
}

.pattern-head > strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: clamp(9px, 3.45cqw, 13px);
  font-weight: 850;
}

.pattern-bars {
  width: 13px;
  height: 14px;
  flex: 0 0 13px;
  display: flex;
  align-items: end;
  gap: 1px;
}

.pattern-bars i {
  width: 3px;
  display: block;
  border: 1px solid #f5e200;
  background: transparent;
}

.pattern-bars i:nth-child(1) { height: 7px; }
.pattern-bars i:nth-child(2) { height: 13px; }
.pattern-bars i:nth-child(3) { height: 9px; }

.provider-mark {
  width: 36px;
  height: 29px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.provider-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.provider-mark b {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 24px;
  padding: 0 4px;
  border: 1px solid #e0bd35;
  border-radius: 50%;
  color: #f7d33b;
  font-size: 9px;
  line-height: 1;
}

.pattern-rows {
  display: grid;
  gap: 4px;
  padding: 2px 0 4px;
}

.pattern-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  line-height: 1;
}

.pattern-label {
  overflow: hidden;
  color: #f5f5f5;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(8px, 3.12cqw, 12px);
  font-weight: 650;
}

.pattern-steps {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pattern-step {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 1000;
  line-height: 1;
}

.pattern-step.is-ok { color: #00c981; }
.pattern-step.is-off { color: #ea264f; }

.pattern-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 25px;
  padding-top: 5px;
  margin-top: auto;
  overflow: hidden;
  border-top: 1px solid #2c2d2c;
  color: #f5f5f5;
  white-space: nowrap;
  font-size: clamp(7px, 2.75cqw, 10px);
  font-weight: 600;
}

.pattern-time > span {
  color: #f8d80a;
  font-size: 13px;
}

.pattern-time b { font-weight: 800; }

.pattern-progress {
  position: relative;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 5px;
  background: #e7edf2;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15);
}

.pattern-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  min-width: 2px;
  border-radius: 5px 0 0 5px;
  background: repeating-linear-gradient(45deg, #ffd31c 0 7px, #fff174 7px 14px);
  transition: width .8s ease;
}

.rtp-percent {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #111;
  font-size: clamp(9px, 3.5cqw, 13px);
  font-weight: 950;
  line-height: 1;
}

@media (max-width: 1199px) {
  .game-grid { grid-template-columns: repeat(var(--laptop), minmax(280px, 1fr)); }
}

@media (max-width: 900px) {
  .game-grid { grid-template-columns: repeat(var(--tablet), minmax(250px, 1fr)); }
}

@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .slot-card {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    min-height: 253px;
    padding: 6px;
    border-radius: 8px;
  }

  .slot-card:hover { transform: none; }

  .top-ribbon {
    width: 39px;
    height: 37px;
    padding-top: 5px;
    font-size: 11px;
  }

  .slot-visual {
    flex: 0 0 auto;
    width: 100%;
    padding: 17px 0 5px;
  }

  .slot-cover {
    aspect-ratio: 1.3;
    padding: 3px;
    border-width: 2px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,.45), inset 0 0 0 1px #e2d71b;
  }

  .slot-panel {
    flex: 1;
    width: 100%;
    min-height: 123px;
    padding: 6px 7px 7px;
    border-radius: 6px;
  }

  .pattern-head {
    min-height: 25px;
    padding-bottom: 4px;
    margin-bottom: 2px;
  }

  .pattern-head > strong {
    gap: 4px;
    font-size: 8px;
  }

  .pattern-bars {
    width: 9px;
    height: 10px;
    flex-basis: 9px;
  }

  .pattern-bars i { width: 2px; }
  .pattern-bars i:nth-child(1) { height: 5px; }
  .pattern-bars i:nth-child(2) { height: 9px; }
  .pattern-bars i:nth-child(3) { height: 7px; }

  .provider-mark {
    width: 28px;
    height: 21px;
    flex-basis: 28px;
  }

  .provider-mark b {
    min-width: 22px;
    height: 19px;
    font-size: 7px;
  }

  .pattern-rows { gap: 3px; padding: 1px 0 3px; }
  .pattern-label { font-size: 7px; }
  .pattern-steps { gap: 5px; }

  .pattern-step {
    width: 10px;
    height: 10px;
    border-width: 1px;
    font-size: 7px;
  }

  .pattern-time {
    min-height: 17px;
    padding-top: 3px;
    font-size: 6.5px;
  }

  .pattern-time > span { font-size: 9px; }

  .pattern-progress {
    height: 16px;
    flex-basis: 16px;
    margin-top: 3px;
    border-radius: 4px;
  }

  .rtp-percent { font-size: 9px; }
}

@media (max-width: 350px) {
  .slot-card { min-height: 235px; }
  .slot-panel { min-height: 118px; }
  .pattern-steps { gap: 3px; }
}
