/* ===== Pola / Tips modal (Live RTP) — Template2 dark purple/gold ===== */
.pola-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 4, 24, .72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.pola-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pola-modal {
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #2a1658 0%, #160a30 100%);
  border: 1.5px solid rgba(255, 220, 160, .28);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
  transform: translateY(10px) scale(.98);
  transition: transform .2s ease;
}

.pola-overlay.is-open .pola-modal {
  transform: translateY(0) scale(1);
}

.pola-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffd24a 0%, #f5c518 55%, #e0a800 100%);
  color: #3a2200;
  flex: 0 0 auto;
}

.pola-head h2 {
  margin: 0;
  font-family: "Fredoka", "Baloo 2", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.pola-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(58, 34, 0, .14);
  color: #3a2200;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pola-close:hover {
  background: rgba(58, 34, 0, .24);
}

.pola-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.pola-game {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.pola-thumb-wrap {
  position: relative;
}

.pola-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .55);
  background: #1a0a36;
  display: block;
}

.pola-rtp-badge {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6b6b, #e11d48);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 0 #9f1239;
}

.pola-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: rgba(210, 195, 245, .85);
  font-weight: 700;
}

.pola-meta strong {
  color: #fff;
  font-size: 14px;
  font-family: "Fredoka", sans-serif;
  letter-spacing: .2px;
}

.pola-meta .pola-demo {
  color: #39c75a;
  font-weight: 800;
  text-decoration: none;
}

.pola-meta .pola-demo:hover {
  text-decoration: underline;
}

.pola-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pola-tab {
  border: 1.5px solid rgba(255, 255, 255, .16);
  background: rgba(22, 10, 48, .9);
  color: #efe6ff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.pola-tab.is-active {
  background: linear-gradient(180deg, #ffd24a 0%, #f5c518 100%);
  color: #3a2200;
  border-color: #e0a800;
  box-shadow: 0 3px 0 #b8860b;
}

.pola-panel {
  display: none;
}

.pola-panel.is-active {
  display: block;
}

.pola-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.pola-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
}

.pola-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pola-row-left .pola-label {
  color: #f5c518;
  font-weight: 800;
  font-size: 12px;
}

.pola-row-left .pola-desc {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.pola-icons {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}

.pola-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}

.pola-ico.is-ok {
  background: #1f9d3f;
}

.pola-ico.is-no {
  background: #e11d48;
}

.pola-chart-wrap {
  margin: 0 0 8px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #3a1d78, #1a0a36);
  border: 1.5px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.pola-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.pola-chart-pill {
  width: 28px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #39c75a, #1f9d3f);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

.pola-chart {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  align-items: stretch;
  min-height: 150px;
}

.pola-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4px 0;
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  font-weight: 800;
}

.pola-chart-svg {
  width: 100%;
  height: 140px;
  display: block;
  overflow: visible;
}

.pola-grid {
  stroke: rgba(255, 255, 255, .18);
  stroke-width: 1;
}

.pola-line {
  stroke: #39c75a;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.pola-dot {
  fill: #39c75a;
  stroke: #fff;
  stroke-width: 2.5;
}

.pola-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(245, 197, 24, .4);
  background: rgba(245, 197, 24, .12);
  margin-bottom: 4px;
}

.pola-tip-ico {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd24a, #f5c518);
  color: #3a2200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 2px 0 #b8860b;
}

.pola-tip-text {
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(235, 225, 255, .92);
  font-weight: 700;
}

.pola-tip-text strong {
  color: #f5c518;
  display: block;
  margin-bottom: 2px;
}

.pola-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 16px;
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(8, 4, 24, .45);
}

.pola-btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.pola-btn-login {
  color: #3a2200;
  background: linear-gradient(180deg, #ffd24a 0%, #f5c518 100%);
  box-shadow: 0 3px 0 #b8860b;
}

.pola-btn-register {
  color: #fff;
  background: linear-gradient(180deg, #6b3fd4, #3d1f8a);
  box-shadow: 0 3px 0 #2a1460;
}

.pola-btn:hover {
  filter: brightness(1.06);
}

.page-rtp .rtp-card .play-now,
.rtp-card .play-now.pola-now {
  font-size: 13px;
  letter-spacing: .6px;
}

body.pola-open {
  overflow: hidden;
}
