:root {
    --bg: #eef2f6;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --text: #151d25;
    --muted: #5b6b78;
    --faint: #97a6b2;
    --border: #d6e0e7;
    --border-strong: #b9c7d1;
    --accent: #3f7fae;
    --accent-strong: #2c5f87;
    --accent-soft: #dde9f2;
    --accent-softer: #eef4f9;
    --success: #1f8a4c;
    --shadow: 0 10px 26px rgba(20, 34, 46, .09);
    --radius: 18px;
    --page-width: 864px;
}

:root[data-theme="dark"] {
    --bg: #0f151c;
    --surface: #171f28;
    --surface-raised: #1c2530;
    --text: #eef3f8;
    --muted: #8fa0ae;
    --faint: #5b6b78;
    --border: #263340;
    --border-strong: #35434f;
    --accent: #6fb6df;
    --accent-strong: #8fc7e6;
    --accent-soft: #1c2f3c;
    --accent-softer: #172631;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    background:
        radial-gradient(1100px 560px at 50% -8%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDAiIGhlaWdodD0iMTQwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44NSIgbnVtT2N0YXZlcz0iMiIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIvPjwvc3ZnPg==");
    opacity: .035;
    mix-blend-mode: overlay;
    pointer-events: none;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

p,
h1,
h2,
h3 {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
}

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

.site-header {
    padding: 22px 22px 16px;
}

.header-inner {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-cluster,
.brand,
.main-nav,
.board-switch {
    display: flex;
    align-items: center;
}

.brand-cluster {
    gap: 13px;
}

.brand {
    gap: 8px;
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.3px;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 24px;
    gap: 3px;
}

.brand-logo {
    display: block;
    height: 26px;
    width: auto;
}

.brand-mark i {
    display: block;
    height: 5px;
    border-radius: 4px;
    background: var(--text);
}

.brand-mark i:nth-child(1) {
    width: 8px;
    margin-left: 15px;
    background: var(--accent);
}

.brand-mark i:nth-child(2) {
    width: 16px;
    margin-left: 7px;
}

.brand-mark i:nth-child(3) {
    width: 24px;
}

.board-switch {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

.board-switch a {
    padding: 6px 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
}

.board-switch a.active {
    color: var(--text);
    background: var(--accent-softer);
}

.board-switch span {
    color: var(--accent);
}

.main-nav {
    gap: 27px;
    font-size: 14px;
}

.main-nav a {
    color: var(--muted);
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.theme-toggle {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.mobile-tabs {
    display: none;
}

.status-wrap {
    position: relative;
    z-index: 45;
    display: flex;
    justify-content: center;
    padding: 15px 20px 0;
}


.status-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 13px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
}

.status-pill strong {
    color: var(--text);
    font-weight: 600;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 2px;
}

.flash {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 18px auto -5px;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
    font-size: 14px;
}

.flash-success {
    border-color: rgba(31, 138, 76, .3);
    color: #17693c;
}

.flash-error {
    border-color: rgba(63, 127, 174, .35);
    color: var(--accent-strong);
}

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

.leaderboard-page {
    padding-top: 16px;
}

.page-kicker {
    margin: 0 auto 12px;
    text-align: center;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
}

.bid-hero {
    position: relative;
    z-index: 45;
    padding: 12px 0 26px;
    text-align: center;
}

.bid-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -30px -20% auto;
    height: 300px;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
    pointer-events: none;
}

.bid-hero h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 10px;
    font-size: clamp(30px, 4.2vw, 38px);
    line-height: 1.15;
    letter-spacing: -.5px;
}

.hero-price,
.accent-text {
    color: var(--accent);
}

.hero-price {
    display: inline-flex;
    align-items: baseline;
}

/* The amount is typed straight into the headline, so the control inherits
   the heading's type entirely and only shows its edges on focus. */
.hero-amount {
    width: 3ch;
    padding: 0 2px;
    border: 0;
    border-bottom: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 4px 4px 0 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.hero-amount:hover {
    border-bottom-color: color-mix(in srgb, var(--accent) 60%, transparent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.hero-amount:focus {
    outline: none;
    border-bottom-style: solid;
    border-bottom-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Native spinners would duplicate the − / + buttons beside it. */
.hero-amount::-webkit-outer-spin-button,
.hero-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bid-step {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
}

.hero-helper {
    max-width: 590px;
    margin: 0 auto 19px;
    color: var(--muted);
    font-size: 14px;
}

.hero-helper::first-line {
    color: var(--accent);
}

.bid-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.65fr) minmax(220px, .9fr) auto;
    gap: 10px;
    text-align: left;
}

.url-field,
.select-field {
    position: relative;
    display: flex;
    align-items: center;
}

.url-field input,
.select-field select {
    width: 100%;
    height: 45px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: transparent;
    transition: border-color .2s, box-shadow .2s;
}

.url-field input {
    padding: 0 17px 0 40px;
}

.select-field select {
    padding: 0 38px 0 17px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.url-field input:focus,
.select-field select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(63, 127, 174, .14);
}

.field-icon {
    position: absolute;
    left: 16px;
    z-index: 1;
    color: var(--muted);
}

.description-field {
    grid-column: 1 / -1;
}

.description-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 17px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: transparent;
    resize: vertical;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.description-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(63, 127, 174, .14);
}

.primary-button,
.secondary-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 21px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.primary-button {
    background: var(--text);
    color: var(--bg);
}

.primary-button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.secondary-button {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.secondary-button:hover {
    border-color: var(--border-strong);
    background: var(--surface);
}

.bid-form .primary-button {
    grid-column: 1 / -1;
    width: 100%;
    height: 60px;
    margin-top: 2px;
    border-radius: 999px;
    font-size: 16px;
    box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--text) 55%, transparent);
}

.bid-form .primary-button:hover {
    box-shadow: 0 20px 38px -14px color-mix(in srgb, var(--accent) 55%, transparent);
}

.bid-note {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 12.5px;
}

.payment-dialog {
    width: min(calc(100% - 28px), 570px);
    max-height: min(calc(100vh - 24px), 760px);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-raised);
    color: var(--text);
    box-shadow: 0 24px 64px rgba(15, 17, 19, .28);
}

.payment-dialog::backdrop {
    background: rgba(16, 18, 20, .5);
    backdrop-filter: blur(4px);
}

.payment-shell {
    position: relative;
    padding: 30px;
}

.payment-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 21px;
}

.payment-kicker {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.payment-shell h2 {
    margin-bottom: 7px;
    font-size: 29px;
    letter-spacing: -.4px;
}

.payment-intro {
    max-width: 455px;
    margin-bottom: 21px;
    color: var(--muted);
    font-size: 13.5px;
}

.payment-error {
    margin-bottom: 15px;
    padding: 11px 13px;
    border: 1px solid rgba(63, 127, 174, .35);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 13px;
}

.payment-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--border);
}

.payment-summary > div {
    min-width: 0;
    padding: 13px 14px;
    background: var(--surface);
}

.payment-summary span,
.payment-summary strong {
    display: block;
}

.payment-summary span {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.payment-summary strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-placeholder {
    position: relative;
    min-height: 170px;
    padding: 19px 21px;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at 86% 10%, rgba(255, 255, 255, .16), transparent 27%),
        linear-gradient(135deg, #2b2f33 0%, #191c1f 62%, #101214 100%);
    color: #fff;
    box-shadow: 0 18px 38px rgba(16, 18, 20, .3);
}

.payment-placeholder::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -80px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(209, 162, 74, .3);
    border-radius: 50%;
}

.payment-placeholder-head,
.demo-card-meta,
.payment-charge,
.payment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-placeholder-head {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.payment-placeholder-head b {
    padding: 4px 8px;
    border: 1px solid rgba(209, 162, 74, .55);
    border-radius: 999px;
    color: #f0d8a4;
    font-size: 9px;
    letter-spacing: .12em;
}

.demo-card-number {
    margin: 30px 0 22px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(18px, 4.2vw, 24px);
    font-weight: 600;
    letter-spacing: .1em;
    white-space: nowrap;
}

.demo-card-meta {
    position: relative;
    z-index: 1;
    justify-content: flex-start;
    gap: 30px;
    font-size: 12px;
}

.demo-card-meta span,
.demo-card-meta small {
    display: block;
}

.demo-card-meta small {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .68);
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.payment-charge {
    margin: 19px 0 5px;
    padding: 0 2px;
}

.payment-charge span {
    color: var(--muted);
    font-size: 13px;
}

.payment-charge strong {
    color: var(--accent);
    font-size: 26px;
}

.payment-disclaimer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 11px;
}

.payment-disclaimer span {
    color: var(--success);
}

.payment-actions {
    gap: 10px;
}

.payment-actions .primary-button {
    flex: 1;
}

.payment-actions .primary-button:disabled {
    cursor: wait;
    opacity: .55;
    transform: none;
}

.payment-actions .secondary-button {
    min-width: 96px;
}

.category-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 7px 0 -7px;
    color: var(--muted);
}

.category-heading h1 {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.category-heading span {
    color: var(--accent);
}

.ranking {
    position: relative;
}

.product-logo,
.detail-icon,
.mini-logo,
.podium-logo,
.rank-row-logo {
    display: grid;
    place-items: center;
    flex: none;
    color: var(--logo-accent, var(--accent));
    background: color-mix(in srgb, var(--logo-accent, var(--accent)) 10%, var(--surface));
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 700;
    overflow: hidden;
}

/* Fill the whole frame instead of floating a small square inside it: the
   favicon is cropped to the circle (or rounded square) rather than sitting
   in it with corners showing. The parent clips, so the image takes the
   frame's shape. */
.product-logo img,
.detail-icon img,
.mini-logo img,
.podium-logo img,
.rank-row-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.product-logo {
    width: 54px;
    height: 54px;
    font-size: 14px;
}

.details-link {
    position: relative;
    z-index: 2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Podium (top three) ---------- */

.podium {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 0 0 20px;
    padding: 48px 0 0;
    list-style: none;
}

.podium-slot {
    flex: 1 1 0;
    min-width: 0;
}

.podium-1 { --medal: #a8792c; --medal-soft: rgba(168, 121, 44, .16); }
.podium-2 { --medal: #7c8790; --medal-soft: rgba(124, 135, 144, .14); }
.podium-3 { --medal: #93613b; --medal-soft: rgba(147, 97, 59, .14); }

/* Centre the winner only when all three steps exist; with one or two the
   winner stays first so it does not read as trailing. */
.podium-full .podium-1 { order: 2; }
.podium-full .podium-2 { order: 1; }
.podium-full .podium-3 { order: 3; }

.podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 12px 15px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--medal);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--medal-soft), transparent 62%), var(--surface-raised);
    box-shadow: var(--shadow);
    text-align: center;
}

/* Taller, and lifted off the baseline, so first place reads as the top step. */
.podium-1 .podium-card {
    padding-top: 60px;
    padding-bottom: 30px;
    margin-bottom: 16px;
    border-color: color-mix(in srgb, var(--medal) 42%, var(--border));
    border-top-color: var(--medal);
}

.podium-link {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
}

.podium-logo {
    position: absolute;
    top: -32px;
    left: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--medal);
    box-shadow: 0 0 0 4px var(--surface-raised), 0 8px 20px rgba(0, 0, 0, .22);
    font-size: 17px;
    transform: translateX(-50%);
}

.podium-1 .podium-logo {
    top: -38px;
    width: 74px;
    height: 74px;
    font-size: 19px;
}

/* Sits on the lower edge of the avatar, like the crest in the reference. */
.podium-badge {
    position: absolute;
    top: 22px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid var(--surface-raised);
    background: var(--medal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transform: translateX(-50%);
}

.podium-1 .podium-badge {
    top: 27px;
    width: 27px;
    height: 27px;
    font-size: 13px;
}

/* Real site titles run far longer than a domain-derived one, so wrap to two
   lines rather than truncating most of the name away. */
.podium-name {
    display: -webkit-box;
    max-width: 100%;
    margin: 0 0 1px;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* The domain is the thing people scan for, so it gets a chip of its own. */
.podium-domain {
    max-width: 100%;
    margin: 5px 0 0;
    padding: 3px 9px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-desc {
    display: -webkit-box;
    margin: 9px 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.podium-amount {
    display: grid;
    gap: 1px;
    width: 100%;
    padding: 7px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.podium-amount small {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.podium-amount strong {
    color: var(--medal);
    font-size: 17px;
    font-weight: 700;
}

.podium-1 .podium-amount strong {
    font-size: 19px;
}

.podium-clicks {
    margin: 8px 0 0;
    color: var(--success);
    font-size: 13px;
    font-weight: 700;
}

.podium-category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-details {
    position: relative;
    z-index: 2;
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.podium-card:hover .podium-details,
.podium-card:focus-within .podium-details {
    color: var(--accent);
}

/* Stacked in the narrow podium column so the road keeps its full width. */

/* The track sizes itself along the main axis, so in this column layout it
   needs an explicit height instead of the row layout's flex: 1. */

/* ---------- Ranking table (4th place onward) ---------- */

.rank-table-wrap {
    overflow-x: auto;
}

.rank-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.rank-table th {
    padding: 0 12px 4px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.rank-table td {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-raised);
    vertical-align: middle;
}

.rank-table tbody tr:hover td {
    border-color: rgba(63, 127, 174, .4);
    background: var(--accent-softer);
}

.rank-table td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 12px 0 0 12px;
}

.rank-table td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 12px 12px 0;
}

.rank-table tbody tr:hover td:first-child { border-left-color: rgba(63, 127, 174, .4); }
.rank-table tbody tr:hover td:last-child { border-right-color: rgba(63, 127, 174, .4); }

.col-rank { width: 46px; }
.col-clicks,
.col-bid { text-align: right; white-space: nowrap; }
.col-cat { white-space: nowrap; }

.rank-pill {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.rank-site-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rank-row-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 11px;
}

.rank-site-copy {
    display: grid;
    min-width: 0;
}

/* Scoped to the direct child so the "more details" link inside <small>
   keeps its own smaller styling. */
.rank-site-copy > a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-site-copy > a:hover {
    color: var(--accent);
}

/* Matches the podium chip so a domain reads the same wherever it appears. */
.site-domain {
    justify-self: start;
    max-width: 100%;
    margin: 3px 0 0;
    padding: 2px 8px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row-desc {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-site-copy small {
    margin-top: 3px;
    color: var(--faint);
    font-size: 11px;
}

.rank-site-copy small .details-link {
    color: inherit;
    font-weight: 400;
}

.rank-table tbody tr:hover .details-link {
    color: var(--accent);
}

.rank-table td.col-cat {
    color: var(--muted);
    font-size: 12px;
}

.rank-table td.col-clicks {
    color: var(--text);
    font-size: 12.5px;
    font-weight: 500;
}

.rank-table td.col-bid {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.podium-category a {
    position: relative;
    z-index: 2;
    color: inherit;
}

.podium-category a:hover,
.rank-table td.col-cat a:hover {
    color: var(--accent);
}

.rank-table td.col-cat a {
    color: inherit;
}

.activity-strip {
    margin: 17px 0 17px;
    padding: 13px 17px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-raised);
}

.activity-strip h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 9px;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.activity-strip h2 span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.activity-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}

.mini-logo {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 8px;
}

.activity-copy {
    min-width: 0;
}

.activity-copy strong,
.activity-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-copy strong {
    font-size: 10px;
    font-weight: 500;
}

.activity-copy small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.3;
}

.rank-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 16px;
    color: var(--accent);
    font-size: 10px;
}

.rank-divider::before,
.rank-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(63, 127, 174, .3);
}

.rank-divider span {
    padding: 5px 12px;
    border: 1px solid rgba(63, 127, 174, .25);
    border-radius: 999px;
    background: var(--accent-softer);
}

.empty-state,
.not-found {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 70px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    color: var(--text);
    font-size: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px auto 0;
}

.page-link,
.page-step {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.page-link:hover,
.page-step:hover {
    background: var(--accent-softer);
}

.page-link.active {
    color: var(--bg);
    background: var(--text);
}

.page-step.is-disabled {
    color: var(--faint);
    pointer-events: none;
}

.pagination p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-basis: 100%;
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.refresh-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease;
}

.refresh-link:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: var(--accent-softer);
}

.revenue-block {
    margin: 94px auto 74px;
    text-align: center;
}

.revenue-block p {
    margin: 13px 0;
    color: var(--muted);
    font-size: 13px;
}

.revenue-block a {
    color: var(--accent);
}

.revenue-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 11px;
    padding: 12px 33px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-raised);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(36px, 6vw, 54px);
    font-weight: 600;
    letter-spacing: 7px;
}

.revenue-counter span {
    color: var(--accent);
}

.site-footer {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 0 auto;
    padding: 23px 0 38px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--accent);
}

.site-footer span {
    padding: 0 3px;
}

.page-intro {
    position: relative;
    z-index: 45;
    margin: 38px 0 32px;
}

.page-intro h1,
.prose-page > h1 {
    margin-bottom: 12px;
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -.6px;
}

.page-intro p {
    color: var(--muted);
    font-size: 17px;
}

.categories-page {
    padding-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-tile {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 118px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: transparent;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.category-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.category-meta {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

/* The current leader, so the grid reads as a board of standings rather
   than a menu of empty rooms. */
.category-leader {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-leader b {
    display: grid;
    place-items: center;
    flex: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9.5px;
    font-weight: 700;
}

.category-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(63, 127, 174, .4);
    background: var(--surface);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 18px;
}

.category-tile strong {
    font-size: 16px;
    line-height: 1.3;
}

.prose-page {
    position: relative;
    z-index: 45;
    max-width: 640px;
    padding-top: 41px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.62;
}

.prose-page > h1,
.prose-page h2,
.prose-page strong {
    color: var(--text);
}

.prose-page h2 {
    margin: 31px 0 11px;
    font-size: 19px;
    letter-spacing: -.2px;
}

.prose-page a {
    color: var(--accent);
}

.prose-page ul {
    padding-left: 21px;
}

.prose-page li {
    margin: 8px 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 10px;
    margin: 25px 0 27px;
}

.about-stats article,
.about-stats > a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-raised);
}

.about-stats strong {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 22px;
    white-space: nowrap;
}

.about-stats strong i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.about-stats span {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.maker-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 26px;
}

.maker-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    font-size: 23px;
    font-weight: 700;
}

.maker-card p {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.rules-page {
    font-size: 16px;
}

.narrow-page {
    max-width: 640px;
    padding-top: 40px;
}

.not-found h1 {
    margin: 6px 0 0;
    color: var(--text);
}

.not-found p {
    max-width: 430px;
}

/* ---------- Back to the board ---------- */

/* Sub-pages are a dead end without this: the only other way back is the
   small nav in the header. The arrow slides on hover so the direction
   reads before the label does. */
.back-link {
    position: relative;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 30px 0 20px;
    padding: 8px 15px 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.back-link:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: var(--accent-softer);
    color: var(--text);
}

.crumb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-arrow {
    display: inline-block;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}

.back-link:hover .back-arrow,
.crumb-back:hover .back-arrow {
    transform: translateX(-4px);
}

@media (prefers-reduced-transparency: reduce) {
    .back-link {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.breadcrumbs {
    position: relative;
    z-index: 45;
    display: flex;
    gap: 5px;
    margin: 36px 0 26px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-page {
    max-width: 680px;
}

.product-detail {
    padding-bottom: 46px;
}

.detail-heading {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.detail-icon {
    width: 82px;
    height: 82px;
    border-radius: 16px;
    font-size: 20px;
}

.detail-heading h1 {
    margin: 2px 0 12px;
    font-size: clamp(36px, 4.3vw, 42px);
    line-height: 1.4;
    letter-spacing: -.6px;
}

.detail-heading p {
    max-width: 590px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    color: var(--muted);
    font-size: 14px;
}

.detail-meta a:hover {
    color: var(--accent);
}

.detail-meta strong {
    color: var(--text);
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px 0 34px;
}

.detail-stats article {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-height: 180px;
    padding: 21px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 58%, transparent);
}

.detail-stats article > span {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.detail-stats article > strong {
    margin-bottom: 2px;
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-size: 31px;
    line-height: 1.2;
}

.detail-stats p {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.detail-stats a {
    margin-top: auto;
    color: var(--accent);
    font-size: 12px;
}

.detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(185px, 1fr) auto;
    gap: 12px;
}

.detail-actions .primary-button,
.detail-actions .secondary-button {
    min-height: 42px;
    padding-left: 17px;
    padding-right: 17px;
    font-size: 13.5px;
}

.detail-actions .primary-button {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locked-listing {
    cursor: default;
    color: var(--muted);
    white-space: nowrap;
}

.outrank-button {
    font-weight: 700;
    white-space: nowrap;
}

.copy-button {
    white-space: nowrap;
}

.admin-page {
    width: min(calc(100% - 40px), 1000px);
    padding-top: 10px;
}

.admin-intro,
.admin-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.admin-intro > div {
    max-width: 650px;
}

.eyebrow {
    margin-bottom: 5px !important;
    color: var(--accent) !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-list-heading input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--bg);
}

.admin-form input,
.admin-form select {
    height: 44px;
    padding: 0 12px;
}

.admin-form textarea {
    resize: vertical;
    padding: 11px 12px;
}

.admin-form input[type="color"] {
    padding: 4px;
}

.span-2 {
    grid-column: 1 / -1;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-list {
    margin-top: 48px;
}

.admin-list-heading {
    margin-bottom: 14px;
}

.admin-list-heading h2 {
    margin: 0;
    font-size: 25px;
}

.admin-list-heading input {
    max-width: 260px;
    height: 40px;
    padding: 0 13px;
}

.admin-table-wrap {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.admin-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table-wrap th,
.admin-table-wrap td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-table-wrap th {
    color: var(--muted);
    background: var(--surface);
    font-size: 11px;
    text-transform: uppercase;
}

.admin-table-wrap td {
    font-size: 13px;
}

.admin-table-wrap td strong,
.admin-table-wrap td small {
    display: block;
}

.admin-table-wrap td small {
    color: var(--muted);
}

.admin-table-wrap td a {
    color: var(--accent);
}

.admin-table-wrap tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 760px) {
    .podium {
        gap: 8px;
        padding-top: 42px;
    }

    .podium-card {
        padding: 46px 8px 13px;
    }

    .podium-1 .podium-card {
        padding-top: 53px;
        padding-bottom: 24px;
        margin-bottom: 12px;
    }

    .podium-logo {
        top: -27px;
        width: 54px;
        height: 54px;
        font-size: 15px;
    }

    .podium-1 .podium-logo {
        top: -31px;
        width: 62px;
        height: 62px;
        font-size: 16px;
    }

    .podium-badge { top: 19px; }
    .podium-1 .podium-badge { top: 24px; }

    .podium-name { font-size: 12.5px; }
    .podium-domain { font-size: 10px; }
    .podium-amount strong { font-size: 15px; }
    .podium-1 .podium-amount strong { font-size: 16px; }
    .podium-clicks { font-size: 12px; }
    .podium-category { font-size: 10px; }

    .site-header {
        padding: 17px 18px 9px;
    }

    .header-inner {
        align-items: flex-start;
    }

    .board-switch {
        display: none;
    }

    .main-nav {
        gap: 15px;
        font-size: 12px;
    }

    .mobile-tabs {
        display: flex;
        justify-content: center;
        gap: 3px;
        width: max-content;
        margin: 5px auto 2px;
        padding: 3px;
        border: 1px solid var(--border);
        border-radius: 999px;
    }

    .mobile-tabs a {
        padding: 5px 14px;
        border-radius: 999px;
        color: var(--muted);
        font-size: 12px;
    }

    .mobile-tabs a.active {
        color: var(--text);
        background: var(--accent-soft);
    }

    .status-wrap {
        padding-top: 10px;
    }

    .status-pill span:last-child {
        display: none;
    }

    .bid-form {
        grid-template-columns: 1fr 1fr;
    }

    .url-field {
        grid-column: 1 / -1;
    }

    .product-logo {
        width: 47px;
        height: 47px;
    }

    .rank-title-line h3 {
        font-size: 14px;
    }

    .rank-content > p {
        font-size: 12.5px;
        -webkit-line-clamp: 2;
    }

    .rank-category,
    .domain {
        display: none;
    }

    .activity-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .activity-item:nth-child(n+4) {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-tile {
        min-height: 100px;
        padding: 17px;
    }

    .detail-heading {
        grid-template-columns: 62px 1fr;
        gap: 15px;
    }

    .detail-icon {
        width: 62px;
        height: 62px;
        border-radius: 12px;
    }

    .detail-heading h1 {
        font-size: 30px;
    }

    .detail-stats {
        grid-template-columns: 1fr;
    }

    .detail-stats article {
        min-height: 135px;
    }

    .detail-actions {
        grid-template-columns: 1fr 1fr;
    }

    .copy-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .page-shell {
        width: min(calc(100% - 28px), var(--page-width));
    }

    /* One column: the three-across podium has no room to breathe here.
       Gap clears the avatar, which overhangs the card top. */
    .podium {
        align-items: stretch;
        flex-direction: column;
        gap: 44px;
        padding-top: 38px;
    }

    /* Must match the specificity of `.podium-full .podium-1` to win here,
       otherwise the stack reads 2, 1, 3. */
    .podium-full .podium-slot {
        order: 0;
    }

    .podium-1 .podium-card {
        margin-bottom: 0;
    }

    .rank-table th.col-cat,
    .rank-table td.col-cat {
        display: none;
    }

    .brand {
        font-size: 19px;
    }

    .main-nav a:nth-child(1) {
        display: none;
    }

    .main-nav {
        gap: 13px;
    }

    .status-pill {
        max-width: calc(100vw - 28px);
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11.5px;
    }

    .status-pill span:nth-last-child(2) {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bid-hero h1 {
        gap: 6px;
        font-size: 28px;
    }

    .bid-form {
        grid-template-columns: 1fr;
    }

    .url-field,
    .select-field {
        grid-column: 1;
    }

    .bid-form .primary-button {
        width: 100%;
    }

    .payment-dialog {
        width: calc(100% - 18px);
        max-height: calc(100vh - 18px);
        border-radius: 14px;
    }

    .payment-shell {
        padding: 25px 18px 19px;
    }

    .payment-shell h2 {
        font-size: 26px;
    }

    .payment-summary {
        grid-template-columns: 1fr;
    }

    .payment-placeholder {
        min-height: 158px;
        padding: 17px;
    }

    .demo-card-number {
        margin-top: 27px;
        font-size: 18px;
        letter-spacing: .06em;
    }

    .payment-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .payment-actions .secondary-button {
        width: 100%;
    }

    .rank-price {
        font-size: 14px;
    }

    .rank-meta {
        font-size: 10.5px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-tile {
        min-height: 85px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .detail-heading {
        grid-template-columns: 1fr;
    }

    .detail-heading h1 {
        font-size: 31px;
    }

    .detail-actions {
        grid-template-columns: 1fr;
    }

    .copy-button {
        grid-column: auto;
    }

    .admin-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .span-2 {
        grid-column: auto;
    }

    .admin-intro,
    .admin-list-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-list-heading input {
        max-width: none;
    }

    .admin-table-wrap {
        overflow-x: auto;
    }

    .admin-table-wrap table {
        min-width: 680px;
    }

    .revenue-counter {
        padding: 12px 20px;
        font-size: 34px;
        letter-spacing: 4px;
    }
}

/* ---------- Depth & motion layer ---------- */

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: block;
    pointer-events: none;
}

.podium {
    perspective: 1000px;
}

.category-grid {
    perspective: 1000px;
}

.podium-card,
.category-tile {
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .18s ease, background .18s ease;
    will-change: transform;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(22px) rotateX(-10deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.podium-slot {
    animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) both;
}

.podium-slot:nth-child(1) { animation-delay: .06s; }
.podium-slot:nth-child(2) { animation-delay: .16s; }
.podium-slot:nth-child(3) { animation-delay: .26s; }

.category-tile {
    animation: rise-in .55s cubic-bezier(.2, .8, .2, 1) both;
}

.category-tile:nth-child(1) { animation-delay: .02s; }
.category-tile:nth-child(2) { animation-delay: .06s; }
.category-tile:nth-child(3) { animation-delay: .10s; }
.category-tile:nth-child(4) { animation-delay: .14s; }
.category-tile:nth-child(5) { animation-delay: .18s; }
.category-tile:nth-child(6) { animation-delay: .22s; }

@keyframes float-avatar {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.podium-logo {
    animation: float-avatar 3.6s ease-in-out infinite;
}

.podium-1 .podium-logo {
    animation-duration: 3.1s;
}

@keyframes badge-pop-in {
    from {
        opacity: 0;
        transform: translateX(-50%) rotateY(180deg) scale(.6);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) rotateY(0) scale(1);
    }
}

.podium-badge {
    animation: badge-pop-in .6s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: .45s;
}

.primary-button,
.secondary-button {
    transform-style: preserve-3d;
}

.primary-button:active,
.secondary-button:active {
    transform: translateY(1px) scale(.97);
}


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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ---------- 2026 Frost refresh ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
}

.main-nav a {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
}

.main-nav a::before {
    content: "[";
    margin-right: 4px;
    color: var(--faint);
}

.main-nav a::after {
    content: "]";
    margin-left: 4px;
    color: var(--faint);
}

.main-nav a:hover::before,
.main-nav a:hover::after,
.main-nav a.active::before,
.main-nav a.active::after {
    color: var(--accent);
}

.board-switch a {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .07em;
    font-weight: 600;
}

.status-pill {
    background: color-mix(in srgb, var(--surface) 65%, transparent);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.bid-hero h1 {
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: -.01em;
}

.podium-card {
    background: linear-gradient(180deg, var(--medal-soft), transparent 62%), color-mix(in srgb, var(--surface-raised) 80%, transparent);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.rank-table td {
    background: color-mix(in srgb, var(--surface-raised) 86%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.category-tile {
    background: color-mix(in srgb, var(--surface) 55%, transparent);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
}

.category-tile:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

/* A fixed atmospheric hood behind the sticky header: content blurs
   progressively as it scrolls up underneath it, then reads sharp again a
   little further down, rather than sitting inside a bordered card. */
body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    height: 230px;
    pointer-events: none;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    mask-image: linear-gradient(to bottom, black 0%, black 32%, transparent 92%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 32%, transparent 92%);
}

@media (prefers-reduced-transparency: reduce) {
    .site-header,
    .status-pill,
    .category-tile,
    .podium-card,
    .rank-table td,
    body::before {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}


/* ---------- Payment status page ---------- */

.order-page {
    position: relative;
    z-index: 45;
}

.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 30px 30px;
}

.order-card.order-done { border-left-color: var(--success); }
.order-card.order-problem { border-left-color: #c8553d; }

.order-card h1 {
    margin: 6px 0 10px;
    font-size: 1.7rem;
    line-height: 1.15;
}

.order-explanation {
    margin: 0 0 22px;
    color: var(--muted);
    max-width: 52ch;
}

.order-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px 22px;
    margin: 0 0 24px;
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
}

.order-facts > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.order-facts dt {
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
}

.order-facts dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.order-facts code {
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
}

.order-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.order-note {
    margin: 0;
    color: var(--faint);
    font-size: .9rem;
    max-width: 52ch;
}

/* ---------- Setup screen ---------- */

.install-page {
    position: relative;
    z-index: 45;
    max-width: 760px;
}

.install-page h1 { margin-bottom: 8px; }

.install-page h2 {
    margin: 26px 0 2px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 1.05rem;
}

.install-note, .install-hint {
    margin: 0 0 18px;
    color: var(--muted);
    max-width: 62ch;
}

.install-hint { font-size: .9rem; margin-bottom: 4px; }

.install-form label small {
    display: block;
    margin-top: 4px;
    color: var(--faint);
    font-size: .8rem;
    font-weight: 400;
}

.install-errors {
    background: rgba(200, 85, 61, .1);
    border: 1px solid rgba(200, 85, 61, .45);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.install-errors p { margin: 0 0 6px; }
.install-errors p:last-child { margin-bottom: 0; }

.install-error, .install-manual {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    overflow: auto;
}

.install-list { margin: 0 0 22px; padding-left: 20px; color: var(--muted); }
.install-list li { margin-bottom: 6px; }
.install-list strong { color: var(--text); }
