/* Transparent page for OBS; main card only has visible chrome */
:root {
  --card-min-width: 260px;
  --card-max-width: 520px;
  --accent: #5bc0ff;
  --accent-glow: rgba(91, 192, 255, 0.5);
}

* { box-sizing: border-box; }

html, body {
  background: rgba(0, 0, 0, 0) !important;
}

body {
  margin: 0;
  padding: 0;
  color: #f5f9ff;
  font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  width: fit-content;
  min-height: 0;
}

.overlay-root {
  width: fit-content;
  max-width: var(--card-max-width);
  min-width: var(--card-min-width);
  padding: 10px;
}

.overlay-card {
  width: fit-content;
  max-width: 100%;
  padding: 14px 16px 12px 16px;
  border-radius: 0;
  border: 2px solid var(--accent);
  background: rgba(10, 14, 24, 0.9);
  backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.avg-placement {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 26, 0.9);
}

.avg-gold   { background: linear-gradient(135deg, #e1b100, #ffda55); color: #1a1200; border-color: rgba(255, 255, 255, 0.25); }
.avg-silver { background: linear-gradient(135deg, #c0c5cc, #e5e8ed); color: #141414; border-color: rgba(255, 255, 255, 0.2); }
.avg-bronze { background: linear-gradient(135deg, #b26b35, #d18d52); color: #130a05; border-color: rgba(255, 255, 255, 0.2); }
.avg-orange { background: linear-gradient(135deg, #ff9f43, #ff6f3c); color: #1f0f02; border-color: rgba(255, 255, 255, 0.18); }
.avg-gray   { background: linear-gradient(135deg, #2f323a, #4a4d57); color: #f1f5fa; border-color: rgba(255, 255, 255, 0.12); }

.overlay-card::before {
  content: none;
}

.overlay-card::after {
  content: none;
}

.overlay-card > * {
  position: relative;
  z-index: 2;
}

.header {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.rank-icon {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.text-block { flex: 1; min-width: 0; }

.summoner {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.region {
  font-size: 13px;
  color: var(--accent);
}

.avg-placement {
  margin-left: 6px;
  position: relative;
  top: 0px;
}

.rank-line {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.lp {
  font-size: 14px;
  color: #93c5ff;
  text-shadow: 0 0 6px var(--accent-glow);
  font-weight: 700;
}

.placements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  width: 100%;
  justify-content: flex-start;
}

.placement {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.placement.new {
  animation: popIn 0.35s ease, glowPulse 1.6s ease-in-out 0.2s 2, borderSweep 1.1s ease forwards;
}

.placement-1 { background: linear-gradient(135deg, #e1b100, #ffda55); color: #1a1200; }
.placement-2 { background: linear-gradient(135deg, #c0c5cc, #e5e8ed); color: #161616; }
.placement-3 { background: linear-gradient(135deg, #b26b35, #d18d52); color: #130a05; }
.placement-4,
.placement-5,
.placement-6,
.placement-7,
.placement-8 { background: rgba(0, 0, 0, 0.75); }


@media (max-width: 360px) {
  :root { --card-width: 280px; }
  .rank-icon { width: 70px; height: 70px; }
}

@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.2); }
  70% { box-shadow: 0 0 8px 6px rgba(255,255,255,0.05); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes borderSweep {
  0% { border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 0 rgba(255,255,255,0.2); }
  60% { border-color: rgba(255,255,255,0.2); box-shadow: 0 0 12px 6px rgba(255,255,255,0.08); }
  100% { border-color: rgba(255,255,255,0.08); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 0%, 100% 100%; }
  50% { background-position: 100% 100%, 0% 0%; }
  100% { background-position: 0% 0%, 100% 100%; }
}
