/* ==========================================================================
   VERTEX — the public Arenyze profile (/u/:username). The hero carries the
   identity on the left and the player card on the right (every linked game,
   its headline figure in the game colour, as in the home preview); below,
   one module per game, the overview and the links.
   ========================================================================== */
.page-user > main::after { opacity: .14; }
.pp-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.pp-field { position: absolute; inset: 0; pointer-events: none; }
.pp-field::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 75% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 75% 0%, #000 10%, transparent 75%); }
.pp-field::after { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgb(var(--acc-rgb) / .12), transparent); filter: blur(20px); }
.pp-cover { position: absolute; inset: 0; background: var(--cover) center 30% / cover no-repeat; opacity: .32;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .4) 35%, #000 75%), linear-gradient(180deg, #000 40%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .4) 35%, #000 75%), linear-gradient(180deg, #000 40%, transparent); mask-composite: intersect; }
.pp-hero-in { position: relative; padding-block: 30px 40px; }
.pp-hero-in::before, .pp-hero-in::after { content: ''; position: absolute; top: 14px; width: 11px; height: 11px; background: var(--ink-4); -webkit-mask: var(--plus); mask: var(--plus); }
.pp-hero-in::before { left: 0; } .pp-hero-in::after { right: 0; }
.pp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; margin-top: 22px; }
.pp-k { display: block; font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* identity */
.pp-id { display: flex; align-items: center; gap: 26px; min-width: 0; }
.pp-av { position: relative; width: 132px; height: 132px; flex: none; display: grid; place-items: center; }
.pp-av > img, .pp-av > span { width: 112px; height: 112px; object-fit: cover; display: grid; place-items: center; font: 820 50px var(--f); font-stretch: 118%; color: var(--acc-ink);
  background: linear-gradient(140deg, var(--acc-hi), var(--acc-lo)); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.pp-ring { position: absolute; inset: 0; border: 1px solid var(--line-2); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.pp-ring::before, .pp-ring::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid var(--acc); }
.pp-ring::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.pp-ring::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.pp-av.is-pro > img, .pp-av.is-pro > span { border-radius: 50%; clip-path: none; width: 108px; height: 108px; }
.pp-av.is-pro .pp-ring { border: 0; clip-path: none; border-radius: 50%; background: conic-gradient(from 0deg, var(--acc), var(--acc-2), transparent 40%, var(--acc) 70%, var(--acc-2), var(--acc));
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: pp-spin 6s linear infinite; }
.pp-av.is-pro .pp-ring::before, .pp-av.is-pro .pp-ring::after { content: none; }
@keyframes pp-spin { to { transform: rotate(1turn); } }
.pp-who { min-width: 0; display: flex; flex-direction: column; }
.pp-name { margin: 8px 0 0; font: 800 clamp(34px, 4.6vw, 58px)/1 var(--f) !important; font-stretch: 112% !important; letter-spacing: -.035em !important; overflow-wrap: anywhere; }
.pp-url { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font: 500 12.5px var(--f-mono); color: var(--ink-3); }
.pp-copy { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--ink-3); transition: color var(--t); }
.pp-copy:hover { color: var(--acc-t); }
.pp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pp-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: color-mix(in srgb, var(--s2) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); }
.pp-badge .i { font-size: 14px; }
.pp-badge.is-pro { color: var(--acc-ink); background: var(--acc); box-shadow: none; font: 700 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.pp-badge.is-ok { color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); }
.pp-soc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pp-soc-a { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: color var(--t), box-shadow var(--t); }
.pp-soc-a svg { width: 16px; height: 16px; fill: currentColor; }
.pp-soc-a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* the player card (as on the home) */
.pp-card { position: relative; width: 100%; max-width: 520px; justify-self: end; background: var(--s1); box-shadow: 0 0 0 1px var(--line-2), var(--shadow);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.pp-card::before { content: ''; position: absolute; left: 0; top: 0; width: 56px; height: 2px; background: var(--acc); box-shadow: 0 0 14px var(--acc); z-index: 1; }
.pp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.pp-card-n { font: 600 11px var(--f-mono); color: var(--acc-t); }
.pp-rows { padding: 4px 20px; }
.pp-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); transition: background var(--t); }
.pp-row:last-child { border-bottom: 0; }
.pp-row > img { width: 30px; height: 30px; object-fit: contain; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.pp-row-n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-row-n b { font-size: 13.5px; font-weight: 640; transition: color var(--t); }
.pp-row-n small { font: 500 11.5px var(--f-mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-row-v { display: flex; align-items: center; gap: 10px; justify-content: flex-end; min-width: 96px; }
.pp-row-v > span { display: flex; flex-direction: column; align-items: flex-end; }
.pp-row-v b { font: 700 16px var(--f-mono); color: var(--gc); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-row-v small { font: 600 9.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.pp-row-rank { width: 30px; height: 30px; object-fit: contain; }
.pp-ok { color: var(--ok); font-size: 16px; display: grid; }
.pp-row:hover .pp-row-n b { color: var(--gc); }
.pp-none { display: flex; align-items: center; gap: 10px; padding: 26px 20px; color: var(--ink-3); font-size: 13.5px; }
.pp-card-f { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 20px 16px; border-top: 1px solid var(--line); font: 500 11.5px var(--f-mono); color: var(--ink-2); }
.pp-card-f > span { display: inline-flex; align-items: center; gap: 6px; }
.pp-card-f .i { font-size: 14px; color: var(--acc-t); }

/* page */
.pp-page { padding-block: 28px 64px; }
.pp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pp-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pp-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--hdr-h) + 16px); }
.pp-sec { display: flex; align-items: center; gap: 14px; margin: 0 0 2px; }
.pp-sec h2 { font: 760 22px/1.1 var(--f) !important; font-stretch: 110% !important; letter-spacing: -.02em !important; margin: 0; }
.pp-sec-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); position: relative; }
.pp-sec-rule::before { content: ''; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; background: var(--acc); transform: rotate(45deg); }
.pp-sec-n { font: 600 11px var(--f-mono); color: var(--ink-3); }
.pp-mod { position: relative; background: var(--s1); box-shadow: 0 0 0 1px var(--line); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.pp-mod::after { content: ''; position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: linear-gradient(to bottom left, transparent calc(50% - .7px), var(--line-2) calc(50% - .7px), var(--line-2) calc(50% + .7px), transparent calc(50% + .7px)); pointer-events: none; }
.pp-mod-h { position: relative; display: flex; align-items: center; min-height: 50px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.pp-mod-h::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 40px; height: 1px; background: var(--acc); }
.pp-mod-h h3 { display: flex; align-items: center; gap: 9px; margin: 0; font: 680 14.5px var(--f) !important; letter-spacing: -.005em; }
.pp-mod-h h3 .i { color: var(--ink-3); font-size: 16px; }
.pp-spec { margin: 0; padding: 6px 18px 12px; }
.pp-kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pp-kv:last-child { border-bottom: 0; }
.pp-kv dt { color: var(--ink-3); }
.pp-kv dd { margin: 0; font-weight: 650; }
.pp-kv dd.is-gold { color: var(--acc-t); }
.pp-links { display: flex; flex-direction: column; padding: 8px; }
.pp-link { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; transition: background var(--t); }
.pp-link:hover { background: var(--s2); }
.pp-link svg { width: 18px; height: 18px; fill: currentColor; color: var(--ink-2); }
.pp-link small { display: block; font: 600 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pp-link b { font-size: 13.5px; }
.pp-muted { margin: 0; padding: 16px 18px; color: var(--ink-3); font-size: 13px; }

/* one module per game */
.pp-mods { display: flex; flex-direction: column; gap: 14px; }
.pp-g { --gc: var(--acc); }
.pp-g::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gc); box-shadow: 0 0 12px color-mix(in srgb, var(--gc) 50%, transparent); }
.pp-g-h { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--gc) 12%, transparent), transparent 60%); }
.pp-g-logo { width: 46px; height: 46px; object-fit: contain; flex: none; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
.pp-g-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pp-g-game { display: flex; align-items: center; gap: 8px; font: 600 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gc); }
.pp-ver { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); letter-spacing: .06em; }
.pp-ver .i { font-size: 13px; }
.pp-g-name { font-size: 20px; font-weight: 760; font-stretch: 108%; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pp-g-id small { font: 500 11.5px var(--f-mono); color: var(--ink-3); }
.pp-rank { display: flex; align-items: center; gap: 10px; flex: none; }
.pp-rank img { width: 46px; height: 46px; object-fit: contain; }
.pp-rank small { display: block; font: 600 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pp-rank b { font-size: 15px; }
.pp-ros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-ro { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.pp-ro:nth-child(3n) { border-right: 0; }
.pp-ro small { font: 600 10px/1.1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-ro b { font-size: 24px; font-weight: 720; font-stretch: 108%; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-ro::after { content: ''; height: 6px; margin-top: 2px; background: repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 7px); -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.pp-more { padding: 14px 20px 4px; }
.pp-more .pp-k { margin-bottom: 6px; }
.pp-board { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.pp-board:last-child { border-bottom: 0; }
.pp-board span { font: 600 13px var(--f-mono); }
.pp-board small { color: var(--ink-3); font-weight: 500; }
.pp-board i { font: 700 12px var(--f-mono); font-style: normal; color: var(--gc); text-align: right; }
.pp-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.pp-op { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pp-op img { width: 56px; height: 56px; object-fit: cover; background: var(--s3); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.pp-op small { font-size: 11px; color: var(--ink-2); }
.pp-g-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px 16px; }
.pp-when { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px var(--f-mono); color: var(--ink-3); }
.pp-g-none { margin: 0; padding: 18px 20px; color: var(--ink-3); font-size: 13.5px; }
.pp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; text-align: center; color: var(--ink-3); }
.pp-empty > .i { font-size: 28px; color: var(--acc-t); }
.pp-empty b { color: var(--ink); font-size: 17px; }
.pp-note { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.pp-note a { color: var(--acc-t); }
html.js .pp-mod, html.js .pp-card { animation: pp-in .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes pp-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1080px) {
  .pp-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .pp-card { justify-self: stretch; max-width: none; }
  .pp-layout { grid-template-columns: 1fr; }
  .pp-aside { position: static; }
}
@media (max-width: 720px) {
  .pp-id { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pp-av { width: 104px; height: 104px; }
  .pp-av > img, .pp-av > span { width: 88px; height: 88px; font-size: 40px; }
  .pp-av.is-pro > img, .pp-av.is-pro > span { width: 84px; height: 84px; }
  .pp-ros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-ro:nth-child(3n) { border-right: 1px solid var(--line); }
  .pp-ro:nth-child(2n) { border-right: 0; }
  .pp-ro b { font-size: 20px; }
  .pp-g-h { flex-wrap: wrap; }
  .pp-row-v { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .pp-ring { animation: none !important; } html.js .pp-mod, html.js .pp-card { animation: none; } }

/* the tracker modules: two columns, narrower cards; the figures in two columns inside */
.pp-mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pp-mods .pp-ros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-mods .pp-ro:nth-child(3n) { border-right: 1px solid var(--line); }
.pp-mods .pp-ro:nth-child(2n) { border-right: 0; }
.pp-mods .pp-ro b { font-size: 22px; }
.pp-mods .pp-g-h { flex-wrap: wrap; }
.pp-mods .pp-rank img { width: 38px; height: 38px; }
.pp-mods .pp-board { grid-template-columns: minmax(0, 1fr) auto 56px; }
@media (max-width: 760px) { .pp-mods { grid-template-columns: 1fr; } }

/* trackers: two columns in the main column; Overview and Links stay in the aside on the right */
.pp-mods > .pp-empty { grid-column: 1 / -1; }

/* a single tracker: the card fills the main column, split in two inside (figures | season + link) */
@media (min-width: 761px) {
  .pp-mods > .pp-g:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "h h" "s m" "s f"; grid-template-rows: auto 1fr auto; }
  .pp-mods > .pp-g:only-child > .pp-g-h { grid-area: h; }
  .pp-mods > .pp-g:only-child > .pp-ros { grid-area: s; grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 1px solid var(--line); align-content: start; }
  .pp-mods > .pp-g:only-child > .pp-ros > .pp-ro { border-right: 1px solid var(--line); }
  .pp-mods > .pp-g:only-child > .pp-ros > .pp-ro:nth-child(3n) { border-right: 0; }
  .pp-mods > .pp-g:only-child > .pp-more { grid-area: m; padding-top: 18px; }
  .pp-mods > .pp-g:only-child > .pp-g-f { grid-area: f; align-self: end; }
  .pp-mods > .pp-g:only-child > .pp-g-none { grid-column: 1 / -1; }
  .pp-mods > .pp-g:only-child .pp-rank img { width: 46px; height: 46px; }
}
@media (min-width: 761px) {
  .pp-mods > .pp-g:only-child:not(:has(> .pp-more)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "s" "f"; grid-template-rows: auto; }
  .pp-mods > .pp-g:only-child:not(:has(> .pp-more)) > .pp-ros { grid-template-columns: repeat(6, minmax(0, 1fr)); border-right: 0; }
  .pp-mods > .pp-g:only-child:not(:has(> .pp-more)) > .pp-ros > .pp-ro:nth-child(3n) { border-right: 1px solid var(--line); }
  .pp-mods > .pp-g:only-child:not(:has(> .pp-more)) > .pp-ros > .pp-ro:last-child { border-right: 0; }
  .pp-mods > .pp-g:only-child:not(:has(> .pp-more)) > .pp-g-f { padding-top: 14px; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .pp-mods > .pp-g:only-child:not(:has(> .pp-more)) > .pp-ros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-mods > .pp-g:only-child:not(:has(> .pp-more)) > .pp-ros > .pp-ro:nth-child(3n) { border-right: 0; }
}
