/* Podium chwały — 1. złoto, 2. srebro, 3. brąz (includes/podium.php) */
.pod {
  --ease: cubic-bezier(.22, 1, .36, 1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  margin: 0 auto;
  max-width: 980px;
}

/* Kruszce */
.pod--1 { --m1: #fff6cf; --m2: #f2d27e; --m3: #c4922f; --m4: #6b4a10; --ink: #fff3cf; --glow: rgba(242, 200, 100, .55); --tint: rgba(216, 170, 80, .26); }
.pod--2 { --m1: #ffffff; --m2: #dfe4ec; --m3: #9ba5b5; --m4: #424a58; --ink: #eef2f8; --glow: rgba(205, 218, 238, .4); --tint: rgba(190, 205, 230, .14); }
.pod--3 { --m1: #ffe2c6; --m2: #dca170; --m3: #a2643a; --m4: #4e2d15; --ink: #ffe4cc; --glow: rgba(220, 150, 95, .42); --tint: rgba(205, 130, 80, .16); }

.pod-col { position: relative; display: flex; flex-direction: column; align-items: stretch; animation: podUp .8s var(--ease) both; }
.pod--1 { animation-delay: .05s; z-index: 2; }
.pod--2 { animation-delay: .2s; }
.pod--3 { animation-delay: .32s; }
@keyframes podUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Karta w metalowej ramie: zewnętrzna krawędź z kruszcu, ciemna szczelina, wewnętrzna nitka */
.pod-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 26px 14px 20px; text-align: center;
  border: 2px solid transparent; border-radius: 10px 10px 4px 4px;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--tint), transparent 62%) padding-box,
    linear-gradient(180deg, rgba(24, 20, 28, .97), rgba(9, 8, 12, .98)) padding-box,
    linear-gradient(140deg, var(--m1), var(--m3) 30%, var(--m2) 52%, var(--m4) 78%, var(--m2)) border-box;
  box-shadow:
    inset 0 0 0 4px rgba(9, 8, 12, .9), inset 0 0 0 5px color-mix(in srgb, var(--m2) 45%, transparent),
    0 0 0 1px rgba(0, 0, 0, .6), 0 24px 46px rgba(0, 0, 0, .55), 0 0 38px var(--glow);
  transition: transform .45s var(--ease), box-shadow .45s ease;
}
.pod-card::after {
  content: ""; position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, color-mix(in srgb, var(--m1) 18%, transparent) 50%, transparent 58%);
  transform: translateX(-60%); animation: podSweep 7s ease-in-out infinite;
}
.pod--2 .pod-card::after { animation-delay: 1.4s; }
.pod--3 .pod-card::after { animation-delay: 2.8s; }
@keyframes podSweep { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.pod-col:hover .pod-card { transform: translateY(-6px); box-shadow: inset 0 0 0 4px rgba(9, 8, 12, .9), inset 0 0 0 5px color-mix(in srgb, var(--m2) 60%, transparent), 0 0 0 1px rgba(0, 0, 0, .6), 0 32px 56px rgba(0, 0, 0, .6), 0 0 56px var(--glow); }

/* Złoto: większe, z grubszą podwójną ramą, koroną i promieniami */
.pod--1 .pod-card {
  padding: 46px 18px 26px; border-width: 3px;
  box-shadow:
    inset 0 0 0 4px rgba(9, 8, 12, .9), inset 0 0 0 5px rgba(242, 210, 126, .55),
    0 0 0 3px rgba(9, 8, 12, .95), 0 0 0 4px #c4922f, 0 0 0 5px rgba(255, 240, 190, .35),
    0 28px 54px rgba(0, 0, 0, .6), 0 0 60px rgba(242, 200, 100, .45);
}
.pod--1:hover .pod-card {
  box-shadow:
    inset 0 0 0 4px rgba(9, 8, 12, .9), inset 0 0 0 5px rgba(242, 210, 126, .7),
    0 0 0 3px rgba(9, 8, 12, .95), 0 0 0 4px #f2d27e, 0 0 0 5px rgba(255, 240, 190, .5),
    0 34px 62px rgba(0, 0, 0, .65), 0 0 80px rgba(242, 200, 100, .6);
}
.pod-rays {
  position: absolute; left: 50%; top: 34%; width: 560px; height: 560px; translate: -50% -50%; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, .13) 0deg 6deg, transparent 6deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%);
  mask: radial-gradient(circle, #000 18%, transparent 62%);
  animation: podSpin 60s linear infinite;
}
@keyframes podSpin { to { rotate: 360deg; } }
.pod-crown { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 40px; height: 40px; animation: podFloat 4s ease-in-out infinite; }
.pod-crown svg { width: 100%; height: 100%; fill: #f2d27e; stroke: #6b4a10; stroke-width: .8; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(242, 200, 100, .75)) drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
@keyframes podFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Medal w ramie z kruszcu */
.pod-medal { width: 150px; margin: 0 auto 2px; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .55)); }
.pod--1 .pod-medal { width: 178px; }
.pod-bezel {
  position: relative; width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; padding: 10px;
  background: radial-gradient(circle at 30% 22%, var(--m1) 0%, var(--m2) 14%, var(--m3) 38%, var(--m4) 66%, #0b0806 100%);
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, .7), inset 0 -10px 14px rgba(0, 0, 0, .7), 0 6px 0 rgba(0, 0, 0, .65), 0 0 26px var(--glow);
}
.pod--1 .pod-bezel { width: 150px; height: 150px; padding: 12px; }
.pod-lens {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; isolation: isolate; background: #0c0b10;
  clip-path: circle(50% at 50% 50%);
  box-shadow: inset 0 0 0 2px rgba(12, 8, 4, .9), inset 0 12px 16px rgba(255, 255, 255, .18), inset 0 -18px 22px rgba(0, 0, 0, .6);
}
.pod-lens img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 18%; transform: scale(1.06); }
.pod-dome { position: absolute; inset: 0; z-index: 2; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse 55% 36% at 30% 18%, rgba(255, 255, 255, .5), transparent 48%), radial-gradient(circle, transparent 46%, rgba(0, 0, 0, .45) 100%); }
.pod-sheen { position: absolute; top: -50%; bottom: -50%; left: 0; z-index: 3; width: 18%; pointer-events: none;
  background: linear-gradient(108deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%);
  transform: translateX(-240%) rotate(28deg); animation: podGlass 30s linear infinite; }
@keyframes podGlass { 0%, 93% { transform: translateX(-240%) rotate(28deg); } 96%, 100% { transform: translateX(620%) rotate(28deg); } }
.pod-plate {
  position: relative; z-index: 2; width: 82%; margin: -12px auto 0; padding: 10px 6px 6px; border-radius: 3px 3px 9px 9px;
  font: 700 11px/1 Cinzel, Georgia, serif; letter-spacing: .14em; color: color-mix(in srgb, var(--m4) 85%, #000);
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 30%), linear-gradient(180deg, var(--m1), var(--m2) 45%, var(--m3));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 5px 0 rgba(0, 0, 0, .6), 0 10px 14px rgba(0, 0, 0, .4);
}
.pod-medal--free .pod-bezel { background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--m2) 45%, #222), #15121a 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m2) 40%, transparent), 0 6px 0 rgba(0, 0, 0, .6); }
.pod-medal--free .pod-lens { display: grid; place-items: center; font: 700 2.4rem/1 Cinzel, Georgia, serif; color: color-mix(in srgb, var(--m2) 55%, transparent); background: radial-gradient(circle, #1a1620, #0b0a0e); }

.pod-name { margin: 12px 0 0; font: 700 1.1rem/1.25 Cinzel, Georgia, serif; letter-spacing: .05em; color: var(--ink); overflow-wrap: anywhere; text-shadow: 0 0 18px var(--glow); }
.pod--1 .pod-name { font-size: 1.3rem; }
.pod-sub { margin: 4px 0 0; font-size: .78rem; line-height: 1.4; color: rgba(220, 208, 184, .6); }
.pod-score { display: grid; gap: 4px; margin: 14px 0 0; }
.pod-score b {
  font: 700 1.6rem/1 Cinzel, Georgia, serif; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--m1), var(--m2) 45%, var(--m3)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px var(--glow));
}
.pod--1 .pod-score b { font-size: 2rem; }
.pod-score span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(220, 208, 184, .55); }
.pod-you {
  display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 999px; vertical-align: 3px;
  font: 700 .58rem/1.4 Inter, system-ui, sans-serif; font-style: normal; letter-spacing: .12em; text-transform: uppercase;
  color: #8fe0a5; background: rgba(60, 160, 90, .16); border: 1px solid rgba(92, 200, 120, .4); text-shadow: none;
}
.pod-col.is-free .pod-card { opacity: .78; }
.pod-col.is-free .pod-name { font-size: 1rem; color: color-mix(in srgb, var(--ink) 70%, transparent); text-shadow: none; }

/* Cokoły — najwyższy dla złota */
.pod-step {
  position: relative; display: grid; place-items: center; align-content: center; gap: 2px;
  height: 56px; margin: 10px 8px 0; border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 12%),
    linear-gradient(180deg, var(--m2), var(--m3) 40%, var(--m4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -10px 18px rgba(0, 0, 0, .45), 0 18px 30px rgba(0, 0, 0, .5), 0 0 30px var(--glow);
}
.pod--1 .pod-step { height: 92px; margin-left: 0; margin-right: 0; }
.pod--2 .pod-step { height: 66px; }
.pod--3 .pod-step { height: 44px; }
.pod-step b { font: 700 1.5rem/1 Cinzel, Georgia, serif; color: color-mix(in srgb, var(--m4) 80%, #000); text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.pod--1 .pod-step b { font-size: 2.1rem; }
.pod-step span { font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: color-mix(in srgb, var(--m4) 75%, #000); font-weight: 700; }
.pod--3 .pod-step span { display: none; }
.pod-col.is-me .pod-card { box-shadow: inset 0 0 0 4px rgba(9, 8, 12, .9), inset 0 0 0 5px rgba(92, 200, 120, .55), 0 0 0 1px rgba(0, 0, 0, .6), 0 24px 46px rgba(0, 0, 0, .55), 0 0 38px var(--glow); }

/* Telefon: podium zostaje podium — trzy kolumny, mniejsze medale */
@media (max-width: 680px) {
  .pod { gap: 8px; }
  .pod-card, .pod--1 .pod-card { padding: 16px 6px 12px; border-radius: 8px 8px 3px 3px; }
  .pod--1 .pod-card { padding-top: 34px; }
  .pod-crown { width: 28px; height: 28px; top: 6px; }
  .pod-medal, .pod--1 .pod-medal { width: 100%; }
  .pod-bezel { width: 70px; height: 70px; padding: 6px; }
  .pod--1 .pod-bezel { width: 88px; height: 88px; padding: 7px; }
  .pod-plate { width: 92%; font-size: 7px; padding: 7px 2px 4px; margin-top: -8px; letter-spacing: .08em; }
  .pod-name, .pod--1 .pod-name { font-size: .82rem; margin-top: 8px; }
  .pod-sub span, .pod-sub { font-size: .66rem; }
  .pod-sub span { display: none; }
  .pod-score { margin-top: 8px; }
  .pod-score b { font-size: 1.05rem; }
  .pod--1 .pod-score b { font-size: 1.3rem; }
  .pod-score span { font-size: .54rem; letter-spacing: .14em; }
  .pod-step { margin: 6px 4px 0; }
  .pod--1 .pod-step { height: 64px; }
  .pod--2 .pod-step { height: 46px; }
  .pod--3 .pod-step { height: 32px; }
  .pod-step b { font-size: 1.1rem; }
  .pod--1 .pod-step b { font-size: 1.5rem; }
  .pod-step span { display: none; }
  .pod-medal--free .pod-lens { font-size: 1.5rem; }
  .pod-rays { width: 320px; height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .pod-col, .pod-card::after, .pod-rays, .pod-crown, .pod-sheen { animation: none !important; }
}
