:root{
  --bg:#06090f; --fg:#e9f0f8; --muted:#9bb0c8; --line:#121a26;
  --rail:#0b1118; --card:#0b1118; --ink:#05070c;
  --acc:#ff5a00; --acc2:#10e6cd; --ring:#10e6cd;
}
*{box-sizing:border-box}
html,body{height:100%}
:root{
  --cursor-def:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\"><circle cx=\"9\" cy=\"9\" r=\"8\" fill=\"none\" stroke=\"%23ff5a00\" stroke-width=\"2\"/></svg>') 9 9, auto;
  --cursor-pointer:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\"><rect x=\"8\" y=\"0\" width=\"2\" height=\"18\" fill=\"%2310e6cd\"/></svg>') 9 9, pointer;
}
*{scrollbar-width:thin;scrollbar-color:#2b3b4c #0b1118}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:#0b1118}
*::-webkit-scrollbar-thumb{background:#2b3b4c;border-radius:10px;border:2px solid #0b1118}

body{margin:0;background:var(--bg);color:var(--fg);cursor:var(--cursor-def);
  font:14.5px/1.5 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;overflow-x:hidden}
a{color:inherit;text-decoration:none;cursor:var(--cursor-pointer)}
img{display:block;max-width:100%}
h1,h2{font-family:'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif}

.app{min-height:100dvh;display:grid;grid-template-columns: clamp(240px,20vw,300px) 1fr}

/* Sidebar and common styles (unchanged) */
.rail{position:sticky;top:0;align-self:start;height:100dvh;background:linear-gradient(180deg,#0b1118, #0d141c);border-right:1px solid var(--line);display:grid;grid-template-rows:auto auto 1fr auto;gap:14px;padding:16px}
.rail-head{display:flex;align-items:center;gap:8px}
.rail-head .lang-compact{margin-left:auto}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand img{width:36px;height:36px}
.brand-meta strong{display:block;font-weight:800;letter-spacing:.6px}
.brand-meta .ver{display:inline-block;margin-top:2px;font-size:11px;color:#8fa3ba}
.flag-ico{width:20px;height:14px;border-radius:3px;display:block;filter:drop-shadow(0 1px 0 rgba(0,0,0,.45)) saturate(1.06) contrast(1.04)}
.lang-compact .dd-btn{display:flex;align-items:center;gap:6px;width:52px;height:36px;padding:0 8px;border-radius:10px;border:1px solid var(--line);background:#0e1621;color:#fff}
.lang-compact .dd-btn:hover{border-color:#293a4f}
.chev{opacity:.8}
.dd-vertical{right:0;left:auto}
.dd-menu{position:absolute;z-index:1000;top:calc(100% + 8px);background:#0e1621;border:1px solid var(--line);border-radius:12px;padding:6px;display:none;min-width:200px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.dd-list{list-style:none;margin:0;padding:4px 0;display:block}
.dd-item{width:100%;display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:#0f1824;border:1px solid #1a2736;color:#d7e6fb}
.dd-item:hover{border-color:#2a3c52;background:#102035}
.dropdown{position:relative}
.dropdown.open .dd-menu{display:block !important}
.rail-nav{display:grid;gap:8px;margin-top:6px}
.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#0e1621;color:#b9c9de}
.nav-item.solid{background:linear-gradient(90deg,var(--acc),var(--acc2));color:#061419;border-color:transparent;font-weight:800;letter-spacing:.3px}
.nav-item:hover{border-color:#2a3c52;color:#fff}
.rail-social{display:flex;gap:8px}
.rail-social .ico{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:10px;color:#c5d7ee;background:#0e1621}
.rail-social .ico:hover{border-color:#2b3b49}
.rail-note{display:flex;align-items:center;gap:8px;color:#94a9c1;font-size:12px}
.dot{width:8px;height:8px;border-radius:50%}
.dot.online{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2)}
.discord-cta{margin-top:4px}
#discord-fab{position:fixed;right:16px;top:16px;z-index:80;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--acc),var(--acc2));color:#051018;border:1px solid #00000055;box-shadow:0 10px 30px rgba(0,0,0,.25)}

/* Hero backdrop */
.main{position:relative;background:radial-gradient(120% 110% at 50% 0%, rgba(12,20,30,.82) 0, rgba(10,13,18,.82) 60%)}
.hero{position:relative;min-height:64dvh;display:grid;place-items:center;overflow:hidden;padding:36px 18px}
.layer{position:absolute;inset:0;pointer-events:none}
.bg-img{z-index:0;background:#05070a url('assets/bg.jpg') center/cover no-repeat;filter:brightness(.70) contrast(1.04) saturate(1.02)}
.grid{z-index:3;background:
  repeating-linear-gradient(#0e172588 0 2px, transparent 2px 60px),
  repeating-linear-gradient(90deg, #0e172588 0 2px, transparent 2px 60px);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 55%, transparent 100%);
  opacity:.20}
#fog{z-index:2;filter:blur(8px);opacity:.28}
#bats{z-index:4;opacity:.35}
.hero-inner{text-align:center;position:relative;z-index:5}
.live-pill{display:inline-block;margin-bottom:10px;padding:4px 8px;border-radius:999px;border:1px solid #2a3c52;background:#0f1824;color:#ffb74d;font-size:11px;letter-spacing:.16em}
.title{margin:0 0 6px;font:800 clamp(48px,8vw,102px)/0.94 'Space Grotesk', sans-serif;letter-spacing:0.5px}
.title span{background:linear-gradient(90deg,var(--acc),var(--acc2));-webkit-background-clip:text;background-clip:text;color:transparent}
.spooky{text-shadow:0 0 18px rgba(255,90,0,.12), 0 0 36px rgba(16,230,205,.08)}
.lead{margin:0 auto 12px;color:#a9bad0;max-width:680px;font-size:13.5px}

/* Buttons (from R14) */
.btn{--b:1px; --r:14px; --pad-y:10px; --pad-x:14px; --elev:18px;
  position:relative; display:inline-grid; place-items:center; gap:4px;
  padding:var(--pad-y) var(--pad-x); border-radius:var(--r);
  border:var(--b) solid #1a2736; color:#eaf2ff; background:
    radial-gradient(120% 180% at 50% 0%, rgba(255,255,255,.06), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #101a27, #0b141f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 4px rgba(0,0,0,.35), 0 var(--elev) 40px -20px rgba(0,0,0,.45);
  transition: transform .12s ease, box-shadow .18s ease, border-color .12s ease, background-position .25s ease;
  text-align:center; text-decoration:none; isolation:isolate; overflow:hidden;
}
.btn.xl{font-size:16px; padding:14px 22px; border-radius:16px}
.btn small{opacity:.8; font-size:12px}
.btn.primary{
  border-color: transparent;
  background: linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,0) 35%), linear-gradient(90deg, var(--acc) 0%, var(--acc2) 100%);
  color:#061419; font-weight:800; letter-spacing:.3px;
}
.btn.primary::before{content:""; position:absolute; inset:-1px; border-radius:inherit; background:linear-gradient(90deg, rgba(255,90,0,.45), rgba(16,230,205,.45)); filter:blur(12px); opacity:.0; transition:opacity .18s}
.btn.primary::after{content:""; position:absolute; inset:-1px; border-radius:inherit; background:linear-gradient(60deg, transparent 0%, rgba(255,255,255,.22) 10%, transparent 22%); background-size:200% 100%; background-position:-120% 0; mix-blend-mode:soft-light; opacity:.0; transition:opacity .12s, background-position .6s}
.btn.primary:hover::before{opacity:.35}
.btn.primary:hover::after{opacity:.6; background-position:120% 0}
.btn.outline{background: #0a131e; color:#cfe0f6; border-color:#223244}
.btn.outline:hover{ border-color:#2e4158; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.28)}
.btn:hover{ transform: translateY(-1px) }
.btn:active{ transform: translateY(0); box-shadow: inset 0 2px 8px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25) }
.btn:focus-visible{ outline:none; box-shadow: 0 0 0 2px #051018, 0 0 0 4px var(--ring) }

/* Lined title stays on top */
.news{padding:20px 18px 32px}
.news-head{display:grid;grid-template-columns:1fr auto;grid-template-areas:"title filters";align-items:center;gap:10px;max-width:1200px;margin:0 auto 12px}
.lined-title{grid-area:title;display:flex;align-items:center;justify-content:center;gap:10px}
.lined-title::before,.lined-title::after{content:"";flex:1;border-top:1px solid var(--line)}
.lined-title span{text-transform:uppercase;letter-spacing:.18em;font-weight:800;font-size:12.5px;color:#cfe0f6;white-space:nowrap}
.filters{grid-area:filters;display:flex;gap:6px;flex-wrap:wrap;justify-self:end}

/* Featured cards now inside .news, same grid */
.featured-grid{max-width:1200px;margin:0 auto 16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.card{position:relative;display:grid;grid-template-rows:auto 1fr;gap:0;border:1px solid var(--line);background:var(--card);border-radius:14px;overflow:hidden;outline:none;color:inherit;text-decoration:none;transition:transform .12s ease, box-shadow .12s ease, border-color .12s}
.card.notch{clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%)}
.card:focus-visible{box-shadow:0 0 0 2px var(--ring)}
.card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.25);border-color:#233244}
.card .media{position:relative;aspect-ratio:16/9;background:#0c1219}
.card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:contrast(1.03) saturate(1.02)}
.pill{position:absolute;top:8px;left:8px;background:#111a24;color:#e8eef6;border:1px solid var(--line);padding:3px 6px;border-radius:999px;font-size:10px;letter-spacing:.3px}
.pill-event{border-color:#ff5a00;color:#ff5a00}
.pill-update{border-color:#6ea7ff;color:#6ea7ff}
.pill-balance{border-color:#7cf5a5;color:#7cf5a5}
.card .body{padding:12px 12px 14px;display:grid;gap:6px;align-content:start}
.card .date{font-size:11px;color:#8fa3ba}
.card .title{margin:0;font-weight:800;letter-spacing:.2px;font-size:16px;line-height:1.25}
.card .desc{color:#b7c7da;max-width:60ch;font-size:13px;line-height:1.35}

/* News list under featured */
.news-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.news-card{display:grid;grid-template-rows:auto 1fr auto;gap:6px;border:1px solid var(--line);background:#0b1118;color:#cfe0f6;padding:12px;border-radius:12px;text-decoration:none;transition:transform .12s ease, box-shadow .12s ease, border-color .12s}
.news-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,.22);border-color:#233244}
.news-card .date{font-size:11px;color:#8fa3ba}
.news-card .title{font-weight:800;letter-spacing:.2px;font-size:15px;margin:0;color:#e8eef6}
.news-card p{font-size:13px;line-height:1.35;margin:0 0 6px;color:#cfe0f6}
.badge-tag{justify-self:start;display:inline-grid;place-items:center;padding:2px 6px;border-radius:999px;font-size:10.5px;color:#071018}
.badge-tag.update{background:#ffa600}
.badge-tag.balance{background:#7cf5a5}
.badge-tag.esports{background:#9f79ff}
.badge-tag.event{background:#ffb74d}

/* Footer unchanged */
.footer{border-top:1px solid var(--line);background:linear-gradient(180deg,#0b1118,#0a0f16)}
.footer-inner{max-width:1200px;margin:0 auto;padding:18px;display:grid;grid-template-columns: 1.3fr 1fr 1fr 1fr;gap:16px;align-items:start}
.f-brand{display:flex;gap:10px;align-items:flex-start}
.f-brand img{width:36px;height:36px}
.f-brand strong{font-weight:800;display:block}
.f-brand p{margin:4px 0 0;color:#9fb2c8;font-size:13px}
.f-col h4{margin:0 0 8px;font-size:13px;color:#8fa3ba}
.f-col a{display:inline-block;padding:6px 8px;border:1px solid var(--line);border-radius:10px;background:#0e1621;color:#cfe0f6;font-size:13px;margin:0 8px 8px 0}
.f-col a:hover{border-color:#2a3c52}
.f-legal{max-width:1200px;margin:0 auto;padding:10px 18px;color:#94a9c1;border-top:1px solid #111b28;text-align:center;font-size:12.5px}

/* Responsive */
@media (max-width: 1200px){
  .news-grid, .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 720px){
  .news-grid, .featured-grid{grid-template-columns:1fr}
  .rail-head{grid-template-columns:1fr auto}
}
/* Bats animation keep */
.bat{position:absolute; top:10%; left:-60px; color:#e8eef6; opacity:.5; animation: bat-fly 9s linear infinite; will-change: transform}
@keyframes bat-fly{ 0%{ transform: translate3d(-60px,0,0) scale(1)} 50%{ transform: translate3d(calc(100vw + 60px),6vh,0) scale(1.05)} 100%{ transform: translate3d(calc(100vw + 60px),-3vh,0) scale(1)} }

/* R15 no-filters */
.news .filters{display:none}

/* R15c: Countdown visibility */
.hero-meta .chip strong#cd{
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  color: #eaf2ff;
}

/* R15h: stronger background dim + bottom fade */
.bg-img{filter:brightness(.55) contrast(1.04) saturate(1)}
.hero::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background: radial-gradient(120% 90% at 50% 30%,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.45) 55%,
    rgba(0,0,0,.60) 100%);
}
.hero::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:24vh; z-index:6; pointer-events:none;
  background: linear-gradient(to bottom, rgba(6,9,15,0) 0%, rgba(6,9,15,.55) 55%, rgba(6,9,15,.96) 100%);
}

/* R15i: lighter dim + wavy bottom fade */
.bg-img{filter:brightness(.68) contrast(1.04) saturate(1.02) !important;}
.hero::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background: radial-gradient(120% 90% at 50% 30%,
    rgba(0,0,0,.18) 0%,
    rgba(0,0,0,.32) 55%,
    rgba(0,0,0,.46) 100%) !important;
}
.hero::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:22vh; z-index:6; pointer-events:none;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 120" preserveAspectRatio="none"><path d="M0,60 C50,90 100,30 150,60 C200,90 250,30 300,60 C350,90 400,30 400,30 L400,120 L0,120 Z" fill="%23060A0F"/></svg>') bottom center / 240px 100% repeat-x,
    linear-gradient(to bottom, rgba(6,9,15,0) 0%, rgba(6,9,15,.70) 65%, rgba(6,9,15,1) 100%);
}

/* R15j: smoother hero->news transition */
.hero::after{
  height:28vh !important;
  background:
    linear-gradient(to bottom, rgba(6,9,15,0) 0%, rgba(6,9,15,.55) 55%, rgba(6,9,15,.92) 85%, #06090f 100%) !important;
  /* wavy mask for top edge; fallback keeps linear gradient */
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" preserveAspectRatio="none"><path d="M0,120 C80,160 160,80 240,120 C320,160 400,80 480,120 C560,160 640,80 720,120 C760,140 780,140 800,120 L800,200 L0,200 Z" fill="white"/></svg>');
  -webkit-mask-size: 360px 100%;
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: bottom center;
          mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" preserveAspectRatio="none"><path d="M0,120 C80,160 160,80 240,120 C320,160 400,80 480,120 C560,160 640,80 720,120 C760,140 780,140 800,120 L800,200 L0,200 Z" fill="white"/></svg>');
          mask-size: 360px 100%;
          mask-repeat: repeat-x;
          mask-position: bottom center;
}

/* Overlap sections to avoid visual seam */
.news{ 
  margin-top: -6vh; 
  padding-top: calc(20px + 6vh);
}

/* R15k: no extra opacity; fade via mask only */
.bg-img{ filter: none !important; }          /* brak globalnego przygaszenia */
.hero::before{ display:none !important; }    /* zero overlayów */

/* Miękka maska u dołu sekcji hero (przezroczystość do 0) */
.hero{
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, #000 75%, rgba(0,0,0,0) 100%);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* Delikatna fala na krawędzi maski */
.hero::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:18vh; z-index:6; pointer-events:none;
  background: transparent; /* brak koloru, używamy tylko maski */
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" preserveAspectRatio="none"><defs><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="white"/><stop offset="1" stop-color="transparent"/></linearGradient></defs><path d="M0,110 C80,150 160,70 240,110 C320,150 400,70 480,110 C560,150 640,70 720,110 C760,130 780,130 800,110 L800,200 L0,200 Z" fill="url(%23g)"/></svg>');
  -webkit-mask-size: 360px 100%;
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: bottom center;
          mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" preserveAspectRatio="none"><defs><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="white"/><stop offset="1" stop-color="transparent"/></linearGradient></defs><path d="M0,110 C80,150 160,70 240,110 C320,150 400,70 480,110 C560,150 640,70 720,110 C760,130 780,130 800,110 L800,200 L0,200 Z" fill="url(%23g)"/></svg>');
          mask-size: 360px 100%;
          mask-repeat: repeat-x;
          mask-position: bottom center;
}

/* Sekcja news lekko nachodzi, bez różnic odcieni */
.news{ 
  margin-top: -8vh; 
  padding-top: calc(20px + 8vh);
}

/* R15l: wave lower + slightly darker hero */
.bg-img{ filter: brightness(.78) contrast(1.05) saturate(1.02) !important; }

/* fade starts much lower to not cover image */
.hero{
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, rgba(0,0,0,0) 100%) !important;
          mask-image: linear-gradient(to bottom, #000 90%, rgba(0,0,0,0) 100%) !important;
}

/* wave closer to bottom and thinner */
.hero::after{
  height: 12vh !important;
  -webkit-mask-size: 320px 100% !important;
          mask-size: 320px 100% !important;
  -webkit-mask-position: bottom center !important;
          mask-position: bottom center !important;
}

/* overlap reduced to avoid large gap */
.news{ 
  margin-top: -5vh !important;
  padding-top: calc(20px + 5vh) !important;
}

/* R15m: only darken by lowering background image opacity */
.bg-img{ filter:none !important; opacity:.78 !important; } /* zero overlayów, tylko opacity obrazka */

/* R15n: set bg opacity to 0.40 */
.bg-img{ opacity:.40 !important; }

/* R15p: Footer Pro */
.footer.pro{border-top:1px solid var(--line);background:linear-gradient(180deg,#0b1118,#0a0f16)}
.footer-inner.pro{max-width:1200px;margin:0 auto;padding:26px 18px;display:grid;grid-template-columns:1.3fr 2fr;gap:28px;align-items:start}
.f-brand-col .f-brand{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
.f-brand-col .f-brand img{width:40px;height:40px}
.f-brand-col .f-brand strong{font-weight:800;display:block}
.f-brand-col .f-brand p{margin:4px 0 0;color:#9fb2c8;font-size:13px}
.f-social{display:flex;gap:8px;margin-top:4px}
.f-social .ico{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:12px;background:#0e1621;color:#cfe0f6}
.f-social .ico:hover{border-color:#2a3c52;color:#fff}
.f-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.f-group h4{margin:0 0 10px;font-size:13px;color:#8fa3ba}
.f-group a{display:inline-block;padding:6px 10px;border:1px solid var(--line);border-radius:10px;background:#0e1621;color:#cfe0f6;font-size:13px;margin:0 8px 8px 0}
.f-group a:hover{border-color:#2a3c52}
.f-group.rules .rules-mini{list-style:disc;margin:0 0 10px 16px;padding:0;color:#a8bed6;font-size:12.5px}
.f-group.rules .f-cta{border-color:#233244;background:linear-gradient(90deg,var(--acc),var(--acc2));color:#051018;font-weight:800;letter-spacing:.2px}
@media (max-width: 960px){
  .footer-inner.pro{grid-template-columns:1fr}
  .f-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* R15q: place footer in grid column 2 (main), not under sidebar */
.app{ display:grid; grid-template-columns: clamp(240px,20vw,300px) 1fr; }
.footer, .footer.pro{ grid-column: 2 / -1; }
@media (max-width: 900px){
  .footer, .footer.pro{ grid-column: 1 / -1; }
}

/* R15r: Footer refined */
.footer.pro.alt{ grid-column: 2 / -1; border-top:1px solid var(--line);
  background:
    linear-gradient(180deg,#0c141d,#0a0f16),
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.02), transparent 60%);
  position:relative;
}
.footer.pro.alt::before{
  content:""; position:absolute; inset:0; opacity:.06; pointer-events:none;
  background:
    repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 9px),
    repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 13px);
  mix-blend-mode:soft-light;
}
.footer-inner.alt{max-width:1200px;margin:0 auto; padding:26px 18px; display:grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr; gap:22px; align-items:start}
.footer-inner.alt .col h4{margin:0 0 10px;font-size:13px;color:#8fa3ba}
.footer-inner.alt .col a{display:inline-block; padding:6px 10px; border:1px solid var(--line); border-radius:10px;
  background:#0e1621; color:#cfe0f6; font-size:13px; margin:0 8px 8px 0}
.footer-inner.alt .col a:hover{border-color:#2a3c52}
.footer-inner.alt .brand{display:flex; gap:12px; align-items:flex-start}
.footer-inner.alt .brand img{width:40px; height:40px}
.footer-inner.alt .brand strong{font-weight:800; display:block}
.footer-inner.alt .brand p{margin:4px 0 0; color:#9fb2c8; font-size:13px}
.footer-inner.alt .support .support-line{display:flex; gap:8px; align-items:center; color:#a8bed6; margin:0 0 8px}
.footer-inner.alt .support .btn.small{padding:6px 10px; border-radius:10px; font-size:13px}
.footer-inner.alt .socials .f-social{display:flex; gap:8px}
.f-legal.alt{max-width:1200px; margin:0 auto; padding:10px 18px; color:#94a9c1; border-top:1px solid #111b28; text-align:center; font-size:12.5px}
@media (max-width: 1100px){ .footer-inner.alt{grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px){ .footer-inner.alt{grid-template-columns: 1fr;} .footer.pro.alt{grid-column: 1 / -1;} }

/* R15s: emoji header nav + locked badges */
.rail-nav .nav-item{gap:10px; display:flex; align-items:center; font-weight:600;}
.rail-nav .nav-item .em{width:20px; display:inline-flex; justify-content:center; align-items:center; font-size:16px}
.rail-nav .nav-item.locked{opacity:.55; cursor:not-allowed; position:relative}
.rail-nav .nav-item.locked:hover{opacity:.65}
.badge-lock{margin-left:auto; font-size:11px; padding:2px 6px; border-radius:999px; color:#9fb2c8; border:1px dashed #2a3c52}

/* R15t: SVG icon nav */
.rail-nav .nav-item{display:flex; align-items:center; gap:10px; font-weight:600;}
.rail-nav .nav-item .nav-ico{opacity:.9}
.rail-nav .nav-item:hover .nav-ico{opacity:1}
/* keep locked visuals */
.rail-nav .nav-item.locked{opacity:.55; cursor:not-allowed; position:relative}
.rail-nav .nav-item.locked:hover{opacity:.65}
.badge-lock{margin-left:auto; font-size:11px; padding:2px 6px; border-radius:999px; color:#9fb2c8; border:1px dashed #2a3c52}

/* R15u: image socials */
.f-social.imgs{display:flex; gap:10px; flex-wrap:wrap}
.f-social.imgs .ico.img{
  width:36px; height:36px; border:1px solid var(--line); border-radius:12px; background:#0e1621;
  display:grid; place-items:center; transition:border-color .15s ease, transform .12s ease;
}
.f-social.imgs .ico.img:hover{ border-color:#2a3c52; transform: translateY(-1px) }
.f-social.imgs .ico.img img{ width:20px; height:20px; display:block; filter: saturate(1) contrast(1.1) brightness(.96) }

/* R15v: lighten social icons */
.f-social.imgs .ico.img{ 
  background:#0f1622; 
  border-color:#223244; 
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.f-social.imgs .ico.img img{ 
  filter: invert(1) brightness(1.9) contrast(1.05) saturate(0.9);
}
.f-social.imgs .ico.img:hover{ 
  border-color:#2f4560; 
  transform: translateY(-2px); 
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(0,0,0,.28);
}
.f-social.imgs .ico.img:hover img{ 
  filter: invert(1) brightness(2.2) contrast(1.1);
}

/* R15x: socials in one line, normal size, prevent stretch */
.f-social.imgs{
  display:flex;
  flex-wrap:nowrap;       /* jedna linia */
  gap:8px;
  align-items:center;
  justify-content:flex-start;
  overflow-x:auto;        /* gdy ciasno, pozwól przewijać, bez łamania wiersza */
  padding-bottom:2px;
}
.f-social.imgs .ico.img{
  width:32px; height:32px;   /* mniejsze kapsuły */
  border-radius:10px;
  flex:0 0 auto;             /* nie rozciągaj */
}
.f-social.imgs .ico.img img{
  width:auto; height:18px;   /* naturalne proporcje, bez rozciągania */
  object-fit:contain;
}
@media (max-width: 680px){
  .f-social.imgs{ gap:6px }
  .f-social.imgs .ico.img{ width:30px; height:30px }
  .f-social.imgs .ico.img img{ height:16px }
}

/* R15y: 'more' text under news */
.news-more{max-width:1200px;margin:8px auto 0;display:flex;align-items:center;justify-content:center;gap:10px;color:#a9bad0}
.news-more::before,.news-more::after{content:"";flex:1;border-top:1px solid var(--line)}
.news-more .more-link{display:inline-block;padding:0 6px;color:#cfe0f6;font-weight:800;letter-spacing:.08em}
.news-more .more-link:hover{color:#fff}

/* R15y: bigger social icons in one line */
.f-social.imgs .ico.img{width:40px;height:40px;border-radius:12px}
.f-social.imgs .ico.img img{height:22px}
@media (max-width: 680px){
  .f-social.imgs .ico.img{width:36px;height:36px}
  .f-social.imgs .ico.img img{height:20px}
}

/* R15z: white SVG socials, no bg, one line */
.f-social.svg{display:flex; gap:10px; flex-wrap:nowrap; align-items:center}
.f-social.svg .ico.svg{
  width:36px; height:36px; border:1px solid var(--line); border-radius:12px;
  display:grid; place-items:center; background:transparent; color:#fff; flex:0 0 auto;
}
.f-social.svg .ico.svg:hover{ border-color:#2a3c52; transform:translateY(-2px); transition:all .15s ease }
.f-social.svg .ico.svg svg{ display:block; width:20px; height:20px }
@media (max-width: 680px){
  .f-social.svg .ico.svg{ width:34px; height:34px }
  .f-social.svg .ico.svg svg{ width:18px; height:18px }
}

/* R16a: socials — 2 rows, 4 columns; white glyphs, tighter buttons */
.f-social.svg{
  display:grid !important;
  grid-template-columns: repeat(4, 44px);
  grid-auto-rows: 44px;
  gap: 12px 12px;
  justify-content:flex-start;
  align-content:center;
}
.f-social.svg .ico.svg{
  width:44px; height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  background:transparent;
  color:#fff;
  display:grid; place-items:center;
  flex:none;
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.f-social.svg .ico.svg svg{
  width:22px; height:22px; display:block;
  shape-rendering:geometricPrecision;
}
.f-social.svg .ico.svg:hover{
  transform:translateY(-1px) scale(1.02);
  border-color:#3a5678;
  box-shadow:0 0 0 6px rgba(255,255,255,.03);
}

/* small screens: keep 4x2 but slightly smaller */
@media (max-width: 520px){
  .f-social.svg{ grid-template-columns: repeat(4, 38px); grid-auto-rows: 38px; gap:10px }
  .f-social.svg .ico.svg{ width:38px; height:38px; border-radius:10px }
  .f-social.svg .ico.svg svg{ width:20px; height:20px }
}

.f-social.svg .ico.svg{color:#fff !important}

/* R16c: brand glyphs via CSS mask = crisp white, no background */
.f-social.svg .ico.svg .glyph{
  width:22px; height:22px; display:block;
  background-color:#fff; /* sets icon color */
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-size:contain; mask-size:contain;
}
.f-social.svg .ico.svg .glyph.g-discord{ -webkit-mask-image:url('images/socialmedia/discord.png'); mask-image:url('images/socialmedia/discord.png'); }
.f-social.svg .ico.svg .glyph.g-instagram{ -webkit-mask-image:url('images/socialmedia/instagram.png'); mask-image:url('images/socialmedia/instagram.png'); }
.f-social.svg .ico.svg .glyph.g-tiktok{ -webkit-mask-image:url('images/socialmedia/tiktok.png'); mask-image:url('images/socialmedia/tiktok.png'); }
.f-social.svg .ico.svg .glyph.g-x{ -webkit-mask-image:url('images/socialmedia/x.png'); mask-image:url('images/socialmedia/x.png'); }
.f-social.svg .ico.svg .glyph.g-threads{ -webkit-mask-image:url('images/socialmedia/threads.png'); mask-image:url('images/socialmedia/threads.png'); }
@media (max-width:520px){
  .f-social.svg .ico.svg .glyph{ width:20px; height:20px }
}

/* R16d: mask glyphs for FB/YouTube/Telegram */
.f-social.svg .ico.svg .glyph.g-facebook{ -webkit-mask-image:url('images/socialmedia/facebook.png'); mask-image:url('images/socialmedia/facebook.png'); -webkit-mask-size:contain; mask-size:contain }
.f-social.svg .ico.svg .glyph.g-youtube{ -webkit-mask-image:url('images/socialmedia/youtube.png'); mask-image:url('images/socialmedia/youtube.png'); -webkit-mask-size:92% 92%; mask-size:92% 92% }
.f-social.svg .ico.svg .glyph.g-telegram{ -webkit-mask-image:url('images/socialmedia/telegram.png'); mask-image:url('images/socialmedia/telegram.png'); -webkit-mask-size:90% 90%; mask-size:90% 90% }

.app{display:grid;grid-template-columns:clamp(240px,20vw,300px) 1fr}

.lang{margin-left:auto;position:relative}
.lang button{background:#0f1621;border:1px solid var(--line);border-radius:12px;width:36px;height:36px;display:grid;place-items:center;color:#fff}
.lang-menu{position:absolute;right:0;top:42px;background:#0f1621;border:1px solid var(--line);border-radius:12px;padding:4px;display:grid;gap:4px;z-index:5}
.lang-menu button{display:flex;align-items:center;gap:6px;background:transparent;border:0;color:var(--text);padding:6px 8px;border-radius:10px}
.lang-menu button:hover{background:#0c141d}
.flag{width:18px;height:12px;display:inline-block;border-radius:2px;border:1px solid #111}
.flag.f-en{background:linear-gradient(#00247d 0 33%,#fff 33% 66%,#cf142b 66%)}
.flag.f-ru{background:linear-gradient(#fff 0 33%,#1c57ff 33% 66%,#cf142b 66%)}
.flag.f-br{background:linear-gradient(#009c3b, #009c3b),radial-gradient(circle at 50% 50%,#ffe11f 0 38%,transparent 39%),linear-gradient(#002776,#002776);background-size:100% 100%,36% 100%,36% 36%;background-repeat:no-repeat;background-position:center;clip-path:polygon(5% 0,95% 0,100% 10%,100% 90%,95% 100%,5% 100%,0 90%,0 10%)}





/* R19: mobile temporarily unavailable */
@media (max-width: 800px){
  body > * { display: none !important; }
  body::before{
    content: "TEMPORARILY UNAVAILBLE";
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg,#0b1118,#0a0f16);
    color: #cfe0f6;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
    padding: 24px;
    z-index: 9999;
  }
}



/* Fix-scoped: Support footer button look */
.footer-inner.alt .support .btn.outline{
  background:#0e1621;
  color:#cfe0f6;
  border-color: var(--line);
  box-shadow: none;
}
.footer-inner.alt .support .btn.outline:hover{ border-color:#2a3c52; }


/* Fix-scoped: center single featured news card */
.news .featured-grid{ display:flex; justify-content:center; }
.news .featured-grid .card{ margin-left:auto; margin-right:auto; }


/* scoped: disable support email click, keep border */
.footer-inner.alt .support .support-line a.disabled{
  pointer-events: none;
  opacity: .55;
  cursor: default;
}

/* R18a: "More" outline button with icon + text */
.news-more .more-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:#cfe0f6;
  font-weight:800;
  letter-spacing:.08em;
  transition:border-color .2s ease, color .2s ease, transform .08s ease;
}
.news-more .more-link:hover{ color:#fff; border-color:#2a3c52 }
.news-more .more-link:active{ transform:scale(.98) }
.news-more .more-link svg{ width:18px; height:18px; display:block }

/* R18b: remove separator lines */
.news-more::before,
.news-more::after{ content:none; border:0; }
.news-more{ gap:0; }

/* R18c: improved flag visuals in dropdown */
.flag-ico{width:20px;height:14px;
  border-radius:4px;
  overflow:hidden;
  background:#0c1520;
  outline:1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.lang-compact .dd-menu .dd-item{ display:flex; align-items:center; gap:10px }
.lang-compact .dd-menu .dd-item .flag-ico{width:20px;height:14px; border-radius:3px;
  outline:1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.lang-compact .dd-menu .dd-item:hover .flag-ico{
  outline-color: var(--acc2);
  box-shadow: inset 0 0 0 1px rgba(16,230,205,.35);
}

/* R18d: compact lang button visuals */
.lang-compact .dd-btn{
  background:transparent;
  border:1px solid var(--line);
  color:#cfe0f6;
}
.lang-compact .dd-btn:hover{ border-color:#2a3c52; color:#fff }

.news-more .more-link .label{order:1}
.news-more .more-link svg{order:2}

/* R19: Flag dropdown redesign */
.lang-compact .dd-menu{
  padding:8px;
  background:
    linear-gradient(180deg, rgba(16,230,205,.05), rgba(16,230,205,0)) border-box,
    #0b1118;
  border:1px solid rgba(207,224,246,.08);
  border-radius:14px;
  backdrop-filter:blur(8px) saturate(1.05);
  -webkit-backdrop-filter:blur(8px) saturate(1.05);
  box-shadow:0 14px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
  min-width:220px;
}
.lang-compact .dd-list{
  list-style:none; margin:0; padding:4px;
  max-height:320px; overflow:auto;
}
.lang-compact .dd-item{
  width:100%;
  display:grid;
  grid-template-columns:24px 1fr 16px;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
  background:transparent;
  color:#d7e6fb;
  cursor:pointer;
}
.lang-compact .dd-item span{ font-weight:700; letter-spacing:.02em }
.lang-compact .dd-item:hover{ border-color:#2a3c52; background:#0f1a28; color:#fff }
.lang-compact .dd-item:focus-visible{
  outline:none; box-shadow:0 0 0 2px var(--acc2) inset;
}
/* active language */
.lang-compact .dd-item.active{
  background:#0f2233;
  border-color:#2a3c52;
  color:#fff;
}
.lang-compact .dd-item.active::after{
  content:"";
  width:16px; height:16px;
  justify-self:end;
  background:currentColor;
  -webkit-mask:url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M9%2016.17%204.83%2012%203.41%2013.41%209%2019l12-12-1.41-1.41z%22/%3E%3C/svg%3E') no-repeat center / contain;
  mask:url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M9%2016.17%204.83%2012%203.41%2013.41%209%2019l12-12-1.41-1.41z%22/%3E%3C/svg%3E') no-repeat center / contain;
}

/* flag tiles */
.lang-compact .dd-item .flag-ico{width:20px;height:14px; border-radius:3px;
  outline:1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
/* compact trigger button */
.lang-compact .dd-btn{
  background:transparent !important;
  border:1px solid var(--line);
  color:#cfe0f6;
  border-radius:10px;
}
.lang-compact .dd-btn:hover{ border-color:#2a3c52; color:#fff }

/* R20: Dropdown = same-only flags, larger, centered */
.lang-compact .dd-list{ padding:6px }
.lang-compact .dd-item{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:0;
  padding:8px;
  border-radius:10px;
  border:1px solid transparent;
  background:transparent;
}
.lang-compact .dd-item:hover{ border-color:#2a3c52; background:#0f1a28 }
.lang-compact .dd-item .flag-ico{width:20px;height:14px; border-radius:4px }
.lang-compact .dd-item span{ display:none !important } /* fallback if coś zostało */
.lang-compact .dd-item.active::after{ content:none !important; display:none !important } /* bez ticka */
.lang-compact .dd-menu{ min-width:160px } /* mniejsza szerokość bez tekstu */

/* R21: Bigger flags, tighter spacing, hover = border only */
.lang-compact .dd-menu{ padding:6px !important; }
.lang-compact .dd-list{ padding:2px !important; }
.lang-compact .dd-item{
  padding:6px 8px !important;
  margin:2px 0 !important;
  justify-content:center !important;
}
/* flags bigger in dropdown */
.lang-compact .dd-item .flag-ico{
  width:44px !important;
  height:28px !important;
  border-radius:5px !important;
}
/* hover: no background, keep border only */
.lang-compact .dd-item:hover{
  background:transparent !important;
  border-color:#2a3c52 !important;
}
.lang-compact .dd-item:focus-visible{
  background:transparent !important;
  box-shadow:0 0 0 2px var(--acc2) inset !important;
}
/* optional: reduce menu min width since no labels */
.lang-compact .dd-menu{ min-width:150px !important; }

/* R22: Bez borderu na hover + ciaśniejsze boki */
.lang-compact .dd-menu{ padding:4px 2px !important; min-width:150px !important; }
.lang-compact .dd-list{ padding:2px !important; }
.lang-compact .dd-item{
  padding:6px 4px !important; /* ciaśniej po lewej/prawej */
  margin:1px 0 !important;
  justify-content:center !important;
  border:1px solid transparent !important; /* brak koloru domyślnie */
}
.lang-compact .dd-item:hover{
  background:transparent !important;
  border-color:transparent !important; /* usunięty border */
  box-shadow:none !important;
}
/* nadal duże flagi */
.lang-compact .dd-item .flag-ico{
  width:44px !important;
  height:28px !important;
  border-radius:5px !important;
}

/* R23: minimal side gaps and tiny min-width */
.lang-compact .dd-menu{
  padding:2px 0 !important;
  min-width:10px !important;
  width:fit-content !important;
}
.lang-compact .dd-list{ padding:0 !important }

/* squeeze left/right padding on items */
.lang-compact .dd-item{
  padding:6px 2px !important;
  margin:1px 0 !important;
  justify-content:center !important;
  border-color:transparent !important;
  background:transparent !important;
}
.lang-compact .dd-item:hover{
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}

/* keep larger flags */
.lang-compact .dd-item .flag-ico{
  width:44px !important;
  height:28px !important;
  border-radius:5px !important;
}

/* R23: very compact dropdown width per request */
.lang-compact .dd-menu {
    padding: 4px 2px !important;
    min-width: 30px !important;
}

/* R23: wąski dropdown */
.lang-compact .dd-menu{
  padding:4px 2px !important;
  min-width:60px !important;
}

/* R24: lekko mniejsze flagi */
.lang-compact .dd-item .flag-ico{
  width:38px !important;
  height:24px !important;
  border-radius:4px !important;
}

/* R25: większa flaga w przycisku triggera */
.lang-compact .dd-btn .flag-ico{
  width:38px !important;
  height:24px !important;
  border-radius:4px !important;
}

/* R26: dopasuj rozmiar flagi w triggerze do dropdownu */
.lang-compact .dd-item .flag-ico,
.lang-compact .dd-btn .flag-ico{
  width:38px !important;
  height:24px !important;
  border-radius:4px !important;
}

/* ciaśniejszy przycisk + centrowanie zawartości */
.lang-compact .dd-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  padding:4px !important;
  min-width:48px !important;
}
.lang-compact .dd-btn .chev{ width:14px; height:14px }

/* R26: dopasuj trigger do dropdownu, bez stałego width/height */
.lang-compact .dd-btn{
  width:auto !important;
  height:auto !important;
  padding:6px 8px !important; /* szersze obramowanie */
  border-radius:12px !important;
}
.lang-compact .dd-btn .flag-ico{
  width:38px !important;
  height:24px !important;
  border-radius:4px !important;
}
.lang-compact .dd-btn .chev{ width:14px !important; height:14px !important; }

/* Fix: reduce flag size globally */
.flag-ico{width:20px !important;height:14px !important;border-radius:3px !important;}


/* Fix: shrink flag in header and dropdown */
.lang-compact .dd-btn .flag-ico,
.dd-menu .flag-ico{
  width:20px !important; height:14px !important;
  border-radius:3px !important;
}



/* === News cards v2 === */
.news-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:16px;
}
.news-card{
  position:relative;
  display:block;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.15));
  border-radius:16px;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.news-card .thumb{
  aspect-ratio: 16/9;
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.05);
}
.news-card .wrap{
  padding:14px 14px 16px;
}
.news-card .title{
  margin:6px 0 8px;
  font-weight:800;
  line-height:1.2;
  font-size:18px;
  color:#e9f0f8;
}
.news-card .excerpt{
  margin:0;
  color:#b9c9de;
  font-size:14px;
}
.news-card .meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#9fb3cc;
}
.badge-tag{
  display:inline-flex;align-items:center;gap:6px;
  height:22px;padding:0 10px;border-radius:999px;
  background:rgba(80,140,255,.12);
  border:1px solid rgba(80,140,255,.35);
  color:#cde1ff;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.badge-tag.event{ background:rgba(255,140,0,.12); border-color:rgba(255,140,0,.35); color:#ffd9b0; }
.badge-tag.update{ background:rgba(100,220,140,.12); border-color:rgba(100,220,140,.35); color:#d8f6e4; }
.badge-tag.balance{ background:rgba(160,140,255,.12); border-color:rgba(160,140,255,.35); color:#e2dbff; }

.news-card:hover{
  transform:translateY(-3px);
  border-color:rgba(141,178,231,.45);
  box-shadow:0 16px 34px rgba(0,0,0,.35);
}

/* === Feature grid for article === */
.features{
  margin-top:24px;
}
.feature-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:14px;
}
.feature-card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.12));
  border-radius:14px;
  padding:14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition:transform .18s ease, border-color .18s ease;
}
.feature-card:hover{ transform: translateY(-2px); border-color: rgba(141,178,231,.45); }
.feature-card h3{ margin:0 0 8px; font-size:16px; font-weight:800; color:#eaf2ff; }
.feature-card p{ margin:0; font-size:14px; color:#b8c9df; }



/* === News Article Pro Layout === */

@media (max-width: 980px){  .toc{position:static} }
.toc{position:sticky;top:84px;align-self:start;display:flex;flex-direction:column;gap:10px}
.toc a{display:block;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:#0b1420;color:#b9c9de;text-decoration:none;font-weight:600}
.toc a.active,.toc a:hover{background:#0f1e31;color:#e9f0f8;border-color:#28405a}

.article-card{border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.15));box-shadow:0 10px 26px rgba(0,0,0,.28);overflow:hidden}
.article-card .body{padding:18px 20px}

.hero-block{overflow:hidden}
.hero-block .media{aspect-ratio:16/7;background:#000}
.hero-block img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.08)}
.hero-block .meta{padding:16px 20px 18px;background:#0c1520;border-top:1px solid var(--line)}
.hero-block .kicker{color:#9fe26c;text-transform:uppercase;letter-spacing:.6px;font-weight:800;font-size:12px}
.hero-block .title{margin:6px 0 8px;font-weight:900;font-size:28px;color:#ecf3ff}
.hero-block .date{font-size:12px;color:#9fb3cc}

.section{margin-top:22px}
.section h2{font-size:20px;letter-spacing:.3px;color:#dbe9ff;margin:0 0 10px;font-weight:900}
.section p{color:#b8c9df;margin:0 0 10px}

.info{display:flex;gap:12px;align-items:flex-start;background:#0e1b2a;border:1px solid #294966;border-radius:12px;padding:12px 14px;color:#cfe4ff}
.info .glyph{width:20px;height:20px;border-radius:6px;background:#1b3148;display:inline-flex;align-items:center;justify-content:center}

.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.card{border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.12));box-shadow:0 8px 22px rgba(0,0,0,.22);overflow:hidden}
.card .card-h{padding:12px 14px;font-weight:800;color:#eaf2ff;border-bottom:1px solid var(--line)}
.card .card-b{padding:12px 14px;color:#b7c9de}

.discount{display:flex;align-items:center;gap:16px;background:#12321c;border:1px solid #245c37;border-radius:12px;padding:12px 14px;color:#d1f2de}
.discount .v{font-size:34px;font-weight:900;line-height:1}
.discount .lbl{font-weight:800}

.switch-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.switch{display:flex;align-items:center;justify-content:space-between;background:#0f1b29;border:1px solid #233b52;border-radius:10px;padding:8px 10px;color:#bcd1ea}
.switch .name{font-weight:700}
.switch .dot{width:34px;height:20px;border-radius:999px;background:#213146;position:relative;box-shadow: inset 0 0 0 1px rgba(0,0,0,.35)}
.switch .dot::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#889bb0;transition:all .15s ease}
.switch.on .dot{background:#1f3f2a}
.switch.on .dot::after{left:16px;background:#86ff86}

.cta{display:inline-flex;align-items:center;gap:10px;border:0 solid #2f5437;background:#163423;color:#c6f3cf;font-weight:800;padding:12px 16px;border-radius:12px;text-decoration:none}
.cta:hover{background:#1a4029}
.rule{height:1px;background:linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);margin:10px 0 0}



/* === News Pro Components v2 === */

/* layout */

@media (max-width: 1020px){  .toc{position:static} }

/* toc */
.toc{position:sticky;top:84px;align-self:start;display:flex;flex-direction:column;gap:8px}
.toc a{display:block;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:#0b1420;color:#b9c9de;text-decoration:none;font-weight:700}
.toc a.active,.toc a:hover{background:#113052;color:#e9f0f8;border-color:#28405a}

/* hero */
.article-card{border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.15));box-shadow:0 10px 26px rgba(0,0,0,.28);overflow:hidden}
.hero-block .media{aspect-ratio:16/7;background:#000}
.hero-block img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.08)}
.hero-block .meta{padding:16px 20px 18px;background:#0c1520;border-top:1px solid var(--line)}
.hero-block .kicker{color:#9fe26c;text-transform:uppercase;letter-spacing:.6px;font-weight:800;font-size:12px}
.hero-block .title{margin:6px 0 8px;font-weight:900;font-size:28px;color:#ecf3ff}
.hero-block .date{font-size:12px;color:#9fb3cc}

/* sections */
.section{margin-top:22px}
.section h2{font-size:20px;letter-spacing:.3px;color:#dbe9ff;margin:0 0 10px;font-weight:900}
.section p{color:#b8c9df;margin:0 0 10px}
.rule{height:1px;background:linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);margin:10px 0 0}

/* highlight headline */
.headline{border-radius:12px;background:#1f3f2a;border:1px solid #2e6a45;color:#d7f7e3;padding:14px 16px;font-weight:800}
.subtle{font-size:13px;color:#9fb3cc}

/* grids and cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.card{border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.12));box-shadow:0 8px 22px rgba(0,0,0,.22);overflow:hidden}
.card .card-h{padding:12px 14px;font-weight:800;color:#eaf2ff;border-bottom:1px solid var(--line)}
.card .card-b{padding:12px 14px;color:#b7c9de}

/* discounts */
.discount-list{display:grid;gap:12px}
.discount{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#12321c;border:1px solid #245c37;border-radius:12px;padding:12px 14px;color:#d1f2de}
.discount .left{display:flex;align-items:center;gap:14px}
.discount .v{font-size:34px;font-weight:900;line-height:1}
.discount .lbl{font-weight:800}

/* callouts */
.callout{display:flex;gap:12px;align-items:flex-start;border-radius:12px;padding:12px 14px}
.callout.info{background:#0e1b2a;border:1px solid #294966;color:#cfe4ff}
.callout.warn{background:#2a1d0e;border:1px solid #664929;color:#ffe1c6}
.callout .icon{width:20px;height:20px;border-radius:6px;background:rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center}

/* mode card with toggles */
.mode-card{display:grid;grid-template-columns:320px 1fr;gap:14px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.12));padding:12px}
.mode-card .poster{border-radius:10px;overflow:hidden;background:#0a131d;aspect-ratio:16/9}
.mode-card .poster img{width:100%;height:100%;object-fit:cover;display:block}
.switch-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.switch{display:flex;align-items:center;justify-content:space-between;background:#0f1b29;border:1px solid #233b52;border-radius:10px;padding:8px 10px;color:#bcd1ea}
.switch .name{font-weight:700}
.switch .dot{width:34px;height:20px;border-radius:999px;background:#213146;position:relative;box-shadow: inset 0 0 0 1px rgba(0,0,0,.35)}
.switch .dot::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#889bb0;transition:all .15s ease}
.switch.on .dot{background:#1f3f2a}
.switch.on .dot::after{left:16px;background:#86ff86}

/* panels */
.panel{display:grid;grid-template-columns:140px 1fr;gap:14px;background:#0e1723;border:1px solid var(--line);border-radius:12px;padding:14px;color:#cfe0f5}
.panel .img{width:100%;height:100%;background:#0b1420;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:42px}

/* CTA */
.cta{display:inline-flex;align-items:center;gap:10px;border:0 solid #2f5437;background:#163423;color:#c6f3cf;font-weight:800;padding:12px 16px;border-radius:12px;text-decoration:none}
.cta:hover{background:#1a4029}



/* === Reference-matched News Layout v3 === */

/* container */

@media (max-width: 1024px){  .toc{position:static} }

/* left menu */
.toc{position:sticky;top:90px;align-self:start;display:flex;flex-direction:column;gap:10px}
.toc a{display:block;font-weight:800;letter-spacing:.2px;padding:10px 12px;border-radius:10px;border:1px solid #213043;background:#0c1520;color:#b7c9de;text-decoration:none}
.toc a.active{background:#153a24;border-color:#2a6a3f;color:#d7f7e3}
.toc a:hover{border-color:#2a6a3f}

/* hero card */
.hero-pro{border-radius:18px;border:1px solid var(--line);overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.28);background:#0c1520}
.hero-pro .media{position:relative;aspect-ratio:16/7;background:#000}
.hero-pro .media img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.06)}
.hero-pro .footer{padding:18px 20px;background:#0c1520;border-top:1px solid var(--line);text-align:center}
.hero-pro .kicker{display:inline-block;margin-bottom:6px;padding:2px 10px;border-radius:999px;background:#163423;border:1px solid #2f5437;color:#bff1c9;font-weight:900;font-size:11px;letter-spacing:.6px;text-transform:uppercase}
.hero-pro .title{margin:4px 0 6px;font-size:30px;line-height:1.15;color:#ecf3ff;font-weight:900;text-transform:uppercase}
.hero-pro .rule{height:1px;margin:10px auto 0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);max-width:92%}
.hero-pro .date{margin-top:8px;color:#9fb3cc;font-weight:800;font-size:12px;letter-spacing:.3px}

/* content sections */
.section{margin-top:22px}
.section h2{font-size:20px;color:#e3eeff;font-weight:900;margin:0 0 10px}
.section p{color:#b8c9df;margin:0 0 10px}

/* green discount blocks */
.discount-list{display:grid;gap:12px}
.discount{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#12321c;border:1px solid #245c37;border-radius:12px;padding:14px 16px;color:#d1f2de}
.discount .left{display:flex;align-items:center;gap:14px}
.discount .v{font-size:34px;font-weight:900;line-height:1}
.discount .lbl{font-weight:800}

/* dark info rows */
.callout{display:flex;gap:12px;align-items:flex-start;border-radius:12px;padding:12px 14px}
.callout.info{background:#0e1b2a;border:1px solid #294966;color:#cfe4ff}
.callout.warn{background:#2a1d0e;border:1px solid #664929;color:#ffe1c6}
.callout .icon{width:20px;height:20px;border-radius:6px;background:rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center}

/* simple cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.card{border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.12));box-shadow:0 8px 22px rgba(0,0,0,.22);overflow:hidden}
.card .card-h{padding:12px 14px;font-weight:800;color:#eaf2ff;border-bottom:1px solid var(--line)}
.card .card-b{padding:12px 14px;color:#b7c9de}

/* CTA */
.cta{display:inline-flex;align-items:center;gap:10px;border:0 solid #2f5437;background:#163423;color:#c6f3cf;font-weight:800;padding:12px 16px;border-radius:12px;text-decoration:none}
.cta:hover{background:#1a4029}



/* --- News UI Upgrade R2025-11-08 --- */

/* Grid tune */
.news-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:16px;
}

/* Card */
.news-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    radial-gradient(120% 120% at 100% 0, rgba(60,120,255,.08), transparent 60%),
    #0d1622;
  color:var(--fg);
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  overflow:hidden;
}
.news-card:hover{
  transform: translateY(-2px);
  border-color: rgba(120,170,255,.45);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.news-card .media{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  aspect-ratio: 16 / 9;
  background: #0b1420;
  border:1px solid rgba(255,255,255,.05);
}
.news-card .media img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter: saturate(1.05) contrast(1.06);
}
.news-card .date{
  font-size:12px;
  letter-spacing:.3px;
  color:#9fb2cc;
}
.news-card .title{
  font-size:18px;
  font-weight:800;
  line-height:1.2;
  color:#eaf2ff;
}
.news-card p{
  font-size:14px;
  color:#b9c9de;
}
.badge-tag{
  position:absolute;
  top:10px; left:10px;
  padding:4px 8px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.4px;
  border-radius:999px;
  background: rgba(0,0,0,.4);
  border:1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color:#eaf2ff;
}
.badge-tag.event{ background: linear-gradient(90deg, var(--acc), var(--acc2)); color:#061419; }
.badge-tag.update{ background:#122235; }
.badge-tag.balance{ background:#18242f; }

/* Promo boxes */
.promo-wrap{margin-top:20px}
.promo-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap:14px;
}
.promo-card{
  position:relative;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    radial-gradient(100% 120% at 0 0, rgba(255,180,60,.12), transparent 60%),
    #0c1520;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.promo-card .k{ font-weight:800; font-size:16px; color:#eaf2ff; }
.promo-card .d{ margin-top:6px; font-size:13px; color:#9fb2cc; }
.promo-card .pill{
  position:absolute; top:10px; right:10px;
  font-size:10px; padding:3px 8px; border-radius:999px;
  border:1px solid rgba(255,255,255,.15); color:#cfe1ff; background:#0b1420;
}

/* Featured banner touch-up */
.featured-grid .card.notch{
  border-radius:18px; overflow:hidden; border:1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.featured-grid .card .media img{ filter: saturate(1.06) contrast(1.05); }
.featured-grid .pill-event{ box-shadow: 0 4px 10px rgba(0,0,0,.35); }



/* Full-width News Index */
.page .news.wide{max-width:none;margin:0;padding:0 16px}
.news.wide .news-head{max-width:none;margin:0 0 12px}
.news.wide .featured-grid{max-width:none}
.news.wide .news-grid{max-width:none}
@media (min-width: 1400px){
  .news.wide .news-grid{grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap:18px}
}



/* Force one-column for News Index */
.page .news.wide{display:block;grid-template-columns:1fr}



/* Promo icons */
.promo-wrap.icons .promo-card{display:grid; grid-template-columns:32px 1fr; align-items:start; gap:10px;}
.promo-wrap.icons .promo-card .icon{
  width:32px; height:32px; display:grid; place-items:center; border-radius:10px;
  background:linear-gradient(180deg,#0f1a27,#0b1420);
  border:1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.promo-wrap.icons .promo-card .icon svg{opacity:.9}



/* Kill legacy cap for news index */




/* Card scale upgrade */
.news-card{padding:18px; border-radius:18px;}
.news-card .title{font-size:22px;}
.news-card p{font-size:15px; line-height:1.45;}



/* Promo card scale + icons */
.promo-wrap.icons .promo-card{grid-template-columns:40px 1fr; gap:12px; padding:16px; border-radius:16px;}
.promo-wrap.icons .promo-card .icon{width:40px; height:40px;}
.promo-card .k{font-size:20px;}
.promo-card .d{font-size:14.5px; line-height:1.45;}



/* ==== NEWS MAKEOVER R2025-11-08 ==== */

/* Use full width on news index */
.page .news{max-width:none; margin:0; padding:0 24px}

/* Bigger grids, centered */
.news.wide .promo-grid,
.news.wide .news-grid{
  width:100%;
  display:grid;
  justify-content:center;
  align-content:start;
  justify-items:stretch;
  gap:28px;
}

/* Column sizing to occupy space */
.news.wide .promo-grid{
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}
.news.wide .news-grid{
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

/* Card visuals */
.promo-card, .news-card{
  border:1px solid rgba(150,180,220,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    radial-gradient(120% 120% at 5% 0, rgba(110,160,255,.08), transparent 50%),
    #0c1520;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 30px rgba(0,0,0,.35);
}

/* Scale and spacing */
.promo-card{padding:20px; border-radius:18px; display:grid; grid-template-columns:52px 1fr; gap:14px; align-items:start}
.promo-card .icon{width:52px; height:52px; display:grid; place-items:center; border-radius:14px; border:1px solid rgba(150,180,220,.18); background:linear-gradient(180deg,#0f1a27,#0b1420)}
.promo-card .k{font-size:22px; font-weight:900; color:#eaf2ff}
.promo-card .d{margin-top:4px; font-size:15.5px; line-height:1.5; color:#b7c7da}

.news-card{padding:18px; border-radius:18px}
.news-card .title{font-size:22px; font-weight:900}
.news-card p{font-size:15px; line-height:1.5}

/* Head area */
.news-head{max-width:none; margin:0 0 16px}

/* Subtle accent border on left */
.promo-card{position:relative}
.promo-card:before{
  content:''; position:absolute; left:-1px; top:-1px; bottom:-1px; width:4px;
  border-radius:18px 0 0 18px;
  background:linear-gradient(180deg,var(--acc),var(--acc2));
  opacity:.9;
}



/* OVERRIDE: Halloween maps promo box visual clean-up */
.promo-wrap.icons .promo-card{
  background:#0d1621;
  border:1px solid #16212f;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 6px 16px rgba(0,0,0,.18);
  border-radius:12px;
  padding:14px;
}
.promo-wrap.icons .promo-card .icon{
  width:36px; height:36px;
  border-radius:10px;
  background:#0e1b28;
  border:1px solid #1a2a3c;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
  font-size:10.5px;
  color:#b7c9de;
}
.promo-wrap.icons .promo-card .k{ color:#e8f0fb; font-weight:800; }
.promo-wrap.icons .promo-card .d{ color:#a9bed6; }

.promo-wrap.icons .promo-card:hover{
  transform:translateY(-1px);
  border-color:#203043;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 10px 22px rgba(0,0,0,.20);
}

/* OVERRIDE: Discounts banner subdued */
.discount{
  background:#101523;
  border:1px solid #1a2440;
  color:#d7e5ff;
  border-radius:14px;
}
.discount .v{ color:#d7e5ff; opacity:.92 }

/* CTA background/border fix */
.cta{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}
.cta:hover{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}
