/* Fun Found Games launcher page (index.php). */

:root {
    --bg-top: #04101c;
    --bg-bottom: #0a2640;
    --box: rgba(7, 24, 41, 0.82);
    --box-border: rgba(0, 168, 232, 0.22);
    --line: rgba(120, 180, 215, 0.14);
    --text: #e8f4fb;
    --muted: #8fb3c9;
    --cyan: #00a8e8;
    --cyan-bright: #6fd3ff;
    --red: #ff3b5c;
    --gold: #e9b949;
    --gold-soft: rgba(233, 185, 73, 0.18);
    --grey: #6b7884;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(0, 168, 232, 0.18), transparent 70%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    /* Header, page, footer in a column: the page grows to fill the screen, so the footer always sits at the
       bottom, even on short pages. */
    display: flex;
    flex-direction: column;
}

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

button {
    font: inherit;
}

/* One focus ring for every control, drawn outside so nothing crops it. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--cyan-bright);
    outline-offset: 3px;
}

/* Icons inside buttons sit on the text's centre line, not its baseline. */
button svg,
.button svg {
    flex: none;
    display: block;
}

.icon {
    width: 20px;
    height: 20px;
}

.credit-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

/* An amount in a line of text, led by the token: "◆ 100 credits". */
.credit-amount {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    white-space: nowrap;
    vertical-align: bottom;
}

.credit-amount .credit-icon {
    width: 1.15em;
    height: 1.15em;
}

.credit-icon-lg {
    width: 44px;
    height: 44px;
}

.muted {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan-bright);
}

/* ---------- Header bar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(4, 14, 26, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--text);
}

.brand span {
    color: var(--red);
}

.brand-small {
    font-size: 15px;
}

.mainnav {
    display: flex;
    gap: 4px;
}

.mainnav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.15s ease, background 0.15s ease;
}

.mainnav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.mainnav a.is-active {
    color: var(--text);
    background: rgba(0, 168, 232, 0.14);
    box-shadow: inset 0 -2px 0 var(--cyan);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    50% { opacity: 0.35; }
}

.account {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.credits-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 6px 0 12px;
    color: var(--text);
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.4);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.credits-pill:hover {
    background: rgba(0, 168, 232, 0.2);
    border-color: var(--cyan);
}

.credits-pill strong {
    font-size: 15px;
}

.credits-label {
    font-size: 13px;
    color: var(--muted);
}

.credits-pill .plus {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: 4px;
    color: #022033;
    background: var(--cyan);
    border-radius: 50%;
    transition: box-shadow 0.15s ease;
}

.credits-pill:hover .plus {
    box-shadow: 0 0 12px rgba(0, 168, 232, 0.8);
}

.plus-icon {
    width: 14px;
    height: 14px;
}

.icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.icon-button:hover {
    color: var(--text);
    border-color: rgba(0, 168, 232, 0.5);
    background: rgba(0, 168, 232, 0.08);
}

.profile {
    position: relative;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.profile-button:hover,
.profile.is-open .profile-button {
    border-color: rgba(0, 168, 232, 0.5);
}

.avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-weight: 800;
    color: #022033;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
    border-radius: 9px;
}

.profile-name {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
}

.profile-name small {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.profile-name small.is-host {
    color: var(--gold);
}

.chevron {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    padding: 6px;
    background: #0a1d31;
    border: 1px solid var(--box-border);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.profile.is-open .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.profile-menu a,
.profile-menu button {
    display: block;
    width: 100%;
    font: inherit;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--muted);
    border-radius: 8px;
}

.profile-menu a:hover,
.profile-menu button:hover {
    color: var(--text);
    background: rgba(0, 168, 232, 0.12);
}

.profile-menu hr {
    margin: 6px 4px;
    border: 0;
    border-top: 1px solid var(--line);
}

/* ---------- Page boxes ---------- */

.page {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.box {
    background: var(--box);
    border: 1px solid var(--box-border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.box-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.box-head h2 {
    margin-top: 4px;
    font-size: 30px;
    font-weight: 800;
}

.lede {
    margin-top: 4px;
    color: var(--muted);
    font-size: 15px;
}

.filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filters button {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.filters button:hover:not(.is-active) {
    color: var(--text);
    border-color: rgba(0, 168, 232, 0.5);
    background: rgba(0, 168, 232, 0.08);
}

.filters button.is-active {
    color: #022033;
    background: var(--cyan);
    border-color: var(--cyan);
}

.columns {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.3fr;
    gap: 24px;
}

.box-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* ---------- Carousel ---------- */

.carousel {
    position: relative;
    margin-top: 26px;
    /* Card positions scale with the carousel width (set by script). */
    --spread: 1;
}

.stage {
    position: relative;
    height: 450px;
    perspective: 1600px;
    transform-style: preserve-3d;
    touch-action: pan-y;
    /* The side games sit behind this layer in 3D, so it must let clicks through to them.
       Which games are clickable is set per card by site.js. */
    pointer-events: none;
}

.container {
    position: absolute;
    left: 50%;
    top: 0;
    width: 340px;
    text-align: center;
    background: rgba(0, 20, 40, 0.94);
    padding: 40px;
    border-radius: 14px;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 30px rgba(0, 168, 232, 0.3);
    transition: transform 650ms cubic-bezier(0.22, 0.8, 0.24, 1), opacity 650ms ease, filter 650ms ease, box-shadow 650ms ease;
    will-change: transform;
}

/* Clicked spins turn faster than the arrows and auto-scroll. */
.carousel.is-quick .container {
    transition-duration: 320ms;
}

.container.is-front {
    box-shadow: 0 0 40px rgba(0, 168, 232, 0.45);
}

/* Games not available yet: grey frame and glow instead of blue. */
.container.is-unavailable {
    border-color: var(--grey);
    box-shadow: 0 0 30px rgba(150, 165, 180, 0.22);
}

.container.is-unavailable.is-front {
    box-shadow: 0 0 40px rgba(150, 165, 180, 0.32);
}

/* Premium (paywalled) games: gold frame. */
.container.is-premium {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(233, 185, 73, 0.25);
}

.container.is-premium.is-front {
    box-shadow: 0 0 44px rgba(233, 185, 73, 0.4);
}

/* Side games can be clicked to bring them forward; only the front game's button works. */
.container:not(.is-front) {
    cursor: pointer;
}

.container:not(.is-front) .button {
    pointer-events: none;
}

.container h1 {
    color: var(--cyan);
    margin-bottom: 20px;
    font-size: 34px;
    white-space: nowrap;
}

.container p {
    color: #ccc;
    margin-bottom: 30px;
}

/* Same height in every card so the titles and buttons line up. */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
    margin-bottom: 30px;
}

/* Glow matches the card frame's cyan glow, but follows the artwork's shape. */
.logo img,
.logo svg {
    height: 128px;
    width: auto;
    filter: drop-shadow(0 0 14px rgba(0, 168, 232, 0.6)) drop-shadow(0 0 34px rgba(0, 168, 232, 0.35));
}

.logo img.logo-pearl {
    height: 112px;
}

/* Placeholder games: a grey controller silhouette at the same scale as the pearl and gem. */
.logo-controller {
    width: 128px;
    height: 80px;
    color: #5d6b78;
}

.logo svg.logo-controller {
    height: 80px;
}

/* The paywall covers the artwork of a premium game. */
.paywall {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 176px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(180deg, rgba(10, 18, 28, 0.78), rgba(28, 22, 8, 0.86));
    border: 1px solid rgba(233, 185, 73, 0.45);
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

.paywall-lock {
    width: 30px;
    height: 30px;
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(233, 185, 73, 0.6));
}

.paywall-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.14em;
    /* Letter spacing trails the last letter; indenting by the same amount keeps the word centred. */
    text-indent: 0.14em;
    text-transform: uppercase;
    color: #2a1d02;
    background: var(--gold);
    border-radius: 999px;
}

.paywall strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 30px;
    line-height: 1.1;
    color: #fff;
}

.paywall-credits .credit-icon {
    width: 26px;
    height: 26px;
}

.paywall-or {
    font-size: 13px;
    color: #f3d892;
}

.paywall-proof {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.paywall-proof .icon {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #00a8e8, #0080cc);
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover:not(:disabled) {
    transform: scale(1.04);
    box-shadow: 0 0 26px rgba(0, 168, 232, 0.7);
}

.button:active:not(:disabled) {
    transform: scale(0.98);
}

.button:disabled {
    background: #4a525a;
    color: #9aa3ab;
    cursor: not-allowed;
}

.button .icon {
    width: 18px;
    height: 18px;
}

.button-unlock {
    color: #2a1d02;
    background: linear-gradient(135deg, #f6d27a, #d9a531);
}

.button-unlock:hover:not(:disabled) {
    box-shadow: 0 0 26px rgba(233, 185, 73, 0.7);
}

.box .button,
.modal .button {
    padding: 11px 22px;
    font-size: 15px;
}

.button-ghost {
    color: var(--text);
    background: transparent;
    border-color: rgba(0, 168, 232, 0.45);
}

.button-ghost:hover:not(:disabled) {
    background: rgba(0, 168, 232, 0.12);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 168, 232, 0.35);
}

.nav {
    position: absolute;
    top: 50%;
    z-index: 50;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #e6f7ff;
    background: rgba(0, 20, 40, 0.85);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.35);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 0 30px rgba(0, 168, 232, 0.7);
}

.nav-arrow {
    display: block;
    width: 26px;
    height: 26px;
}

.nav.prev { left: 0; }
.nav.next { right: 0; }

/* ---------- Wallet ---------- */

.wallet-balance {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 12px;
}

.wallet-balance strong {
    display: block;
    font-size: 38px;
    line-height: 1;
}

.wallet-balance span {
    color: var(--muted);
    font-size: 14px;
}

.wallet-uses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    list-style: none;
}

.wallet-uses li {
    padding: 5px 10px;
    font-size: 12px;
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.1);
    border-radius: 999px;
}

/* ---------- Bundles ---------- */

.bundle-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.bundle {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 14px;
    text-align: left;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.bundle:hover {
    border-color: var(--cyan);
    background: rgba(0, 168, 232, 0.07);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.18);
    transform: translateY(-2px);
}

.bundle .credit-icon {
    grid-row: span 2;
    width: 30px;
    height: 30px;
}

.bundle-amount {
    font-size: 18px;
    font-weight: 800;
}

.bundle-amount em {
    margin-left: 6px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    color: var(--gold);
}

.bundle-price {
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Merch ---------- */

.merch-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.merch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.merch-item:hover {
    border-color: var(--cyan);
    background: rgba(0, 168, 232, 0.07);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.18);
    transform: translateY(-2px);
}

.merch-art {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1.3;
    /* Fades out fully inside the box, so the glow never stops at an edge. */
    background: radial-gradient(circle closest-side, rgba(0, 168, 232, 0.24), rgba(0, 168, 232, 0) 100%);
    border-radius: 10px;
}

.merch-icon {
    width: 54px;
    height: 54px;
    /* The artwork reaches the edge of its drawing area; let the glow spill past it instead of being cut off. */
    overflow: visible;
    color: var(--cyan-bright);
    filter: drop-shadow(0 0 10px rgba(0, 168, 232, 0.5));
}

.merch-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.merch-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan-bright);
}

/* ---------- Live now ---------- */

.nav-count {
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--red);
    border-radius: 999px;
}

.nav-count[hidden] {
    display: none;
}

.live-now {
    border-color: rgba(255, 59, 92, 0.35);
    background:
        radial-gradient(600px 160px at 0% 0%, rgba(255, 59, 92, 0.12), transparent 70%),
        var(--box);
}

.live-now.is-empty {
    border-color: var(--box-border);
    background: var(--box);
}

.live-now-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.live-now-head h2 {
    font-size: 22px;
    font-weight: 800;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--red);
    border-radius: 6px;
    box-shadow: 0 0 16px rgba(255, 59, 92, 0.45);
}

.live-badge .live-dot {
    background: #fff;
    box-shadow: 0 0 6px #fff;
}

.live-now.is-empty .live-badge {
    background: #3a4650;
    box-shadow: none;
}

.live-count {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
}

.live-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.live-empty {
    grid-column: 1 / -1;
    font-size: 14px;
    color: var(--muted);
}

.live-card {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 59, 92, 0.3);
    border-radius: 12px;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.live-card:hover {
    background: rgba(255, 59, 92, 0.07);
    border-color: var(--red);
    box-shadow: 0 6px 20px rgba(255, 59, 92, 0.18);
}

.live-avatar {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-weight: 800;
    color: #022033;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
    border-radius: 50%;
    box-shadow: 0 0 0 2px #04101c, 0 0 0 4px var(--red);
}

.live-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.live-text strong {
    font-size: 15px;
}

.live-text small,
.live-stats {
    font-size: 12px;
    color: var(--muted);
}

.live-stats {
    grid-column: 2;
}

.live-watch {
    grid-row: span 2;
    grid-column: 3;
    grid-row-start: 1;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    border-radius: 8px;
}

/* ---------- Creators who unlocked premium games ---------- */

.creator-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.creator-stat {
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(233, 185, 73, 0.09), rgba(233, 185, 73, 0.02));
    border: 1px solid rgba(233, 185, 73, 0.25);
    border-radius: 12px;
}

.creator-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    color: #fff;
}

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

.creator-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}

.creator-row {
    display: grid;
    grid-template-columns: 28px 40px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.creator-rank {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.creator-rank.is-top {
    color: #2a1d02;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(233, 185, 73, 0.45);
}

.creator-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--hue) 80% 62%), hsl(calc(var(--hue) + 40) 75% 42%));
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(4, 16, 28, 0.9);
}

.creator-avatar.is-small {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.creator-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

.creator-name small {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.creator-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--text);
}

.creator-views small {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.creator-views .icon {
    width: 16px;
    height: 16px;
    color: var(--cyan-bright);
}

.creator-owned {
    display: inline-flex;
    gap: 4px;
}

.owned-lock {
    width: 16px;
    height: 16px;
    color: #3a4650;
}

.owned-lock.is-owned {
    color: var(--gold);
    filter: drop-shadow(0 0 4px rgba(233, 185, 73, 0.6));
}

.unlock-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 12px;
    font-size: 13px;
    color: var(--muted);
    text-align: left;
}

.unlock-proof strong {
    color: var(--gold);
}

.avatar-stack {
    display: inline-flex;
    flex: none;
}

.avatar-stack .creator-avatar + .creator-avatar {
    margin-left: -8px;
}

/* ---------- Game page ---------- */

.backlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 12px 6px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.backlink:hover {
    color: var(--text);
    border-color: rgba(0, 168, 232, 0.5);
    background: rgba(0, 168, 232, 0.08);
}

.backlink .icon {
    width: 16px;
    height: 16px;
}

.game-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

/* Top-right corner of the game info box: Buy Now, or Purchased with the pass countdown under it. */
.pass-status {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.box .pass-button {
    min-width: 150px;
}

.pass-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.pass-name strong {
    color: var(--text);
}

.pass-name .credit-icon {
    width: 16px;
    height: 16px;
}

.pass-name.is-small {
    font-size: 12px;
}

.pass-countdown {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #7ee2a8;
    background: rgba(126, 226, 168, 0.08);
    border: 1px solid rgba(126, 226, 168, 0.3);
    border-radius: 999px;
}

.pass-countdown.is-ended {
    color: #ff8fa3;
    background: rgba(255, 59, 92, 0.08);
    border-color: rgba(255, 59, 92, 0.35);
}

.game-preview {
    padding: 10px;
}

/* 9:16 phone frame around the game artwork. */
.phone {
    position: relative;
    width: 270px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #061522;
    border: 6px solid #0d2236;
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(0, 168, 232, 0.45), 0 0 40px rgba(0, 168, 232, 0.3), 0 30px 60px rgba(0, 0, 0, 0.5);
}

.phone img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone img.phone-header {
    inset: 2% 4% auto;
    width: 92%;
    height: auto;
}

.game-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.game-title-icon img {
    display: block;
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 0 10px rgba(0, 168, 232, 0.6));
}

.game-title h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
}

.game-tagline {
    margin-top: 10px;
    font-size: 18px;
    color: var(--cyan-bright);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    list-style: none;
}

.chips li {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 999px;
}

.game-about {
    max-width: 640px;
    margin-top: 16px;
    font-size: 15px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 640px;
    margin-top: 20px;
}

.facts div {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.facts dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.facts dd {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 700;
}

.play-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.box .button-lg {
    padding: 14px 30px;
    font-size: 17px;
}

.button .icon {
    width: 18px;
    height: 18px;
}

.button-host {
    background: linear-gradient(135deg, #ff5a76, #e0254a);
}

.button-host:hover:not(:disabled) {
    box-shadow: 0 0 26px rgba(255, 59, 92, 0.65);
}

.play-note {
    max-width: 640px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.play-note strong {
    color: var(--text);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px;
    list-style: none;
}

.steps li {
    padding: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.step-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    font-weight: 800;
    color: #022033;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(0, 168, 232, 0.5);
}

.steps strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

/* ---------- Plans (the game / Host upgrade / both) ---------- */

.eyebrow-gold {
    color: var(--gold);
}

/* Pass length picker (game page Plans, Unlock pop-up). */
.pass-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pass-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 108px;
    padding: 9px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pass-option small {
    font-size: 11px;
    font-weight: 800;
    color: #7ee2a8;
}

.pass-option small:empty {
    display: none;
}

.pass-option:hover:not(.is-selected) {
    color: var(--text);
    border-color: rgba(0, 168, 232, 0.5);
}

.pass-option.is-selected {
    color: #022033;
    background: var(--cyan);
    border-color: var(--cyan);
}

.pass-option.is-selected small {
    color: #04324f;
}

.pass-picker-compact {
    justify-content: center;
    margin: 16px 0 0;
}

.pass-picker-compact .pass-option {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    font-size: 13px;
}

.plan-length {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.plans-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

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

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 18px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.plan-card.is-featured {
    border-color: rgba(233, 185, 73, 0.55);
    background: linear-gradient(180deg, rgba(233, 185, 73, 0.1), rgba(233, 185, 73, 0.02));
    box-shadow: 0 0 26px rgba(233, 185, 73, 0.14);
}

.plan-card .muted {
    flex: 1;
    font-size: 13px;
}

.plan-card .button {
    width: 100%;
    margin-top: 8px;
}

.plan-tag {
    position: absolute;
    top: -10px;
    left: 16px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2a1d02;
    background: var(--gold);
    border-radius: 999px;
}

.plan-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan-bright);
}

.plan-card.is-featured .plan-name {
    color: var(--gold);
}

/* Prices lead with credits; the money price sits underneath, smaller. */
.price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-credits {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 30px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.price-credits .credit-icon {
    width: 24px;
    height: 24px;
}

.price-credits small {
    align-self: flex-end;
    padding-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.price-money {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}


.box .button-owned {
    color: #7ee2a8;
    background: rgba(126, 226, 168, 0.08);
    border-color: rgba(126, 226, 168, 0.35);
    cursor: default;
}

.box .button-owned.is-locked {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line);
}

.button-owned:hover {
    transform: none;
    box-shadow: none;
}

.perks {
    padding: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(233, 185, 73, 0.25);
    border-radius: 14px;
}

.perk-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    list-style: none;
}

.perk-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.perk-list strong {
    color: var(--text);
}

.perk-list .icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.perk-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Unlock pop-up: pick a plan */

.modal-plans {
    width: min(560px, 100%);
}

.plan-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 12px;
}

.plan-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 18px 12px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.plan-option:hover {
    border-color: rgba(0, 168, 232, 0.5);
}

.plan-option.is-selected {
    background: rgba(0, 168, 232, 0.1);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.25);
}

.plan-option-host.is-selected {
    background: rgba(233, 185, 73, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(233, 185, 73, 0.25);
}

.plan-option .plan-tag {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.plan-desc {
    font-size: 12px;
    color: var(--muted);
}

.plan-option .price-credits {
    margin-top: 6px;
    font-size: 26px;
}

.perk-list-compact {
    gap: 8px;
    margin: 0 0 14px;
    padding: 14px;
    text-align: left;
    background: rgba(233, 185, 73, 0.05);
    border: 1px solid rgba(233, 185, 73, 0.2);
    border-radius: 12px;
}

.perk-list-compact[hidden] {
    display: none;
}

/* ---------- Footer ---------- */

.sitefooter {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    background: rgba(4, 14, 26, 0.6);
}

.sitefooter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 20px;
}

.sitefooter nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
    color: var(--muted);
}

.sitefooter nav a:hover {
    color: var(--text);
}

.credit {
    font-size: 14px;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.credit strong {
    color: var(--cyan-bright);
}

/* ---------- Pop-ups ---------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(1, 8, 16, 0.72);
    backdrop-filter: blur(4px);
    animation: fade-in 0.18s ease;
}

.modal[hidden] {
    display: none;
}

@keyframes fade-in {
    from { opacity: 0; }
}

.modal-card {
    position: relative;
    width: min(440px, 100%);
    padding: 30px;
    text-align: center;
    background: linear-gradient(180deg, #0c223a, #081829);
    border: 1px solid var(--box-border);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: pop-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

#unlock-modal .modal-card {
    border-color: rgba(233, 185, 73, 0.55);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(233, 185, 73, 0.18);
}

@keyframes pop-in {
    from { transform: scale(0.94); opacity: 0; }
}

.modal-wide {
    width: min(760px, 100%);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.modal h3 {
    margin: 10px 0 6px;
    font-size: 26px;
}

.modal-art {
    margin-top: 14px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 10px;
}

.price-option {
    flex: 1;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.price-option span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.price-option strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 28px;
}

.price-option strong span {
    font-size: inherit;
    letter-spacing: 0;
    text-indent: 0;
    text-transform: none;
    color: inherit;
}

.price-divider {
    font-size: 13px;
    color: var(--muted);
}

.balance-note {
    font-size: 13px;
    color: var(--muted);
}

.balance-note strong {
    color: var(--cyan-bright);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.modal-actions .button {
    width: 100%;
}

.demo-note {
    margin-top: 14px;
    font-size: 12px;
    color: #6f8ea2;
}

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.bundle-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.bundle-card.is-featured {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(233, 185, 73, 0.18);
}

.bundle-tag {
    position: absolute;
    top: -10px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    text-transform: uppercase;
    color: #2a1d02;
    background: var(--gold);
    border-radius: 999px;
}

.bundle-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.bundle-card strong {
    font-size: 24px;
}

.bundle-bonus {
    min-height: 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
}

.bundle-card .button {
    width: 100%;
    margin-top: 6px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 300;
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text);
    background: #0d2a44;
    border: 1px solid var(--box-border);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1080px) {
    .columns {
        grid-template-columns: 1fr 1fr;
    }

    .merch {
        grid-column: span 2;
    }

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

@media (max-width: 860px) {
    .mainnav,
    .profile-name,
    .credits-label {
        display: none;
    }

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

    .merch {
        grid-column: auto;
    }

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

    .game-hero {
        grid-template-columns: 1fr;
        justify-items: center;
    }

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

    .creator-row {
        grid-template-columns: 28px 40px 1fr auto;
    }

    .plans-grid,
    .plan-cards {
        grid-template-columns: 1fr;
    }

    .pass-status {
        position: static;
        grid-column: 1 / -1;
        align-items: flex-start;
        text-align: left;
    }

    .creator-owned {
        display: none;
    }
}

@media (max-width: 560px) {
    .topbar-inner {
        gap: 12px;
        padding: 0 14px;
    }

    .brand {
        font-size: 14px;
        letter-spacing: 0.02em;
    }

    .account {
        gap: 8px;
    }

    .icon-button,
    .profile-button > svg {
        display: none;
    }

    /* Keep the side games from pushing the page sideways (top and bottom glows stay whole). */
    .library {
        overflow-x: clip;
    }

    .page {
        padding: 18px 12px 32px;
    }

    .box {
        padding: 18px;
    }

    .container {
        width: 236px;
        padding: 28px 18px;
    }

    .stage {
        height: 430px;
    }

    .nav {
        top: auto;
        bottom: -8px;
        width: 44px;
        height: 44px;
    }

    .nav-arrow {
        width: 22px;
        height: 22px;
    }

    .creator-stats,
    .steps {
        grid-template-columns: 1fr;
    }

    .creator-row {
        grid-template-columns: 28px 40px 1fr;
    }

    .creator-views {
        grid-column: 3;
        font-size: 13px;
    }

    .game-title h2 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .container { transition-duration: 1ms; }
    .live-dot { animation: none; }
}

/* ---------- Profile photos ---------- */

/* A photo fills whatever avatar shape it sits in. The thin inner shade sits over the photo's clipped edge
   so it stays smooth against the dark gap and coloured ring around it. */
[data-account-avatar] {
    position: relative;
}

/* No overflow clipping here: the photo rounds itself, so the live ring can sit outside the avatar. */
[data-account-avatar].has-photo {
    isolation: isolate;
    padding: 0;
    background: #0a1d31;
}

[data-account-avatar].has-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

[data-account-avatar].has-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1.5px rgba(4, 16, 28, 0.85);
    pointer-events: none;
}

/* A leaderboard's photo that isn't there (leaderAvatar / placeholderAvatar): a person on a solid navy disc,
   whatever size its list makes it. (Doubled class to outrank each list's coloured-initial background.) */
.avatar-placeholder.avatar-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #7d95ab;
    background: #1c3044;
    border: 1px solid #34506a;
    border-radius: 50%;
    box-sizing: border-box;
}

/* The head a little above the middle (its centre ~42% down), the shoulders running off the bottom where the circle
   trims them, like a profile photo's. */
.avatar-placeholder svg {
    position: absolute;
    top: 12%;
    left: 11%;
    width: 78%;
    height: 78%;
    overflow: visible;
}

/* ---------- Countdowns to scheduled streams ---------- */

.countdown {
    flex: none;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
    white-space: nowrap;
    background: var(--gold-soft);
    border: 1px solid rgba(233, 185, 73, 0.35);
    border-radius: 999px;
}

/* Its time has come ("LIVE Starting Soon"): the same soft style, in red. */
.countdown.is-now {
    color: #ff6b85;
    background: rgba(255, 59, 92, 0.12);
    border-color: rgba(255, 59, 92, 0.4);
}

.countdown-lg {
    padding: 7px 16px;
    font-size: 16px;
}

.next-stream {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 14px;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color 0.15s ease;
}

.next-stream:hover {
    border-color: rgba(0, 168, 232, 0.5);
}

.next-stream .live-text {
    flex: 1;
}

.live-avatar.is-upcoming {
    grid-row: auto;
    box-shadow: 0 0 0 2px #04101c, 0 0 0 4px var(--cyan);
}

/* ---------- Edit Profile pop-up ---------- */

.modal-profile {
    width: min(480px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    text-align: left;
}

.modal-profile h3 {
    text-align: left;
}

.pe-photo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 20px 0;
}

.pe-preview {
    display: grid;
    flex: none;
    place-items: center;
    width: 96px;
    height: 96px;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--hue, 195) 80% 62%), hsl(calc(var(--hue, 195) + 40) 75% 42%));
    border-radius: 50%;
    box-shadow: 0 0 0 4px #0a1d31, 0 0 0 6px var(--cyan);
}

.pe-photo-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.pe-photo-actions .button {
    cursor: pointer;
}

.pe-text-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
}

.pe-text-button:hover {
    color: var(--cyan-bright);
}

.pe-text-button.is-danger:hover {
    color: #ff8fa3;
}

.pe-text-button .icon {
    width: 14px;
    height: 14px;
}

/* Edit photo · Remove photo, side by side under Upload photo. */
.pe-photo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pe-photo-links:not(:has(:not([hidden]))) {
    display: none;
}

.pe-text-button[hidden] {
    display: none;
}

.pe-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

/* Field labels: one style in every pop-up - the name on the left, a note ("Optional") on the right. */
.pe-field > span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.pe-field small {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.pe-field textarea,
.pe-field input,
.pe-field select {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    /* The same fill as the site's dropdowns (.dd-button), so a form reads as one. */
    background: linear-gradient(180deg, rgba(14, 38, 62, 0.75), rgba(4, 16, 28, 0.75));
    border: 1px solid var(--line);
    border-radius: 10px;
    resize: vertical;
}

.pe-field textarea:focus,
.pe-field input:focus,
.pe-field select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.22);
}

.pe-actions {
    flex-direction: row;
}

.pe-step[hidden] {
    display: none;
}

/* Crop: the photo under a round window; everything outside the circle is dimmed. */
.crop-stage {
    position: relative;
    width: min(320px, 100%);
    aspect-ratio: 1;
    margin: 18px auto 0;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    background: #061522;
    border-radius: 16px;
}

.crop-stage:active {
    cursor: grabbing;
}

.crop-stage:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.crop-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.crop-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle closest-side, transparent calc(100% - 1px), rgba(1, 8, 16, 0.62) 100%);
    pointer-events: none;
}

.crop-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 2px solid rgba(0, 168, 232, 0.85);
    border-radius: 50%;
    pointer-events: none;
}

.crop-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(320px, 100%);
    margin: 14px auto 0;
}

.crop-zoom input {
    flex: 1;
    accent-color: var(--cyan);
}

.crop-zoom-step {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.crop-zoom-step:hover {
    border-color: var(--cyan);
}

/* ---------- Region switch (header, left of credits) ---------- */

.region {
    position: relative;
}

.region-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 10px 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.region-button:hover,
.region.is-open .region-button {
    border-color: var(--cyan);
    background: rgba(0, 168, 232, 0.1);
}

.region-button .chevron {
    width: 14px;
    height: 14px;
    color: var(--muted);
}

.flag {
    display: block;
    flex: none;
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.flag-lg {
    width: 28px;
    height: 21px;
}

.region-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: 230px;
    padding: 6px;
    background: #0b1f35;
    border: 1px solid var(--box-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.region.is-open .region-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.region-menu-title {
    display: block;
    padding: 6px 10px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan-bright);
}

.region-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    color: var(--muted);
    text-align: left;
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.region-menu button span {
    flex: 1;
}

.region-menu button small {
    font-size: 12px;
    font-weight: 700;
}

.region-menu button:hover {
    color: var(--text);
    background: rgba(0, 168, 232, 0.12);
}

.region-menu button[aria-checked="true"] {
    color: var(--text);
    background: rgba(0, 168, 232, 0.16);
}

@media (max-width: 720px) {
    .region-button span {
        display: none;
    }
}

/* Country picker: themed like the other fields, with the chosen country's flag. */
.pe-select {
    position: relative;
    display: block;
}

.pe-field .pe-select select {
    padding-right: 38px;
    color-scheme: dark;
    cursor: pointer;
    appearance: none;
}

.pe-select + input {
    margin-top: 8px;
}

.pe-field input[hidden] {
    display: none;
}

.pe-select select option {
    color: var(--text);
    background: #0b1f35;
}

/* Only shown if select.js hasn't run; the site's own dropdown brings its chevron. */
.dd-button ~ .pe-select-chevron {
    display: none;
}

.pe-select-chevron {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    color: var(--cyan-bright);
    transform: translateY(-50%);
    pointer-events: none;
}

/* Cropper: Centre and Reset. */
.crop-tools {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.crop-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.crop-tool:hover {
    border-color: var(--cyan);
    background: rgba(0, 168, 232, 0.1);
}

.crop-tool .icon {
    width: 16px;
    height: 16px;
    color: var(--cyan-bright);
}

/* Two fields side by side in a pop-up (e.g. Day and Time). */
.pe-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Profile photos open the creator page, or the LIVE when they're live (site.js). */
[data-account-avatar] {
    cursor: pointer;
}

a [data-account-avatar],
button [data-account-avatar],
.modal [data-account-avatar],
.profile-avatar:not(.is-live) {
    cursor: inherit;
}

/* ---------- Live ring: any avatar whose account is hosting right now (layout.php avatar(), site.js) ---------- */

/* A spinning red-to-pink ring just outside the avatar, a soft pulse, and a LIVE tag on larger avatars.
   --ring is the ring's thickness and --ring-gap the dark gap between it and the photo. */
[data-account-avatar].is-live {
    --ring: 2px;
    --ring-gap: 2px;
    /* Keeps the ring (drawn behind the avatar) from slipping behind the box it sits in. */
    isolation: isolate;
    box-shadow: none;
    animation: live-pulse 1.8s ease-out infinite;
}

[data-account-avatar].is-live::before {
    content: "";
    position: absolute;
    inset: calc(-1 * (var(--ring) + var(--ring-gap)));
    z-index: -1;
    padding: var(--ring);
    /* Two bright highlights on a red ring, so the spin is easy to see at any size. */
    background: conic-gradient(
        #e0254a 0deg, #ff7a59 55deg, #fff1f4 90deg, #ff7a59 125deg, #e0254a 180deg,
        #ff2d87 235deg, #ffd3de 270deg, #ff2d87 305deg, #e0254a 360deg
    );
    border-radius: 50%;
    filter: drop-shadow(0 0 3px rgba(255, 59, 92, 0.85));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: live-spin 2.4s linear infinite;
}

/* The header's rounded-square avatar keeps its shape. */
.avatar.is-live::before {
    border-radius: 12px;
}

/* LIVE tag on avatars big enough to carry it (replaces the photo edge shade while live). */
.profile-avatar.is-live::after,
.following-avatar.is-live::after,
.feed-avatar.is-live::after,
.live-avatar.is-live::after,
.home-avatar.is-live::after,
.upcoming-avatar.is-live::after,
.creator-avatar.is-live:not(.is-small)::after,
.reel-next-avatar.is-live::after {
    content: "LIVE";
    position: absolute;
    inset: auto auto calc(-1 * (var(--ring) + var(--ring-gap)) - 6px) 50%;
    z-index: 2;
    padding: 1px 5px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--red);
    border: 1.5px solid #0a1d31;
    border-radius: 4px;
    box-shadow: none;
    transform: translateX(-50%);
}

.profile-avatar.is-live {
    --ring: 4px;
    --ring-gap: 4px;
}

.profile-avatar.is-live::after {
    padding: 2px 9px;
    font-size: 12px;
    border-width: 2px;
}

.following-avatar.is-live {
    --ring: 3px;
    --ring-gap: 2px;
}

@keyframes live-spin {
    to { transform: rotate(1turn); }
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.45); }
    100% { box-shadow: 0 0 0 12px rgba(255, 59, 92, 0); }
}

@media (prefers-reduced-motion: reduce) {
    [data-account-avatar].is-live,
    [data-account-avatar].is-live::before {
        animation: none;
    }
}

/* ---------- Someone's followers pop-up ---------- */

.modal-followers {
    width: min(520px, 100%);
}

.followers-list ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

/* Section labels with a fading line, like the Bio box. */
.followers-list .info-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan-bright);
}

.followers-list .info-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 168, 232, 0.4), transparent);
}

.follower-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.follower-row .following-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--hue, 195) 80% 62%), hsl(calc(var(--hue, 195) + 40) 75% 42%));
    border-radius: 50%;
}

.follower-row .following-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.follower-name {
    font-size: 15px;
    font-weight: 700;
}

.follower-name:hover {
    color: var(--cyan-bright);
}

.follower-row small {
    font-size: 13px;
    color: var(--muted);
}

.follower-row .follow-button {
    padding: 8px 16px;
    font-size: 14px;
}

/* ---------- Confirmation pop-up (FFG.confirm) ---------- */

/* Sits above any other open pop-up. */
.confirm-modal {
    z-index: 300;
}

.confirm-card {
    width: min(380px, 100%);
    padding: 26px;
}

.confirm-card p {
    font-size: 16px;
    font-weight: 600;
    /* A message can choose its own line breaks ("\n"), to keep two short sentences on a line each. */
    white-space: pre-line;
}

.confirm-actions {
    flex-direction: row;
}

/* ---------- Streaming platforms (logos, Edit Profile "Socials & links") ---------- */

/* Official brand colours. TikTok's cyan / red edges, YouTube's play button, Facebook's f and Instagram's
   gradient are drawn into the logos themselves (layout.php). */
.platform-icon.is-tiktok { color: #fff; }
.platform-icon.is-twitch { color: #9146ff; }
.platform-icon.is-kick { color: #53fc18; }
.platform-icon.is-youtube { color: #ff0000; }
.platform-icon.is-discord { color: #5865f2; }
.platform-icon.is-instagram { color: #f0468a; }
.platform-icon.is-facebook { color: #0866ff; }
.platform-icon.is-x { color: #e8f4fb; }

/* One row per platform: logo, the site's address, then the handle typed straight after it. */
.pe-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(14, 38, 62, 0.75), rgba(4, 16, 28, 0.75));
    border: 1px solid var(--line);
    border-radius: 10px;
}

.pe-platform:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.22);
}

/* The same size as the logos in the About box's Socials & links (22px). */
.pe-platform .platform-icon {
    flex: none;
    width: 22px;
    height: 22px;
}

.pe-platform-prefix {
    flex: none;
    font-size: 13px;
    color: var(--muted);
}

.pe-platform input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: none;
    border: 0;
    outline: none;
}

.pe-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

/* Header menu: Players see Become a Host instead of My Creator Page. */
.profile-menu .menu-upsell {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
}

.profile-menu .menu-upsell .icon {
    width: 16px;
    height: 16px;
}

/* ---------- Dropdowns (select.js): every <select> on the site, in the site's menu style ---------- */

/* The real select stays in the page for forms and scripts, out of sight. */
select.dd-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.dd-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 9px 40px 9px 13px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    background: linear-gradient(180deg, rgba(14, 38, 62, 0.75), rgba(4, 16, 28, 0.75));
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dd-button:hover:not(:disabled) {
    border-color: rgba(0, 168, 232, 0.45);
}

.dd-button:focus-visible,
.dd-button[aria-expanded="true"] {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.22);
}

.dd-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dd-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dd-chevron {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 16px;
    height: 16px;
    color: var(--cyan-bright);
    transform: translateY(-50%);
    transition: transform 0.15s ease;
}

.dd-button[aria-expanded="true"] .dd-chevron {
    transform: translateY(-50%) rotate(180deg);
}

/* The open list: like the region and profile menus. Fixed to the page, so pop-ups can't clip it. */
.dd-menu {
    position: fixed;
    z-index: 500;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: #0b1f35;
    border: 1px solid var(--box-border);
    border-radius: 12px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 168, 232, 0.08);
    animation: dd-in 0.12s ease;
}

.dd-menu.is-up {
    animation-name: dd-in-up;
}

@keyframes dd-in {
    from { opacity: 0; transform: translateY(-4px); }
}

@keyframes dd-in-up {
    from { opacity: 0; transform: translateY(4px); }
}

.dd-search {
    flex: none;
    width: 100%;
    margin-bottom: 6px;
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: rgba(2, 12, 22, 0.7);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

.dd-search:focus {
    border-color: var(--cyan);
}

.dd-list {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    outline: none;
}

.dd-group {
    padding: 10px 10px 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan-bright);
}

.dd-group[hidden],
.dd-option[hidden] {
    display: none;
}

.dd-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 14px;
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
}

.dd-option-text {
    flex: 1;
    min-width: 0;
}

.dd-option.is-active {
    color: var(--text);
    background: rgba(0, 168, 232, 0.12);
}

.dd-option.is-selected {
    font-weight: 700;
    color: var(--text);
}

.dd-option.is-disabled {
    opacity: 0.4;
    cursor: default;
}

.dd-check {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--cyan-bright);
}

.dd-empty {
    padding: 14px 10px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* The admin tool's smaller fields. */
.admin .dd-button {
    width: auto;
    min-width: 200px;
    min-height: 36px;
    padding: 0 36px 0 12px;
    border-radius: 8px;
}

/* ---------- Scrollbars: thin, cyan-tinted thumbs on a clear track, everywhere on the site ---------- */

/* Chrome, Edge and Safari. Pop-ups keep the bar clear of their rounded corners. */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(111, 211, 255, 0.28);
    background-clip: padding-box;
    border: 3px solid transparent;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(111, 211, 255, 0.5);
}

.modal-card::-webkit-scrollbar-track,
.dd-list::-webkit-scrollbar-track {
    margin: 14px 0;
}

/* The page's own scrollbar: a solid track in the site header's dark navy (.topbar), edged with its line, and a
   brighter thumb, so it stands out against the page's background. (body too: its overflow passes to the page,
   and Chrome then takes the page's scrollbar from it.) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #040e1a;
    border-left: 1px solid var(--line);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: rgba(111, 211, 255, 0.45);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(111, 211, 255, 0.7);
}

/* Its arrows: a small triangle at each end, as wide as the thumb and in line with it (the thumb is the bar's 12px
   less its 3px clear border each side: 6px, from 3px in), in the thumb's colour - both brighten on hover. The up
   arrow's block reaches up beside the site header, and the down arrow's down beside however much of the footer is
   showing (site.js sets both heights), both in the header's navy, so the track itself always runs from the
   header's bottom edge to the footer's top. */
html::-webkit-scrollbar-button:single-button:vertical,
body::-webkit-scrollbar-button:single-button:vertical {
    display: block;
    background-color: #040e1a;
    background-repeat: no-repeat;
    background-size: 6px 4px;
    border-left: 1px solid var(--line);
}

/* Background positions start inside the 1px left border, so 2px puts the arrow 3px in, under the thumb. Each arrow
   sits 2px from the track, so with the thumb's own 3px clear border it can come within 5px of the arrow. */
html::-webkit-scrollbar-button:single-button:vertical:decrement,
body::-webkit-scrollbar-button:single-button:vertical:decrement {
    height: calc(var(--scrollbar-head, 69px) + 10px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M3 0 6 4H0z' fill='%236fd3ff' fill-opacity='.45'/%3E%3C/svg%3E");
    background-position: left 2px bottom 2px;
}

html::-webkit-scrollbar-button:single-button:vertical:increment,
body::-webkit-scrollbar-button:single-button:vertical:increment {
    height: calc(var(--scrollbar-foot, 0px) + 10px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M0 0h6L3 4z' fill='%236fd3ff' fill-opacity='.45'/%3E%3C/svg%3E");
    background-position: left 2px top 2px;
}

html::-webkit-scrollbar-button:single-button:vertical:decrement:hover,
body::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M3 0 6 4H0z' fill='%236fd3ff' fill-opacity='.7'/%3E%3C/svg%3E");
}

html::-webkit-scrollbar-button:single-button:vertical:increment:hover,
body::-webkit-scrollbar-button:single-button:vertical:increment:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M0 0h6L3 4z' fill='%236fd3ff' fill-opacity='.7'/%3E%3C/svg%3E");
}

/* Firefox, which has no ::-webkit-scrollbar. */
@supports not selector(::-webkit-scrollbar) {
    * {
        scrollbar-width: thin;
        scrollbar-color: rgba(111, 211, 255, 0.35) transparent;
    }

    html {
        scrollbar-color: rgba(111, 211, 255, 0.45) #040e1a;
    }
}

/* A second, quieter line under a dropdown option (data-hint). */
.dd-option-hint {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(143, 179, 201, 0.75);
}

/* ---------- Pop-up windows: one frame for every form and list pop-up ---------- */

/* A header bar (title, a line of intro, a divider), a body that scrolls, and a footer bar with the actions on
   the right. Used by Edit Profile, Schedule a stream, Share, Time converter, Followers, Reactions and My
   Achievements, so they all read as the same kind of window. */
.modal-card.modal-window {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.window-head {
    flex: none;
    /* Room on the right for the close button. */
    padding: 22px 64px 16px 28px;
    border-bottom: 1px solid var(--line);
}

.modal .window-head h3 {
    margin: 0;
    font-size: 24px;
    text-align: left;
}

.window-head p {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.window-body {
    flex: 1;
    min-height: 0;
    padding: 20px 28px 24px;
    overflow-y: auto;
}

.window-foot {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(2, 12, 22, 0.35);
    border-top: 1px solid var(--line);
}

.window-foot .button {
    justify-content: center;
    min-width: 130px;
}

/* A quiet extra action (Reset profile) sits on the left, away from the main ones. */
.window-foot .window-foot-start {
    margin-right: auto;
}

@media (max-width: 700px) {
    .window-head {
        padding: 18px 56px 12px 18px;
    }

    .modal .window-head h3 {
        font-size: 21px;
    }

    .window-body {
        padding: 16px 18px 20px;
    }

    .window-foot {
        padding: 12px 18px;
    }

    .window-foot .button {
        flex: 1;
        min-width: 0;
    }

    .window-foot .window-foot-start {
        flex-basis: 100%;
        justify-content: center;
        margin-right: 0;
    }
}

/* ---------- Edit Profile: a settings window (layout.php, profile-editor.js) ---------- */

/* A fixed-size window: a preview card and menu on the left, the chosen page's fields on the right (the only
   part that scrolls), Cancel / Save along the bottom. */
.modal-edit-profile {
    width: min(860px, 100%);
    height: min(720px, calc(100vh - 40px));
}

.modal-edit-profile .pe-step:not([hidden]) {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.pe-body {
    display: grid;
    flex: 1;
    grid-template-columns: 270px 1fr;
    min-height: 0;
}

.pe-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 18px;
    overflow-y: auto;
    background: rgba(2, 12, 22, 0.35);
    border-right: 1px solid var(--line);
}

/* The preview card: how you'll look, with the photo controls under it. */
.pe-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 14px 16px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 168, 232, 0.12), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: 16px;
}

.pe-card .pe-preview {
    margin-bottom: 4px;
}

/* Long handles wrap rather than being cut off. */
/* Add to a list: pick from the dropdown, then the round + (Languages, the time converter). */
.pe-add-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pe-add-row .pe-select {
    flex: 1;
    min-width: 0;
}

.plus-button {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
    border: 0;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 168, 232, 0.35);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.plus-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 168, 232, 0.55);
}

.plus-button:disabled {
    opacity: 0.35;
    box-shadow: none;
    cursor: not-allowed;
}

.plus-button .icon {
    width: 20px;
    height: 20px;
}

/* What's been added: a chip each, with × to take it off. */
.pe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    list-style: none;
}

.pe-tags[hidden] {
    display: none;
}

.pe-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 6px 5px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 168, 232, 0.16);
    border: 1px solid rgba(0, 168, 232, 0.45);
    border-radius: 999px;
}

.pe-tag button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    font: inherit;
    font-size: 15px;
    line-height: 1;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.pe-tag button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.pe-card .pe-photo-actions {
    align-items: stretch;
    width: 100%;
    margin-top: 12px;
}

.pe-card .pe-photo-actions .button {
    justify-content: center;
}

.pe-card .pe-photo-links {
    justify-content: center;
}

/* The menu (hosts). */
.pe-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pe-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    text-align: left;
    background: none;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.12s ease, background 0.12s ease;
}

.pe-nav button .icon {
    flex: none;
    width: 17px;
    height: 17px;
}

.pe-nav button:hover {
    color: var(--text);
    background: rgba(0, 168, 232, 0.08);
}

.pe-nav button[aria-selected="true"] {
    color: var(--text);
    background: rgba(0, 168, 232, 0.14);
    border-color: rgba(0, 168, 232, 0.35);
}

.pe-nav button[aria-selected="true"] .icon {
    color: var(--cyan-bright);
}

/* The chosen page. */
.pe-main {
    min-height: 0;
    padding: 22px 28px 26px;
    overflow-y: auto;
}

.pe-panel[hidden] {
    display: none;
}

.pe-panel-title {
    font-size: 18px;
    font-weight: 800;
}

.pe-panel-title small {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.pe-panel-intro {
    margin: 4px 0 4px;
    font-size: 13px;
    color: var(--muted);
}

.pe-panel .pe-field {
    margin-top: 16px;
}

.pe-panel .pe-platform:first-of-type {
    margin-top: 14px;
}

/* Stream vibe / Open to: a label, then the chips. */
.pe-group-label {
    display: flex;
    justify-content: space-between;
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.pe-group-label small {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.pe-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pe-chip {
    padding: 7px 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.pe-chip:hover {
    color: var(--text);
    border-color: rgba(0, 168, 232, 0.45);
}

.pe-chip[aria-pressed="true"] {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
    border-color: transparent;
}

.pe-platform .platform-icon.is-link {
    color: var(--cyan-bright);
}

/* A button that reads as an inline link. */
.text-link {
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--cyan-bright);
    background: none;
    border: 0;
    cursor: pointer;
}

.text-link:hover {
    text-decoration: underline;
}

/* About you fills the window's height, so the bio takes whatever room is left below the other fields;
   text longer than that scrolls inside it. No drag handle. */
.pe-panel-about:not([hidden]) {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pe-bio {
    flex: 1;
}

.pe-bio textarea {
    flex: 1;
    min-height: 96px;
    overflow-y: auto;
    resize: none;
}

/* An on / off switch (Host badge). */
.pe-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.pe-switch-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.pe-switch-text strong {
    font-size: 13px;
}

.pe-switch-text small {
    font-size: 12px;
    color: var(--muted);
}

.pe-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pe-switch-track {
    position: relative;
    flex: none;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transition: background 0.15s ease;
}

.pe-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
}

.pe-switch input:checked + .pe-switch-track {
    background: linear-gradient(135deg, #f6d27a, #d9a531);
}

.pe-switch input:checked + .pe-switch-track::after {
    transform: translateX(20px);
}

.pe-switch input:focus-visible + .pe-switch-track {
    outline: 2px solid var(--cyan-bright);
    outline-offset: 2px;
}

/* Phones: everything stacks. The card goes compact (photo beside the name) and the menu becomes tabs. */
@media (max-width: 700px) {
    .modal-edit-profile {
        height: calc(100vh - 24px);
    }

    .pe-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .pe-side {
        gap: 12px;
        padding: 12px 14px;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .pe-card {
        flex-direction: row;
        gap: 14px;
        padding: 12px;
        text-align: left;
    }

    .pe-card .pe-preview {
        width: 64px;
        height: 64px;
        margin: 0;
        font-size: 26px;
    }

    .pe-card .pe-photo-actions {
        flex: 1;
        align-items: flex-start;
        margin-top: 0;
    }

    .pe-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .pe-nav button {
        flex: none;
        padding: 8px 12px;
        font-size: 13px;
    }

    .pe-main {
        padding: 16px 18px 20px;
    }
}

/* ---------- Achievements (achievements.js): creator page tab and My Achievements ---------- */

.modal-achievements {
    width: min(760px, 100%);
}

/* Summary: a ring filled to the share earned, and the count. */
.ach-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 14px 0 6px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.ach-ring {
    --share: 0;
    display: grid;
    flex: none;
    place-items: center;
    width: 58px;
    height: 58px;
    background:
        radial-gradient(closest-side, #0b1f35 76%, transparent 78%),
        conic-gradient(var(--gold) calc(var(--share) * 1%), rgba(255, 255, 255, 0.08) 0);
    border-radius: 50%;
}

.ach-ring strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--gold);
}

.ach-summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ach-summary-text strong {
    font-size: 16px;
}

.ach-summary-text small {
    font-size: 13px;
    color: var(--muted);
}

.ach-group {
    margin-top: 6px;
}

.ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}

.ach-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.ach-card.is-earned {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

/* The badge itself: a hexagon gem in its tier's colours, with a soft glow once earned. */
.ach-gem {
    --gem: linear-gradient(145deg, #f0b27a, #8a4f22);
    --gem-ink: #fff;
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 54px;
    height: 60px;
    color: var(--gem-ink);
    background: var(--gem);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.tier-silver .ach-gem {
    --gem: linear-gradient(145deg, #f2f7fb, #8a9bb0);
    --gem-ink: #22313f;
}

.tier-gold .ach-gem {
    --gem: linear-gradient(145deg, #fbe39a, #c48a17);
    --gem-ink: #2a1d02;
}

.tier-legend .ach-gem {
    --gem: linear-gradient(145deg, #6fd3ff, #a970ff 55%, #ff3b5c);
}

.ach-card.is-earned .ach-gem {
    filter: drop-shadow(0 0 10px rgba(233, 185, 73, 0.35));
}

.ach-gem .icon {
    width: 24px;
    height: 24px;
}

/* Still to earn: faded and grey, with a small lock. */
.ach-card.is-locked .ach-gem {
    filter: grayscale(1);
    opacity: 0.35;
}

.ach-card.is-locked .ach-text strong,
.ach-card.is-locked .ach-what {
    opacity: 0.6;
}

.ach-lock {
    position: absolute;
    right: 9px;
    bottom: 11px;
    width: 13px !important;
    height: 13px !important;
}

.ach-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ach-text strong {
    font-size: 14px;
}

.ach-what {
    font-size: 12px;
    color: var(--muted);
}

.ach-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 5px;
}

.ach-tier {
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
}

.ach-tier.tier-bronze { color: #f0b27a; background: rgba(240, 178, 122, 0.12); }
.ach-tier.tier-silver { color: #d6e0ea; background: rgba(214, 224, 234, 0.1); }
.ach-tier.tier-gold { color: var(--gold); background: var(--gold-soft); }
.ach-tier.tier-legend { color: #c9a8ff; background: rgba(169, 112, 255, 0.15); }

.ach-when,
.ach-count {
    font-size: 11px;
    color: var(--muted);
}

.ach-bar {
    flex: 1;
    min-width: 60px;
    height: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.ach-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
    border-radius: 999px;
}

/* ---------- Notifications: the header bell and its dropdown (notifications.js) ---------- */

.notify {
    position: relative;
}

/* Kept on small screens too (other header icons hide there). */
.topbar .notify .icon-button {
    display: grid;
}

.notify-button[aria-expanded="true"] {
    color: var(--text);
    border-color: rgba(0, 168, 232, 0.5);
    background: rgba(0, 168, 232, 0.08);
}

/* The unseen count: a red pill on the bell's corner. */
.notify-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 800;
    line-height: 19px;
    color: #fff;
    text-align: center;
    background: var(--red);
    border: 2px solid #04101c;
    border-radius: 999px;
    box-sizing: content-box;
}

.notify-count[hidden] {
    display: none;
}

.notify-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    width: 390px;
    max-height: min(560px, calc(100vh - 90px));
    background: #0b1f35;
    border: 1px solid var(--box-border);
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
    animation: dd-in 0.12s ease;
}

.notify-panel[hidden] {
    display: none;
}

.notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px;
}

.notify-head strong {
    flex: 1;
    font-size: 17px;
}

/* The alert sound switch: a speaker, muted grey with a cross while off. */
.notify-sound {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    padding: 0;
    color: var(--cyan-bright);
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.notify-sound:hover {
    background: rgba(0, 168, 232, 0.12);
}

.notify-sound[aria-pressed="false"] {
    color: var(--muted);
}

.notify-sound .icon {
    width: 18px;
    height: 18px;
}

.notify-head .text-link {
    font-size: 13px;
}

.notify-tabs {
    display: flex;
    gap: 6px;
    padding: 0 16px 10px;
    border-bottom: 1px solid var(--line);
}

.notify-tabs button {
    padding: 5px 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.notify-tabs button[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
    border-color: transparent;
}

.notify-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 6px 8px;
}

.notify-section {
    padding: 10px 10px 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan-bright);
}

.notify-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 10px;
    color: var(--muted);
    border-radius: 10px;
    transition: background 0.12s ease;
}

.notify-row:hover {
    background: rgba(0, 168, 232, 0.1);
}

.notify-row.is-unread {
    color: var(--text);
    background: rgba(0, 168, 232, 0.06);
}

.notify-row.is-unread:hover {
    background: rgba(0, 168, 232, 0.14);
}

/* A person's photo with a small badge for what happened, or an icon on its own. */
.notify-pic {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
}

.notify-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--hue, 195) 80% 62%), hsl(calc(var(--hue, 195) + 40) 75% 42%));
    border-radius: 50%;
}

.notify-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notify-kind,
.notify-icon {
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
}

.notify-kind {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 20px;
    height: 20px;
    box-shadow: 0 0 0 2px #0b1f35;
}

.notify-kind .icon {
    width: 11px;
    height: 11px;
}

.notify-icon {
    width: 44px;
    height: 44px;
}

.notify-icon .icon {
    width: 21px;
    height: 21px;
}

.tone-cyan { background: linear-gradient(135deg, var(--cyan-bright), var(--cyan)); }
.tone-gold { color: #2a1d02 !important; background: linear-gradient(135deg, #f8dc8c, #d9a531); }
.tone-red { background: linear-gradient(135deg, #ff6b85, #e0254a); }
.tone-green { background: linear-gradient(135deg, #5be39a, #1f9d5c); }

.notify-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
}

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

.notify-snippet {
    overflow: hidden;
    font-size: 13px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notify-time {
    font-size: 12px;
    color: var(--muted);
}

.notify-row.is-unread .notify-time {
    font-weight: 700;
    color: var(--cyan-bright);
}

.notify-dot {
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 17px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 168, 232, 0.8);
}

.notify-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 34px 24px;
    text-align: center;
}

.notify-empty .icon {
    width: 34px;
    height: 34px;
    margin-bottom: 4px;
    color: var(--cyan-bright);
    opacity: 0.6;
}

.notify-empty small,
.notify-loading {
    font-size: 13px;
    color: var(--muted);
}

.notify-loading {
    padding: 24px;
    text-align: center;
}

/* Phones: the dropdown spans the screen under the header. */
@media (max-width: 600px) {
    .notify-panel {
        position: fixed;
        top: 64px;
        right: 8px;
        left: 8px;
        width: auto;
    }
}

/* Phones: a header that fits. The region switch is just its flag and the credits pill drops its "+" (the whole
   pill still opens Get Credits), so the bell and profile stay on screen. */
@media (max-width: 560px) {
    .topbar-inner {
        gap: 8px;
        padding: 0 10px;
    }

    .brand {
        font-size: 13px;
        letter-spacing: 0;
    }

    .account {
        gap: 6px;
    }

    .region-button {
        gap: 0;
        height: 36px;
        padding: 0 8px;
    }

    .region-button .chevron,
    .credits-pill .plus,
    .credits-label {
        display: none;
    }

    .credits-pill {
        height: 36px;
        padding: 0 10px;
    }

    .topbar .notify .icon-button {
        width: 36px;
        height: 36px;
    }
}

/* Confetti burst (site.js confetti()): above everything, and clicks pass straight through. */
.confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
