/* poster/fonts.css */
/* Los Santos Poster fonts, served from our server (no Google request for visitors).
   Anton and Archivo: SIL Open Font License 1.1. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poster/anton-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poster/anton-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poster/archivo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poster/archivo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poster/archivo-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poster/archivo-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/poster/archivo-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/poster/archivo-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* poster/tokens.css */
/* Midnight palette (chosen 30.10.2026): the only place for colors of the site's style.
   Every other file in css/poster uses these names, never #hex/rgb() directly.
   Dark surfaces only; the light tones are for text, never for backgrounds. */
:root {
  /* Backgrounds, from deepest to raised */
  --p-ink: #0b1020;
  --p-ink-2: #121a2e;
  --p-ink-3: #1a2440;

  /* Lines */
  --p-line: #26324d;
  --p-line-strong: #36456a;

  /* Text */
  --p-paper: #f1f5ff;
  --p-text: #e3e9f5;
  --p-muted: #a3b0c8;
  --p-faint: #8794ad;
  --p-black: #000000;

  /* Accents: sky for actions and links, amber for highlights, red only for LIVE and errors */
  --p-accent: #38bdf8;
  --p-accent-light: #7dd3fc;
  --p-hot: #f5b942;
  --p-live: #f43f5e;
  --p-green: #34d399;

  /* Package tiers */
  --p-streamer: #3b82f6;
  --p-streamer-light: #22d3ee;
  --p-streamer-deep: #1e40af;
  --p-golden: #f5c451;
  --p-golden-light: #fff6cf;
  --p-golden-deep: #9c6b05;
  --p-diamond: #8fe3ff;
  --p-gold: #ffc93c;
  --p-silver: #c9ced6;

  /* Package frames: the light and dark ends of each metal */
  --p-silver-light: #f4f6f9;
  --p-silver-dark: #7c838d;
  --p-gold-light: #fff6cf;
  --p-gold-deep: #9c6b05;
  --p-diamond-light: #d4f7ff;
  --p-diamond-deep: #4cc9ff;
  --p-diamond-mint: #7ef0d8;

  /* Contest podium: bronze for the third place (gold and silver use the package metals) */
  --p-bronze: #cd7f32;
  --p-bronze-light: #f3c79c;
  --p-bronze-deep: #7a4519;

  /* Type */
  --p-font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --p-font-body: "Archivo", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";

  /* Shape: softly rounded corners, soft depth */
  --p-radius: 14px;
  --p-radius-sm: 8px;
  --p-shadow: 0 18px 40px color-mix(in srgb, var(--p-black) 45%, transparent);
}

/* poster/base.css */
/* Los Santos Poster base: page background, text, links. Components live in components.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--p-ink);
  scroll-padding-top: 80px; /* links to a section land below the sticky navbar */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--p-ink);
  color: var(--p-text);
  font-family: var(--p-font-body);
  font-size: 16px;
  line-height: 1.5;
}
a {
  color: var(--p-accent);
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 2px;
}

/* poster/components.css */
/* Los Santos Poster shared pieces: buttons, labels, avatars, LIVE ticker, section heads,
   navbar (with the phone menu) and footer. Pages build on these. */

/* ---------- buttons and labels ---------- */
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  background: var(--p-accent);
  border-radius: var(--p-radius-sm);
  color: var(--p-ink);
  font-family: var(--p-font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.p-btn:hover {
  background: var(--p-accent-light);
}
.p-btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--p-line-strong);
  color: var(--p-paper);
}
.p-btn-ghost:hover {
  background: var(--p-accent);
  color: var(--p-ink);
}
.p-btn-dark {
  background: var(--p-ink);
  color: var(--p-accent);
}
.p-kick {
  display: inline-block;
  padding: 5px 10px;
  background: var(--p-hot);
  color: var(--p-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.p-chip-principal {
  background: var(--p-hot);
  color: var(--p-ink);
}
.p-tier-diamond {
  background: var(--p-golden);
  color: var(--p-ink);
}
.p-tier-gold {
  background: var(--p-streamer-light);
  color: var(--p-ink);
}
.p-tier-silver {
  background: var(--p-line-strong);
  color: var(--p-paper);
}
.p-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--p-live);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.p-live-tag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--p-live);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-live) 25%, transparent);
  animation: p-pulse 1.6s ease-in-out infinite;
}
@keyframes p-pulse {
  50% {
    opacity: 0.4;
  }
}

.sz-category-streamer-art {
  filter: hue-rotate(165deg) saturate(1.15);
}

/* ---------- avatars ---------- */
.p-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--p-size, 48px);
  height: var(--p-size, 48px);
  overflow: hidden;
  border: 3px solid var(--p-accent);
  border-radius: 50%;
  background: hsl(var(--h, 210) 65% 42%);
  color: var(--p-paper);
  font-family: var(--p-font-display);
  font-size: calc(var(--p-size, 48px) * 0.46);
}
.p-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- LIVE ticker under the navbar ---------- */
.p-ticker {
  overflow: hidden;
  margin: 14px 0 0;
  padding: 8px 0;
  border-block: 1px solid var(--p-line-strong);
  background: var(--p-ink-2);
  color: var(--p-accent);
  font-family: var(--p-font-display);
  font-size: 19px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.p-ticker-track {
  display: inline-flex;
  animation: p-ticker 38s linear infinite;
}
.p-ticker-track span {
  padding: 0 26px;
}
.p-ticker-track i {
  color: var(--p-hot);
}
@keyframes p-ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */
/* page containers: home (.p-main) and the pages that keep their own markup */
:is(.p-main, .pv-list-page, .ln-container, .cz-container) {
  width: min(1320px, 100% - 32px);
  margin: 0 auto;
}
.p-section {
  min-width: 0;
  padding-top: 44px;
}
.p-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--p-line-strong);
}
.p-section-head h2 {
  margin: 0;
  font-family: var(--p-font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.p-section-head h2 em {
  color: var(--p-hot);
  font-style: normal;
}
.p-section-head a {
  color: var(--p-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.p-section-head a:hover {
  color: var(--p-paper);
}
.p-note {
  margin: -8px 0 12px;
  color: var(--p-faint);
  font-size: 13px;
}

/* ---------- page title used by Clasamente and Anunțuri (.pv-list-hero) ---------- */
.pv-list-hero {
  padding: 34px 0 14px;
  border-bottom: 2px solid var(--p-line-strong);
}
.pv-list-hero h1 {
  margin: 0;
  font-family: var(--p-font-display);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}
.pv-list-hero h1 span {
  color: var(--p-accent);
}
.pv-list-hero p {
  margin: 10px 0 0;
  color: var(--p-muted);
  font-size: 17px;
}

/* ---------- article pages: one announcement, Termeni, Confidențialitate ---------- */
.pv-news-article {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 30px;
}
.pv-news-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--p-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.pv-article-top {
  margin: 16px 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--p-line-strong);
}
.pv-article-top span {
  display: inline-block;
  padding: 5px 10px;
  background: var(--p-hot);
  color: var(--p-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.pv-article-top h1 {
  margin: 14px 0 0;
  font-family: var(--p-font-display);
  font-size: clamp(38px, 5.5vw, 70px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}
/* ---------- navbar (markup from lib/site-layout.js) ---------- */
/* It stays at the top while scrolling. public/discord-nav.js adds .is-scrolled (full-width
   background) and, below 1440px, .is-hidden while scrolling down (it comes back on the first scroll up). */
.pv-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1320px, 100% - 32px);
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--p-line);
  transition: transform 0.25s ease;
}
.pv-nav::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
}
.pv-nav.is-scrolled {
  border-bottom-color: transparent;
}
.pv-nav.is-scrolled::before {
  border-bottom: 1px solid var(--p-line-strong);
  background: var(--p-ink);
  box-shadow: var(--p-shadow);
}
.pv-nav.is-hidden {
  transform: translateY(calc(-100% - 16px));
}
.pv-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--p-paper);
  text-decoration: none;
  white-space: nowrap;
}
.pv-brand-logo {
  width: 42px;
  height: 42px;
}
.pv-brand b {
  font-family: var(--p-font-display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pv-brand b span {
  color: var(--p-accent);
}
.pv-nav nav {
  display: flex;
  gap: 16px;
}
.pv-nav nav a {
  padding: 6px 0;
  color: var(--p-paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.pv-nav nav a:hover {
  color: var(--p-accent);
}
.pv-nav nav a.active {
  color: var(--p-accent);
  box-shadow: 0 3px 0 var(--p-accent);
}
:is(.pv-nav-cta, .pv-nav-discord) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--p-radius-sm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.pv-nav-cta {
  box-shadow: inset 0 0 0 1px var(--p-line-strong);
  color: var(--p-paper);
}
.pv-nav-discord {
  max-width: 280px;
  background: var(--p-accent);
  color: var(--p-ink);
}
.pv-nav-discord span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-nav-discord:hover {
  background: var(--p-accent-light);
}
/* Logged in: the name opens a small menu */
.pv-account {
  position: relative;
}
.pv-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--p-line-strong);
  border-radius: var(--p-radius-sm);
  background: var(--p-ink-3);
  box-shadow: var(--p-shadow);
}
.pv-account-menu[hidden] {
  display: none;
}
.pv-account-menu small {
  padding: 2px 4px 6px;
  border-bottom: 1px solid var(--p-line);
  color: var(--p-muted);
  font-size: 12px;
}
.pv-account-menu b {
  color: var(--p-paper);
}
.pv-account-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: var(--p-radius-sm);
  color: var(--p-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.pv-account-menu a:hover {
  background: var(--p-ink-2);
  color: var(--p-accent);
}
.pv-menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--p-accent);
  color: var(--p-ink);
  font-size: 18px;
  cursor: pointer;
}
@media (max-width: 1439px) {
  .pv-nav {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 62px;
  }
  .pv-menu-toggle {
    display: inline-grid;
  }
  .pv-nav:not(.menu-open) > nav,
  .pv-nav:not(.menu-open) > .pv-nav-cta,
  .pv-nav:not(.menu-open) > .pv-account {
    display: none;
  }
  .pv-nav.menu-open {
    padding-bottom: 12px;
  }
  .pv-nav.menu-open > nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    order: 3;
    width: 100%;
  }
  .pv-nav.menu-open > nav a {
    padding: 11px 12px;
    background: var(--p-ink-3);
    text-align: center;
  }
  .pv-nav.menu-open > .pv-nav-cta {
    flex: 1 1 40%;
    justify-content: center;
    order: 4;
  }
  .pv-nav.menu-open > .pv-account {
    flex: 1 1 40%;
    order: 4;
  }
  .pv-nav.menu-open .pv-nav-discord {
    justify-content: center;
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 639px) {
  .pv-brand b {
    font-size: 20px;
  }
  .pv-brand-logo {
    width: 36px;
    height: 36px;
  }
}

/* ---------- footer (markup from lib/site-layout.js) ---------- */
.pv-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  width: min(1320px, 100% - 32px);
  margin: 56px auto 24px;
  padding: 18px 0 0;
  border-top: 2px solid var(--p-line-strong);
  color: var(--p-muted);
  font-size: 14px;
}
.pv-footer > b {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--p-paper);
  font-family: var(--p-font-display);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}
.pv-footer-logo {
  width: 30px;
  height: 30px;
}
.pv-footer > b span {
  color: var(--p-accent);
}
.pv-footer > p {
  margin: 0;
}
.pv-footer a {
  color: var(--p-muted);
  text-decoration: none;
}
.pv-footer a:hover {
  color: var(--p-accent);
}
.pv-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-left: auto;
}
.pv-footer-note {
  flex-basis: 100%;
  color: var(--p-faint);
  font-size: 12px;
}

/* ---------- toast (vote and share messages, from public/app.js) ---------- */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 18px;
  border: 1px solid var(--p-accent);
  border-radius: var(--p-radius-sm);
  background: var(--p-ink-3);
  box-shadow: var(--p-shadow);
  color: var(--p-text);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast.bad {
  border-left-color: var(--p-live);
}

@media (prefers-reduced-motion: reduce) {
  .p-live-tag::before,
  .p-ticker-track {
    animation: none;
  }
  .pv-nav {
    transition: none;
  }
}

/* poster/pages/home.css */
/* Los Santos Poster home page (markup: lib/poster-home.js). Compact: the first screen shows
   the title, the #1/#2 posters and the stats; sections below sit two by two. */

/* hero */
.p-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding-top: 40px;
}
.p-hero h1 {
  margin: 16px 0 14px;
  font-family: var(--p-font-display);
  font-size: clamp(46px, 6.2vw, 88px);
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
}
.p-hero h1 em {
  color: var(--p-accent);
  font-style: normal;
}
.p-hero-copy > p {
  max-width: 46ch;
  margin: 0 0 22px;
  color: var(--p-muted);
  font-size: 18px;
}
.p-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.p-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 26px 0 0;
}
.p-stats div {
  display: flex;
  flex-direction: column-reverse;
}
.p-stats dt {
  color: var(--p-faint);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.p-stats dd {
  margin: 0;
  color: var(--p-accent);
  font-family: var(--p-font-display);
  font-size: 38px;
  line-height: 1;
}
/* players on the GeminiRP server: green dot while it answers */
.p-stat-server dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.p-stat-server dt i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-faint);
}
.p-stat-server.is-online dt i {
  background: var(--p-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-green) 25%, transparent);
}
.p-stat-server.is-online dd {
  color: var(--p-green);
}

/* the #1 and #2 posters */
.p-posters {
  position: relative;
  min-height: 420px;
  background-image: radial-gradient(color-mix(in srgb, var(--p-accent) 16%, transparent) 1.2px, transparent 1.3px);
  background-size: 9px 9px;
}
.p-poster {
  position: absolute;
  display: block;
  border: 1px solid var(--p-line-strong);
  background: var(--p-ink-2);
  color: var(--p-paper);
  text-decoration: none;
  transition: transform 0.15s;
  border-radius: var(--p-radius);
}
.p-poster-1 {
  top: 18px;
  right: 6px;
  z-index: 2;
  width: min(380px, 80%);
  box-shadow: var(--p-shadow);
  transform: rotate(3deg);
}
.p-poster-2 {
  top: 150px;
  left: 0;
  width: min(290px, 60%);
  box-shadow: var(--p-shadow);
  transform: rotate(-6deg);
}
.p-poster:hover {
  z-index: 3;
  transform: rotate(0deg) scale(1.02);
}
.p-poster-img {
  display: grid;
  place-items: center;
  height: 210px;
  border-bottom: 1px solid var(--p-line);
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--p-accent) 26%, transparent), transparent 68%), var(--p-ink-3);
  border-radius: var(--p-radius) var(--p-radius) 0 0;
}
.p-poster-img .p-avatar {
  --p-size: 132px;
  border-width: 4px;
  box-shadow: var(--p-shadow);
}
.p-poster-2 .p-poster-img {
  height: 140px;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--p-hot) 22%, transparent), transparent 68%), var(--p-ink-3);
}
.p-poster-2 .p-poster-img .p-avatar {
  --p-size: 92px;
  border-color: var(--p-hot);
}
.p-poster-cap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.p-poster-cap > span:last-child {
  display: grid;
  min-width: 0;
}
.p-poster-cap b {
  overflow: hidden;
  font-family: var(--p-font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.p-poster-2 .p-poster-cap b {
  font-size: 23px;
}
.p-poster-cap small {
  color: var(--p-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.p-stamp {
  position: absolute;
  top: -20px;
  left: -18px;
  z-index: 1;
  padding: 5px 13px;
  background: var(--p-accent);
  box-shadow: var(--p-shadow);
  color: var(--p-ink);
  font-family: var(--p-font-display);
  font-size: 24px;
  text-transform: uppercase;
  transform: rotate(-7deg);
}
.p-poster-2 .p-stamp {
  left: -14px;
  background: var(--p-hot);
  color: var(--p-ink);
  font-size: 20px;
}

/* LIVE now */
.p-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.p-live-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 2px solid var(--p-line);
  background: var(--p-ink-2);
  color: var(--p-paper);
  text-decoration: none;
  border-radius: var(--p-radius);
}
.p-live-card::before {
  content: "";
  position: absolute;
  inset: -2px -2px auto;
  height: 5px;
  background: var(--p-live);
}
.p-live-card:hover {
  border-color: var(--p-live);
}
.p-live-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.p-live-who > span:last-child {
  display: grid;
  min-width: 0;
}
.p-live-who b {
  overflow: hidden;
  font-family: var(--p-font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.p-live-who small {
  overflow: hidden;
  color: var(--p-muted);
  text-overflow: ellipsis;
}

/* Principali / promoted */
.p-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}
.p-card {
  display: grid;
  min-width: 0;
  border: 2px solid var(--p-line);
  background: var(--p-ink-2);
  color: var(--p-paper);
  text-decoration: none;
  border-radius: var(--p-radius);
}
.p-card:hover {
  border-color: var(--p-accent);
}
.p-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}
.p-card-info {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.p-card-info b {
  overflow: hidden;
  font-family: var(--p-font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.p-card-info small {
  color: var(--p-muted);
}
.p-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.p-card-votes {
  display: grid;
  justify-items: end;
  font-family: var(--p-font-display);
  font-size: 32px;
  line-height: 1;
}
.p-card-votes small,
.p-row-v small {
  color: var(--p-muted);
  font-family: var(--p-font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ranking, trending, discover: two by two */
.p-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.p-columns > .p-section:only-child {
  grid-column: 1 / -1;
}
.p-columns > .p-section:only-child .p-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}
.p-rows {
  display: grid;
}
.p-row {
  display: grid;
  grid-template-columns: 58px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--p-line);
  color: var(--p-paper);
  text-decoration: none;
}
.p-row:not(:has(.p-row-n)) {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}
.p-row:hover b {
  color: var(--p-accent);
}
.p-row-n {
  color: transparent;
  font-family: var(--p-font-display);
  font-size: 40px;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--p-muted);
}
.p-row:nth-child(-n+1) .p-row-n {
  color: var(--p-accent);
  -webkit-text-stroke: 0;
}
.p-row-name {
  display: grid;
  min-width: 0;
}
.p-row-name b {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.p-row-name small {
  overflow: hidden;
  color: var(--p-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-row-v {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--p-font-display);
  font-size: 28px;
  line-height: 1;
}
.p-row-v.is-hot {
  color: var(--p-hot);
}

/* news panel (markup: lib/home-news.js) */
.p-news .pv-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--p-line-strong);
}
.p-news .pv-heading h2 {
  margin: 0;
  font-family: var(--p-font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.p-news .pv-heading h2 i,
.p-news .pv-heading p {
  display: none;
}
.p-news .pv-heading a {
  color: var(--p-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.p-news :is(.pv-news-item, .pv-news-empty) {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 2px solid var(--p-line);
  background: var(--p-ink-2);
  border-radius: var(--p-radius);
}
.p-news .pv-news-empty {
  justify-items: center;
  color: var(--p-muted);
  text-align: center;
}
.p-news .pv-news-empty i {
  color: var(--p-accent);
  font-size: 26px;
}
.p-news .pv-news-empty p,
.p-news .pv-news-content {
  margin: 0;
  color: var(--p-muted);
}
.p-news .pv-news-item-head {
  display: flex;
  gap: 12px;
}
.p-news .pv-news-item-head h3 {
  margin: 2px 0 0;
  font-family: var(--p-font-display);
  font-size: 26px;
  font-weight: 400;
  text-transform: uppercase;
}
.p-news .pv-news-pin {
  color: var(--p-hot);
}
.p-news .pv-news-open {
  font-weight: 800;
  text-decoration: none;
}

/* Discord band */
.p-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  margin-top: 50px;
  padding: 32px 36px;
  border: 1px solid var(--p-accent);
  border-radius: var(--p-radius);
  background: var(--p-ink-2);
  box-shadow: var(--p-shadow);
}
.p-band h2 {
  margin: 0;
  font-family: var(--p-font-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.p-band-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--p-paper);
  font-size: 17px;
  font-weight: 700;
}
.p-band-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-band-steps b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--p-radius-sm);
  background: var(--p-accent);
  color: var(--p-ink);
  font-family: var(--p-font-display);
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 1023px) {
  .p-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .p-posters {
    min-height: 380px;
  }
  .p-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 639px) {
  .p-hero {
    padding-top: 26px;
  }
  .p-hero-copy > p {
    font-size: 16px;
  }
  .p-stats {
    gap: 22px;
  }
  .p-stats dd {
    font-size: 30px;
  }
  /* phones: the two posters side by side, slightly tilted, no overlap */
  .p-posters {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 0;
    padding: 26px 8px 18px;
  }
  .p-poster {
    position: relative;
    inset: auto;
    width: auto;
  }
  .p-poster-1 {
    order: -1;
    transform: rotate(2deg);
  }
  .p-poster-2 {
    margin-top: 26px;
    transform: rotate(-3deg);
  }
  .p-poster-1 .p-poster-img {
    height: 100px;
  }
  .p-poster-2 .p-poster-img {
    height: 80px;
  }
  .p-poster-img .p-avatar {
    --p-size: 72px;
  }
  .p-poster-2 .p-poster-img .p-avatar {
    --p-size: 56px;
  }
  .p-poster-cap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 10px;
  }
  .p-poster-cap b {
    font-size: 22px;
  }
  .p-poster-2 .p-poster-cap b {
    font-size: 18px;
  }
  .p-stamp {
    font-size: 18px;
  }
  .p-live-grid {
    gap: 10px;
  }
  .p-live-card {
    padding: 12px;
  }
  .p-live-who b {
    font-size: 19px;
  }
  .p-columns > .p-section:only-child .p-rows {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-row {
    grid-template-columns: 44px 40px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .p-row-n {
    font-size: 32px;
  }
  .p-band {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-poster {
    transition: none;
  }
}
