:root {
  --bg: #0a0506;
  --panel: #16090b;
  --panel-2: #220d10;
  --text: #fff8e8;
  --muted: #d7b9a8;
  --line: rgba(255, 215, 117, 0.16);
  --gold: #ffd46a;
  --green: #57f08e;
  --red: #e0152b;
  --cyan: #ffd46a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 212, 106, 0.22), transparent 30rem),
    radial-gradient(circle at 82% 10%, rgba(224, 21, 43, 0.22), transparent 26rem),
    linear-gradient(135deg, #080304 0%, #180608 48%, #050203 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

main,
.site-header,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 132px;
  flex: 0 0 132px;
}

.brand-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand small,
.eyebrow,
.site-footer,
.mini-disclaimer,
label span {
  color: var(--muted);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.22rem;
  line-height: 1.12;
  white-space: nowrap;
}

.brand-title {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  color: #fff7e6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  background: none;
  -webkit-text-fill-color: #fffdf7;
  -webkit-text-stroke: 0.6px rgba(255, 203, 89, 0.44);
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(255, 218, 132, 0.34),
    0 2px 3px rgba(105, 12, 24, 0.82),
    0 0 5px rgba(255, 210, 103, 0.25),
    0 0 10px rgba(222, 28, 78, 0.24),
    0 6px 12px rgba(39, 4, 14, 0.68);
  filter: drop-shadow(0 1px 3px rgba(92, 9, 28, 0.38));
}

.brand-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.13) 34%, transparent 58%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .brand-title,
  .brand-title::after {
    animation: none;
  }

  .brand-title::after {
    display: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a,
.link-button,
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 212, 106, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.site-nav a.active,
.site-nav a:hover,
.link-button:hover,
.button:hover {
  border-color: rgba(240, 184, 74, 0.65);
  background: rgba(224, 21, 43, 0.18);
}

.link-button {
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
  padding: 46px 0 28px;
}

.casino-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 20px;
  align-items: center;
  overflow: hidden;
  min-height: 300px;
  margin: 8px 0 22px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(240, 184, 74, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 212, 106, 0.34), transparent 24rem),
    radial-gradient(circle at 72% 20%, rgba(224, 21, 43, 0.42), transparent 22rem),
    linear-gradient(135deg, #3c060d 0%, #170507 50%, #5f0a12 100%);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.56), 0 0 42px rgba(224, 21, 43, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.casino-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.12;
}

.banner-overlay,
.banner-reels {
  position: relative;
  z-index: 1;
}

.banner-overlay h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.95;
}

.banner-overlay p:not(.eyebrow) {
  max-width: 580px;
  margin: 16px 0 0;
  color: #f2dfb4;
  font-size: 1.08rem;
}

.banner-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-self: stretch;
  min-height: 190px;
}

.banner-reels span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 184, 74, 0.45);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff5d2, #d79d2f 45%, #6c2119);
  color: #190d07;
  font-size: clamp(1.6rem, 4vw, 3.8rem);
  font-weight: 950;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.compact-hero {
  grid-template-columns: 1fr;
  padding: 8px 0 4px;
}

.hero-content h1,
.page-title h1,
.section-heading h1,
.section-heading h2,
.detail-panel h1 {
  margin: 0;
  line-height: 1.08;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.hero-content p,
.page-title p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.disclaimer,
.auth-panel,
.admin-table-wrap,
.editor-form,
.detail-panel,
.detail-image,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 20, 29, 0.86);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
}

.disclaimer {
  margin: 20px 0;
  padding: 16px;
  border-color: rgba(105, 214, 255, 0.35);
  background: rgba(105, 214, 255, 0.07);
}

.demo-note {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(240, 184, 74, 0.36);
  border-radius: 8px;
  color: #ffe3a3;
  background: rgba(240, 184, 74, 0.1);
}

.disclaimer p {
  margin: 0 0 8px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 10px 0 18px;
}

.filter-drawer {
  margin: 10px 0 18px;
}

.filter-drawer .filters {
  margin: 0;
}

.filter-toggle {
  display: none;
}

.filter-panel-header {
  display: none;
}

label {
  display: grid;
  gap: 7px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #130607;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 700;
}

.button.primary {
  border-color: rgba(240, 184, 74, 0.7);
  background: linear-gradient(180deg, #ffe082, #d99925 58%, #a53016);
  color: #171109;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.button.danger {
  border-color: rgba(255, 104, 116, 0.55);
  color: #ffd9dd;
  background: rgba(255, 104, 116, 0.12);
}

.section-heading,
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 18px;
}

.page-title {
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  border: 1px solid rgba(255, 212, 106, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 212, 106, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(55, 8, 12, 0.96), rgba(17, 5, 7, 0.96));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 212, 106, 0.24), transparent 34%, rgba(224, 21, 43, 0.2));
  opacity: 0;
  transition: opacity 180ms ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 212, 106, 0.68);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 42px rgba(224, 21, 43, 0.2);
}

.game-card:hover::before {
  opacity: 1;
}

.game-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 212, 106, 0.2), transparent 52%),
    linear-gradient(135deg, #2d060c, #110506);
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.game-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 22%, transparent 44%);
  transform: translateX(-120%);
  animation: imageSkeletonSweep 2.4s ease-in-out infinite;
}

.game-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.game-card:hover .game-image img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.05);
}

.provider-badge,
.rtp-badge,
.status-label {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  font-weight: 900;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 92px);
  padding: 6px 9px;
  background: linear-gradient(180deg, rgba(21, 5, 7, 0.92), rgba(21, 5, 7, 0.66));
  color: #fff2c6;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-badge img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
}

.status-label {
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  background: linear-gradient(180deg, rgba(255, 212, 106, 0.98), rgba(213, 57, 25, 0.96));
  color: #160503;
  font-size: 0.68rem;
}

.game-card-body {
  display: grid;
  grid-template-rows: minmax(2.8em, auto) auto;
  gap: 9px;
  padding: 12px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.game-card h3 {
  margin: 0;
  min-height: 2.75em;
  font-size: 0.98rem;
  letter-spacing: 0;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 212, 106, 0.16), rgba(224, 21, 43, 0.12));
  border: 1px solid rgba(255, 212, 106, 0.28);
}

.metric-row strong {
  color: var(--gold);
  font-size: 1.12rem;
}

.card-grid,
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.card-grid span,
.detail-metrics div {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.card-grid strong,
.detail-metrics strong {
  color: var(--text);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(105, 214, 255, 0.12);
  color: var(--cyan) !important;
}

.mini-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.detail-image {
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 360px;
  color: var(--muted);
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-panel {
  padding: 24px;
}

.detail-metrics {
  margin: 22px 0;
}

.notes h2 {
  margin-bottom: 8px;
}

.auth-panel {
  width: min(460px, 100%);
  margin: 48px auto;
  padding: 24px;
}

.stack-form,
.editor-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor-form {
  padding: 20px;
}

.full-label {
  display: grid;
}

.current-image {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.current-image img {
  width: 180px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.form-actions,
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  flex-wrap: wrap;
}

.pagination.compact {
  justify-content: flex-start;
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--muted);
}

.alert {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(255, 104, 116, 0.45);
  border-radius: 8px;
  color: #ffd9dd;
  background: rgba(255, 104, 116, 0.12);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
}

.site-footer {
  margin-top: 46px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header,
  .section-heading,
  .hero,
  .casino-banner,
  .detail-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .casino-banner {
    min-height: auto;
    padding: 26px 18px;
  }

  .banner-reels {
    min-height: 96px;
  }

  .filters,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .detail-metrics {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: start;
  }
}

/* Pink Chaiyo8-style public theme refinements */
:root {
  --bg: #180214;
  --panel: #2a0620;
  --panel-2: #3c0b2f;
  --text: #fff5fb;
  --muted: #f5b9da;
  --line: rgba(255, 206, 94, 0.22);
  --gold: #ffd76a;
  --green: #30f28a;
  --orange: #ff9a35;
  --hotpink: #ff2ebd;
  --pink: #ff68cf;
  --red: #ff3564;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 46, 189, 0.38), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(255, 215, 106, 0.22), transparent 24rem),
    radial-gradient(circle at 50% 58%, rgba(255, 53, 100, 0.18), transparent 34rem),
    linear-gradient(135deg, #24021d 0%, #3b062d 46%, #150111 100%);
}

.brand-logo {
  width: 142px;
  flex-basis: 142px;
}

.brand-logo img {
  width: 100%;
}

.site-nav a,
.link-button,
.button {
  border-color: rgba(255, 215, 106, 0.28);
  background: rgba(255, 46, 189, 0.1);
}

.site-nav a.active,
.site-nav a:hover,
.link-button:hover,
.button:hover {
  border-color: rgba(255, 215, 106, 0.72);
  background: rgba(255, 46, 189, 0.22);
}

.casino-banner {
  grid-template-columns: 1fr;
  min-height: 460px;
  width: 100%;
  padding: 0;
  border-color: rgba(255, 215, 106, 0.44);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 215, 106, 0.34), transparent 24rem),
    radial-gradient(circle at 74% 16%, rgba(255, 46, 189, 0.58), transparent 26rem),
    linear-gradient(135deg, #610746 0%, #2d0527 46%, #ee2aa9 100%);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58), 0 0 58px rgba(255, 46, 189, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.casino-banner::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 215, 106, 0.24);
  border-radius: 10px;
  pointer-events: none;
}

.banner-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.banner-overlay {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 720px;
  padding: clamp(28px, 5vw, 58px);
}

.banner-overlay h1 {
  text-shadow: 0 0 22px rgba(255, 46, 189, 0.52), 0 8px 34px rgba(0, 0, 0, 0.42);
}

.banner-overlay p:not(.eyebrow) {
  color: #ffe4f6;
}

.banner-art {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.38));
}

.games-banner {
  margin-bottom: 8px;
}

.casino-banner {
  aspect-ratio: 16 / 8.4;
  min-height: 0;
  max-height: 560px;
  margin: 8px 0 8px;
  padding: 0;
  border-radius: 14px;
}

.casino-banner::before {
  content: none;
}

.casino-banner::after {
  inset: 8px;
  border-color: rgba(255, 255, 255, 0.18);
}

.banner-picture {
  width: 100%;
  height: 100%;
}

.banner-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: none;
}

input,
select,
textarea {
  border-color: rgba(255, 215, 106, 0.2);
  background: #26051e;
}

.button.primary {
  border-color: rgba(255, 215, 106, 0.78);
  background: linear-gradient(180deg, #ffe88a, #f3b330 52%, #d9671c);
  color: #23030e;
}

.game-grid {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 16px;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-height: 332px;
  border-color: rgba(255, 46, 189, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 104, 207, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(61, 6, 47, 0.98), rgba(25, 2, 20, 0.98));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4), 0 0 26px rgba(255, 46, 189, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.game-card::before {
  background: linear-gradient(135deg, rgba(255, 46, 189, 0.28), transparent 34%, rgba(255, 215, 106, 0.17));
}

.game-card:hover {
  border-color: rgba(255, 215, 106, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 42px rgba(255, 46, 189, 0.26);
}

.game-card.is-hot-rtp {
  animation: hotRtpPulse 1.4s ease-in-out infinite;
}

.game-image {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 215, 106, 0.24), transparent 52%),
    linear-gradient(135deg, #4b0839, #180314);
}

.provider-badge {
  max-width: calc(100% - 120px);
  padding: 6px 9px;
  background: linear-gradient(180deg, rgba(43, 4, 34, 0.94), rgba(43, 4, 34, 0.68));
  color: #fff1bf;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-label {
  padding: 6px 9px;
  background: linear-gradient(180deg, #ffdf75, #ff9a2f);
  color: #26030f;
  font-size: 0.68rem;
}

.game-card-body {
  grid-template-rows: minmax(2.8em, auto) auto;
  gap: 9px;
  padding: 12px;
  flex: 1;
}

.game-card h3 {
  min-height: 2.75em;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.metric-row {
  padding: 8px 10px;
  border-radius: 10px;
}

.metric-row.rtp-high {
  border-color: rgba(48, 242, 138, 0.62);
  background: linear-gradient(135deg, rgba(48, 242, 138, 0.18), rgba(255, 46, 189, 0.08));
  box-shadow: 0 0 18px rgba(48, 242, 138, 0.16);
}

.metric-row.rtp-high strong {
  color: #30f28a;
  text-shadow: 0 0 12px rgba(48, 242, 138, 0.5);
}

.metric-row.rtp-mid {
  border-color: rgba(255, 215, 106, 0.58);
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.18), rgba(255, 46, 189, 0.08));
}

.metric-row.rtp-mid strong {
  color: #ffd76a;
}

.metric-row.rtp-low {
  border-color: rgba(255, 154, 53, 0.58);
  background: linear-gradient(135deg, rgba(255, 154, 53, 0.18), rgba(255, 46, 189, 0.08));
}

.metric-row.rtp-low strong {
  color: #ff9a35;
}

.metric-row.rtp-danger,
.metric-row.rtp-none {
  border-color: rgba(255, 53, 100, 0.62);
  background: linear-gradient(135deg, rgba(255, 53, 100, 0.18), rgba(255, 46, 189, 0.09));
}

.metric-row.rtp-danger strong,
.metric-row.rtp-none strong {
  color: #ff5f92;
}

@keyframes hotRtpPulse {
  0%, 100% {
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4), 0 0 18px rgba(48, 242, 138, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
  50% {
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.44), 0 0 34px rgba(48, 242, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

@keyframes imageSkeletonSweep {
  0%, 36% {
    transform: translateX(-125%);
  }
  72%, 100% {
    transform: translateX(125%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card.is-hot-rtp {
    animation: none;
  }

  .game-image::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .casino-banner {
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 360px;
    padding: 0;
  }

  .banner-art {
    height: 100%;
    max-height: none;
    object-position: center bottom;
  }
}

@media (max-width: 1024px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 920px);
  }

  .site-header {
    align-items: flex-start;
  }

  .casino-banner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
  }

  .banner-overlay h1 {
    font-size: clamp(2.35rem, 7vw, 4.6rem);
  }

  .banner-art {
    height: 100%;
    max-height: none;
  }

  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.75fr) minmax(160px, 0.75fr);
  }

  .filters .button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 720px);
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .brand {
    justify-content: flex-start;
    min-width: 0;
  }

  .brand-logo {
    width: 118px;
    flex: 0 0 118px;
  }

  .brand-logo img {
    width: 100%;
  }

  .brand strong {
    font-size: 1.02rem;
    white-space: normal;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a,
  .site-nav .link-button {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .casino-banner {
    grid-template-columns: 1fr;
    gap: 0;
    aspect-ratio: 750 / 360;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 320px;
    margin: 6px 0 16px;
    padding: 0;
  }

  .banner-overlay {
    padding: 18px 16px;
  }

  .banner-overlay h1 {
    font-size: clamp(2.1rem, 11vw, 3.35rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .banner-overlay p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 0.95rem;
  }

  .banner-art {
    justify-self: stretch;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center bottom;
  }

  .compact-hero {
    padding-top: 4px;
  }

  .hero-content h1,
  .page-title h1,
  .section-heading h1,
  .section-heading h2 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .filters {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0;
  }

  input,
  select,
  textarea,
  .button {
    min-height: 48px;
  }

  .filters .button {
    width: 100%;
  }

  .section-heading {
    align-items: stretch;
    margin: 22px 0 14px;
  }

  .section-heading .button {
    width: 100%;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-card {
    min-width: 0;
    min-height: 0;
  }

  .provider-badge {
    max-width: calc(100% - 108px);
    top: 9px;
    left: 9px;
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .provider-badge img {
    width: 16px;
    height: 16px;
  }

  .status-label {
    top: 9px;
    right: 9px;
    padding: 5px 8px;
    font-size: 0.64rem;
  }

  .game-card-body {
    padding: 10px;
  }

  .game-card h3 {
    min-height: 2.7em;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .metric-row {
    gap: 8px;
    padding: 8px;
  }

  .metric-row strong {
    font-size: 1rem;
    white-space: nowrap;
  }

  .pagination {
    justify-content: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .pagination .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 20px, 440px);
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 96px;
    flex-basis: 96px;
  }

  .brand-logo img {
    width: 100%;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a,
  .site-nav .link-button {
    padding: 8px 10px;
    font-size: 0.92rem;
  }

  .casino-banner {
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 230px;
    padding: 0;
    border-radius: 12px;
  }

  .casino-banner::after {
    inset: 8px;
  }

  .banner-overlay h1 {
    font-size: clamp(1.72rem, 10vw, 2.35rem);
  }

  .banner-overlay p:not(.eyebrow) {
    display: none;
  }

  .banner-art {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    object-fit: cover;
    object-position: center bottom;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-card {
    width: 100%;
  }

  .game-image {
    aspect-ratio: 1 / 0.88;
  }

  .provider-badge {
    max-width: calc(100% - 96px);
  }

  .game-card h3 {
    min-height: auto;
    -webkit-line-clamp: 2;
  }

  .metric-row {
    min-height: 46px;
  }

  .current-image {
    display: grid;
  }

  .current-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.6 / 1;
  }
}

.mobile-rtp-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  min-height: 31px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 46, 189, 0.24), rgba(255, 215, 106, 0.16), rgba(48, 242, 138, 0.16)),
    rgba(24, 2, 20, 0.86);
  background-size: 300% 300%, auto;
  backdrop-filter: blur(12px);
  color: #fff5fb;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(255, 46, 189, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: rtpGradientMove 1s linear infinite;
}

.mobile-rtp-battery {
  display: none;
}

.mobile-rtp-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin-top: 2px;
  padding: 10px 14px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(255, 46, 189, 0.28), rgba(255, 215, 106, 0.18), rgba(48, 242, 138, 0.16)),
    rgba(24, 2, 20, 0.82);
  background-size: 260% 260%, auto;
  color: #fff7fb;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.64);
  box-shadow: 0 0 14px rgba(255, 46, 189, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: rtpGradientMove 1s linear infinite;
}

.mobile-rtp-box::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  background:
    linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.56) 18%, transparent 36%),
    linear-gradient(120deg, rgba(255, 46, 189, 0.5), rgba(255, 215, 106, 0.64), rgba(48, 242, 138, 0.48), rgba(255, 46, 189, 0.5));
  background-size: 180% 100%, 260% 260%;
  animation: rtpShine 1.05s ease-in-out infinite, rtpGradientMove 1s linear infinite;
}

.mobile-rtp-box span,
.mobile-rtp-box strong {
  position: relative;
  z-index: 1;
}

.mobile-rtp-box span {
  color: rgba(255, 248, 224, 0.9);
  font-size: 0.92em;
  font-weight: 950;
}

.mobile-rtp-box strong {
  color: currentColor;
  font-size: 1.12em;
  font-weight: 1000;
}

.mobile-rtp-box.rtp-high {
  border-color: rgba(255, 221, 100, 0.82);
  background:
    linear-gradient(120deg, rgba(48, 242, 138, 0.5), rgba(255, 221, 100, 0.34), rgba(48, 242, 138, 0.28)),
    rgba(10, 34, 18, 0.9);
  color: #5dff9a;
  box-shadow: 0 0 18px rgba(48, 242, 138, 0.58), 0 0 26px rgba(255, 221, 100, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mobile-rtp-box.rtp-high::before {
  animation: rtpShine 0.95s ease-in-out infinite, rtpGradientMove 0.9s linear infinite;
}

.mobile-rtp-box.rtp-mid {
  border-color: rgba(255, 221, 100, 0.72);
  background:
    linear-gradient(120deg, rgba(255, 221, 100, 0.4), rgba(255, 170, 43, 0.22), rgba(255, 46, 189, 0.12)),
    rgba(24, 2, 20, 0.78);
  color: #ffec91;
  box-shadow: 0 0 14px rgba(255, 221, 100, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.mobile-rtp-box.rtp-low {
  border-color: rgba(255, 154, 53, 0.72);
  background:
    linear-gradient(120deg, rgba(255, 154, 53, 0.4), rgba(255, 78, 46, 0.22), rgba(255, 46, 189, 0.12)),
    rgba(24, 2, 20, 0.78);
  color: #ffc05b;
  box-shadow: 0 0 13px rgba(255, 154, 53, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mobile-rtp-box.rtp-danger,
.mobile-rtp-box.rtp-none {
  border-color: rgba(255, 53, 128, 0.75);
  background:
    linear-gradient(120deg, rgba(255, 53, 128, 0.4), rgba(255, 46, 189, 0.24), rgba(255, 111, 159, 0.14)),
    rgba(24, 2, 20, 0.78);
  color: #ff8fbb;
  box-shadow: 0 0 13px rgba(255, 53, 128, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mobile-rtp-badge span,
.mobile-rtp-badge strong {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.mobile-rtp-badge span {
  color: rgba(255, 248, 224, 0.9);
  font-size: 0.64em;
  font-weight: 900;
}

.mobile-rtp-badge strong {
  color: currentColor;
  font-size: 1em;
  font-weight: 1000;
}

.mobile-rtp-badge::before,
.metric-row::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  background:
    linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.55) 17%, transparent 34%),
    linear-gradient(120deg, rgba(255, 46, 189, 0.5), rgba(255, 215, 106, 0.65), rgba(48, 242, 138, 0.5), rgba(255, 46, 189, 0.5));
  background-size: 180% 100%, 300% 300%;
  transform: translateX(-120%);
  animation: rtpShine 1.05s ease-in-out infinite, rtpGradientMove 1s linear infinite;
}

.mobile-rtp-badge::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.metric-row {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-size: 300% 300%, auto;
}

.metric-row::before {
  z-index: 0;
  opacity: 0.95;
}

.metric-row span,
.metric-row strong {
  position: relative;
  z-index: 1;
}

.mobile-rtp-badge.rtp-high,
.metric-row.rtp-high {
  border-color: rgba(255, 221, 100, 0.95);
  background:
    linear-gradient(135deg, rgba(48, 242, 138, 0.48), rgba(255, 221, 100, 0.34), rgba(255, 46, 189, 0.18), rgba(48, 242, 138, 0.48)),
    rgba(10, 34, 18, 0.9);
  box-shadow:
    0 0 16px rgba(48, 242, 138, 0.56),
    0 0 28px rgba(255, 221, 100, 0.38),
    0 0 46px rgba(48, 242, 138, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.mobile-rtp-badge.rtp-high::before,
.metric-row.rtp-high::before {
  animation: rtpShine 0.95s ease-in-out infinite, rtpGradientMove 0.9s linear infinite;
}

.mobile-rtp-badge.rtp-high,
.metric-row.rtp-high strong {
  color: #5dff9a;
  text-shadow:
    0 0 8px rgba(48, 242, 138, 0.95),
    0 0 18px rgba(255, 221, 100, 0.54),
    0 1px 3px rgba(0, 0, 0, 0.62);
}

.mobile-rtp-badge.rtp-mid,
.metric-row.rtp-mid {
  border-color: rgba(255, 221, 100, 0.88);
  background:
    linear-gradient(135deg, rgba(255, 221, 100, 0.42), rgba(255, 170, 43, 0.25), rgba(255, 46, 189, 0.12)),
    rgba(24, 2, 20, 0.78);
  box-shadow:
    0 0 16px rgba(255, 221, 100, 0.42),
    0 0 28px rgba(255, 170, 43, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.mobile-rtp-badge.rtp-mid,
.metric-row.rtp-mid strong {
  color: #ffec91;
  text-shadow: 0 0 13px rgba(255, 221, 100, 0.72), 0 1px 3px rgba(0, 0, 0, 0.55);
}

.mobile-rtp-badge.rtp-low,
.metric-row.rtp-low {
  border-color: rgba(255, 154, 53, 0.88);
  background:
    linear-gradient(135deg, rgba(255, 154, 53, 0.42), rgba(255, 78, 46, 0.24), rgba(255, 46, 189, 0.12)),
    rgba(24, 2, 20, 0.78);
  box-shadow:
    0 0 15px rgba(255, 154, 53, 0.4),
    0 0 26px rgba(255, 78, 46, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-rtp-badge.rtp-low,
.metric-row.rtp-low strong {
  color: #ffc05b;
  text-shadow: 0 0 12px rgba(255, 154, 53, 0.65), 0 1px 3px rgba(0, 0, 0, 0.55);
}

.mobile-rtp-badge.rtp-danger,
.mobile-rtp-badge.rtp-none,
.metric-row.rtp-danger,
.metric-row.rtp-none {
  border-color: rgba(255, 53, 128, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 53, 128, 0.44), rgba(255, 46, 189, 0.25), rgba(255, 111, 159, 0.14)),
    rgba(24, 2, 20, 0.78);
  box-shadow:
    0 0 16px rgba(255, 53, 128, 0.42),
    0 0 28px rgba(255, 46, 189, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-rtp-badge.rtp-danger,
.mobile-rtp-badge.rtp-none,
.metric-row.rtp-danger strong,
.metric-row.rtp-none strong {
  color: #ff8fbb;
  text-shadow: 0 0 12px rgba(255, 53, 128, 0.7), 0 1px 3px rgba(0, 0, 0, 0.55);
}

.game-card:hover .mobile-rtp-badge,
.game-card:hover .metric-row {
  filter: brightness(1.12) saturate(1.18);
  box-shadow:
    0 0 18px rgba(255, 46, 189, 0.46),
    0 0 32px rgba(255, 221, 100, 0.26),
    0 0 44px rgba(48, 242, 138, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.game-card.is-hot-rtp .mobile-rtp-badge,
.game-card.is-hot-rtp .metric-row {
  animation: rtpGradientMove 0.95s linear infinite, rtpSoftPulse 1.35s ease-in-out infinite;
}

@keyframes rtpGradientMove {
  0% {
    background-position: 0% 50%, center;
  }
  100% {
    background-position: 300% 50%, center;
  }
}

@keyframes rtpShine {
  0%, 38% {
    transform: translateX(-130%) skewX(-16deg);
  }
  62%, 100% {
    transform: translateX(130%) skewX(-16deg);
  }
}

@keyframes rtpSoftPulse {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.28) saturate(1.22);
  }
}

@keyframes rtpBatteryRun {
  0% {
    background-position: -110% 50%, 0% 50%;
  }
  100% {
    background-position: 110% 50%, 220% 50%;
  }
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  main,
  .site-header,
  .site-footer {
    width: min(100% - 16px, 584px);
  }

  .site-header {
    gap: 8px;
    padding: 10px 0;
  }

  .brand-logo {
    width: 86px;
    flex-basis: 86px;
  }

  .brand-logo img {
    width: 100%;
  }

  .brand strong {
    font-size: 0.96rem;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .site-nav a,
  .site-nav .link-button {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 0.84rem;
  }

  .casino-banner {
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 230px;
    margin: 6px 0 14px;
    padding: 0;
    border-radius: 14px;
  }

  .banner-overlay {
    padding: 12px;
  }

  .casino-banner::after {
    inset: 7px;
  }

  .banner-overlay h1 {
    font-size: clamp(1.55rem, 9vw, 2.25rem);
  }

  .banner-overlay p:not(.eyebrow) {
    display: none;
  }

  .banner-art {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    object-fit: cover;
    object-position: center bottom;
  }

  .compact-hero {
    display: none;
  }

  .hero-content h1,
  .page-title h1,
  .section-heading h1,
  .section-heading h2 {
    font-size: 1.28rem;
  }

  .page-title,
  .section-heading {
    display: none;
  }

  .filter-drawer {
    margin: 6px 0 10px;
  }

  .filter-toggle {
    display: none;
  }

  .filter-toggle::before {
    content: none;
  }

  .filter-drawer.is-open .filter-toggle {
    border-radius: 0;
  }

  .filter-drawer .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .filter-drawer.is-open .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel-header {
    display: none;
  }

  .filter-close {
    min-height: 32px;
    border: 1px solid rgba(255, 215, 106, 0.4);
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffe9a5;
    background: rgba(255, 46, 189, 0.14);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 900;
  }

  label {
    gap: 4px;
  }

  label span {
    display: none;
  }

  .desktop-filter-only {
    display: none !important;
  }

  .filters .mobile-compact-filter:first-child {
    grid-column: 1 / -1;
  }

  input,
  select,
  textarea,
  .button {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.76rem;
  }

  .filters input,
  .filters select {
    border-color: rgba(255, 215, 106, 0.35);
    border-radius: 9px;
    background: rgba(26, 5, 21, 0.92);
    color: #fff8e4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .filters input::placeholder {
    color: rgba(255, 235, 190, 0.68);
  }

  .filters .button {
    width: 100%;
  }

  .section-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 14px 0 10px;
  }

  .section-heading .button {
    min-height: 38px;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .game-card {
    min-width: 0;
    width: 100%;
    min-height: 0;
    border-radius: 10px;
    overflow: hidden;
  }

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

  .game-image {
    aspect-ratio: 3 / 4;
  }

  .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .provider-badge {
    top: 5px;
    left: 5px;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 38px);
    min-height: 19px;
    gap: 3px;
    padding: 3px 5px;
    font-size: 0.5rem;
    line-height: 1.02;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .provider-badge img {
    width: 10px;
    height: 10px;
  }

  .status-label {
    top: 5px;
    right: 5px;
    z-index: 5;
    padding: 3px 5px;
    font-size: 0.5rem;
    line-height: 1;
  }

  .mobile-rtp-badge {
    display: none;
  }

  .mobile-rtp-badge span {
    font-size: 0.55em;
  }

  .mobile-rtp-badge strong {
    font-size: 1em;
  }

  .game-card-body {
    display: block;
    padding: 5px 4px 6px;
  }

  .game-card h3 {
    min-height: 2.35em;
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.16;
    overflow: hidden;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .mobile-rtp-battery {
    display: none;
  }

  .mobile-rtp-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2px;
    min-height: 22px;
    margin-top: 4px;
    padding: 4px 3px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 7px;
    background:
      linear-gradient(120deg, rgba(255, 46, 189, 0.28), rgba(255, 215, 106, 0.18), rgba(48, 242, 138, 0.16)),
      rgba(24, 2, 20, 0.82);
    background-size: 260% 260%, auto;
    color: #fff7fb;
    font-size: clamp(0.48rem, 1.78vw, 0.58rem);
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.64);
    box-shadow: 0 0 10px rgba(255, 46, 189, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    animation: rtpGradientMove 1s linear infinite;
  }

  .mobile-rtp-box::before {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: -1;
    background:
      linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.56) 18%, transparent 36%),
      linear-gradient(120deg, rgba(255, 46, 189, 0.5), rgba(255, 215, 106, 0.64), rgba(48, 242, 138, 0.48), rgba(255, 46, 189, 0.5));
    background-size: 180% 100%, 260% 260%;
    animation: rtpShine 1.05s ease-in-out infinite, rtpGradientMove 1s linear infinite;
  }

  .mobile-rtp-box span,
  .mobile-rtp-box strong {
    position: relative;
    z-index: 1;
  }

  .mobile-rtp-box span {
    color: rgba(255, 248, 224, 0.9);
    font-size: 1em;
    font-weight: 950;
  }

  .mobile-rtp-box strong {
    color: currentColor;
    font-size: 1em;
    font-weight: 1000;
  }

  .mobile-rtp-box.rtp-high {
    border-color: rgba(255, 221, 100, 0.82);
    background:
      linear-gradient(120deg, rgba(48, 242, 138, 0.5), rgba(255, 221, 100, 0.34), rgba(48, 242, 138, 0.28)),
      rgba(10, 34, 18, 0.9);
    color: #5dff9a;
    box-shadow: 0 0 13px rgba(48, 242, 138, 0.66), 0 0 20px rgba(255, 221, 100, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .mobile-rtp-box.rtp-high::before {
    animation: rtpShine 0.95s ease-in-out infinite, rtpGradientMove 0.9s linear infinite;
  }

  .mobile-rtp-box.rtp-mid {
    border-color: rgba(255, 221, 100, 0.72);
    background:
      linear-gradient(120deg, rgba(255, 221, 100, 0.4), rgba(255, 170, 43, 0.22), rgba(255, 46, 189, 0.12)),
      rgba(24, 2, 20, 0.78);
    color: #ffec91;
    box-shadow: 0 0 12px rgba(255, 221, 100, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .mobile-rtp-box.rtp-low {
    border-color: rgba(255, 154, 53, 0.72);
    background:
      linear-gradient(120deg, rgba(255, 154, 53, 0.4), rgba(255, 78, 46, 0.22), rgba(255, 46, 189, 0.12)),
      rgba(24, 2, 20, 0.78);
    color: #ffc05b;
    box-shadow: 0 0 11px rgba(255, 154, 53, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .mobile-rtp-box.rtp-danger,
  .mobile-rtp-box.rtp-none {
    border-color: rgba(255, 53, 128, 0.75);
    background:
      linear-gradient(120deg, rgba(255, 53, 128, 0.4), rgba(255, 46, 189, 0.24), rgba(255, 111, 159, 0.14)),
      rgba(24, 2, 20, 0.78);
    color: #ff8fbb;
    box-shadow: 0 0 13px rgba(255, 53, 128, 0.48), 0 0 18px rgba(255, 46, 189, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .metric-row {
    display: none;
  }

  .pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 16px 0;
  }

  .pagination span {
    grid-column: 1 / -1;
    order: -1;
    font-size: 0.82rem;
  }

  .pagination .button {
    width: 100%;
    min-height: 42px;
  }

  .compact-hero,
  .page-title,
  .section-heading {
    display: none !important;
  }

  .filter-drawer .filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .filter-drawer .filters .mobile-compact-filter:first-child {
    grid-column: 1 / -1 !important;
  }

  .filter-toggle,
  .filter-panel-header,
  .filter-close,
  .desktop-filter-only {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-rtp-badge::before,
  .mobile-rtp-badge.rtp-high::before,
  .metric-row.rtp-high::before,
  .metric-row::before {
    animation: none;
    opacity: 0;
  }

  .game-card.is-hot-rtp .mobile-rtp-badge,
  .game-card.is-hot-rtp .metric-row,
  .mobile-rtp-box,
  .mobile-rtp-box::before {
    animation: none;
  }
}

/* Final header title treatment: clean premium casino text */
.brand .brand-title {
  font-size: clamp(1.24rem, 2.35vw, 1.9rem);
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .brand {
    align-items: center;
    gap: 10px;
  }

  .brand .brand-title {
    max-width: calc(100vw - 140px);
    font-size: clamp(1.04rem, 4.45vw, 1.28rem);
    line-height: 1.08;
    -webkit-text-fill-color: #fffdf7;
    -webkit-text-stroke-width: 0.32px;
    text-shadow:
      0 1px 0 rgba(255, 218, 132, 0.24),
      0 2px 2px rgba(105, 12, 24, 0.82),
      0 0 3px rgba(255, 210, 103, 0.14),
      0 0 7px rgba(222, 28, 78, 0.16),
      0 5px 10px rgba(39, 4, 14, 0.62);
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 8px;
  }

  .brand .brand-title {
    max-width: calc(100vw - 114px);
    font-size: clamp(0.9rem, 4.45vw, 1.07rem);
    -webkit-text-fill-color: #fffdf7;
    -webkit-text-stroke-width: 0.24px;
    text-shadow:
      0 1px 0 rgba(255, 218, 132, 0.24),
      0 1px 2px rgba(105, 12, 24, 0.82),
      0 0 3px rgba(255, 210, 103, 0.12),
      0 0 7px rgba(222, 28, 78, 0.14),
      0 4px 8px rgba(39, 4, 14, 0.58);
  }
}
