:root {
    --upk-bg: #0a0907;
    --upk-surface: #17140f;
    --upk-primary: #a97a22;
    --upk-accent: #ffd45c;
    --upk-text: #f7f2e8;
    --upk-muted: #c4b59a;
    --upk-metal: linear-gradient(180deg, #ffe389 0%, #ffd45c 42%, #a97a22 100%);
    --upk-display: "Cinzel", "Times New Roman", serif;
    --upk-body: "Inter", system-ui, sans-serif;
    --upk-max: 1120px;
    --upk-rule: rgba(169, 122, 34, 0.38);
    --upk-discord: #5865f2;
    --upk-discord-hover: #4752c4;
    --upk-discord-text: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
    max-width: 100%;
    background: var(--upk-bg);
    color: var(--upk-text);
    font-family: var(--upk-body);
    font-size: 16px;
    line-height: 1.55;
}

body.upk {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.upk-vh {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upk-skip {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 80;
    padding: 8px 12px;
    background: var(--upk-accent);
    color: var(--upk-bg);
    font-weight: 700;
    border-radius: 999px;
}

.upk-skip:focus {
    top: 12px;
}

.upk-shell {
    width: min(var(--upk-max), calc(100% - 32px));
    margin: 0 auto;
}

.upk-kicker {
    margin: 0 0 10px;
    color: var(--upk-accent);
    font-family: var(--upk-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.upk-brand {
    display: inline-flex;
    align-items: center;
}

.upk-brand__img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.upk-brand__img--footer {
    width: 56px;
    height: 56px;
}

.upk-utility {
    background: #080705;
    border-bottom: 1px solid var(--upk-rule);
    color: var(--upk-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upk-utility__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 32px;
    text-align: center;
    flex-wrap: wrap;
    padding: 6px 0;
}

.upk-utility__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--upk-primary);
    flex: 0 0 auto;
}

.upk-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 9, 7, 0.92);
    border-bottom: 1px solid var(--upk-rule);
    backdrop-filter: blur(14px);
}

.upk-nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
}

.upk-nav__links {
    display: none;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.upk-nav__links a:hover,
.upk-nav__links a:focus-visible {
    color: var(--upk-accent);
}

.upk-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upk-menu-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.upk-menu-btn span {
    display: block;
    height: 2px;
    background: var(--upk-text);
}

.upk-nav__panel {
    display: none;
    padding: 0 0 16px;
}

.upk-nav__panel.is-open {
    display: block;
}

.upk-nav__panel a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid rgba(247, 242, 232, 0.08);
    font-weight: 600;
}

.upk-nav__panel a.upk-btn--discord {
    display: inline-flex;
    width: 100%;
    margin-top: 10px;
    border-top: 0;
    padding: 0 18px;
}

.upk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    background: var(--upk-metal);
    color: #0a0907;
    font-weight: 800;
    letter-spacing: 0.01em;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(255, 212, 92, 0.28), 0 8px 22px rgba(169, 122, 34, 0.28);
    white-space: nowrap;
}

.upk-btn:hover,
.upk-btn:focus-visible {
    filter: brightness(1.08);
}

.upk-btn--ghost {
    background: transparent;
    color: var(--upk-text);
    box-shadow: inset 0 0 0 1px rgba(255, 212, 92, 0.4);
}

.upk-btn--xl {
    min-height: 52px;
    padding: 0 28px;
    font-size: 1.02rem;
}

.upk-btn--discord {
    background: var(--upk-discord);
    color: var(--upk-discord-text);
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.45), 0 8px 22px rgba(36, 41, 102, 0.38);
}

.upk-btn--discord:hover,
.upk-btn--discord:focus-visible {
    filter: none;
    background: var(--upk-discord-hover);
    color: var(--upk-discord-text);
}

.upk-btn--discord:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--upk-accent);
}

.upk-hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 90px);
    display: flex;
    align-items: center;
    padding: 28px 0 56px;
    text-align: center;
    overflow: hidden;
}

.upk-hero__atmosphere {
    position: absolute;
    inset: -18% -12% 8%;
    z-index: -3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.upk-hero__glow {
    width: min(1500px, 170vw);
    max-width: none;
    height: auto;
    opacity: 0.34;
    filter: blur(52px) saturate(1.45) brightness(1.08);
    transform: scale(1.12);
}

.upk-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 42% at 50% 100%, rgba(169, 122, 34, 0.28), transparent 72%),
        radial-gradient(ellipse 52% 44% at 50% 36%, rgba(255, 212, 92, 0.26), transparent 60%),
        radial-gradient(ellipse 38% 28% at 50% 42%, rgba(169, 122, 34, 0.38), transparent 58%);
    z-index: -2;
    pointer-events: none;
}

.upk-hero__vignette {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 72% 60% at 50% 34%, transparent 12%, rgba(10, 9, 7, 0.28) 48%, rgba(10, 9, 7, 0.78) 78%, #0a0907 100%),
        linear-gradient(180deg, rgba(10, 9, 7, 0.35) 0%, transparent 24%, rgba(10, 9, 7, 0.55) 72%, #0a0907 100%);
}

.upk-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(var(--upk-max), calc(100% - 32px));
}

.upk-hero__logo {
    position: relative;
    margin: 0;
    width: min(560px, 86vw);
}

.upk-hero__crest {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 36px rgba(169, 122, 34, 0.38));
}

.upk-hero__date {
    margin: 10px 0 6px;
    font-family: var(--upk-display);
    font-size: clamp(1.05rem, 3.2vw, 1.45rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--upk-accent);
}

.upk-hero__headline {
    margin: 0 0 10px;
    max-width: 18ch;
    font-family: var(--upk-body);
    font-size: clamp(2.05rem, 7vw, 3.55rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
}

.upk-hero__headline em {
    font-style: normal;
    background: var(--upk-metal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.upk-hero__lede {
    max-width: 34rem;
    margin: 0 0 22px;
    color: var(--upk-muted);
    font-size: 1.02rem;
}

.upk-count {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: min(520px, 100%);
    margin: 0 0 18px;
}

.upk-count__cell {
    padding: 12px 6px 10px;
    background: rgba(8, 7, 5, 0.88);
    border: 1px solid var(--upk-rule);
    border-radius: 10px;
    text-align: center;
    min-width: 0;
}

.upk-count__num {
    display: block;
    font-family: var(--upk-display);
    font-size: clamp(1.45rem, 5.6vw, 2.35rem);
    line-height: 1;
    color: var(--upk-accent);
}

.upk-count__label {
    display: block;
    margin-top: 6px;
    color: var(--upk-muted);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.upk-count.is-expired .upk-count__num {
    color: var(--upk-muted);
}

.upk-hero__live {
    max-width: 32rem;
    margin: 0 0 18px;
    color: var(--upk-accent);
    font-weight: 600;
}

.upk-hero__cta {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upk-hero__cta-note {
    margin: 4px 0 0;
    color: var(--upk-muted);
    font-size: 0.95rem;
}

.upk-hero__cta .upk-text-link {
    font-size: 0.95rem;
}

.upk-section {
    padding: 72px 0;
}

.upk-section--surface {
    background: var(--upk-surface);
    border-top: 1px solid var(--upk-rule);
    border-bottom: 1px solid var(--upk-rule);
}

.upk-section__title {
    margin: 0 0 12px;
    font-family: var(--upk-display);
    font-size: clamp(2rem, 6.4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.upk-section__dek {
    max-width: 40rem;
    margin: 0 0 36px;
    color: var(--upk-muted);
}

.upk-pillars {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 0;
}

.upk-pillar {
    padding: 22px 0;
    border-top: 1px solid var(--upk-rule);
}

.upk-pillar h3,
.upk-beat h3,
.upk-sinks__title {
    margin: 0 0 6px;
    font-family: var(--upk-display);
    font-size: 1.35rem;
    letter-spacing: 0.03em;
}

.upk-pillar p,
.upk-beat p {
    margin: 0;
    color: var(--upk-muted);
}

.upk-beats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.upk-beat {
    padding: 18px 0 18px 16px;
    border-top: 1px solid var(--upk-rule);
    border-left: 2px solid var(--upk-primary);
}

.upk-band {
    padding: 56px 0;
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 212, 92, 0.12), transparent 60%),
        var(--upk-bg);
    border-top: 1px solid rgba(255, 212, 92, 0.22);
    border-bottom: 1px solid var(--upk-rule);
    text-align: center;
}

.upk-band h2 {
    margin: 0 0 10px;
    font-family: var(--upk-display);
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    line-height: 1.05;
}

.upk-band p {
    max-width: 34rem;
    margin: 0 auto 22px;
    color: var(--upk-muted);
}

.upk-sinks {
    display: grid;
    gap: 28px;
}

.upk-sinks p {
    color: var(--upk-muted);
}

.upk-sinks__panel {
    padding: 24px;
    background: var(--upk-surface);
    border: 1px solid var(--upk-rule);
    border-radius: 12px;
}

.upk-sinks__panel h3 {
    margin: 0 0 10px;
    font-family: var(--upk-display);
    font-size: 1.45rem;
}

.upk-sinks__panel li {
    color: var(--upk-muted);
}

.upk-sinks__panel ul {
    margin: 0;
    padding-left: 1.1rem;
}

.upk-sinks__panel li + li {
    margin-top: 8px;
}

.upk-text-link {
    color: var(--upk-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.upk-guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.upk-guide-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding: 22px;
    overflow: hidden;
    background: var(--upk-surface);
    border: 1px solid var(--upk-rule);
    border-radius: 12px;
}

.upk-guide-card__media {
    margin: -22px -22px 4px;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0907;
}

.upk-guide-card__media picture,
.upk-guide-card__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.upk-guide-card__media img {
    object-fit: cover;
}

.upk-guide-card:hover,
.upk-guide-card:focus-visible {
    border-color: var(--upk-accent);
}

.upk-guide-card__kicker {
    color: var(--upk-primary);
    font-family: var(--upk-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.upk-guide-card h2 {
    margin: 0;
    font-family: var(--upk-display);
    font-size: 1.7rem;
}

.upk-guide-card p {
    margin: 0;
    color: var(--upk-muted);
    flex: 1;
}

.upk-article {
    max-width: 720px;
}

.upk-article__kicker {
    margin: 0 0 8px;
    color: var(--upk-accent);
    font-family: var(--upk-display);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.upk-article h1 {
    margin: 0 0 12px;
    font-family: var(--upk-display);
    font-size: clamp(2.2rem, 8vw, 3.6rem);
    line-height: 1.05;
}

.upk-article__dek {
    margin: 0 0 28px;
    color: var(--upk-muted);
    font-size: 1.08rem;
}

.upk-article-figure {
    margin: 0 0 28px;
    max-width: 100%;
}

.upk-article-figure picture,
.upk-article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.upk-article h2 {
    margin: 36px 0 10px;
    font-family: var(--upk-display);
    font-size: 1.55rem;
}

.upk-article p,
.upk-article li {
    color: var(--upk-muted);
}

.upk-article ul {
    padding-left: 1.15rem;
}

.upk-article li + li {
    margin-top: 8px;
}

.upk-article a {
    color: var(--upk-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.upk-article__updated {
    margin: -12px 0 28px;
    color: var(--upk-muted);
    font-size: 0.92rem;
}

.upk-article--legal {
    max-width: 760px;
}

.upk-toc {
    margin: 0 0 36px;
    padding: 20px 22px;
    border: 1px solid var(--upk-rule);
    border-radius: 16px;
    background: rgba(23, 20, 15, 0.7);
}

.upk-toc__title {
    margin: 0 0 10px;
    color: var(--upk-accent);
    font-family: var(--upk-display);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.upk-toc ol {
    margin: 0;
    padding-left: 1.2rem;
}

.upk-toc li + li {
    margin-top: 6px;
}

.upk-table-wrap {
    overflow-x: auto;
    margin: 16px 0 28px;
}

.upk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.upk-table th,
.upk-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--upk-rule);
}

.upk-table th {
    color: var(--upk-accent);
    font-family: var(--upk-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.upk-footer__legal a {
    color: var(--upk-accent);
}

.upk-footer {
    padding: 48px 0 28px;
    background: #080705;
    border-top: 1px solid var(--upk-rule);
}

.upk-footer__grid {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.upk-footer p {
    color: var(--upk-muted);
}

.upk-footer__brand {
    min-width: 0;
}

.upk-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    align-items: start;
    font-weight: 600;
}

.upk-footer__group {
    min-width: 0;
}

.upk-footer__heading {
    margin: 0 0 8px;
    color: var(--upk-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.upk-footer__group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upk-footer__group a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.upk-footer__links a:hover {
    color: var(--upk-accent);
}

.upk-footer__legal {
    margin: 28px 0 0;
    color: var(--upk-muted);
    font-size: 0.85rem;
}

.upk-soon {
    min-height: 56vh;
    padding: 72px 0;
}

.upk-empty {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid var(--upk-rule);
    border-radius: 16px;
    background: rgba(23, 20, 15, 0.7);
    color: var(--upk-muted);
}

.upk-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.upk-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--upk-rule);
    border-radius: 999px;
    color: var(--upk-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.upk-chip.is-active {
    border-color: var(--upk-accent);
    color: var(--upk-accent);
}

.upk-chip.is-disabled {
    opacity: 0.45;
}

.upk-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
}

.upk-search input,
.upk-search textarea,
.client-username,
.upk-pay input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--upk-rule);
    border-radius: 12px;
    background: var(--upk-surface);
    color: var(--upk-text);
}

.upk-search input:not([type="hidden"]),
.client-username,
.upk-pay input[type="text"],
.upk-pay input[type="email"] {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2;
}

.upk-search textarea {
    min-height: 48px;
}

.upk-download-grid,
.upk-podium,
.upk-world {
    display: grid;
    gap: 16px;
    margin: 18px 0 28px;
    padding: 0;
    list-style: none;
}

.upk-card {
    padding: 18px 20px;
    border: 1px solid var(--upk-rule);
    border-radius: 16px;
    background: rgba(23, 20, 15, 0.7);
}

.upk-card h2,
.upk-card h3 {
    margin: 0 0 8px;
    font-family: var(--upk-display);
}

.upk-store-layout {
    display: grid;
    gap: 24px;
}

.upk-cart-line {
    display: grid;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid var(--upk-rule);
}

.upk-broadcast-list,
.upk-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.upk-broadcast,
.upk-event-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--upk-rule);
}

.upk-broadcast__type {
    color: var(--upk-accent);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upk-broadcast__look--amethyst { color: #c084fc; }
.upk-broadcast__look--crimson { color: #fb7185; }
.upk-broadcast__look--emerald { color: #34d399; }
.upk-broadcast__look--sapphire { color: #60a5fa; }
.upk-broadcast__look--gold { color: #ffd45c; }

.upk-muted {
    color: var(--upk-muted);
}

.upk-table tr.is-highlight td {
    color: var(--upk-accent);
}

.upk-section--arena {
    padding-top: 36px;
}

.upk-section--arena p,
.upk-section--arena td,
.upk-section--arena .upk-empty {
    color: var(--upk-text);
}

.upk-stage {
    position: relative;
    isolation: isolate;
    margin: 0 0 28px;
    padding: 8px 0 4px;
}

.upk-stage__atmosphere {
    position: absolute;
    inset: -40% auto auto 50%;
    z-index: -1;
    width: min(420px, 70vw);
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.18;
    filter: blur(28px) saturate(1.35);
}

.upk-stage__glow {
    width: 100%;
    height: auto;
}

.upk-stage .upk-section__title {
    color: var(--upk-accent);
    background-image: var(--upk-metal);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upk-board-grid,
.upk-player-panels,
.upk-vote-sites,
.upk-item-grid {
    display: grid;
    gap: 16px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.upk-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upk-rank-card,
.upk-item-card,
.upk-podium__place,
.upk-cart {
    position: relative;
    min-width: 0;
}

.upk-rank-card::before,
.upk-item-card::before,
.upk-podium__place::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--upk-accent), transparent);
    transform: scaleX(1);
    transform-origin: left;
}

.upk-rank-card h2,
.upk-item-card h2,
.upk-podium__place h3,
.upk-catalog-panel h2,
.upk-cart h2 {
    color: var(--upk-text);
}

.upk-rank-card.is-active,
.upk-podium__place--1 {
    border-color: rgba(255, 212, 92, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 212, 92, 0.22), 0 18px 40px rgba(169, 122, 34, 0.18);
}

.upk-rank-list {
    list-style: none;
    margin: 12px 0 16px;
    padding: 0;
}

.upk-rank-list li {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(247, 242, 232, 0.12);
}

.upk-rank-list__place {
    font-family: var(--upk-display);
    color: var(--upk-accent);
    font-weight: 700;
}

.upk-rank-list a:hover,
.upk-rank-list a:focus-visible {
    color: var(--upk-accent);
}

.upk-item-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    vertical-align: middle;
}

.upk-item-icon img {
    display: block;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    object-fit: contain;
}

.upk-rank-card h2,
.upk-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upk-rank-card h2 {
    display: flex;
}

.upk-table td .upk-item-icon {
    margin-right: 8px;
}

.upk-chip:hover,
.upk-chip:focus-visible {
    border-color: var(--upk-accent);
    color: var(--upk-accent);
    outline: none;
}

.upk-chip:focus-visible {
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.45);
}

.upk-item-art {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 12px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 212, 92, 0.16), transparent 68%),
        #120f0b;
    border: 1px solid var(--upk-rule);
}

.upk-item-art:has(.upk-item-icon--fill),
.upk-item-art:has(.upk-item-art__mark) {
    aspect-ratio: 1;
    width: 100%;
    padding: 10%;
}

.upk-item-art .upk-item-icon--fill,
.upk-item-icon--fill {
    width: 100%;
    height: 100%;
    flex: none;
    margin: 0;
    min-width: 0;
    min-height: 0;
}

.upk-item-icon--hi img {
    object-fit: contain;
    image-rendering: auto;
}

.upk-item-art:has(.upk-item-icon--fill) img,
.upk-item-icon--fill img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
}

.upk-item-art__mark {
    width: 42px;
    height: 42px;
    background: var(--upk-metal);
    clip-path: polygon(50% 6%, 92% 28%, 92% 72%, 50% 94%, 8% 72%, 8% 28%);
}

.upk-item-card__price,
.upk-item-card__slot {
    margin: 8px 0 14px;
    color: var(--upk-accent);
    font-family: var(--upk-display);
    font-size: 1.05rem;
    text-align: center;
}

.upk-catalog-panel h2 {
    margin: 0 0 16px;
    font-family: var(--upk-display);
}

.upk-cart {
    position: sticky;
    top: 76px;
}

.cart-footer {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.upk-cart__field {
    display: grid;
    gap: 6px;
}

.upk-cart__terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.upk-cart .client-username,
.upk-cart #checkout-btn {
    width: 100%;
}

.upk-btn:disabled,
.upk-btn[aria-disabled="true"] {
    cursor: not-allowed;
    background: #3a3428;
    color: var(--upk-text);
}

.upk-vote-lede {
    max-width: 36rem;
    margin: -8px auto 28px;
    text-align: center;
    color: var(--upk-muted);
}

.upk-vote-card {
    max-width: 32rem;
    margin: 0 auto 40px;
    padding: 28px 24px 24px;
    border: 1px solid var(--upk-rule);
    border-radius: 18px;
    background: rgba(23, 20, 15, 0.78);
    text-align: center;
}

.upk-vote-card h2 {
    margin: 0 0 10px;
    font-family: var(--upk-display);
}

.upk-vote-card .upk-search {
    justify-content: center;
    margin-top: 18px;
}

.upk-vote-card__prizes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.upk-vote-card__prizes .upk-item-art {
    width: 72px;
    aspect-ratio: 1;
    margin: 0;
}

.upk-vote-layout {
    margin: 0 0 32px;
}

.upk-hiscores__title {
    margin: 0 0 28px;
    color: var(--upk-accent);
    font-family: var(--upk-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    background-image: var(--upk-metal);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upk-hiscores__types,
.upk-hiscores__modes,
.upk-hiscores__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upk-hiscores__types,
.upk-hiscores__modes,
.upk-hiscores__cats,
.upk-hiscores__board {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid var(--upk-rule);
    background: rgba(23, 20, 15, 0.78);
}

.upk-hiscores__type,
.upk-hiscores__mode,
.upk-hiscores__cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--upk-rule);
    background: rgba(10, 9, 7, 0.55);
    color: var(--upk-text);
    font-weight: 600;
    text-align: center;
}

.upk-hiscores__types {
    justify-content: stretch;
}

.upk-hiscores__type {
    flex: 1 1 10rem;
}

.upk-hiscores__modes {
    justify-content: center;
}

.upk-hiscores__mode {
    flex: 1 1 8rem;
}

.upk-hiscores__cats {
    flex-direction: column;
    gap: 0;
    padding: 8px 10px;
}

.upk-hiscores__cat {
    justify-content: flex-start;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(247, 242, 232, 0.1);
}

.upk-hiscores__cat:last-child {
    border-bottom: 0;
}

.upk-hiscores__type:hover,
.upk-hiscores__mode:hover,
.upk-hiscores__cat:hover,
.upk-hiscores__type:focus-visible,
.upk-hiscores__mode:focus-visible,
.upk-hiscores__cat:focus-visible {
    border-color: var(--upk-accent);
    color: var(--upk-accent);
    outline: none;
}

.upk-hiscores__type.is-active,
.upk-hiscores__mode.is-active {
    border-color: var(--upk-accent);
    box-shadow: 0 0 0 1px rgba(255, 212, 92, 0.28);
    font-weight: 800;
}

.upk-hiscores__cat.is-active {
    color: var(--upk-accent);
    font-weight: 800;
}

.upk-hiscores__layout {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.upk-hiscores__sidebar,
.upk-hiscores__main {
    min-width: 0;
}

.upk-hiscores__board {
    margin-bottom: 0;
}

.upk-hiscores__board-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 16px;
}

.upk-hiscores__board-title h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--upk-display);
    font-size: 1.45rem;
    text-transform: uppercase;
}

.upk-hiscores__board-title p {
    margin: 0;
    color: var(--upk-muted);
    font-size: 0.92rem;
}

.upk-hiscores__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.upk-hiscores__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    image-rendering: auto;
}

.upk-hiscores__search {
    margin-bottom: 16px;
}

.upk-hiscores__table {
    text-align: center;
}

.upk-hiscores__table th,
.upk-hiscores__table td {
    text-align: center;
    vertical-align: middle;
}

.upk-hiscores__table tbody tr:nth-child(odd) td {
    background: rgba(0, 0, 0, 0.16);
}

.upk-vote-site {
    padding: 16px 0;
    border-top: 1px solid var(--upk-rule);
}

.upk-vote-site h3 {
    margin: 0 0 8px;
    font-family: var(--upk-display);
}

.upk-podium__place--2,
.upk-podium__place--3 {
    border-color: var(--upk-rule);
}

.upk-rank-card::before,
.upk-item-card::before,
.upk-podium__place::before {
    animation: upk-shear 0.9s ease-out 1;
}

@keyframes upk-shear {
    from { transform: scaleX(0.12); }
    to { transform: scaleX(1); }
}

@media (max-width: 419px) {
    .upk-shell {
        width: min(var(--upk-max), calc(100% - 24px));
    }

    .upk-count {
        gap: 6px;
    }

    .upk-count__cell {
        padding: 10px 2px 8px;
    }

    .upk-hero__cta .upk-btn {
        width: 100%;
    }

    .upk-search {
        flex-direction: column;
        align-items: stretch;
    }

    .upk-search .upk-btn,
    .upk-search input:not([type="hidden"]) {
        width: 100%;
        flex: 0 0 auto;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
    }

    .upk-hiscores__type,
    .upk-hiscores__mode {
        flex: 1 1 100%;
    }
}

@media (min-width: 720px) {
    .upk-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upk-sinks,
    .upk-footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
        align-items: start;
    }

    .upk-footer__links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 18px;
    }

    .upk-pillars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 32px;
    }

    .upk-beats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 28px;
    }
}

@media (min-width: 720px) {
    .upk-download-grid,
    .upk-podium,
    .upk-world,
    .upk-store-layout,
    .upk-board-grid,
    .upk-player-panels,
    .upk-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upk-hiscores__layout {
        grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 1fr);
        align-items: start;
    }

    .upk-podium {
        align-items: stretch;
    }

    .upk-podium__place--1 {
        margin-top: -8px;
    }
}

@media (min-width: 1100px) {
    .upk-footer__links {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .upk-board-grid,
    .upk-podium,
    .upk-item-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .upk-store-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
        align-items: start;
    }
}

@media (min-width: 1100px) {
    .upk-nav__links {
        display: flex;
        gap: 14px;
        font-size: 0.86rem;
    }

    .upk-menu-btn,
    .upk-nav__panel {
        display: none !important;
    }

    .upk-hero {
        padding: 36px 0 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .upk-rank-card::before,
    .upk-item-card::before,
    .upk-podium__place::before {
        animation: none;
        transform: scaleX(1);
    }
}

@media (forced-colors: active) {
    .upk-stage .upk-section__title,
    .upk-hiscores__title {
        -webkit-text-fill-color: CanvasText;
        background: none;
        color: CanvasText;
    }
}
