/* Pleyland — krovna stranica (Rivoxo Games · Plejarena Classic · KvizLiga) */
:root {
  --bg: #0b0820;
  --ink: #f5f3ff;
  --muted: #b9b3d9;
  --purple: #a855f7;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --gold: #f59e0b;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.pl {
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ── gornja traka ─────────────────────────────────────────────── */
.pl-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 28px;
  background: rgba(12, 9, 34, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 85, 247, .18);
}
.pl-brand { display: flex; align-items: center; gap: 10px; font: 700 32px/1 Fredoka, sans-serif; letter-spacing: -.5px; }
.pl-brand em, .pl-logo em {
  font-style: normal;
  background: linear-gradient(90deg, #c084fc, #ec4899);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pl-nav { display: flex; gap: 6px; flex: 1; }
.pl-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 14px;
  font-weight: 800; font-size: 17px; color: #e4e0ff;
}
.pl-nav a:hover { background: rgba(255, 255, 255, .06); }
.pl-nav a.on {
  background: linear-gradient(180deg, rgba(56, 120, 255, .35), rgba(37, 99, 235, .18));
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .5), 0 0 18px rgba(59, 130, 246, .35);
}
.pl-user { display: flex; align-items: center; gap: 14px; }
.pl-icon { opacity: .9; }
.pl-me { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.pl-btn {
  padding: 10px 18px; border-radius: 12px; font-weight: 800;
  background: linear-gradient(90deg, #7c3aed, #db2777);
}
.pl-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(196, 181, 253, .5); }

/* ── junak ───────────────────────────────────────────────────── */
.pl-hero {
  position: relative; overflow: hidden;
  padding: 26px 40px 34px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(124, 58, 237, .45), transparent 70%),
    radial-gradient(40% 40% at 10% 30%, rgba(59, 130, 246, .35), transparent 70%),
    radial-gradient(40% 40% at 90% 30%, rgba(236, 72, 153, .3), transparent 70%),
    linear-gradient(180deg, #1a1050 0%, #0b0820 100%);
}
.pl-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 26%, #c4b5fd, transparent),
    radial-gradient(1px 1px at 63% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 22%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 88% 6%, #fff, transparent),
    radial-gradient(1px 1px at 35% 40%, #fff, transparent),
    radial-gradient(1px 1px at 70% 45%, #fff, transparent);
}
.pl-planet {
  position: absolute; left: 50%; top: 150px; width: 1500px; height: 1500px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, .35), rgba(30, 27, 75, .2) 25%, transparent 45%);
  box-shadow: 0 -2px 40px rgba(129, 140, 248, .35);
  pointer-events: none;
}
.pl-island { position: absolute; top: 20px; width: 230px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.pl-island.left { left: 2%; }
.pl-island.right { right: 2%; }
.pl-hero-in { position: relative; text-align: center; }
.pl-logo {
  display: inline-flex; align-items: center; gap: 18px; margin: 4px 0 0;
  font: 700 clamp(56px, 9vw, 120px)/1 Fredoka, sans-serif; letter-spacing: -2px;
  text-shadow: 0 6px 40px rgba(168, 85, 247, .45);
}
.pl-logo .pl-mark { width: clamp(70px, 10vw, 120px); height: auto; filter: drop-shadow(0 0 18px rgba(139, 92, 246, .8)); }
.pl-tag {
  margin: 6px 0 22px; font-weight: 900; letter-spacing: 3px; font-size: clamp(14px, 1.6vw, 22px); color: #93c5fd;
}
.pl-tag i { display: inline-block; width: 6px; height: 6px; margin: 0 14px; border-radius: 50%; background: #c084fc; vertical-align: middle; }

/* ── tri vrata ───────────────────────────────────────────────── */
.pl-doors { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1560px; margin: 0 auto; }
.pl-door {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 250px; padding: 26px 28px 22px; border-radius: 26px;
  transform: skewX(-6deg); transition: transform .2s, box-shadow .2s;
}
.pl-door > * { transform: skewX(6deg); }
.pl-door:hover { transform: skewX(-6deg) translateY(-4px); }
.pl-door.purple { background: linear-gradient(135deg, #3b1683, #1e0b45); box-shadow: inset 0 0 0 3px #c084fc, 0 0 34px rgba(192, 132, 252, .55); }
.pl-door.blue   { background: linear-gradient(135deg, #0b4fa8, #062456); box-shadow: inset 0 0 0 3px #38bdf8, 0 0 34px rgba(56, 189, 248, .55); }
.pl-door.gold   { background: linear-gradient(135deg, #5a2d06, #251204); box-shadow: inset 0 0 0 3px #fbbf24, 0 0 34px rgba(251, 191, 36, .55); }
.pl-door-t { position: relative; z-index: 2; max-width: 60%; }
.pl-door h2 { margin: 0; font: italic 900 clamp(30px, 3vw, 46px)/.95 Nunito, sans-serif; letter-spacing: -1px; }
.pl-door.purple h2 em { font-style: italic; background: linear-gradient(90deg, #c084fc, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-door p { margin: 12px 0 0; font-weight: 700; font-size: 16px; color: #f1f0ff; }
.pl-sub {
  display: inline-block; margin-top: 6px; padding: 2px 14px; border-radius: 8px;
  background: #0ea5e9; color: #062456; font: italic 900 18px/1.3 Nunito, sans-serif; letter-spacing: 1px;
}
.pl-new {
  position: absolute; right: 26px; top: 16px; z-index: 3; padding: 3px 14px; border-radius: 10px;
  background: linear-gradient(90deg, #9333ea, #db2777); font: italic 900 18px/1.3 Nunito, sans-serif;
}
.pl-art { position: absolute; right: 18px; top: 48px; width: 44%; max-width: 210px; z-index: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.pl-go {
  position: relative; z-index: 2; align-self: center;
  display: flex; align-items: center; gap: 12px; justify-content: center;
  width: min(100%, 340px); margin-top: 16px; padding: 11px 18px; border-radius: 14px;
  background: rgba(10, 6, 30, .55); font-weight: 800; font-size: 18px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
}
.pl-go b { margin-left: auto; }
.pl-door.purple .pl-go { box-shadow: inset 0 0 0 1.5px #c084fc; }
.pl-door.blue .pl-go   { box-shadow: inset 0 0 0 1.5px #38bdf8; }
.pl-door.gold .pl-go   { box-shadow: inset 0 0 0 1.5px #fbbf24; }

/* ── traka s brojkama ───────────────────────────────────────── */
.pl-stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 1560px; margin: 26px auto 0; padding: 14px 10px;
  border-radius: 22px; background: rgba(24, 16, 70, .7);
  box-shadow: inset 0 0 0 1.5px rgba(139, 92, 246, .55), 0 0 26px rgba(124, 58, 237, .25);
}
.pl-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; text-align: center; }
.pl-stats div + div { border-left: 1px solid rgba(167, 139, 250, .25); }
.pl-stats b { font-size: 20px; font-weight: 900; }
.pl-stats span { color: var(--muted); font-weight: 600; }

/* ── popularne igre ─────────────────────────────────────────── */
.pl-pop { max-width: 1600px; margin: 26px auto 0; padding: 0 28px; }
.pl-pop-head { display: flex; align-items: center; justify-content: space-between; }
.pl-pop-head h3 { margin: 0; font: 800 28px/1.2 Nunito, sans-serif; }
.pl-pop-head a { color: #e879f9; font-weight: 800; font-size: 18px; }
.pl-rail-wrap { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pl-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; padding: 4px; }
.pl-rail::-webkit-scrollbar { display: none; }
.pl-game {
  position: relative; flex: 0 0 236px; height: 140px; border-radius: 16px; overflow: hidden; scroll-snap-align: start;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .4);
  transition: transform .15s;
}
.pl-game:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px #c084fc, 0 10px 24px rgba(124, 58, 237, .45); }
.pl-game img { width: 100%; height: 100%; object-fit: cover; }
.pl-game span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-weight: 800; font-size: 18px;
}
.pl-arrow {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(30, 20, 80, .9); color: #fff; font-size: 28px; line-height: 1;
  box-shadow: inset 0 0 0 1.5px rgba(139, 92, 246, .7);
}
.pl-foot { padding: 30px 20px 40px; text-align: center; color: #7c76a6; font-weight: 600; }

/* ── manji ekrani ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pl-nav span { display: none; }
  .pl-island { width: 150px; opacity: .6; }
  .pl-doors { grid-template-columns: 1fr; max-width: 640px; }
  .pl-stats { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .pl-stats div:nth-child(4) { border-left: 0; }
}
@media (max-width: 640px) {
  .pl-top { gap: 6px; padding: 8px 10px; }
  .pl-brand { font-size: 22px; gap: 6px; }
  .pl-brand svg { width: 26px; height: 26px; }
  .pl-nav { gap: 0; justify-content: center; }
  .pl-nav a { padding: 8px 7px; }
  .pl-nav a svg { width: 20px; height: 20px; }
  .pl-me span, .pl-icon, .pl-btn:not(.ghost) { display: none; }
  .pl-btn { padding: 7px 10px; font-size: 13px; }
  .pl-hero { padding: 16px 14px 24px; }
  .pl-island { display: none; }
  .pl-logo { gap: 10px; }
  .pl-tag { letter-spacing: 1.5px; }
  .pl-tag i { margin: 0 6px; }
  .pl-door { min-height: 210px; padding: 20px 18px 18px; transform: none; }
  .pl-door > * { transform: none; }
  .pl-door:hover { transform: translateY(-3px); }
  .pl-art { width: 40%; top: 40px; }
  .pl-stats { grid-template-columns: repeat(2, 1fr); margin: 20px 14px 0; }
  .pl-stats div { border-left: 0 !important; }
  .pl-pop { padding: 0 14px; }
  .pl-arrow { display: none; }
  .pl-game { flex-basis: 200px; height: 120px; }
}

/* ── crteži iz dizajna (2026-11-07) ─────────────────────────── */
.pl-hero { padding-top: 0; }
.pl-hero-img { margin: 0 -40px 18px; line-height: 0; }
.pl-hero-img img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
          mask-image: linear-gradient(180deg, #000 80%, transparent);
}
img.pl-art {
  width: 40%; max-width: 200px; height: auto; top: 46px;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
          mask-image: radial-gradient(closest-side, #000 72%, transparent);
  filter: none;
}
.pl-stats { grid-template-columns: repeat(6, 1fr); }
.pl-stats .soon { opacity: .7; }
.pl-stats .soon span { color: #f0abfc; font-weight: 800; }
@media (max-width: 1100px) {
  .pl-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .pl-hero-img { margin: 0 -14px 10px; }
}
@media (max-width: 640px) {
  .pl-stats { grid-template-columns: repeat(2, 1fr); }
  img.pl-art { width: 38%; top: 36px; }
}
img.pl-art { top: 24px; width: 34%; max-width: 180px; }
.pl-go { position: relative; z-index: 3; }

/* ── jezik i natpis ispod logotipa (prevodi se) ── */
.pl-hero-img { margin-bottom: 0; }
.pl-hero .pl-tag { position: relative; margin: -6px 0 22px; text-align: center; }
.pl-langs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.pl-langs a { padding: 4px 7px; border-radius: 7px; font-size: 13px; font-weight: 800; color: #b9b3d9; }
.pl-langs a.on { background: rgba(139, 92, 246, .45); color: #fff; }
@media (max-width: 640px) {
  .pl-langs a { padding: 3px 4px; font-size: 11px; }
  .pl-hero .pl-tag { margin: -2px 0 14px; font-size: 12px; }
}

/* ── Trophonia: pravi logo u sredini, otoci iz dizajna sa strane (2026-11-07) ── */
.pl-hero-top { position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 190px; margin: 0 -40px; }
.pl-side { position: absolute; top: 0; height: 100%; width: auto; max-width: 30%; object-fit: cover; pointer-events: none; }
.pl-side.l { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
  mask-image: linear-gradient(90deg, #000 70%, transparent); }
.pl-side.r { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 70%, transparent);
  mask-image: linear-gradient(270deg, #000 70%, transparent); }
.pl-hero-top .pl-logo { position: relative; z-index: 2; margin: 0; }
.pl-hero .pl-tag { margin-top: 4px; }
@media (max-width: 700px) {
  .pl-hero-top { min-height: 120px; margin: 0 -14px; }
  .pl-side { display: none; }
}
@media (max-width: 700px) {
  .pl-hero-top .pl-logo { font-size: clamp(34px, 10.5vw, 56px); gap: 8px; letter-spacing: -1px; }
  .pl-hero-top .pl-logo .pl-mark { width: clamp(40px, 12vw, 70px); }
}
@media (max-width: 640px) {
  .pl-nav a:nth-child(3), .pl-nav a:nth-child(4) { display: none; }   /* Classic i KvizLiga su u karticama */
  .pl-langs a { padding: 3px 3px; }
}
@media (max-width: 640px) {
  .pl-top { gap: 4px; }
  .pl-brand { font-size: 19px; gap: 4px; flex-shrink: 1; min-width: 0; }
  .pl-brand svg { width: 22px; height: 22px; }
  .pl-nav { flex: 1 1 auto; min-width: 0; }
  .pl-nav a { padding: 6px 5px; }
  .pl-user { gap: 4px; flex-shrink: 0; }
  .pl-btn.ghost { padding: 6px 8px; font-size: 12px; }
}
