/* ── reset / base ── */
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;overflow-x:hidden}
body{
  position:relative;
  isolation:isolate;
  overflow-x:hidden;
  color:#f4f8f2;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  background:#06101d;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:url("/assets/optimized/premiumtlo.webp") center top/cover no-repeat;
  transform:translateZ(0);
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 72% 12%, rgba(240,189,66,.22), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(125,248,232,.13), transparent 30%),
    linear-gradient(160deg,rgba(2,7,21,.72),rgba(4,6,16,.42) 50%,rgba(2,4,12,.78));
}

/* ── layout ── */
.page{
  width:min(1100px,calc(100% - 32px));
  margin:0 auto;
  padding:26px 0 72px;
  overflow-x:hidden;
}

/* ── topbar ── */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:32px;
  flex-wrap:wrap;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  flex-shrink:0;
}
.brand-mark{
  width:52px;height:52px;
  border-radius:50%;
  border:2px solid rgba(240,189,66,.45);
  box-shadow:0 0 22px rgba(240,189,66,.22);
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.brand-mark img{width:100%;height:100%;object-fit:cover}
.brand-word{
  font-weight:1000;
  font-size:clamp(20px,3vw,32px);
  text-transform:uppercase;
  background:linear-gradient(90deg,#fff7c2 0%,#f0bd42 36%,#7df8e8 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.mobile-menu-toggle{
  display:none;
  align-items:center;justify-content:center;gap:6px;
  font:inherit;font-weight:900;font-size:13px;
  min-height:38px;padding:0 14px;
  border:1px solid rgba(255,238,189,.26);border-radius:8px;
  color:#fff7c2;cursor:pointer;
  background:linear-gradient(135deg,rgba(40,214,194,.16),rgba(240,189,66,.09) 46%,rgba(255,115,92,.10)),rgba(5,12,22,.60);
  box-shadow:0 10px 30px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
}
.topbar-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.topbar-actions .btn{
  min-height:40px;padding:0 14px;
  border:1px solid rgba(255,238,189,.26);border-radius:8px;
  color:#fff7c2;font-weight:900;
  text-decoration:none;cursor:pointer;
  background:linear-gradient(135deg,rgba(40,214,194,.16),rgba(240,189,66,.09) 46%,rgba(255,115,92,.10)),rgba(5,12,22,.60);
  box-shadow:0 10px 30px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
.topbar-actions .btn:hover{
  border-color:rgba(125,248,232,.48);
  box-shadow:0 14px 34px rgba(0,0,0,.30),0 0 24px rgba(40,214,194,.10);
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:0 16px;
  border:1px solid rgba(255,238,189,.28);
  border-radius:8px;
  color:#f4f8f2;
  background:rgba(5,12,22,.56);
  font-family:inherit;
  font-weight:900;
  font-size:14px;
  text-decoration:none;
  cursor:pointer;
  backdrop-filter:blur(8px);
  transition:border-color .15s,background .15s;
}
.btn:hover{border-color:rgba(255,238,189,.54);background:rgba(5,12,22,.80)}
.btn-gold{
  border-color:rgba(255,247,194,.72);
  color:#1c0c04;
  background:linear-gradient(135deg,#fff7c2 0%,#f0bd42 52%,#7df8e8 100%);
  box-shadow:0 14px 44px rgba(240,189,66,.32),0 0 36px rgba(240,189,66,.18);
}
.btn-gold:hover{box-shadow:0 18px 54px rgba(240,189,66,.46),0 0 50px rgba(240,189,66,.28)}
.btn-gold:disabled{opacity:.5;cursor:default;box-shadow:none}

/* ── hero ── */
.hero{
  display:flex;
  align-items:center;
  gap:28px;
  padding:clamp(26px,4vw,46px) clamp(22px,4vw,42px);
  border:1px solid rgba(240,189,66,.52);
  border-radius:12px;
  background:
    radial-gradient(circle at 16% 50%,rgba(255,247,194,.15),transparent 38%),
    radial-gradient(circle at 90% 18%,rgba(240,189,66,.20),transparent 34%),
    linear-gradient(135deg,rgba(7,12,24,.93),rgba(18,10,28,.86));
  box-shadow:0 38px 110px rgba(0,0,0,.55),0 0 64px rgba(240,189,66,.10),inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter:blur(16px);
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:'';
  position:absolute;inset:0;
  background:radial-gradient(ellipse at 92% 0%,rgba(240,189,66,.13),transparent 52%);
  pointer-events:none;
  z-index:0;
}
.hero-copy{
  flex:1 1 0;
  min-width:0;
  display:grid;
  gap:16px;
  position:relative;
  z-index:2;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 13px;
  border:1px solid rgba(240,189,66,.58);
  border-radius:20px;
  color:#f0bd42;
  background:rgba(240,189,66,.10);
  font-size:11px;font-weight:1000;
  text-transform:uppercase;letter-spacing:.08em;
  width:max-content;
}
.hero h1{
  margin:0;
  font-size:clamp(36px,6vw,80px);
  font-weight:1000;
  line-height:.92;
  text-transform:uppercase;
  color:#fff7c2;
  text-shadow:0 8px 34px rgba(0,0,0,.68),0 0 28px rgba(240,189,66,.24);
}
.hero h1 em{
  font-style:normal;
  background:linear-gradient(90deg,#fff7c2 0%,#f0bd42 50%,#7df8e8 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero-sub{
  margin:0;
  font-size:clamp(14px,1.8vw,18px);
  font-weight:700;
  color:rgba(244,248,242,.72);
  max-width:480px;
  line-height:1.5;
}

/* card fan — contained within hero-visual, no overflow */
.hero-visual{
  flex:0 0 260px;
  width:260px;
  height:320px;
  position:relative;
  overflow:hidden;
  border-radius:8px;
  z-index:1;
}
.pcard{
  position:absolute;
  width:150px;
  aspect-ratio:2/3;
  border:1px solid rgba(255,247,194,.26);
  border-radius:10px;
  background:center/cover no-repeat;
  box-shadow:0 24px 62px rgba(0,0,0,.52),0 0 30px rgba(240,189,66,.12);
  left:50%;
  top:50%;
}
.pcard.one{
  background-image:url("cards/illustrated-v2/guild-cover.webp");
  transform:translate(calc(-50% - 62px),-50%) rotate(-11deg);
}
.pcard.two{
  background-image:url("cards/illustrated-v2/spy.webp");
  z-index:2;
  transform:translate(-50%,calc(-50% - 6px)) scale(1.08);
}
.pcard.three{
  background-image:url("cards/illustrated-v2/civil.webp");
  transform:translate(calc(-50% + 62px),-50%) rotate(11deg);
}

/* ── section shell ── */
.sections{display:grid;gap:14px;margin-top:16px;overflow-x:hidden}

.section{
  padding:clamp(16px,2.8vw,26px) clamp(14px,2.8vw,24px);
  border:1px solid rgba(255,238,189,.15);
  border-radius:10px;
  background:linear-gradient(135deg,rgba(255,247,194,.06),rgba(125,248,232,.03)),rgba(5,12,22,.64);
  backdrop-filter:blur(12px);
  overflow-x:hidden;
}

.stage11-premium-tiers{
  margin-top:16px;
  border-radius:18px;
  border-color:rgba(125,248,232,.24);
  background:
    radial-gradient(circle at 10% 0%,rgba(125,248,232,.18),transparent 32%),
    radial-gradient(circle at 92% 6%,rgba(240,189,66,.18),transparent 30%),
    linear-gradient(145deg,rgba(7,12,24,.86),rgba(16,9,28,.72));
  box-shadow:0 26px 80px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.07);
}
.stage11-tier-grid,
.stage11-backgrounds,
.stage11-victory-grid,
.stage11-entry-grid{
  display:grid;
  gap:10px;
}
.stage11-tier-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.stage11-backgrounds{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-top:14px}
.stage11-victory-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin-top:14px}
.stage11-entry-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-top:14px}
.stage11-tier-card,
.stage11-bg-card,
.stage11-victory-card,
.stage11-entry-card{
  position:relative;
  overflow:hidden;
  min-height:126px;
  padding:14px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:16px;
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.stage11-tier-card::before{
  content:"";
  position:absolute;
  inset:-45% -35% auto auto;
  width:150px;
  height:150px;
  border-radius:50%;
  background:var(--tier-glow,rgba(255,255,255,.12));
  filter:blur(10px);
}
.stage11-tier-card.common{--tier-glow:rgba(210,220,230,.18)}
.stage11-tier-card.rare{--tier-glow:rgba(40,214,194,.28)}
.stage11-tier-card.epic{--tier-glow:rgba(168,80,255,.30)}
.stage11-tier-card.legendary{--tier-glow:rgba(240,189,66,.34)}
.stage11-tier-card.mythic{--tier-glow:rgba(255,79,109,.28)}
.stage11-tier-card span,
.stage11-bg-card span,
.stage11-victory-card span,
.stage11-entry-card span{
  position:relative;
  display:block;
  color:rgba(244,248,242,.54);
  font-size:11px;
  font-weight:1000;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.stage11-tier-card b,
.stage11-bg-card b,
.stage11-victory-card b,
.stage11-entry-card b{
  position:relative;
  display:block;
  margin-top:8px;
  color:#fff7c2;
  font-size:20px;
}
.stage11-tier-card small,
.stage11-bg-card small,
.stage11-victory-card small,
.stage11-entry-card small{
  position:relative;
  display:block;
  margin-top:8px;
  color:rgba(244,248,242,.62);
  font-weight:800;
  line-height:1.35;
}
.stage11-bg-card::after{
  content:"";
  position:absolute;
  inset:auto 10px 10px 10px;
  height:34px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(40,214,194,.5),rgba(240,189,66,.45),rgba(168,80,255,.45));
  opacity:.45;
  filter:blur(10px);
}
.stage11-victory-card{
  min-height:104px;
  border-color:rgba(240,189,66,.18);
}
.stage11-entry-card{
  min-height:110px;
  border-color:rgba(125,248,232,.18);
}

.sec-head{
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:16px;
}
.sec-icon{
  display:grid;
  width:36px;height:36px;
  place-items:center;
  border:1px solid rgba(240,189,66,.44);
  border-radius:8px;
  background:rgba(240,189,66,.10);
  font-size:17px;line-height:1;
  flex-shrink:0;
}
.sec-head h2{margin:0;font-size:clamp(16px,2.2vw,20px);font-weight:1000;color:#fff7c2}
.sec-head p{margin:3px 0 0;font-size:12px;color:rgba(244,248,242,.52);font-weight:600}

/* ── 1. KOLOR NICKU ── */
.colors-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:8px;
}
.color-swatch{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid rgba(255,238,189,.14);
  border-radius:8px;
  background:rgba(5,12,22,.42);
  font-size:14px;font-weight:1000;
}
.color-dot{
  width:12px;height:12px;
  border-radius:50%;
  flex-shrink:0;
  box-shadow:0 0 8px currentColor;
}

/* ── 2. ODZNAKI ── */
.badges-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.badge-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 13px;
  border:1px solid rgba(255,238,189,.16);
  border-radius:8px;
  background:rgba(255,247,194,.06);
  font-size:15px;font-weight:800;
  color:rgba(244,248,242,.88);
}
.badge-chip span.bname{font-size:12px;color:rgba(244,248,242,.52);font-weight:700}

/* ── 3. POŚWIATA ── */
.glow-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.glow-chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 13px;
  border-radius:8px;
  border:1px solid rgba(255,238,189,.14);
  background:rgba(5,12,22,.40);
  font-size:13px;font-weight:800;
}
.glow-ring{
  width:32px;height:32px;
  border-radius:50%;
  background:center/contain no-repeat,rgba(12,18,34,.60);
  flex-shrink:0;
}

/* ── 4. PIERŚCIENIE ── */
.rings-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(66px,1fr));
  gap:10px;
}
.ring-item{
  display:grid;
  place-items:center;
  gap:5px;
}
.ring-img{
  width:60px;height:60px;
  border-radius:50%;
  background:center/contain no-repeat;
  box-shadow:0 0 0 2px #1a1d22,0 0 0 4px #c6a15b,0 0 18px rgba(240,189,66,.24),0 6px 20px rgba(0,0,0,.42);
  transition:transform .18s,box-shadow .18s;
}
.ring-item:hover .ring-img{
  transform:scale(1.04) translateY(-2px);
  box-shadow:0 0 0 2px #1a1d22,0 0 0 5px #d4b06a,0 0 28px rgba(240,189,66,.46),0 10px 26px rgba(0,0,0,.50);
}
.ring-name{font-size:10px;font-weight:800;color:rgba(255,247,194,.64);text-align:center;line-height:1.2}

/* ── 5. KARTY ── */
.cards-scroll{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  width:100%;
  min-width:0;
}
.cards-scroll::-webkit-scrollbar{height:3px}
.cards-scroll::-webkit-scrollbar-thumb{background:rgba(240,189,66,.30);border-radius:2px}
.card-thumb{
  flex:0 0 auto;
  width:clamp(100px,22vw,150px);
  aspect-ratio:2/3;
  border:1px solid rgba(255,247,194,.20);
  border-radius:9px;
  background:center/cover no-repeat;
  box-shadow:0 12px 34px rgba(0,0,0,.44),0 0 20px rgba(240,189,66,.08);
  scroll-snap-align:start;
  transition:transform .18s,box-shadow .18s;
}
.card-thumb:hover{
  transform:translateY(-5px) scale(1.03);
  box-shadow:0 20px 46px rgba(0,0,0,.50),0 0 32px rgba(240,189,66,.20);
}
.cards-more{
  flex:0 0 auto;
  align-self:center;
  padding:7px 11px;
  border:1px solid rgba(125,248,232,.26);
  border-radius:6px;
  font-size:12px;font-weight:800;
  color:#7df8e8;
  background:rgba(40,214,194,.08);
  white-space:nowrap;
}

/* ── 6. EFEKT ZWYCIĘSTWA ── */
.ve-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:12px;
}
.ve-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:18px 12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,238,189,.12);
  background:rgba(244,248,242,.04);
  text-align:center;
  position:relative;
}
.btn-section-preview{
  flex-shrink:0;
  margin-left:auto;
  padding:6px 14px;
  border-radius:8px;
  border:1px solid rgba(125,248,232,.28);
  background:rgba(40,214,194,.10);
  color:#7df8e8;
  font-size:12px;font-weight:700;cursor:pointer;
  transition:border-color 150ms,background 150ms;
  white-space:nowrap;
  align-self:center;
}
.btn-section-preview:hover{border-color:rgba(125,248,232,.55);background:rgba(40,214,194,.18)}
.ve-card.ve-active{
  border-color:rgba(240,189,66,.68);
  background:rgba(240,189,66,.10);
  box-shadow:0 0 0 1px rgba(240,189,66,.22),0 8px 28px rgba(240,189,66,.14);
}
.ve-card.ve-active::after{
  content:'✓ aktywny';
  position:absolute;
  top:-10px;left:50%;transform:translateX(-50%);
  padding:2px 9px;border-radius:999px;
  background:rgba(240,189,66,.9);
  color:#101211;font-size:10px;font-weight:1000;text-transform:uppercase;letter-spacing:.04em;
  white-space:nowrap;
}
.ve-icon{
  color:#f4d98f;line-height:1;
  display:grid;place-items:center;
  width:72px;height:72px;border-radius:50%;
  background:rgba(244,248,242,.06);
  border:1px solid rgba(255,238,189,.10);
}
.ve-name{font-size:13px;font-weight:900;color:#f4f8f2;line-height:1.2}
.ve-desc{font-size:11px;color:rgba(244,248,242,.52);line-height:1.4;font-weight:600}
.ve-preview-btn{
  margin-top:2px;
  padding:5px 12px;border-radius:8px;
  border:1px solid rgba(255,238,189,.20);
  background:rgba(244,248,242,.06);
  color:#c8d6d0;font-size:11px;font-weight:700;cursor:pointer;
  transition:border-color 150ms,background 150ms;
}
.ve-preview-btn:hover{border-color:rgba(255,238,189,.42);background:rgba(244,248,242,.12)}

/* ── 7. INNE BENEFITY ── */
.perks-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:8px;
}
.perk-item{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:10px 12px;
  border:1px solid rgba(255,238,189,.11);
  border-radius:8px;
  background:rgba(255,247,194,.04);
  font-size:13px;font-weight:700;
  color:rgba(244,248,242,.84);
  line-height:1.42;
}
.perk-icon{font-size:17px;line-height:1;flex-shrink:0;margin-top:1px}

/* ── CTA ── */
.cta-block{
  display:grid;
  place-items:center;
  gap:12px;
  padding:clamp(22px,4vw,40px) clamp(16px,4vw,36px);
  margin-top:6px;
  border:1px solid rgba(240,189,66,.46);
  border-radius:12px;
  background:
    radial-gradient(circle at 50% 0%,rgba(240,189,66,.18),transparent 58%),
    linear-gradient(135deg,rgba(7,12,24,.92),rgba(22,12,32,.84));
  text-align:center;
}
.cta-block h2{margin:0;font-size:clamp(20px,4vw,32px);font-weight:1000;color:#fff7c2}
.cta-block p{margin:0;font-size:14px;font-weight:600;color:rgba(244,248,242,.60);max-width:460px}
.btn-unlock{
  min-height:56px;
  padding:0 36px;
  font-size:17px;font-weight:1000;
  letter-spacing:.01em;
  transition:box-shadow 220ms ease,transform 220ms ease;
}

.soon-note{
  padding:8px 14px;
  border:1px solid rgba(125,248,232,.24);
  border-radius:8px;
  font-size:13px;font-weight:700;
  color:#7df8e8;
  background:rgba(40,214,194,.08);
}
.status-active{
  width:100%;
  box-sizing:border-box;
  padding:10px 16px;
  border:1px solid rgba(125,248,232,.32);
  border-radius:8px;
  font-weight:900;color:#fff7c2;
  background:rgba(40,214,194,.12);
  text-align:left;
}
.premium-summary{
  margin-top:16px;
  padding:16px;
  border:1px solid rgba(125,248,232,.22);
  border-radius:8px;
  background:rgba(40,214,194,.07);
  color:rgba(244,248,242,.82);
  font-size:14px;
  font-weight:700;
  line-height:1.55;
}
.packages-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
  text-align:left;
}
.package-card{
  min-width:0;
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid rgba(255,238,189,.22);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(7,12,24,.86),rgba(5,12,22,.68));
  box-shadow:0 18px 50px rgba(0,0,0,.28);
  overflow-wrap:break-word;
}
.package-card h3{margin:0;color:#fff7c2;font-size:18px;line-height:1.15}
.package-price{font-size:28px;font-weight:1000;color:#7df8e8;line-height:1}
.package-per-month{
  font-size:12px;
  font-weight:700;
  color:rgba(244,248,242,.52);
  margin-top:2px;
}
.package-savings{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 11px;
  background:linear-gradient(135deg,#d7f75b 0%,#28d6c2 100%);
  color:#06101d;
  font-size:13px;
  font-weight:1000;
  border-radius:20px;
  letter-spacing:.01em;
  white-space:nowrap;
  box-shadow:0 0 18px rgba(125,248,232,.35),0 4px 12px rgba(0,0,0,.28);
  transition:box-shadow 220ms ease;
}

.package-meta{display:grid;gap:5px;margin:0;padding:0;list-style:none;color:rgba(244,248,242,.68);font-size:12px;font-weight:800}
.package-meta li{display:flex;gap:6px;align-items:flex-start}
.premium-buy-form{display:grid;gap:10px}
.premium-check-row{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px;
  align-items:flex-start;
  font-size:12px;
  line-height:1.35;
  color:rgba(244,248,242,.72);
  font-weight:700;
}
.premium-check-row input{margin-top:2px;accent-color:#f0bd42}
.legal-check-all{
  width:max-content;
  min-height:34px;
  padding:0 12px;
  border:1px solid rgba(125,248,232,.28);
  border-radius:8px;
  color:#fff7c2;
  background:linear-gradient(135deg,rgba(40,214,194,.14),rgba(240,189,66,.08));
  box-shadow:none;
  font:inherit;
  font-size:12px;
  font-weight:1000;
  cursor:pointer;
}
.legal-check-all:hover{border-color:rgba(125,248,232,.46)}
.package-card .btn{width:100%}
.payment-note{font-size:12px;color:rgba(244,248,242,.54);font-weight:700;line-height:1.45}
.payment-disabled{
  width:100%;
  box-sizing:border-box;
  padding:10px 12px;
  border:1px solid rgba(255,238,189,.20);
  border-radius:8px;
  background:rgba(255,238,189,.06);
  color:#fff7c2;
  font-size:12px;
  font-weight:900;
  text-align:left;
}
.legacy-premium-cta{display:none}

/* ── RESPONSIVE ── */

/* tablet: zmniejsz fan kart */
@media(max-width:900px){
  .hero-visual{flex:0 0 210px;width:210px;height:260px}
  .pcard{width:120px}
  .pcard.one{transform:translate(calc(-50% - 50px),-50%) rotate(-11deg)}
  .pcard.three{transform:translate(calc(-50% + 50px),-50%) rotate(11deg)}
  .stage11-tier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .packages-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* pakiety: zejście do 1 kolumny wcześniej niż reszta mobile */
@media(max-width:560px){
  .packages-grid{grid-template-columns:1fr}
  .package-card{padding:14px 12px}
  .package-price{font-size:24px}
  .package-card h3{font-size:16px}
}

/* mobile */
@media(max-width:700px){
  body::before{background-image:url("/assets/optimized/premiummobtlo.webp");background-position:center top}
  body::after{background:radial-gradient(circle at 50% 14%,rgba(240,189,66,.22),transparent 34%),linear-gradient(180deg,rgba(2,7,21,.28),rgba(3,5,10,.60))}
  .page{
    width:calc(100% - 24px);
    padding:16px 0 56px;
  }
  .topbar{margin-bottom:20px;gap:8px;flex-wrap:wrap;align-items:center}
  .brand-mark{width:40px;height:40px}
  .brand-word{font-size:20px}
  .mobile-menu-toggle{display:inline-flex;margin-left:auto}
  .topbar-actions{
    display:none;width:100%;order:3;
    grid-template-columns:1fr;gap:8px;padding:10px;
    border:1px solid rgba(255,238,189,.14);border-radius:8px;
    background:rgba(5,12,22,.70);
  }
  .topbar.menu-open .topbar-actions{display:grid}
  .topbar-actions .btn{width:100%;min-height:42px;justify-content:center;font-size:14px}

  /* hero: flexbox kolumna, fan kart schowany */
  .hero{
    flex-direction:column;
    align-items:flex-start;
    padding:20px 18px;
    gap:0;
  }
  .hero-visual{display:none}
  .hero h1{font-size:clamp(32px,11vw,52px)}
  .hero-sub{font-size:14px;max-width:100%}

  .sections{gap:10px;margin-top:12px}
  .stage11-tier-grid,
  .stage11-backgrounds,
  .stage11-victory-grid,
  .stage11-entry-grid{grid-template-columns:1fr}
  .rings-grid{grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px}
  .ring-img{width:50px;height:50px}
  .colors-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
  .packages-grid{grid-template-columns:1fr}
  .perks-grid{grid-template-columns:1fr}
  .victory-anim{width:70px;height:70px;font-size:30px}
  .btn-unlock{min-height:50px;padding:0 20px;font-size:15px;width:100%;justify-content:center}
  .cta-block{padding:20px 16px;text-align:left}
  .cta-block p{max-width:100%}
}

@media(max-width:420px){
  .colors-grid{grid-template-columns:1fr 1fr}
  .badges-row{gap:6px}
  .badges-row .badge-chip{flex:1 1 auto;justify-content:center}
}

/* ── lightbox ── */
@keyframes fadeInLightbox{from{opacity:0}to{opacity:1}}
.ring-lightbox,.card-lightbox{
  position:fixed;inset:0;z-index:9999;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.82);
  backdrop-filter:blur(8px);
  animation:fadeInLightbox .18s ease forwards;
  cursor:pointer;
}
.ring-lightbox-inner{
  display:flex;flex-direction:column;align-items:center;gap:16px;
  pointer-events:none;
}
.ring-lightbox-img{
  width:clamp(140px,30vw,200px);height:clamp(140px,30vw,200px);
  border-radius:50%;
  background-position:center;
  background-size:contain;
  background-repeat:no-repeat;
  box-shadow:0 0 0 3px #1a1d22,0 0 0 6px #c6a15b,0 0 60px rgba(240,189,66,.50),0 20px 50px rgba(0,0,0,.60);
}
.ring-lightbox-name{font-size:18px;font-weight:900;color:#fff7c2;text-shadow:0 2px 12px rgba(0,0,0,.60)}
.card-lightbox-img{
  width:clamp(160px,36vw,260px);
  aspect-ratio:2/3;
  border-radius:16px;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  box-shadow:0 30px 90px rgba(0,0,0,.72),0 0 50px rgba(240,189,66,.18);
  pointer-events:none;
}

/* ── ring item clickable ── */
.ring-item{cursor:pointer}
.wt-premium-trust { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 22px; margin:20px 0; color:#c7d9d4; font-size:12px; font-weight:700; }
.wt-premium-trust span { display:inline-flex; align-items:center; gap:7px; }
.wt-premium-trust .wt-icon { color:#9ce3bc; }
.package-topline { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; min-height:29px; margin-bottom:15px; font-size:10px; font-weight:800; letter-spacing:.03em; color:#bbd7ce; }
.package-topline .package-savings { position:static; padding:5px 8px; border:1px solid #7ed9b244; border-radius:999px; background:#73cd9c16; color:#b4efc9; font-size:12px; }
.package-card.is-best-value { border-color:#efcc7780; background:radial-gradient(ellipse at top,#d5ab3e17,transparent 65%),linear-gradient(150deg,#17292bea,#0a1826f5); }
.package-card.is-best-value .package-topline { color:#f3d590; }
.package-total-note { margin:7px 0 12px; font-size:12px; font-weight:700; color:#b8c7cb; }
.wt-premium-purchase-guide { padding:clamp(22px,4vw,38px); margin:28px 0; border:1px solid #acd9ca26; border-radius:24px; background:linear-gradient(140deg,#102a31eb,#091524f5); }
.wt-premium-purchase-guide h2 { margin:9px 0 24px; color:#f6dda3; font-size:clamp(23px,3vw,34px); }
.wt-premium-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-bottom:24px; }
.wt-premium-steps article { position:relative; padding-left:42px; }
.wt-premium-steps b { position:absolute; left:0; top:0; color:#8ed8b8; font-size:21px; font-weight:900; }
.wt-premium-steps h3 { margin:1px 0 9px; color:#f3e5ba; font-size:16px; }
.wt-premium-steps p,.wt-premium-purchase-guide details p { margin:0; color:#b8cbd0; font-size:13px; line-height:1.8; }
.wt-premium-purchase-guide details { border-top:1px solid #c3dcc51d; padding:14px 0; }
.wt-premium-purchase-guide summary { cursor:pointer; font-weight:800; font-size:13px; color:#dde9df; }
.wt-premium-purchase-guide details p { margin-top:10px; }
.wt-premium-purchase-guide a { color:#a0e6c6; }
.wt-premium-purchase-guide summary:focus-visible { outline:2px solid #9fdec2; outline-offset:4px; }
@media(max-width:760px) { .wt-premium-steps { grid-template-columns:1fr; gap:22px; } .wt-premium-trust { justify-content:flex-start; } }
.ring-item:focus-visible{outline:2px solid rgba(240,189,66,.70);outline-offset:4px;border-radius:4px}

/* ── card thumb clickable ── */
.card-thumb{cursor:pointer}

/* ── live nick/badge preview ── */
.prem-live-preview{
  display:flex;align-items:center;justify-content:center;
  padding:14px 20px;margin-bottom:14px;
  border:1px solid rgba(255,238,189,.14);border-radius:10px;
  background:rgba(0,0,0,.28);
  min-height:56px;
}
.prem-live-preview-nick{
  font-size:20px;font-weight:900;letter-spacing:.01em;
  transition:color .2s,text-shadow .2s;
}
/* make swatches clickable */
.color-swatch{cursor:pointer;transition:border-color .14s,background .14s}
.color-swatch:hover{border-color:rgba(255,238,189,.32);background:rgba(5,12,22,.68)}
.color-swatch.active{border-color:rgba(255,238,189,.55);background:rgba(255,247,194,.08)}
.badge-chip{cursor:pointer;transition:border-color .14s,background .14s}
.badge-chip:hover{border-color:rgba(255,238,189,.30);background:rgba(255,247,194,.08)}
.badge-chip.active{border-color:rgba(240,189,66,.58);background:rgba(240,189,66,.10)}
.ve-card.ve-previewing{border-color:rgba(240,189,66,.52);background:rgba(240,189,66,.08)}
.ve-icon .wt-icon{width:34px;height:34px}
.ve-preview-btn .wt-icon,.btn-section-preview .wt-icon{width:13px;height:13px;vertical-align:-2px;margin-right:4px}
.badge-chip .wt-icon{width:19px;height:19px;color:#e5cf94;flex-shrink:0}
:is(.color-swatch,.badge-chip,.card-thumb,.ring-item):focus-visible{outline:2px solid #8ce7df;outline-offset:4px}
@media(prefers-reduced-motion:reduce){
  .btn,.ring-img,.card-thumb,.color-swatch,.badge-chip,.prem-live-preview-nick,.btn-unlock,.package-savings{transition:none}
  .ring-item:hover .ring-img,.card-thumb:hover{transform:none}
}

/* ── reaction chip ── */
.reaction-chip{cursor:pointer;border:none;font:inherit;transition:background .14s,border-color .14s;text-align:left}
.reaction-chip:hover{background:rgba(125,248,232,.14);border-color:rgba(125,248,232,.32)}

@media (hover:none), (pointer:coarse){
  body::before,
  body::after{position:absolute;transform:none}
  *,
  *::before,
  *::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}

body.wt-premium .package-card.is-best-value { border-color:#efcc7780; background:radial-gradient(ellipse at top,#d5ab3e17,transparent 65%),linear-gradient(150deg,#17292bea,#0a1826f5); }
.wt-premium-card-sample { flex:none; width:154px; scroll-snap-align:start; }
.wt-premium-card-sample .card-thumb { width:100%; height:auto; aspect-ratio:2/3; background-size:contain; background-color:#091927; }
.wt-premium-card-sample > span { display:block; padding:10px 0 2px; color:#e3d3aa; font-size:11px; font-weight:800; line-height:1.5; }
.wt-premium-card-sample small { display:block; color:#b6c6c8; font-size:10px; font-weight:600; }

/* One choice, one checkout: the legal choices are shown once for the selected period. */
body.wt-premium .compact-packages { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
body.wt-premium .package-choice { display:flex; flex-direction:column; gap:7px; padding:20px 16px 14px; border-radius:18px; color:#edf4ef; text-decoration:none; transition:border-color .2s,background .2s,transform .2s; }
body.wt-premium .package-choice:hover { transform:translateY(-3px); border-color:#edce8c; }
body.wt-premium .package-choice.is-selected { border-color:#b2ead2; background:linear-gradient(145deg,#21433f,#0b202b); box-shadow:0 0 0 1px #b2ead255,0 15px 35px #0003; }
body.wt-premium .package-choice:focus-visible { outline:3px solid #b2ead2; outline-offset:4px; }
body.wt-premium .package-choice .package-topline { min-height:28px; margin:0 0 7px; font-size:10px; line-height:1.4; }
body.wt-premium .package-choice h3 { font-size:20px; margin:0 0 5px; }
body.wt-premium .package-choice .package-price { font-size:clamp(25px,3vw,35px); }
body.wt-premium .package-choice .package-total-note { margin:0; color:#c8d6d8; font-size:11px; }
body.wt-premium .package-choice .package-per-month { color:#c4d9d6; font-size:12px; }
.package-comparison { color:#abebc8; font-size:11px; font-weight:800; margin:4px 0 10px; }
.package-choice-state { display:flex; align-items:center; justify-content:space-between; gap:7px; margin-top:auto; padding-top:11px; border-top:1px solid #d1e6d326; color:#dce9df; font-size:12px; font-weight:800; }
.package-choice:not(.is-selected) .package-choice-state .wt-icon { opacity:0; }
.premium-checkout { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:30px; width:100%; padding:24px; margin-top:18px; border:1px solid #b7d9c22e; border-radius:18px; background:#081a27e8; text-align:left; scroll-margin-top:24px; }
.premium-checkout-summary h3 { margin:8px 0 12px; color:#f6dca4; font-size:20px; line-height:1.3; }
body.wt-premium .premium-checkout-summary p { color:#c4d6d8; font-size:13px; line-height:1.6; margin:8px 0; }
.premium-checkout-summary strong { color:#ffdf9b; font-size:25px; }
body.wt-premium .premium-checkout .payment-note { max-width:none; margin:5px 0; color:#b8cbd0; font-size:11px; line-height:1.6; }
.premium-checkout .premium-check-row { font-size:12px; line-height:1.6; color:#deebe7; gap:10px; }
.premium-checkout .premium-check-row input { width:17px; height:17px; margin-top:2px; }
.premium-checkout .premium-buy-form > button { justify-self:start; min-width:220px; min-height:44px; }
.premium-checkout-account { display:flex; gap:14px; align-items:center; justify-content:center; flex-wrap:wrap; }
body.wt-premium .cta-block .package-footnote { max-width:none; width:100%; font-size:10px; line-height:1.6; color:#b1c2c8; margin:12px 0 0; text-align:left; }
@media(max-width:900px) { body.wt-premium .compact-packages { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .premium-checkout { grid-template-columns:1fr; gap:15px; padding:18px; } body.wt-premium .package-choice { padding:15px 12px 12px; } body.wt-premium .package-choice h3 { font-size:17px; } body.wt-premium .package-choice .package-price { font-size:25px; } .premium-checkout .premium-buy-form > button { width:100%; min-width:0; } }
@media(prefers-reduced-motion:reduce) { body.wt-premium .package-choice { transition:none; } body.wt-premium .package-choice:hover { transform:none; } }

/* Original Premium illustration, shared with Checkout; visible on phones too. */
body.wt-premium .hero-visual.premium-artwork{display:block;flex:0 1 390px;width:clamp(250px,35vw,390px);height:auto;aspect-ratio:1;margin:0;position:relative;isolation:isolate;border-radius:24px;overflow:hidden;border:1px solid #d3ad633d;box-shadow:0 20px 55px #0008,0 0 45px #deab5020}
.premium-artwork img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:760px){body.wt-premium .hero{flex-direction:column;gap:24px}body.wt-premium .hero-visual.premium-artwork{flex:none;width:min(100%,340px);align-self:center}body.wt-premium .hero-copy{width:100%;flex:none}}
