/* Live page (live.php) and creator pages (creator.php). Uses the tokens and components from site.css. */

.side-title {
    margin: 4px 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.small {
    font-size: 12px;
}

/* ---------- Live page: reels ---------- */

.live-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.reels-wrap {
    position: sticky;
    top: 92px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* One 9:16 slide per screen; scrolls (and swipes) vertically, snapping to each LIVE. */
.reels {
    --reel-h: min(calc(100vh - 130px), 860px);
    width: calc(var(--reel-h) * 9 / 16);
    height: var(--reel-h);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    scrollbar-width: none;
    border-radius: 24px;
    background: #061522;
    box-shadow: 0 0 0 1px rgba(0, 168, 232, 0.35), 0 0 50px rgba(0, 168, 232, 0.2), 0 30px 60px rgba(0, 0, 0, 0.5);
}

.reels::-webkit-scrollbar {
    display: none;
}

.reel {
    position: relative;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.reel[hidden] {
    display: none;
}

.reel-screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.reel-screen iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.reel-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: -1;
    font-size: 14px;
    color: var(--muted);
}

.reel-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reel-time {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
}

.reel-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 70px 16px 18px;
    background: linear-gradient(180deg, transparent, rgba(2, 10, 18, 0.88) 45%);
}

.reel-who {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reel-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reel-name strong {
    font-size: 16px;
}

.reel-name small,
.reel-stats {
    font-size: 13px;
    color: #c8dbe7;
}

.reel-join {
    width: 100%;
}

.reel-empty {
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    background:
        radial-gradient(400px 300px at 50% 30%, rgba(255, 59, 92, 0.12), transparent 70%),
        #061522;
}

.reel-empty-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.reel-empty h2 {
    font-size: 24px;
}

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

.reel-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reel-step {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #e6f7ff;
    background: rgba(0, 20, 40, 0.85);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reel-step .nav-arrow {
    width: 22px;
    height: 22px;
    transform: rotate(90deg);
}

.reel-step:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(0, 168, 232, 0.6);
}

.reel-step:disabled {
    opacity: 0.35;
    cursor: default;
}

.live-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upcoming-list,
.schedule {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    list-style: none;
}

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

.upcoming-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    color: var(--muted);
}

.upcoming-text strong {
    /* The same room under the game's name as under a comment's @handle (.comment-line). */
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--text);
}

/* ---------- Host rewards ---------- */

.rewards-box {
    position: relative;
    border-color: rgba(233, 185, 73, 0.35);
    background:
        radial-gradient(500px 160px at 100% 0%, rgba(233, 185, 73, 0.12), transparent 70%),
        var(--box);
}

/* Soft trophy outline in the top-right corner of the host rewards box. */
.rewards-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 72px;
    height: 72px;
    color: var(--gold);
    opacity: 0.4;
    pointer-events: none;
}

.rewards-emblem {
    width: 100%;
    height: 100%;
}

.rewards-box > .eyebrow,
.rewards-box > .side-title,
.rewards-box > p:first-of-type {
    padding-right: 80px;
}

.prize-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 4px;
    list-style: none;
}

.prize {
    --medal: var(--gold);
    --medal-soft: rgba(233, 185, 73, 0.08);
    --medal-line: rgba(233, 185, 73, 0.5);
    --medal-ink: #2a1d02;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
    background: var(--medal-soft);
    border: 1px solid var(--medal-line);
    border-radius: 10px;
}

/* 1st gold, 2nd silver, 3rd bronze. */
.prize.place-2 {
    --medal: #d5dde6;
    --medal-soft: rgba(213, 221, 230, 0.07);
    --medal-line: rgba(213, 221, 230, 0.4);
    --medal-ink: #1d2833;
}

.prize.place-3 {
    --medal: #d8925a;
    --medal-soft: rgba(216, 146, 90, 0.08);
    --medal-line: rgba(216, 146, 90, 0.45);
    --medal-ink: #2b1606;
}

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

.prize-place {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 800;
    color: var(--medal-ink);
    background: var(--medal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--medal-line);
}

.prize > span:last-child {
    color: var(--medal);
}

.host-board {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

.host-row {
    display: grid;
    grid-template-columns: 28px 28px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 10px;
}

.host-row .creator-rank,
.host-row .host-avatar {
    grid-row: span 2;
}

.host-row a {
    font-weight: 700;
}

.host-row small {
    grid-column: 3;
    font-size: 12px;
    color: var(--muted);
}

.host-row strong {
    grid-column: 4;
    grid-row: 1 / span 2;
    color: var(--gold);
}

.rank-line {
    font-size: 15px;
    color: var(--muted);
}

.rank-line strong {
    font-size: 28px;
    color: var(--gold);
}

.rewards-box .button {
    width: 100%;
    margin-top: 12px;
}

/* ---------- Creator page ---------- */

.profile-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* The creator page: the gap from the feed down to the footer matches the gap from the header down to the profile
   (the page's top padding - see .page in site.css). */
.page:has(> .profile-hero) {
    padding-bottom: 28px;
}

@media (max-width: 560px) {
    .page:has(> .profile-hero) {
        padding-bottom: 18px;
    }
}
.profile-banner {
    height: 120px;
    background:
        radial-gradient(500px 200px at 20% 0%, rgba(0, 168, 232, 0.45), transparent 70%),
        radial-gradient(500px 200px at 90% 100%, rgba(255, 59, 92, 0.3), transparent 70%),
        linear-gradient(135deg, #0b2a47, #061522);
}

.profile-main {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: -48px;
    padding: 0 26px;
}

.profile-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 112px;
    height: 112px;
    font-size: 44px;
    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 5px #0a1d31, 0 0 0 7px var(--cyan);
}

.profile-id {
    flex: 1;
    min-width: 220px;
    padding-bottom: 6px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-name-row h1 {
    font-size: 30px;
    font-weight: 800;
}


/* Host badge beside the name: the gold pill of the Pinned bubble and countdowns (.countdown), sized up to
   suit the 30px handle, icon to the left of the word. The name row centres it vertically. */
.host-pill {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 6px 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gold);
    white-space: nowrap;
    background: var(--gold-soft);
    border: 1px solid rgba(233, 185, 73, 0.35);
    border-radius: 999px;
}

.host-pill .icon {
    width: 17px;
    height: 17px;
}

/* Follow is the page's main button. */
.profile-actions .follow-button:not(.is-following):not(:disabled) {
    box-shadow: 0 6px 22px rgba(233, 185, 73, 0.3);
}

.profile-actions .follow-button:not(.is-following):hover:not(:disabled) {
    box-shadow: 0 6px 28px rgba(233, 185, 73, 0.55);
}

.profile-actions .button-host .live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 22px 26px 26px;
}

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

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

.profile-stats dd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 6px;
    margin-top: 2px;
    font-size: 22px;
    font-weight: 800;
}

.profile-stats dd small {
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.icon.star {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.profile-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.profile-body { grid-column: 2; }
.profile-side { grid-column: 1; grid-row: 1; }

/* Two columns: the whole page scrolls, wherever you scroll. Both columns are sticky, and creator.js
   (stickyColumns) moves each one's `top` as you scroll, Facebook-style: going down, a column shorter than the
   other scrolls until its bottom is on screen, then stays while the longer one carries on (and loads more); going
   back up, it scrolls up until its top is just under the site header, then stays while the longer one carries on,
   until the page's top - with the profile header - comes back. (The taller column always just scrolls.) */
@media (min-width: 1081px) {
    .profile-body,
    .profile-side {
        position: sticky;
        /* Under the site header (68px + its 1px border) with the page's 24px gap, until creator.js takes over. */
        top: 93px;
    }
}

.profile-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.profile-tab {
    padding: 8px 16px;
    font-size: 14px;
    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;
}

.profile-tab:hover:not(.is-active) {
    color: var(--text);
    border-color: rgba(0, 168, 232, 0.5);
}

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

.empty-note {
    padding: 24px 0;
    text-align: center;
}

/* Feed */

.composer,
.review-form {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
}

/* New post: your photo, then the growing text box - lined up with the comment boxes on posts, 61px in from
   each wall (the photo sits 19px in like a post's, then an 8px gap) - with the tools and Post under it. */
.composer {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
    /* 61px and 19px from the walls, less the 1px border. */
    padding: 18px 60px 18px 18px;
}

.composer > .feed-avatar {
    width: 34px;
    height: 34px;
    margin-top: 3px;
    font-size: 14px;
}

/* The text box, then Post on its right - the same outlined Post, size and gap as "Write a comment…". */
.composer-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.composer-row textarea {
    flex: 1;
    min-width: 0;
}

/* The tools under the text box, from the left. */
.composer-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* The text box, the tools under it, then whatever's being added. */
.composer-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* Photo, GIF, Poll, Stream: small coloured squares in a row from the left, under the text box. */
.composer-tools {
    display: flex;
    gap: 8px;
}

.composer-tool-icon {
    display: grid;
    flex: none;
    place-items: center;
    /* As tall as Post beside them. */
    width: 39px;
    height: 39px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.composer-tool-icon svg {
    width: 20px;
    height: 20px;
}

.composer-tool-icon:hover,
.composer-tool-icon:focus-visible {
    transform: translateY(-1px);
    border-color: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.composer-tool-icon.is-photo { color: #4fe0a0; background: rgba(46, 204, 138, 0.14); }
.composer-tool-icon.is-gif { color: #c99bff; background: rgba(160, 100, 255, 0.16); }
.composer-tool-icon.is-poll { color: var(--gold); background: var(--gold-soft); }
.composer-tool-icon.is-stream { color: var(--cyan-bright); background: rgba(0, 168, 232, 0.14); }
.composer-tool-icon.is-feeling { color: #ff8fc7; background: rgba(255, 110, 180, 0.15); }
.composer-tool-icon.is-secret { color: #a9b8ff; background: rgba(120, 140, 255, 0.16); }
.composer-tool-icon.is-code { color: #ffb072; background: rgba(255, 150, 70, 0.15); }
.composer-tool-icon.is-word { color: #6fe6c6; background: rgba(60, 210, 170, 0.15); }
.composer-tool-icon.is-giveaway { color: #ff8fa3; background: rgba(255, 110, 140, 0.15); }
.composer-tool-icon.is-wheel { color: #c6e86a; background: rgba(170, 220, 90, 0.15); }

/* ---------- Crack the Code (a game on a post) ---------- */

.code-editor-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffc79a;
}

.code-editor-title svg {
    width: 15px;
    height: 15px;
}

.prize-input {
    width: 90px;
}

.poll-length-pick:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.code-editor-note {
    font-size: 12px;
}

/* On the post. */
.post-code {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Keep the visible gaps consistent despite the different line heights and control heights. */
    gap: 14px;
    /* 25px from the frame to the title's icon (its 28px line puts the icon 3px down, less the title's 1px lift) and
       25px under the button (lifted 3px: .post-code .code-try). */
    padding: 23px 16px 22px;
    background: linear-gradient(135deg, rgba(255, 150, 70, 0.12), rgba(120, 140, 255, 0.08));
    border: 1px solid rgba(255, 150, 70, 0.35);
    border-radius: 12px;
}

.post-code-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
    text-align: center;
}

/* The game's name: 20px on a fixed 28px line (a prize's corner ribbon hangs beside it - .prize-ribbon). */
.post-code-title {
    position: relative;
    top: -1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    line-height: 28px;
    color: #ffc79a;
}

.post-code-title svg {
    width: 22px;
    height: 22px;
}

.post-code-description {
    position: relative;
    /* Cumulative: header/content starts 1px up, then description and later content another 2px up. */
    top: -3px;
    width: min(100%, 44ch);
    /* 20px from the title's letters to the description's. */
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.post-code-description-line {
    display: block;
}

/*
 * A game's prize: a gold bookmark ribbon with a gift, hanging from the card's top edge in its top-right corner (inside
 * the card, so it sits as close under the post's text as any other). It glows on hover like the site's buttons;
 * pressing it turns the card gold and swaps the game for its prize panel, closed by the panel's own button.
 */
.prize-ribbon {
    position: absolute;
    /* Over the card's 1px top border, so the ribbon hangs from the edge itself. */
    top: -1px;
    right: 20px;
    z-index: 2;
    display: block;
    width: 36px;
    height: 50px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
    transition: filter 0.2s ease, transform 0.2s ease;
}

/* The ribbon itself: gold, its tail notched; the shadow and glow above sit on the button, outside the notch's clip. */
.prize-ribbon-tab {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding-top: 9px;
    box-sizing: border-box;
    color: #2a1d02;
    background: linear-gradient(180deg, #f8dc8c, #d9a531);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.prize-ribbon svg {
    width: 20px;
    height: 20px;
}

.prize-ribbon:hover,
.prize-ribbon:focus-visible {
    outline: none;
    filter: drop-shadow(0 0 10px rgba(233, 185, 73, 0.75)) brightness(1.08);
}

/* Every prize won: the ribbon goes grey (it still opens the panel, to see who won). */
.post-code.is-prize-won .prize-ribbon-tab {
    color: #1b2230;
    background: linear-gradient(180deg, #9aa7b4, #6b7886);
}

.post-code.is-prize-won .prize-ribbon:hover,
.post-code.is-prize-won .prize-ribbon:focus-visible {
    filter: drop-shadow(0 0 10px rgba(200, 215, 230, 0.5));
}

/* Back to the game: the secret post's close button (.secret-game-close), 12px in from the card's top and right
   edges, with its × in gold. */
.post-code .prize-close {
    top: 12px;
    right: 12px;
    color: var(--gold);
}

.post-code .prize-close:hover,
.post-code .prize-close:focus-visible {
    color: #f8dc8c;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(233, 185, 73, 0.45);
}

/* The card's width decides whether the title needs room kept clear of the corner ribbon (below). */
.post-code.has-prize {
    container-type: inline-size;
}

/* A narrow card: the centred title (or the panel's) keeps clear of the corner ribbon on both sides - the ribbon's
   36px and 20px in, less the card's 16px padding, + 8px - so it stays centred and wraps before it runs underneath. */
@container (max-width: 440px) {
    .has-prize .post-code-title {
        box-sizing: border-box;
        max-width: 100%;
        padding: 0 48px;
    }
}

/* A Lucky Draw's banner hangs left of the host's cog (top right), clear of it. */
.post-code.has-draw-banner:has(> .giveaway-corner) > .prize-ribbon {
    right: 54px;
}

/* Its list: everyone in the draw - photo, @name, entries (or "No Win") - so no place column; it scrolls when long. */
.prize-row.is-entrant {
    grid-template-columns: 28px minmax(0, 1fr) auto;
}

.draw-entrants {
    max-height: 320px;
    overflow-y: auto;
}

.draw-entries,
.draw-prize-text {
    color: #c9b07a;
    font-weight: 700;
    white-space: nowrap;
}

.draw-prize-text {
    max-width: 160px;
    overflow: hidden;
    color: #fff1c9;
    text-overflow: ellipsis;
}

/* "Everyone else in the draw", between the winners and the rest. */
.draw-panel-sub {
    margin: 4px 0 -6px;
    font-size: 12px;
    font-weight: 700;
    color: #e8cf8f;
}

/* ---------- The prize panel: the card turned gold ---------- */

/* (has-prize too, to outrank each game's own colours - Secret Word's teal comes later.) */
.post-code.has-prize.is-prize-open {
    background: linear-gradient(135deg, rgba(233, 185, 73, 0.18), rgba(140, 100, 20, 0.12));
    border-color: rgba(233, 185, 73, 0.6);
}

/* Open, only the panel shows (with its close button in the corner); the card keeps at least its game's height. */
.post-code.is-prize-open > :not(.prize-panel) {
    display: none;
}

.prize-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

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

/* The game card's rhythm, measured by eye: 25px from the frame to the title's icon, then 20px each from the title to
   the host's line, to the tiles, to the table, to what follows - each margin adjusting the panel's 14px gap - and 25px
   under the last thing (the card's 22px padding + 3px). */
.prize-panel { padding-bottom: 3px; }
.prize-panel .prize-stats { margin-top: -1px; }
.prize-panel .prize-table { margin-top: 6px; }
/* (A line of text: 20px to its capitals, and 25px from its baseline to the frame.) */
.prize-panel .prize-table + * { margin: 2px 0 -3px; }

/* (Specific enough to stay gold over Secret Word's teal title - .post-code.is-word .post-code-title - which comes
   later.) */
.post-code.has-prize .prize-panel .prize-title {
    color: #f8dc8c;
}

/* "The first 10 players to crack the code each win 10 credits." - the games' description, in gold, as wide as the
   tiles and table under it (one line where it fits). */
.prize-panel .prize-how {
    width: min(100%, 520px);
    /* 20px under the title's letters, as the game's description (see .prize-panel above). */
    margin: -2px auto 0;
    color: #e8cf8f;
    text-wrap: balance;
}

/* The totals: three tiles in a row (label / value lines on a phone's narrow card - below). */
.prize-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 520px);
}

.prize-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    text-align: center;
    background: rgba(10, 14, 22, 0.45);
    border: 1px solid rgba(233, 185, 73, 0.3);
    border-radius: 10px;
}

.prize-stat-value {
    font-size: 15px;
    font-weight: 800;
    color: #fff1c9;
    font-variant-numeric: tabular-nums;
}

.prize-stat-label {
    font-size: 11px;
    color: #c9b07a;
}

/* The places: a row each - place, who, credits - in one even grid, so every column lines up. */
.prize-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: min(100%, 520px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.prize-row {
    display: grid;
    grid-template-columns: 76px 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
    background: rgba(10, 14, 22, 0.4);
    border: 1px solid rgba(233, 185, 73, 0.18);
    border-radius: 10px;
}

/* The place ("1st", "Winner"). (Not .prize-place - that's the Host Rewards list's medal, above.) */
.prize-rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    color: #c9b07a;
    font-variant-numeric: tabular-nums;
}

.prize-rank .icon {
    flex: none;
    width: 14px;
    height: 14px;
}

/* Each place's round photo: the winner's, or the placeholder person (.avatar-placeholder). */
.prize-avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 12px;
    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%;
}

/* 1st, 2nd and 3rd: gold, silver and bronze. */
.prize-row.is-place-1 { border-color: rgba(248, 220, 140, 0.55); background: rgba(233, 185, 73, 0.14); }
.prize-row.is-place-1 .prize-rank { color: #f8dc8c; }
.prize-row.is-place-2 { border-color: rgba(214, 222, 232, 0.4); background: rgba(214, 222, 232, 0.07); }
.prize-row.is-place-2 .prize-rank { color: #d6dee8; }
.prize-row.is-place-3 { border-color: rgba(214, 145, 92, 0.45); background: rgba(214, 145, 92, 0.09); }
.prize-row.is-place-3 .prize-rank { color: #e0a274; }

.prize-who {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* "Unclaimed": quiet beside real names - lighter and muted. */
.prize-who.is-open {
    font-weight: 500;
    color: var(--muted);
}

.prize-row .credit-amount {
    justify-self: end;
    font-weight: 700;
    color: #fff1c9;
    white-space: nowrap;
}

/* A place still unclaimed: its prize quieter until someone takes it. */
.prize-row:not(.is-won) .credit-amount {
    color: #c9b07a;
    font-weight: 500;
}

/* Your own win: lit, with a "you" bubble. */
.prize-row.is-mine {
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(233, 185, 73, 0.3);
}

.prize-you {
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 800;
    font-style: normal;
    color: #2a1d02;
    background: var(--gold);
    border-radius: 999px;
}

.prize-more,
.prize-note {
    margin: 0;
    font-size: 12px;
    text-align: center;
}

.prize-more {
    color: #c9b07a;
}

/* For the host: where the prize came from. */
.prize-note {
    max-width: 44ch;
    color: var(--muted);
    line-height: 1.45;
}

/* A phone's narrow card: the totals become four label / value lines, and each place two lines - the place and its
   credits across the top (still in two even columns), who won it under them. */
@container (max-width: 360px) {
    .prize-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .prize-stat {
        flex-direction: row-reverse;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .prize-stat-value {
        font-size: 13px;
    }

    .prize-row {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        grid-template-areas: "face place amount" "face who who";
        column-gap: 10px;
        row-gap: 2px;
        padding: 8px 12px;
    }

    .prize-avatar { grid-area: face; }
    .prize-rank { grid-area: place; }
    .prize-row .credit-amount { grid-area: amount; }
    .prize-who { grid-area: who; }
}

/* "You won 100 credits": on the game for each winner, whether it's cracked or being replayed for fun. */
.post-code-you-won {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid rgba(233, 185, 73, 0.4);
    border-radius: 999px;
}

.post-code-you-won svg {
    width: 13px;
    height: 13px;
}

.post-code-hint {
    margin: 0;
    font-size: 13px;
    text-align: center;
    color: var(--muted);
}

/* Replay, at the bottom of a solved game: match the Guess button's dimensions and colours. */
.code-try.code-replay {
    gap: 6px;
    width: min(160px, 100%);
    height: 40px;
    margin-top: 6px;
    padding: 0 20px;
    font-size: 15px;
}

.code-try.code-replay .icon {
    width: 14px;
    height: 14px;
}

.post-code-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 14px;
    /* Keep solved and active game spacing consistent (as .post-code > .code-game). */
    margin-top: 3px;
}

.post-code .code-try {
    background: linear-gradient(135deg, #ff9b54, #e0662b);
}

.post-code .code-input {
    border-color: rgba(255, 150, 70, 0.45);
}

.post-code .code-input:focus {
    border-color: #ffb072;
    box-shadow: 0 0 12px rgba(255, 150, 70, 0.5);
}

/* Secret switched on: its tool stays lit. */
.composer-tool-icon.is-active {
    border-color: currentColor;
    box-shadow: 0 0 10px currentColor;
}

/* ---------- Secret posts ---------- */

/* The composer's setting: when it unlocks. */
.composer-secret {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(120, 140, 255, 0.06);
    border: 1px solid rgba(120, 140, 255, 0.35);
    border-radius: 12px;
}

.composer-secret[hidden],
.composer-secret [hidden] {
    display: none;
}

.secret-head {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 30px;
}

.secret-head .attach-remove {
    top: -4px;
    right: -4px;
}

.secret-head small {
    font-size: 12px;
    color: var(--muted);
}

.secret-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    color: #c3ceff;
}

.secret-badge svg {
    width: 15px;
    height: 15px;
}

.secret-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.secret-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.secret-input {
    padding: 8px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    color-scheme: dark;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.secret-input:focus {
    border-color: #8fa0ff;
    outline: none;
}

.secret-goal {
    width: 100px;
}

/* What everyone else sees: a frosted card behind a lock. */
.post-secret {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(120, 140, 255, 0.14), rgba(0, 168, 232, 0.06));
    border: 1px solid rgba(120, 140, 255, 0.35);
    border-radius: 12px;
}

/* The frosted look: soft, blurred colour behind the lock (no shapes, so nothing reads as hidden text). */
.secret-blur {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(45% 60% at 28% 35%, rgba(184, 196, 255, 0.5), transparent 70%),
        radial-gradient(40% 55% at 74% 68%, rgba(111, 211, 255, 0.4), transparent 70%);
    filter: blur(24px);
    opacity: 0.55;
}

/* Spaced like the game cards (.post-code), measured by eye (letters by their capitals and baseline): 25px from the
   frame to the title's icon, then 20px each from the title to the description, to the bar or countdown, to its
   bubble(s) - and 25px under the last thing to the frame. */
.secret-face {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 23px 16px 25px;
    text-align: center;
}

/* A time lock's date sits right under its countdown, as the second line of one description. */
.secret-face > .secret-when + small {
    margin-top: -8px;
}

.secret-face > .secret-progress,
.secret-face > .secret-countdown {
    margin-top: 8px;
}

/* A time lock's countdown: the games' boxes (.code-cell, 44 x 48), one digit each, in the Secret tool's purple -
   a pair per unit, tight together (1px) so each reads as one number, the units 20px apart, the word centred under
   each pair. */
.secret-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.secret-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.secret-digits {
    display: flex;
    gap: 1px;
}

.secret-digit {
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(120, 140, 255, 0.45);
}

/* Each pair's name: a clue-chip bubble (.code-chip), lowercase like every bubble, 10px under its boxes - closer than
 * the games' clue chips, so each reads as the label of its pair. */
.secret-unit:has(> .secret-unit-label) { gap: 10px; }
.secret-unit-label {
    white-space: nowrap;
}

/* "Secret Post": the games' title (.post-code-title - 20px, the tool's icon at 22px beside it) in the Secret
   tool's purple, as Crack the Code's title takes its tool's orange. */
.post-secret .secret-title {
    color: #a9b8ff;
}

/* The line under it starts where the games' description does (20px from the title's letters to its own). */
.post-secret .secret-title + * {
    margin-top: 1px;
}

/* The unlock line(s) under the title: the games' description text (.post-code-description). */
.secret-face small,
.secret-when {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.secret-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: min(260px, 100%);
}

.secret-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.secret-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7f8cff, #6fd3ff);
    border-radius: inherit;
}

/* The host's eye on their own locked post, left of Pin / pinned: Pin's outlined bubble as a circle. On (showing
   the post rather than its card), it's lit in the Secret tool's purple, as a pinned post's bubble is lit gold. */
.post-tool.secret-eye {
    /* The pills' height beside it (their 12px text line, 4px padding and borders come to about 25px). */
    width: 25px;
    height: 25px;
    justify-content: center;
    padding: 0;
}

.post-tool.secret-eye:hover,
.post-tool.secret-eye:focus-visible,
.post-tool.secret-eye.is-on {
    color: #c3ceff;
    background: rgba(120, 140, 255, 0.14);
    border-color: rgba(120, 140, 255, 0.4);
}

/* Crack the code: the composer's code box. */
.secret-code {
    font-weight: 800;
    letter-spacing: 0.3em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* The mini game on the locked card. */
.post-secret.is-code {
    min-height: 0;
}

.post-secret.is-code .secret-blur {
    opacity: 0.3;
}

.post-secret.is-code .secret-code-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* Pressing Crack the Code swaps the intro for the game (not adding the game under it). */
.post-secret.is-code .secret-code-intro[hidden] {
    display: none;
}

/* The games' description text, as on the other secret cards (.secret-when). */
.post-secret.is-code .secret-code-copy {
    /* To start where the games' description does (as .secret-title + *). */
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

/* Solved and locked again: "You guessed the secret word!" set like the description line, in the light Secret purple of
   the game's own messages (.code-message) - the owner's choice. */
.post-secret.is-code .secret-solved-message {
    color: #c3ceff;
}

/* The games' button (.code-try: 160 x 40, 15px) in the Secret tool's purple gradient - the same as the game's
   own Guess button and the lock above it. */
.post-secret.is-code .secret-code-start {
    width: min(160px, 100%);
    height: 40px;
    margin-top: 8px;
    padding: 0 20px;
    font-size: 15px;
    background: linear-gradient(135deg, #7f8cff, #4f5fd8);
}

.post-secret.is-code .secret-code-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.post-secret.is-code .secret-code-screen[hidden] {
    display: none;
}

/* Back to the secret post: in the card's top-right corner, 12px in from its top and side. It's placed from the game
   area, which sits inside the card's 23px / 18px padding while it's open (.post-secret.is-code .secret-face). */
.secret-game-close {
    position: absolute;
    top: calc(12px - 23px);
    right: calc(12px - 18px);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--muted);
    background: rgba(12, 28, 48, 0.82);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.secret-game-close:hover,
.secret-game-close:focus-visible {
    color: var(--text);
    border-color: #a9b8ff;
    box-shadow: 0 0 10px rgba(127, 140, 255, 0.4);
}

.secret-game-close .icon {
    width: 14px;
    height: 14px;
}
/* Keep the code-unlock preview aligned with the post-game spacing sequence. */
.post-secret.is-code .secret-face {
    box-sizing: border-box;
    width: 100%;
    gap: 0;
    padding: 23px 18px 25px;
}

.post-secret.is-code .secret-face .code-game,
.post-secret.is-code .secret-face .post-code-done {
    margin-top: 17px;
}

/* With the game open, the same 25px above the title's icon and under the button as Crack the Code (.post-code). */
.post-secret.is-code .secret-face:has(> .secret-code-screen:not([hidden])) {
    padding: 23px 18px 22px;
}

.post-secret.is-code .secret-unlock-title {
    top: -1px;
    box-sizing: border-box;
    max-width: 100%;
    /* Clear of the close button (it reaches 24px into this area, +4px), on both sides so the title stays centred. */
    padding: 0 28px;
    color: #a9b8ff;
}

/* A narrow card (a phone), where the title must wrap: it starts just below the close button instead, at full width. */
.post-secret.is-code {
    container: secret-card / inline-size;
}

/* A word lock's letters are sized from the game's width inside the card's padding (cqi), as on a Secret Word post
   (.post-code.is-word). */
.post-secret.is-word-lock .secret-code-screen {
    container-type: inline-size;
}

@container secret-card (max-width: 340px) {
    .post-secret.is-code .secret-unlock-title {
        margin-top: 22px;
        padding: 0;
    }
}

/* How a try went ("1 correct number"): a light tint of the Secret tool's purple, as Crack the Code's is a light
   orange and Secret Word's a light teal. */
.post-secret.is-code .code-message {
    position: relative;
    top: -4px;
    color: #c3ceff;
}

.post-secret.is-code .code-try {
    position: relative;
    top: -3px;
}

.code-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

/* 20px from the description's letters to the boxes (with the card's 14px gap and the boxes' 4px lift). */
.post-code > .code-game {
    margin-top: 3px;
}

.code-history {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.code-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

/* The entry form: answer cells stay grouped while feedback and clue chips span the game width. */
.code-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    gap: 6px;
    row-gap: 14px;
    width: 100%;
}

/* Feedback and clue chips sit between the guess boxes and their action button. */
.code-entry > .code-message,
.code-entry > .code-chips {
    grid-column: 1;
}

/* Everything under the boxes is 20px apart, as the boxes are from the description: boxes, the message (if there is
   one), the clue chips, then the button (.code-entry > .code-try). */
.code-entry > :first-child + .code-chips,
.post-code-done > :not(.code-message) + .code-chips {
    margin-top: 5px;
}

.code-entry > .code-message,
.post-code-done > .code-message,
.code-entry > .code-message + .code-chips,
.post-code-done > .code-message + .code-chips {
    margin-top: 2px;
}

/* Keep the digit inputs together while feedback and clue chips use the full game width. */
.code-entry-cells {
    position: relative;
    /* Header (-1px), description (-2px), then answer row (-1px). */
    top: -4px;
    display: grid;
    grid-template-columns: repeat(var(--digits), 44px);
    justify-content: center;
    gap: 5px;
}

.code-cell {
    display: grid;
    place-items: center;
    width: 44px;
    height: 48px;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fff;
    border-radius: 10px;
}

.code-row .code-cell {
    width: 36px;
    height: 36px;
    font-size: 17px;
}

/* Wordle colours: right place, somewhere else, not in the code. */
.code-cell.is-g { background: #2ecc8a; box-shadow: 0 0 10px rgba(46, 204, 138, 0.45); }
.code-cell.is-y { color: #2a1d02; background: var(--gold); }
.code-cell.is-n { color: var(--muted); background: rgba(255, 255, 255, 0.08); }

.code-input {
    padding: 0;
    font: inherit;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: #fff;
    caret-color: #a9b8ff;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(120, 140, 255, 0.45);
}

.code-input:focus {
    border-color: #a9b8ff;
    outline: none;
    box-shadow: 0 0 12px rgba(127, 140, 255, 0.55);
}

.code-try {
    grid-column: 1 / -1;
    width: min(160px, 100%);
    min-width: 0;
    justify-content: center;
    justify-self: center;
    margin-top: 8px;
    padding: 0 20px;
    height: 40px;
    font-size: 15px;
    background: linear-gradient(135deg, #7f8cff, #4f5fd8);
}

.code-entry > .code-try {
    margin-top: 6px;
}

/* Hovered, each game's button glows in its own colour (not the site buttons' blue): purple (a secret post's game, and
   its Try to Unlock), Crack the Code's orange, Secret Word's teal - Replay too, as it shares the button. */
.button.code-try:hover:not(:disabled),
.post-secret.is-code .secret-code-start:hover:not(:disabled) {
    box-shadow: 0 0 26px rgba(127, 140, 255, 0.7);
}

.post-code .button.code-try:hover:not(:disabled) {
    box-shadow: 0 0 26px rgba(255, 150, 70, 0.7);
}

.post-code.is-word .button.code-try:hover:not(:disabled) {
    box-shadow: 0 0 26px rgba(60, 210, 170, 0.7);
}

.code-entry > .code-chips,
.post-code-done > .code-chips {
    position: relative;
    /* Bubbles and later content move 1px down from the preceding cumulative position. */
    top: -3px;
}

/* Carry each cumulative spacing adjustment through the intervening feedback and action controls. */
.post-code .code-message {
    position: relative;
    top: -4px;
}

.post-code .code-try {
    position: relative;
    top: -3px;
}

.code-entry.is-wrong {
    animation: code-shake 0.4s ease;
}

/* Incomplete and incorrect submissions share the red glow and per-box shake, including the focused box. */
.code-game .code-entry .code-input.is-missing,
.code-game .code-entry .code-input.is-missing:focus,
.code-game .code-entry .code-input.is-wrong,
.code-game .code-entry .code-input.is-wrong:focus {
    background: rgba(255, 59, 92, 0.18);
    border-color: #ff5c7a;
    box-shadow: 0 0 14px rgba(255, 92, 122, 0.7);
    animation: code-shake 0.4s ease;
}

.code-game .code-entry .code-input.is-wrong {
    color: #ff8fa3;
}

/* A character the game won't take (guardBox in creator.js): shown in red on its box, which shakes, then clears. */
.code-game .code-entry .code-input.is-bad {
    color: #ff8fa3;
    border-color: #ff5c7a;
    box-shadow: 0 0 10px rgba(255, 92, 122, 0.45);
    animation: code-shake 0.35s ease;
}

@keyframes code-shake {
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ---------- Giveaway and Spin the Wheel: the games' card, in rose and lime ---------- */

.giveaway-editor-title { color: #ffb3c1; }
.wheel-editor-title { color: #d4f08c; }

.giveaway-text {
    flex: 1;
    min-width: 200px;
}

.post-code.is-giveaway {
    background: linear-gradient(135deg, rgba(255, 110, 140, 0.12), rgba(120, 140, 255, 0.08));
    border-color: rgba(255, 110, 140, 0.35);
}

.post-code.is-wheel {
    background: linear-gradient(135deg, rgba(170, 220, 90, 0.11), rgba(120, 140, 255, 0.08));
    border-color: rgba(170, 220, 90, 0.35);
}

.post-code.is-giveaway .post-code-title { color: #ffb3c1; }
.post-code.is-wheel .post-code-title { color: #d4f08c; }
.post-code.is-giveaway .code-message { color: #ffc9d3; }
.post-code.is-wheel .code-message { color: #e2f5b5; }

.post-code.is-giveaway .code-try { background: linear-gradient(135deg, #ff8fa3, #e0456a); }
.post-code.is-wheel .code-try { background: linear-gradient(135deg, #a9dd5c, #5f9c25); }

.post-code.is-giveaway .button.code-try:hover:not(:disabled) { box-shadow: 0 0 26px rgba(255, 110, 140, 0.7); }
.post-code.is-wheel .button.code-try:hover:not(:disabled) { box-shadow: 0 0 26px rgba(170, 220, 90, 0.7); }

/* Entered: the button stays (pressing it again takes the entry back), outlined rather than filled. */
.post-code.is-giveaway .giveaway-enter.is-entered {
    gap: 6px;
    color: #ffc9d3;
    background: rgba(255, 110, 140, 0.12);
    border: 1px solid rgba(255, 110, 140, 0.55);
}

.giveaway-enter .icon {
    width: 15px;
    height: 15px;
}

/* What follows the description: the same 20px steps as the games, measured by eye - letters by their capitals and
   baseline, boxes and bubbles by their edges - and 25px under the last thing to the frame. */
.play-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: -1px;
}

/* (A message's line runs 7px below its baseline; the button is lifted 3px - .post-code .code-try.) */
.play-body > .code-message + .code-chips { margin-top: -7px; }
.play-body > .code-chips + .code-try { margin-top: 3px; }
.play-body > .code-chips:last-child { margin-bottom: 3px; }

/*
 * The slot machine (a one-armed bandit): a rose cabinet with a row of lights across its top, a window three names
 * tall with the pay line across the middle, and a lever down its right side. The machine itself is centred; the lever
 * hangs off its right edge (as the eye does beside a code), so it doesn't push the machine over.
 */
.slot-machine {
    position: relative;
    width: min(300px, calc(100% - 90px));
}

.slot-cabinet {
    padding: 10px 12px 14px;
    background: linear-gradient(180deg, #4a2235, #2a1622 60%, #1d111a);
    border: 2px solid rgba(255, 110, 140, 0.6);
    border-radius: 18px;
    box-shadow: inset 0 2px 0 rgba(255, 200, 215, 0.18), inset 0 -6px 12px rgba(0, 0, 0, 0.45), 0 10px 26px rgba(0, 0, 0, 0.45);
}

.slot-lights {
    display: flex;
    justify-content: space-between;
    padding: 0 6px 9px;
}

.slot-light {
    width: 8px;
    height: 8px;
    background: #ffd27a;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 210, 122, 0.8);
    opacity: 0.45;
}

/* The lights chase while it spins; they glow steady once a winner lands. */
.slot-light:nth-child(odd) { opacity: 0.9; }

.post-play.is-drawing .slot-light {
    animation: slot-chase 0.5s steps(1) infinite;
}

.post-play.is-drawing .slot-light:nth-child(even) {
    animation-delay: 0.25s;
}

@keyframes slot-chase {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
}

.slot-window {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(180deg, #05080d, #0d1520 50%, #05080d);
    border: 2px solid #10151c;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 110, 140, 0.25);
}

/* Shade over the top and bottom names, as if the reel curves away. */
.slot-window::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 8, 13, 0.85), transparent 34%, transparent 66%, rgba(5, 8, 13, 0.85));
}

/* The pay line: the middle name, between two rose markers. */
.slot-payline {
    position: absolute;
    top: 40px;
    right: 0;
    left: 0;
    z-index: 1;
    height: 40px;
    pointer-events: none;
    border-top: 1px solid rgba(255, 110, 140, 0.45);
    border-bottom: 1px solid rgba(255, 110, 140, 0.45);
}

.slot-payline::before,
.slot-payline::after {
    content: "";
    position: absolute;
    top: 50%;
    border: 7px solid transparent;
    transform: translateY(-50%);
}

.slot-payline::before {
    left: 0;
    border-left-color: #ff8fa3;
}

.slot-payline::after {
    right: 0;
    border-right-color: #ff8fa3;
}

/* The draw: 6 seconds (never under 5), building up gently rather than jumping straight to full speed, then slowing to
   a stop with the winner on the pay line. */
.slot-strip {
    transition: transform 6s cubic-bezier(0.45, 0.05, 0.2, 1);
}

/* While it gathers players, the names roll slowly down, round and round (the strip holds them twice, so half its
   height brings it back to the start). */
.slot-window.is-rolling .slot-strip {
    transition: none;
    animation: reel-roll var(--roll, 8s) linear infinite;
}

/*
 * The lever: a chrome dome outside the cabinet's rose border (not over it), level with the pay line's lower line; a bar
 * comes out of it and runs 10px clear of the dome,
 * then bends up into the arm - a chrome rod with a collar and a glossy red ball. Only the arm swings down when Spin
 * pulls it; it's decoration, not a button (Spin is).
 */
.slot-dome {
    position: absolute;
    top: 89px;
    left: 100%;
    z-index: 2;
    width: 11px;
    height: 44px;
    background: linear-gradient(90deg, #5d6874, #e8eef4 40%, #9aa6b2 70%, #4f5964);
    border: 1px solid rgba(255, 110, 140, 0.55);
    border-left: 0;
    border-radius: 0 22px 22px 0 / 0 22px 22px 0;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.45), inset -2px 0 3px rgba(0, 0, 0, 0.25);
}

.slot-lever {
    position: absolute;
    top: 0;
    left: 100%;
    width: 44px;
    height: 115px;
    pointer-events: none;
}

/* The bar: out of the dome (its end tucked under it) to the arm, rounded where it bends up. */
.slot-lever-bar {
    position: absolute;
    top: 107px;
    left: 0;
    width: 29px;
    height: 8px;
    background: linear-gradient(180deg, #e8eef4, #9aa6b2 55%, #5d6874);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* The arm: 10px clear of the dome, from the bar up to the ball (kept below the cabinet's top, the owner's choice); it
   pivots where it meets the bar. */
.slot-lever-arm {
    position: absolute;
    top: 36px;
    left: 21px;
    width: 8px;
    height: 75px;
    transform-origin: 50% 100%;
}

.slot-lever-rod {
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 0;
    width: 8px;
    background: linear-gradient(90deg, #5d6874, #e8eef4 40%, #9aa6b2 70%, #4f5964);
    border-radius: 4px 4px 4px 0;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.35);
}

/* A short collar where the ball screws on. */
.slot-lever-collar {
    position: absolute;
    top: 20px;
    left: -2px;
    width: 12px;
    height: 6px;
    background: linear-gradient(90deg, #4f5964, #c9d2db 45%, #4f5964);
    border-radius: 2px;
}

/* The ball: glossy red, lit from the top left, with a soft highlight and a shadow underneath. */
.slot-lever-knob {
    position: absolute;
    top: 0;
    left: 50%;
    width: 26px;
    height: 26px;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9) 0 3px, rgba(255, 255, 255, 0) 7px),
        radial-gradient(circle at 40% 35%, #ff9fb1, #e0284f 55%, #7d0f2a);
    border-radius: 50%;
    box-shadow: inset -3px -4px 6px rgba(0, 0, 0, 0.35), 0 3px 6px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
}

.slot-lever-arm.is-pulled {
    animation: lever-pull 0.7s ease-in-out;
}

@keyframes lever-pull {
    40% { transform: scaleY(-0.55); }
    100% { transform: scaleY(1); }
}

/* A giveaway's wheel spins the same way (its faces turning back in step). */
.post-code.is-giveaway .wheel-rotor:not(.is-idle),
.post-code.is-giveaway .wheel-rotor:not(.is-idle) .wheel-face {
    transition-duration: 6s;
    transition-timing-function: cubic-bezier(0.45, 0.05, 0.2, 1);
}

/* A name on the slot machine: photo and @name, all in the same colour - the winner too. */
.giveaway-reel-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Each player's round photo (or the placeholder person) beside their name - on the reel, and in the settings list. */
.reel-face {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.reel-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.giveaway-player-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.giveaway-player-name .reel-face {
    width: 24px;
    height: 24px;
}

/* A giveaway wheel's photos: each on a disc ringed in the wheel's dark, so every one reads the same. */
.wheel-face-disc {
    fill: #1c3044;
}

.wheel-face-person {
    color: #7d95ab;
    fill: #7d95ab;
}

.wheel-face-ring {
    fill: none;
    stroke: #10151c;
    stroke-width: 2.2;
}

/* Each face turns back against the wheel - round its own centre, at the same pace - so it stays upright. */
.wheel-face {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 4.5s cubic-bezier(0.15, 0.7, 0.15, 1);
}

.wheel-rotor.is-idle .wheel-face {
    animation: wheel-idle-back 60s linear infinite;
}

@keyframes wheel-idle-back {
    to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .wheel-rotor.is-idle .wheel-face {
        animation-duration: 0s;
    }
}

/* The winner, once the wheel lands: a gold ring. */
.post-play:not(.is-drawing) .wheel-face.is-winner .wheel-face-ring {
    stroke: var(--gold);
    stroke-width: 3;
}


.giveaway-reel-name.is-waiting {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

@keyframes reel-roll {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

/* ...and a wheel of names turns slowly. */
.wheel-rotor.is-idle {
    transition: none;
    animation: wheel-idle 60s linear infinite;
}

@keyframes wheel-idle {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .giveaway-reel.is-rolling .giveaway-reel-strip,
    .wheel-rotor.is-idle {
        animation-duration: 0s;
    }
}

/* A giveaway's wheel: its rim and hub in the giveaway's rose; with nobody in it yet, its segments are blank. */
.post-code.is-giveaway .wheel-rotor {
    box-shadow: 0 0 0 4px rgba(10, 14, 22, 0.8), 0 0 0 6px rgba(255, 110, 140, 0.45), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.post-code.is-giveaway .wheel-hub {
    stroke: rgba(255, 110, 140, 0.7);
}

.wheel.is-empty .wheel-rotor path {
    fill: rgba(255, 255, 255, 0.07);
    stroke: rgba(255, 255, 255, 0.08);
}

/* The countdown to a set draw time: the secret post's boxes (.secret-countdown), in the giveaway's rose. */
.giveaway-countdown .secret-digit {
    border-color: rgba(255, 110, 140, 0.45);
}

/* The host's buttons side by side. (Not .play-actions - that's the game pages' own, in site.css.) */
.giveaway-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    /* 20px by eye, the button being lifted 3px (.post-code .code-try). */
    margin-top: 3px;
}

.play-body > .giveaway-countdown + .code-try {
    margin-top: 3px;
}

/* Ending on the countdown (no button under it): 25px from its bubbles to the frame, as from any bubbles. */
.play-body > .giveaway-countdown:last-child {
    margin-bottom: 3px;
}

.giveaway-actions .code-try {
    margin-top: 0;
}

/* The cog (front) and × (settings side) in the card's top-right corner, 12px in: the secret post's close button
   (.secret-game-close) in the giveaway's rose. */
.giveaway-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #ff8fa3;
    background: rgba(12, 28, 48, 0.82);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.giveaway-corner:hover,
.giveaway-corner:focus-visible {
    color: #ffc9d3;
    border-color: #ff8fa3;
    box-shadow: 0 0 10px rgba(255, 110, 140, 0.45);
}

.giveaway-corner .icon {
    width: 15px;
    height: 15px;
}

/* The settings side: the form left-aligned under the centred title. */
.giveaway-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 6px;
    text-align: left;
}

.giveaway-settings > .code-try {
    align-self: center;
    margin-top: 4px;
}

.giveaway-tickets {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.giveaway-ticket-count {
    min-width: 62px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.giveaway-step {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #ff8fa3;
    background: rgba(255, 110, 140, 0.1);
    border: 1px solid rgba(255, 110, 140, 0.4);
    border-radius: 50%;
    cursor: pointer;
}

.giveaway-step:disabled {
    opacity: 0.35;
    cursor: default;
}

.giveaway-step .icon {
    width: 11px;
    height: 11px;
}

.giveaway-player-item .giveaway-player-drop {
    margin-left: 10px;
}

/* ---------- Giveaway pop-ups: set-up, and players ---------- */

.giveaway-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffb3c1;
}

.giveaway-modal-title .icon {
    width: 20px;
    height: 20px;
}

.modal-giveaway {
    width: min(600px, 100%);
}

.giveaway-setup {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button.giveaway-save,
.giveaway-add.code-try {
    background: linear-gradient(135deg, #ff8fa3, #e0456a);
}

.button.giveaway-save:hover:not(:disabled),
.button.giveaway-add:hover:not(:disabled) {
    box-shadow: 0 0 26px rgba(255, 110, 140, 0.7);
}

.giveaway-player-input {
    flex: 1;
    min-width: 160px;
}

.giveaway-player-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.giveaway-player-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 4px;
}

.giveaway-player-drop {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.giveaway-player-drop:hover,
.giveaway-player-drop:focus-visible {
    color: #ff8fa3;
    background: rgba(255, 110, 140, 0.14);
}

.giveaway-player-drop .icon {
    width: 11px;
    height: 11px;
}

.giveaway-players-row .giveaway-add {
    width: auto;
    height: 38px;
    margin: 0;
}

.giveaway-player-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.giveaway-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 8px 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 10px;
}

/* The saved giveaway under the post being written: a bar (Edit, ×), then the card as it'll look. */
.giveaway-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.giveaway-preview-bar {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-right: 30px;
}

.giveaway-preview-bar .attach-remove {
    top: -4px;
    right: -4px;
}

.giveaway-preview-bar small {
    flex: 1;
    font-size: 12px;
}

/* A drawn reel or wheel, with its replay button hanging 15px to the right, level with its middle - the reel or
   wheel itself stays centred (as beside a code: .code-hidden > .code-eye). Hidden while it plays. */
.giveaway-stage {
    position: relative;
    display: flex;
    justify-content: center;
    width: min(240px, 100%);
}

.giveaway-stage > .wheel {
    width: 100%;
}

.giveaway-stage > .giveaway-replay {
    position: absolute;
    top: 50%;
    left: calc(100% + 15px);
    transform: translateY(-50%);
}

/* In the giveaway's rose, like its cog (.giveaway-corner). */
.post-code.is-giveaway .giveaway-replay {
    color: #ff8fa3;
    background: rgba(255, 110, 140, 0.1);
    border-color: rgba(255, 110, 140, 0.4);
}

.post-code.is-giveaway .giveaway-replay:hover,
.post-code.is-giveaway .giveaway-replay:focus-visible {
    color: #ffc9d3;
    border-color: #ff8fa3;
    box-shadow: 0 0 10px rgba(255, 110, 140, 0.45);
}

.post-play.is-drawing .giveaway-replay {
    visibility: hidden;
}

/* While Spin the Wheel is still going, its result waits unseen - its space kept, so nothing jumps. */
.post-play.is-spinning .code-message {
    visibility: hidden;
}

/* A giveaway's draw (or its replay): the message is hidden and the bubbles move up under the reel or wheel; when it
   lands, the message is back, pushing them down. Both snap into place, as the other games' cards do (no sliding - the
   owner's choice). (Hidden, it takes up nothing - its 20px gap cancelled by its own margin - and the bubbles drop the
   margin they keep under a message.) */
.post-code.is-giveaway .play-body > .code-message {
    max-height: 4em;
    overflow: hidden;
    /* Set like the games' own messages (.code-message: "Fill in all 4 numbers."), in the giveaway's rose - the owner's
       choice, after trying the smaller description text. */
}

.post-code.is-giveaway.is-drawing .play-body > .code-message {
    max-height: 0;
    margin-top: -20px;
    opacity: 0;
}

.post-code.is-giveaway.is-drawing .play-body > .code-message + .code-chips {
    margin-top: 0;
}

/* The wheel: 240px, its pointer over the top edge; the wheel turns under it. */
.wheel {
    position: relative;
    width: min(240px, 100%);
    aspect-ratio: 1;
}

.wheel-rotor {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(10, 14, 22, 0.8), 0 0 0 6px rgba(170, 220, 90, 0.45), 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 4.5s cubic-bezier(0.15, 0.7, 0.15, 1);
}

.wheel-rotor text {
    font-family: inherit;
    font-weight: 800;
    fill: #10151c;
}

.wheel-hub {
    fill: #10151c;
    stroke: rgba(170, 220, 90, 0.7);
    stroke-width: 3;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 22px;
    height: 26px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
    transform: translateX(-50%);
}

/* ---------- Secret Word: Crack the Code's card, in teal ---------- */

.post-code.is-word {
    background: linear-gradient(135deg, rgba(60, 210, 170, 0.12), rgba(120, 140, 255, 0.08));
    border-color: rgba(60, 210, 170, 0.35);
}

.post-code.is-word .post-code-title,
.word-editor-title {
    color: #8ff0d4;
}

.post-code.is-word .code-try {
    background: linear-gradient(135deg, #4fe0bb, #1fa889);
}

.post-code.is-word .code-input {
    border-color: rgba(60, 210, 170, 0.45);
}

.post-code.is-word .code-input:focus {
    border-color: #6fe6c6;
    box-shadow: 0 0 12px rgba(60, 210, 170, 0.5);
}

.post-code.is-word .code-message {
    color: #b8f5e3;
}

/* The card's width drives the letter sizes below (cqi: the width inside its padding). */
.post-code.is-word {
    container-type: inline-size;
}

/* Words side by side, wrapping onto new lines for a phrase. */
.word-rows {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    width: 100%;
}

/*
 * Letter boxes: always Crack the Code's size (44 x 48) - words are up to 10 letters (PostMedia::WORD_MAX), which fit
 * a laptop's card at full size. Only on a card too narrow for them (a phone, where posts sit beside the avatar) do
 * they shrink, just enough to fit, until the mobile layout is redone. --longest (creator.js) is the word's length, --n
 * a row's.
 */
.word-rows {
    --gap: 5px;
    --cell: min(
        44px,
        calc((100cqi - var(--beside, 0px) - (var(--longest) - 1) * var(--gap)) / var(--longest))
    );
}

/* The host's own word has the show/hide eye hanging to its right (30px + a 15px gap: .code-hidden), so leave that
   room on both sides - the word stays centred and the eye stays inside the card. */
.code-hidden > .word-rows {
    --beside: 90px;
}

@container (max-width: 400px) {
    .word-rows {
        --gap: 4px;
    }
}

.word-rows .code-row {
    display: grid;
    grid-template-columns: repeat(var(--n), var(--cell));
    gap: var(--gap);
}

.word-rows .code-cell.word-cell {
    width: var(--cell);
    height: calc(var(--cell) * 48 / 44);
    padding: 0;
    font-size: calc(var(--cell) * 0.5);
    border-radius: calc(var(--cell) * 0.23);
}

.code-entry.word-entry {
    justify-items: center;
    width: 100%;
}

.word-entry .code-try {
    justify-self: center;
}

/* The composer's word box: letters in capitals, like the boxes players fill in. */
.word-input {
    flex: 1;
    min-width: 0;
    letter-spacing: 0.08em;
}

.word-editor .is-over {
    color: #ff8fa3;
}

/* What the code is, as small chips under it: "4 numbers", "no repeat numbers". */
.code-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

/* "Prize won": gold, like the prize bubble. */
.code-chip.is-won {
    color: var(--gold);
    border-color: rgba(233, 185, 73, 0.45);
}

.code-chip {
    padding: 2px 10px;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

/* Your own code, blurred until you show it with the eye (host only - in case you're streaming). The code stays
   centred in the card, as everyone else sees it; the eye hangs 15px to its right without pushing it over. */
.code-hidden {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.code-hidden > .code-eye {
    position: absolute;
    top: 50%;
    left: calc(100% + 15px);
    transform: translateY(-50%);
}

.code-hidden-value {
    filter: blur(7px);
    user-select: none;
    transition: filter 0.2s ease;
}

.code-hidden.is-shown .code-hidden-value {
    filter: none;
    user-select: auto;
}

/* A Crack the Code once it's done - the host's own code, or the code a player cracked: the same boxes, and the same
   4px lift, as the entry boxes (.code-entry-cells), so nothing shrinks or moves when it's cracked and the card's
   spacing matches viewer mode. Secret Word's letters get the same lift in every state - being typed, guessed, or the
   host's own (with its eye) - so both games sit 20px under their description and 20px over their clue chips. */
.post-code-done > .code-hidden:has(> .code-row),
.post-code-done > .code-row,
.post-code-done > .code-hidden:has(> .word-rows),
.post-code-done > .word-rows,
.code-entry > .word-rows {
    position: relative;
    top: -4px;
}

.post-code-done > .code-hidden > .code-row .code-cell,
.post-code-done > .code-row .code-cell {
    width: 44px;
    height: 48px;
    font-size: 22px;
}

.code-eye {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.code-eye:hover,
.code-eye:focus-visible {
    color: var(--text);
    border-color: var(--cyan);
}

.code-eye svg {
    width: 16px;
    height: 16px;
}

/* How the last try went, under the boxes: one line, or two when both apply. */
.code-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #ffd2a8;
    text-align: center;
}

/* "Unlocked" beside a secret post's name, once everyone can see it (or "Cracked", once you've cracked it). */
.pinned-tag.unlocked-tag {
    color: #c3ceff;
    background: rgba(120, 140, 255, 0.14);
    border-color: rgba(120, 140, 255, 0.4);
}

/* An unlocked secret post's "lock" / "unlock" bubble: the bubble is the button, glowing on hover like the eye. */
.secret-lock-toggle {
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.secret-lock-toggle:hover,
.secret-lock-toggle:focus-visible {
    border-color: #a9b8ff;
    box-shadow: 0 0 10px rgba(127, 140, 255, 0.4);
}

/* The feeling picked, under the text box: "Feeling 🤩 Amazing" (tap to change) and an ×. */
.composer-feeling {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    padding: 3px 4px 3px 12px;
    color: #ffb3d9;
    background: rgba(255, 110, 180, 0.1);
    border: 1px solid rgba(255, 110, 180, 0.35);
    border-radius: 999px;
}

.composer-feeling[hidden] {
    display: none;
}

.composer-feeling-change {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font: inherit;
    font-size: 13px;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 0;
    cursor: pointer;
}

.composer-feeling-change strong {
    color: var(--text);
}

.composer-feeling-remove {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.composer-feeling-remove:hover {
    color: #fff;
    background: rgba(255, 110, 180, 0.3);
}

.composer-feeling-remove svg {
    width: 11px;
    height: 11px;
}

/* On a post: the name, then "is feeling 🤩 Amazing". */
.post-name-who {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    min-width: 0;
}

.post-feeling {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

.post-feeling strong {
    font-weight: 700;
    color: var(--text);
}

.post-feeling-emoji {
    margin-right: 4px;
}

/* The feeling picker: a grid of emoji + feeling. */
.modal-feeling {
    width: min(560px, 100%);
}

.modal-feeling .window-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feeling-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-height: min(400px, 55vh);
    overflow-y: auto;
}

.feeling-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.feeling-pick[hidden] {
    display: none;
}

.feeling-pick:hover,
.feeling-pick:focus-visible {
    background: rgba(255, 110, 180, 0.1);
    border-color: rgba(255, 110, 180, 0.45);
}

.feeling-pick.is-on {
    background: rgba(255, 110, 180, 0.16);
    border-color: rgba(255, 110, 180, 0.6);
}

.feeling-emoji {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 560px) {
    .feeling-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- What's being added, under the text box ---------- */

.composer-attachment[hidden] {
    display: none;
}

/* Photos being added: five equal squares across, with a second row for photos six to ten. */
.composer-attachment.is-photos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.attach-photo,
.attach-more {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
}

.attach-photo,
.post-photo {
    background: rgba(255, 255, 255, 0.04);
}

.attach-photo img {
    position: absolute;
    inset: 5%;
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 6px;
}

.attach-photo.is-uploading img {
    opacity: 0.45;
}

.attach-photo .attach-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.attach-more {
    display: grid;
    place-items: center;
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.06);
    border: 1px dashed rgba(0, 168, 232, 0.45);
    cursor: pointer;
}

.attach-more svg {
    width: 22px;
    height: 22px;
}

/* × on a photo, the GIF, the poll or the stream. */
.attach-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.attach-remove:hover {
    background: var(--red);
}

.attach-remove svg {
    width: 12px;
    height: 12px;
}

.attach-gif {
    position: relative;
    width: fit-content;
    max-width: 100%;
}

.attach-gif img {
    display: block;
    max-width: 260px;
    max-height: 200px;
    border-radius: 10px;
}

.composer-attachment .post-stream {
    position: relative;
    padding-right: 42px;
}

.composer-attachment .post-stream .attach-remove {
    top: 50%;
    transform: translateY(-50%);
}

/* The poll being written. */
.poll-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.poll-editor-head {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-right: 30px;
}

.poll-editor-head .attach-remove {
    top: -4px;
    right: -4px;
}

.poll-editor-head small {
    font-size: 12px;
}

.poll-editor-row {
    display: flex;
    gap: 6px;
}

.poll-editor-row input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.poll-editor-row input:focus {
    border-color: var(--cyan);
    outline: none;
}

.poll-editor-drop {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.poll-editor-drop:hover {
    color: #ff8fa3;
    border-color: rgba(255, 59, 92, 0.5);
}

.poll-editor-drop svg {
    width: 15px;
    height: 15px;
}

.poll-editor-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.poll-length {
    display: flex;
    gap: 4px;
}

.poll-length-pick {
    padding: 4px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.poll-length-pick.is-on {
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.14);
    border-color: rgba(0, 168, 232, 0.45);
}

/* ---------- Attachments on posts ---------- */

/* One gap down every post, as it looks: from the bottom of the date's letters to the content (12px from its line,
   whose letters sit 3px up in it: 15px) and from the content to the reaction bubbles - both 15px (then 8px to the
   comment box: .feed-comments). Text is measured by its letters (the tops of its capitals, its baseline), so
   attachments (hard edges, no spare line height) get 15px exactly below, and after text, the text's own bottom
   margin gives the same 15px from its baseline. */
.post-main > .post-attachment {
    margin: 0 0 15px;
}

.post-main > .post-body[hidden] + .post-attachment {
    margin-top: 12px;
}

/* After text, an attachment's hard edge is measured from the text's lowest ink - the tails of g, p, y, 3px under
   its baseline - so the gap looks the same 15px as the attachment's to the reaction bubbles. The text's 9px bottom
   margin collapses into this one, so this is the whole gap from its line: 9px + those 3px. */
.post-main > .post-body:not([hidden]) + .post-attachment {
    margin-top: 12px;
}

/* Photos, anchored on the left under the text, with five equal squares per row. Photos six to ten wrap onto
   a second row. Clicking one opens it whole in the photo viewer. */
/* Attachments match the full comment form: from the input's left edge through the Post button's right edge.
   The left edge is 61px in from the post wall (8px out from the post text column); the form's side inset is 42px. */
.post-main > .post-photos,
.post-main > .post-gif,
.post-main > .post-poll,
.post-main > .post-stream,
.post-main > .post-secret,
.post-main > .post-code {
    box-sizing: border-box;
    margin-left: -8px;
    margin-right: 42px;
}

.post-photos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.post-photo {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: zoom-in;
    transition: box-shadow 0.15s ease;
}

.post-photo:hover,
.post-photo:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 168, 232, 0.6);
}

.post-photo img {
    display: block;
    position: absolute;
    inset: 5%;
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 6px;
}

/* ---------- Photo viewer ---------- */

.photo-viewer {
    background: transparent;
    backdrop-filter: blur(8px);
    padding: 16px;
    overscroll-behavior: contain;
}

.photo-viewer-card {
    position: relative;
    display: grid;
    grid-template-rows: 52px minmax(0, 1fr) 64px;
    grid-template-columns: minmax(0, 1fr);
    /* Scales with the screen so a laptop keeps some page around the window, as a large monitor does:
       full 1400 x 900 on a 1080p monitor, shrinking smoothly to about 75% of the width and 82% of the
       height on smaller screens, and the whole width on phones. */
    width: min(1400px, 100%, calc(60vw + 250px));
    height: min(900px, calc(100dvh - 32px), max(82dvh, calc(150dvh - 525px)));
    min-width: 0;
    overflow: hidden;
    background: rgba(1, 6, 12, 0.95);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.photo-viewer-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 60px 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(4, 14, 26, 0.86);
    backdrop-filter: blur(12px);
}

.photo-viewer .photo-viewer-head h3 { margin: 0; font-size: 16px; }
.photo-viewer-count { font-size: 13px; color: var(--muted); }

.photo-viewer-stage {
    min-height: 0;
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
    background:
        radial-gradient(500px 220px at 20% 0%, rgba(112, 119, 132, 0.25), transparent 70%),
        radial-gradient(520px 240px at 90% 100%, rgba(105, 97, 108, 0.2), transparent 72%),
        linear-gradient(135deg, #302f35 0%, #28272d 52%, #222126 100%);
}
.photo-viewer.is-light-background .photo-viewer-stage {
    background:
        radial-gradient(500px 220px at 20% 0%, rgba(143, 136, 123, 0.25), transparent 70%),
        radial-gradient(520px 240px at 90% 100%, rgba(150, 158, 147, 0.2), transparent 72%),
        linear-gradient(135deg, #cfd0ca 0%, #d7d8d2 52%, #ddded9 100%);
}

/* JS sizes this canvas to keep 50px around the image, including when zoomed and scrollable. */
.photo-viewer-canvas {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 50px;
    min-width: 100%;
    min-height: 100%;
}

.photo-viewer-img {
    display: block;
    max-width: none;
    max-height: none;
    object-fit: contain;
}
.photo-viewer-img[hidden] { display: none; }

.photo-viewer .photo-viewer-close {
    top: 9px;
    right: 12px;
    z-index: 2;
}

/* Navigation stays on the window edges, independent of image size and zoom. */
.photo-viewer-step {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #e6f7ff;
    background: #10283a;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: box-shadow 0.2s ease;
}
.photo-viewer-step[hidden] { display: none; }
.photo-viewer-step.is-prev { left: 8px; }
.photo-viewer-step.is-next { right: 8px; }
.photo-viewer button:hover:not(:disabled),
.photo-viewer a.photo-viewer-tool:hover { box-shadow: 0 0 18px rgba(0, 168, 232, 0.6); }
.photo-viewer-step:hover,
.photo-viewer-step:focus-visible { border-color: var(--cyan); }
.photo-viewer-step:focus-visible { outline: none; box-shadow: 0 0 18px rgba(0, 168, 232, 0.6); }
.photo-viewer-step .nav-arrow { width: 16px; height: 16px; }

.photo-viewer-zoom {
    --photo-control-gap: 12px;
    display: grid;
    /* Tools far left, zoom out / slider / zoom in centred, zoom drop-box far right. The side columns
       never shrink below their buttons, so the slider gives way first. */
    grid-template-columns: minmax(max-content, 1fr) 34px minmax(55px, 250px) 34px minmax(max-content, 1fr);
    align-items: center;
    column-gap: var(--photo-control-gap);
    padding: 12px var(--photo-control-gap);
    border-top: 1px solid rgba(109, 161, 185, 0.25);
    background: rgba(4, 14, 26, 0.86);
    backdrop-filter: blur(12px);
    font-size: 13px;
}
.photo-viewer-tools { display: flex; gap: var(--photo-control-gap); align-items: center; grid-column: 1; justify-self: start; }
.photo-viewer-zoom-out { grid-column: 2; }
.photo-viewer-zoom-in { grid-column: 4; }
.photo-viewer-zoom-track { position: relative; grid-column: 3; width: 100%; min-width: 0; height: 34px; display: flex; align-items: center; }
.photo-viewer-zoom-track input { display: block; width: 100%; min-width: 0; margin: 0; accent-color: var(--cyan); cursor: pointer; }
.photo-viewer-preset-wrap { position: relative; z-index: 3; grid-column: 5; justify-self: end; width: min(147px, 100%); }
.photo-viewer-preset { position: relative; display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; max-width: 100%; height: 34px; padding: 5px 30px 5px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: linear-gradient(180deg, rgba(14, 38, 62, 0.75), rgba(4, 16, 28, 0.75)); font: inherit; font-size: 14px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; text-align: left; cursor: pointer; }
.photo-viewer-preset-label { color: var(--muted); font-weight: 500; }
.photo-viewer-preset::after { content: ""; position: absolute; top: 13px; right: 12px; width: 6px; height: 6px; border-right: 1.5px solid var(--cyan-bright); border-bottom: 1.5px solid var(--cyan-bright); transform: rotate(45deg); }
.photo-viewer-preset:hover { border-color: rgba(0, 168, 232, 0.45); }
.photo-viewer-preset[aria-expanded="true"],
.photo-viewer-preset:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.22); }
.photo-viewer-preset-menu { position: absolute; right: 0; bottom: calc(100% + 7px); width: 100%; max-height: min(240px, 40vh); overflow-y: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, rgba(14, 38, 62, 0.98), rgba(4, 16, 28, 0.98)); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.58); }
.photo-viewer-preset-menu[hidden] { display: none; }
.photo-viewer-preset-menu [data-zoom-value] { display: block; width: 100%; padding: 7px 12px; border: 0; border-radius: 7px; color: var(--text); background: transparent; text-align: left; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.photo-viewer-preset-menu [data-zoom-value]:hover,
.photo-viewer-preset-menu [data-zoom-value][aria-selected="true"] { background: rgba(0, 168, 232, 0.16); color: #fff; }
.photo-viewer-tool { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #10283a; cursor: pointer; }
.photo-viewer-tool:hover:not(:disabled) { border-color: var(--cyan); }
.photo-viewer-tool:disabled { opacity: 0.4; cursor: default; }
.photo-viewer-tool .icon { width: 20px; height: 20px; }
.photo-viewer-tool [hidden] { display: none; }
.photo-viewer.is-fullscreen { padding: 0; }
.photo-viewer.is-fullscreen .photo-viewer-card { width: 100%; height: 100dvh; max-width: none; border-radius: 0; }
.photo-viewer-stage:focus-visible,
.photo-viewer-zoom input:focus-visible,
.photo-viewer-tool:focus-visible,
.photo-viewer-preset:focus-visible,
.photo-viewer-preset-menu [data-zoom-value]:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

@media (max-width: 850px) {
    /* No room to centre the zoom controls: the slider takes whatever is left between the two sides. */
    .photo-viewer-zoom { --photo-control-gap: 6px; grid-template-columns: auto 34px minmax(35px, 1fr) 34px auto; }
}
/* Short laptop screens: slimmer title and toolbar bars leave more room for the photo. */
@media (max-height: 800px) {
    .photo-viewer-card { grid-template-rows: 44px minmax(0, 1fr) 54px; }
    .photo-viewer .photo-viewer-close { top: 5px; }
    .photo-viewer-zoom { padding-block: 10px; }
}
@media (max-width: 600px) {
    .photo-viewer { padding: 8px; }
    .photo-viewer-card { height: calc(100dvh - 16px); }

    .photo-viewer-zoom { --photo-control-gap: 4px; grid-template-columns: auto 28px minmax(35px, 1fr) 28px auto; }
    .photo-viewer-tool { flex-basis: 28px; width: 28px; height: 28px; padding: 3px; }
    .photo-viewer-tool .icon { width: 16px; height: 16px; }
    .photo-viewer-preset-wrap { width: clamp(56px, calc(100vw - 256px), 147px); }
    .photo-viewer-preset { height: 28px; font-size: clamp(9px, 2.33vw, 14px); padding: 4px 22px 4px 9px; }
    .photo-viewer-preset::after { top: 10px; right: 9px; width: 5px; height: 5px; }
}
/* The smallest phones only have room for the percentage itself. */
@media (max-width: 359px) {
    .photo-viewer-preset-label { display: none; }
}

.post-gif {
    margin-top: 10px;
}

.post-gif img {
    display: block;
    max-width: min(100%, 360px);
    max-height: 320px;
    border-radius: 12px;
}

/* A poll: options as rows; once results show, each fills to its share. */
.post-poll {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.poll-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 8px 14px;
    overflow: hidden;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 168, 232, 0.35);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.poll-option:hover:not(:disabled) {
    background: rgba(0, 168, 232, 0.1);
    border-color: var(--cyan);
}

.poll-option:disabled {
    cursor: default;
}

.show-results .poll-option {
    border-color: var(--line);
}

.poll-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: rgba(255, 255, 255, 0.07);
    transition: width 0.4s ease;
}

.poll-option.is-top .poll-fill {
    background: rgba(0, 168, 232, 0.2);
}

.poll-option.is-mine {
    border-color: rgba(0, 168, 232, 0.6);
}

.poll-label,
.poll-share {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.poll-label svg {
    width: 15px;
    height: 15px;
    color: var(--cyan-bright);
}

.poll-share {
    flex: none;
    font-size: 13px;
    color: var(--muted);
}

.poll-option.is-top .poll-share {
    color: var(--cyan-bright);
}

/* The poll's top line: its question on the left, votes and time left on the right - ending exactly where the
   option bars end. */
.poll-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.poll-foot {
    flex: none;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

/* A scheduled stream shared in a post. */
.post-stream {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(0, 168, 232, 0.35);
    border-radius: 12px;
}

.composer-attachment .post-stream {
    margin-top: 0;
}

.post-stream-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 13px;
    color: var(--muted);
}

.post-stream-text strong {
    font-size: 15px;
    color: var(--text);
}

.post-stream-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan-bright);
}

.post-stream-side {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.post-stream-side .post-tool {
    padding: 4px 10px;
    font-weight: 800;
}

/* ---------- GIF and stream pickers ---------- */

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

.modal-gif .window-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gif-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gif-search:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.18);
}

.gif-search svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.gif-search input {
    flex: 1;
    padding: 11px 0;
    font: inherit;
    color: var(--text);
    background: none;
    border: 0;
    outline: none;
}

.gif-search input:disabled {
    cursor: not-allowed;
}

/* Quick categories: a row of pills that scrolls sideways. */
.gif-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gif-chips[hidden] {
    display: none;
}

.gif-chip {
    flex: none;
    padding: 5px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

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

.gif-chip.is-on {
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.14);
    border-color: rgba(0, 168, 232, 0.45);
}

/* Results as a masonry of three columns, each GIF its own shape; scrolls (and loads more) inside. */
.gif-grid {
    height: min(420px, 55vh);
    overflow-x: hidden;
    overflow-y: auto;
}

.gif-masonry {
    columns: 3;
    column-gap: 6px;
}

.gif-pick {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    break-inside: avoid;
    transition: border-color 0.12s ease, transform 0.12s ease;
}

.gif-pick:hover,
.gif-pick:focus-visible {
    border-color: var(--cyan);
    transform: scale(1.02);
}

.gif-pick img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-grid .gif-loading,
.gif-note {
    column-span: all;
    padding: 30px 0;
    text-align: center;
}

/* No GIPHY key yet: how to switch search on. */
.gif-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 50px 24px;
    text-align: center;
    column-span: all;
    color: var(--muted);
}

.gif-setup svg {
    width: 28px;
    height: 28px;
    color: var(--cyan-bright);
}

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

.gif-setup span {
    max-width: 360px;
    font-size: 13px;
}

.gif-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.gif-paste-box {
    flex: 1;
    min-width: 0;
}

.gif-paste-box summary {
    width: fit-content;
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan-bright);
    cursor: pointer;
}

.gif-paste-box[open] summary {
    margin-bottom: 8px;
}

.gif-credit {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.gif-paste {
    display: flex;
    gap: 8px;
}

.gif-paste input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.gif-paste input:focus {
    border-color: var(--cyan);
    outline: none;
}

/* A poll's own question, at the top of the poll. */
.poll-question {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.poll-question svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--gold);
}

.poll-editor-question {
    padding: 10px 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.poll-editor-question:focus {
    border-color: var(--gold);
    outline: none;
}

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

.stream-pick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    font: inherit;
    color: inherit;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.stream-pick-item:hover,
.stream-pick-item:focus-visible {
    border-color: var(--cyan);
    background: rgba(0, 168, 232, 0.08);
}

@media (max-width: 560px) {
    .composer {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .composer {
        padding-right: 18px;
    }


    .gif-masonry {
        columns: 2;
    }
}

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

.review-form .button {
    justify-self: end;
}

.page textarea,
.page .comment-form input,
.modal .comment-form input {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: rgba(2, 12, 22, 0.6);
    border: 1px solid var(--line);
    border-radius: 10px;
    resize: vertical;
}

.page textarea:focus,
.page .comment-form input:focus,
.modal .comment-form input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.22);
}

.feed,
.reviews {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

/* A post looks evenly framed top and bottom: its photo sits 22px down (centred on the name and time, in a name line
   as tall as Pin / Edit / Delete), so the comment box and Post button sit 22px up. */
.post {
    padding-bottom: 22px;
}

.post-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-who {
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* A post's photo, centred on its name and time as they look - from the top of the name to the bottom of the time.
   The name's line is as tall as the Pin / Edit / Delete buttons (.post-name-line), which leaves the text 3px below
   the middle of the block the photo is otherwise centred on. */
.post .post-head .feed-avatar {
    position: relative;
    top: 3px;
}

.post-who small {
    font-size: 12px;
    color: var(--muted);
}

/* A post's time sits 10px under its name, letter to letter (the name's baseline to the time's capitals) as laid
   out - the gap between the comment box and its Post button (.comment-form). */

/* The name, with the Pinned bubble and the host's own Pin / Edit / Delete level with it on the post's right side. */
.post-name-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    /* As tall as the Pin / Edit / Delete buttons (26px) even without them, so a post is laid out the same for its
       host, in viewer mode and for visitors. */
    min-height: 26px;
}

.post-name-extras {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.post-name-extras:empty {
    display: none;
}

.post-tools {
    display: flex;
    gap: 6px;
}

.post-tool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.post-tool:hover {
    color: var(--text);
    border-color: var(--cyan);
}

/* Pin, Edit and Delete's icons: a little smaller than the word. */
.post-tool > .icon {
    flex: none;
    width: 12px;
    height: 12px;
}

.post-tool.is-danger:hover {
    color: #ff8fa3;
    border-color: rgba(255, 59, 92, 0.5);
}

.post-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.post-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.post-editor-actions .button {
    padding: 8px 18px;
    font-size: 13px;
}

.post-body {
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* ---------- Post layout: text column, bubble buttons, who reacted, top comment ---------- */

/* Everything after the author line sits in one column under the name and time (photo 40px + 10px gap). */
.post-main {
    padding-left: 50px;
}

/* Below, the line's own spare height (6px under the baseline) + 9px: 15px from the baseline to what follows.
   Across, the text sits evenly inside the column its attachments and comment box fill: 8px in from their left edge
   (in line with the name) and 8px in from their right, which stops 42px short of this column's own. */
.post-main .post-body {
    margin: 6px 50px 9px 0;
}

/* The text column ends flush, so the gap before the comments matches the pop-up's. */
.post-main > :last-child {
    margin-bottom: 0;
}

/* Feed comments and the reply box span the post's full width, same as in the comments pop-up. */
/* 10px under the reaction bubbles to the comment box (or the first comment once they're showing) - the same gap as
   between the comment box and its Post button (.comment-form). */
.feed-comments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.bubble-bar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* A reaction's pill, with "Reacted by …" above it on hover (or keyboard focus). The tip can be moved
   onto - "others" opens the full list - so a see-through strip bridges the gap. */
.reaction-pill {
    position: relative;
    display: inline-flex;
}

.reaction-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 25;
    max-width: 260px;
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
    white-space: normal;
    width: max-content;
    background: #0a1d31;
    border: 1px solid var(--box-border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0s linear 0.12s;
}

.reaction-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.reaction-pill:hover .reaction-tip,
.reaction-pill:focus-within .reaction-tip {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.reaction-tip a {
    font-weight: 700;
    color: var(--text);
}

.reaction-tip a:hover {
    color: var(--cyan-bright);
}

/* Round "bubble" buttons, like Discord's reaction buttons. */
.bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 34px;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

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

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

.bubble.is-mine {
    background: rgba(0, 168, 232, 0.14);
    border-color: var(--cyan);
}

.bubble-emoji {
    font-size: 16px;
    line-height: 1;
}




/* Reaction picker: slides out to the right of the smiley. */
.reaction-picker {
    position: absolute;
    z-index: 20;
    display: flex;
    gap: 2px;
    padding: 5px;
    background: #0b1f35;
    border: 1px solid var(--box-border);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
    animation: picker-slide 0.18s ease-out;
}

@keyframes picker-slide {
    from {
        opacity: 0;
        transform: translate(-10px, -50%);
    }
}

.picker-choice {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}

.picker-choice:hover,
.picker-choice:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transform: scale(1.25);
}

.picker-choice.is-mine {
    background: rgba(0, 168, 232, 0.18);
}






/* Heart on a comment, with its count (TikTok-style). */
/* Heart on a comment: centred against the comment, count to its right (TikTok-style). */
.comment-heart {
    display: flex;
    /* The heart, then its count to the right. Each heart starts at the left of the fixed heart column, so
       they all line up in one column, with the counts inside the post's right edge. */
    align-self: center;
    /* Anchored on the right: the count ends as far in from the post's right wall as the commenters' photos
       start from the left one, and a bigger count (12, 128) grows to the left. */
    justify-self: end;
    margin-right: 6px;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

/* Outline heart (empty fill), filled red once you've hearted it. */
.comment-heart .icon {
    width: 18px;
    height: 18px;
    color: transparent;
    stroke: #8ea3b5;
    stroke-width: 1.8;
    overflow: visible;
}

.comment-heart:hover {
    color: #ff8fa3;
    transform: scale(1.1);
}

.comment-heart:hover .icon {
    stroke: #ff8fa3;
}

.comment-heart.is-liked {
    color: var(--red);
}

.comment-heart.is-liked .icon {
    color: var(--red);
    stroke: var(--red);
}

/* ---------- Post pop-up and reactions pop-up ---------- */


.modal-reactions {
    width: min(440px, 100%);
}

.reactions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

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

.reactor-text {
    display: flex;
    flex-direction: column;
}

.reactor-name {
    font-weight: 700;
}

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

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

.reactor-emoji {
    font-size: 20px;
}





.comment {
    display: grid;
    /* Photo, box, then the heart. The box ends as far from the post's right wall (61px) as it starts from the
       left one: the 19px the comments sit in from the wall + a 35px heart column + a 7px gap. The heart and its
       count end on the right of that column (.comment-heart); a count too long for it (12, 128) widens the
       column, and the box steps aside by just that much - it never runs under the heart. */
    grid-template-columns: auto minmax(0, 1fr) minmax(35px, max-content);
    column-gap: 8px;
    row-gap: 8px;
    align-items: start;
}

.comment > .comment-text {
    margin-right: -1px;
}

/* A post's comments sit 6px in, so their 28px photos are centred under the post's 40px photo - the whole row
   moves, so the photo-to-box spacing stays the same. Their threads and View links move with them. */
.feed-comments > .comment,
.feed-comments > .comment-thread {
    margin-left: 6px;
}

/* Their links and loading dots: 46px in, plus the 6px. */
.feed-comments > .view-more,
.feed-comments > .comments-loader {
    margin-left: 52px;
}



.comment-text {
    padding: 8px 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.comment-text strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    min-width: 0;
    font-size: 13px;
    /* A name never breaks mid-word; on a narrow screen the First Comment tag drops under it instead. */
    white-space: nowrap;
    overflow-wrap: normal;
    /* A fixed line, so the photo beside it can line up with its middle (below). */
    line-height: 18px;
}

/* The photo, centred on the name's line: the box's 8px top padding plus half the 18px line, less half the
   photo (28px on comments, 26px on replies). */
.comment .comment-avatar {
    margin-top: 3px;
}

/* Names and photos in posts and comments link to their creator page (hosts). The photo's link takes no space
   of its own, so the photo sits exactly where it would without it. */
.avatar-link {
    display: contents;
}

.name-link {
    color: inherit;
}

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

/* "First Comment": a small tag no taller than the name, in the grey of the time and Reply. */
.first-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    padding: 0 7px;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    color: var(--muted);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
}

/* "Top Fan": the page's most active fan - the same small grey tag as First Comment, with a star. */
/* Every comment badge - Host (a crown), Friends (people), Top Fan (a star) and First Comment (a trophy) - is
   the same tag: the same grey text, weight and size, its icon at the same size in the same colour. */
.first-badge.is-host,
.first-badge.is-friend,
.first-badge.is-superfan,
.first-badge.is-first {
    gap: 3px;
    padding-left: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
}

.first-badge .icon {
    flex: none;
    width: 10px;
    height: 10px;
    color: inherit;
}

/* About box: the Top Fans (up to 3), each with their photo, in the same quiet grey as the tag. */
.top-fans {
    display: flex;
    flex-direction: column;
    /* The same 8px between rows as Socials & links. */
    gap: 8px;
}

.superfan-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.superfan-row .superfan-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    font-size: 14px;
    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%;
}

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

.superfan-row span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.superfan-row strong,
.superfan-row a {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

.superfan-row a:hover {
    color: var(--cyan-bright);
}

/* Each Top Fan row starts with the Top Fan icon (the same diamond as the badge on their comments), before their
   photo and @handle: the site's bright blue with a two-layer glow (like the games page's icons and the logo),
   twinkling gently. */
.top-fan-icon {
    flex: none;
    width: 20px;
    height: 20px;
    overflow: visible;
    color: var(--cyan-bright);
    filter: drop-shadow(0 0 4px rgba(0, 168, 232, 0.9)) drop-shadow(0 0 10px rgba(0, 168, 232, 0.5));
    animation: star-twinkle 3s ease-in-out infinite;
}

/* The three twinkle a little out of step. */
.top-fans .superfan-row:nth-child(2) .top-fan-icon {
    animation-delay: -1s;
}

.top-fans .superfan-row:nth-child(3) .top-fan-icon {
    animation-delay: -2s;
}

@keyframes star-twinkle {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(0, 168, 232, 0.9)) drop-shadow(0 0 10px rgba(0, 168, 232, 0.5));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 6px rgba(111, 211, 255, 1)) drop-shadow(0 0 16px rgba(0, 168, 232, 0.7));
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-fan-icon {
        animation: none;
    }
}

.superfan-row small {
    font-size: 12px;
    color: var(--muted);
}
.comment-meta {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    /* The name's 18px line, so the time sits level with the name even when the First Comment tag wraps
       under it. */
    height: 18px;
}

/* The comment, with Reply and Delete on the right, level with its last line of text (baselines matched). */
.comment-line {
    display: flex;
    /* A little room under the name line. */
    margin-top: 4px;
    align-items: flex-end;
    align-items: last baseline;
    justify-content: space-between;
    gap: 12px;
}

.comment-body {
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.comment-actions:empty {
    display: none;
}

.comment-meta small {
    font-size: 11px;
    color: var(--muted);
}

.comment-delete {
    padding: 0;
    font-size: 11px;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
}

.comment-delete:hover {
    color: #ff8fa3;
    text-decoration: underline;
}

/* 10px between the box and its Post button (the box gives up the width, so the button stays in line) - also the
   gap under a post's reaction bubbles and between its name and time. */
.comment-form {
    display: flex;
    gap: 10px;
}

/* Post (a comment or a new post): the primary blue action, 80px wide whatever its label, on the right. */
.comment-form .button,
.composer-row .button {
    flex: none;
    min-width: 80px;
    padding: 8px 16px;
    font-size: 13px;
}

.composer-row .button {
    height: 41px;
}

/* On a post, "Write a comment…" and Post line up with the comment boxes above: 61px in from each wall, like
   them (the comments sit 19px in; 42px more). */
.feed-comments > .comment-form {
    margin: 0 42px;
}

/* The box sits 8px under a comment or a View replies link (the comments' gap), or 10px under the reaction bubbles
   (.feed-comments). */

/* Schedule */

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-head h3 {
    font-size: 17px;
}

/* Schedule tab heading: "Schedule" with the viewer's time zone under it, and
   compact buttons on the right, all level with the heading. */
.schedule-head {
    align-items: center;
}

.schedule-head-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.schedule-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-title h3 {
    margin: 0;
}

.schedule-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.schedule-sub svg {
    flex: none;
    width: 13px;
    height: 13px;
    color: var(--cyan-bright);
}

/* Smaller buttons for a panel's heading row (beats the box's own button size). */
.button-compact,
.box .button-compact {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.button-compact svg,
.box .button-compact svg {
    width: 15px;
    height: 15px;
}

/* "Schedule a stream" inside a sentence. */
.schedule-empty .text-link {
    font-size: inherit;
}

/* "Coming up" / "Past streams" in the Schedule tab's week list: the Achievements tab's headings (.info-heading:
   blue capitals and a fading blue line), spaced for the list's 8px gaps. */
.schedule-group.info-heading {
    margin: 12px 0 2px;
}

.schedule-group.info-heading:first-child {
    margin-top: 4px;
}

/* A group with nothing in it. */
.schedule-empty {
    padding: 2px 2px 4px;
    font-size: 13px;
}

/* A stream's right-hand side, all in one row: the countdown or how it went, then its buttons (Convert, then
   Register - or the host's Edit / Delete / Cancel). Wraps onto a second line when space runs out. */
/* The game and time keep enough room to read; the bubbles wrap instead. */
.slot .upcoming-text {
    min-width: 170px;
}

.slot-side {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.slot-actions {
    display: flex;
    gap: 6px;
}

/* Every bubble here is the size of the countdown (.countdown in site.css): 12px, extra bold, 4px 10px. */
.slot-actions .post-tool {
    padding: 4px 10px;
    font-weight: 800;
    line-height: normal;
    text-align: center;
    white-space: nowrap;
}

.slot-side .live-badge {
    padding: 4px 10px;
    font-size: 12px;
    line-height: normal;
    border: 1px solid var(--red);
}

/* Register (a viewer, on a host's stream still to come) stands out a little; once registered it's filled in. */
.post-tool.is-register {
    color: var(--cyan-bright);
    border-color: rgba(0, 168, 232, 0.45);
}

.post-tool.is-register:hover {
    box-shadow: 0 0 12px rgba(0, 168, 232, 0.35);
}

/* Registered: green, like an "on time" badge. */
.post-tool.is-registered {
    color: #4fe0a0;
    background: rgba(46, 204, 138, 0.14);
    border-color: rgba(46, 204, 138, 0.5);
}

.post-tool.is-registered:hover {
    color: #7af0bd;
    border-color: rgba(46, 204, 138, 0.8);
}

/* ---------- Register window ---------- */

.modal-register {
    width: min(500px, 100%);
}

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

.register-stream-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

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

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

.register-times {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 0;
}

.register-times > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
}

.register-times dt {
    display: flex;
    align-items: center;
    gap: 7px;
    align-self: start;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 20px;
}

.register-times dt svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--cyan-bright);
}

.register-times dd {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    min-width: 0;
}

.register-times dd strong {
    font-size: 14px;
    line-height: 20px;
}

.register-times dd small {
    font-size: 12px;
    color: var(--muted);
}

.register-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 0;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.08);
    border: 1px solid rgba(0, 168, 232, 0.25);
    border-radius: 10px;
}

.register-alert svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

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

.register-confirm svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 560px) {
    .register-times > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* The host's count of who's registered, under the stream's time. */
.slot-registered {
    color: var(--cyan-bright);
}

.schedule-preview {
    margin-top: 16px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.08);
    border: 1px solid rgba(0, 168, 232, 0.25);
    border-radius: 10px;
}

/* Reviews */

.star-picker {
    display: flex;
    gap: 4px;
}

.star-pick {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #3a4650;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: transform 0.12s ease, color 0.12s ease;
}

.star-pick .icon {
    width: 28px;
    height: 28px;
}

.star-pick.is-on {
    color: var(--gold);
    transform: scale(1.08);
}

/* While hovering, preview the rating: the hovered star and every star before it light up. */
.star-picker:has(.star-pick:hover) .star-pick {
    color: #3a4650;
    transform: none;
}

.star-picker:has(.star-pick:hover) .star-pick:hover,
.star-picker:has(.star-pick:hover) .star-pick:has(~ .star-pick:hover) {
    color: var(--gold);
    transform: scale(1.08);
}

.review-summary {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}

.stars {
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--gold);
}

/* Games */

.hosted-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.hosted-game {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hosted-game:hover {
    border-color: var(--cyan);
    background: rgba(0, 168, 232, 0.07);
}

.hosted-game-icon img {
    display: block;
    width: 46px;
    height: 46px;
}

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

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

.hosted-game-cta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan-bright);
}

.hosted-game-cta .nav-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.hosted-game:hover .hosted-game-cta .nav-arrow {
    transform: translateX(3px);
}

/* ---------- Avatars on these pages (photo handling is in site.css) ---------- */

.feed-avatar,
.comment-avatar,
.upcoming-avatar,
.host-avatar,
.reel-next-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    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%;
}

.comment-avatar,
.host-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.reel-next-avatar {
    width: 64px;
    height: 64px;
    font-size: 24px;
    box-shadow: 0 0 0 3px #061522, 0 0 0 5px var(--cyan);
}

/* ---------- Schedules and countdowns ---------- */

.upcoming {
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

a.upcoming:hover {
    border-color: rgba(0, 168, 232, 0.5);
    background: rgba(0, 168, 232, 0.06);
}

.upcoming-text > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.slot-game {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    font-weight: 800;
    color: #022033;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
    border-radius: 10px;
}

.slot-game.has-icon {
    background: none;
}

.slot-game img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* No stream scheduled: the same line, quieter. */
.next-live.is-empty {
    color: var(--muted);
}

/* "Schedule": opens the Schedule tab. */
.next-live-link {
    font-weight: 700;
    color: var(--cyan-bright);
}

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

.next-live {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 6px;
    font-size: 14px;
    color: var(--muted);
}

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

.reel-next {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
}

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

/* ---------- Bio ---------- */

.profile-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pronouns {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 999px;
}

.pronouns[hidden] {
    display: none;
}

.pronouns + .bio-text {
    margin-top: 8px;
}

.bio-text {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.bio-text.is-empty {
    color: var(--muted);
    font-style: italic;
}

/* ---------- How points work ---------- */

/* Section headings inside the host rewards boxes (Standing, Rewards, Leaderboard, How to earn points). */
.rewards-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.rewards-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(233, 185, 73, 0.4), transparent);
}

.points-help {
    margin-bottom: 14px;
    font-size: 13px;
}

/* The "How to earn points" heading opens and closes the list. */
.points-help summary {
    cursor: pointer;
    list-style: none;
}

.points-help summary::-webkit-details-marker {
    display: none;
}

.points-help summary::before {
    content: "";
    order: 2;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}

.points-help[open] summary::before {
    transform: rotate(45deg);
}

.points-help summary::after {
    order: 3;
}

.point-rules {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    list-style: none;
}

.point-rules li {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: baseline;
    color: var(--muted);
}

.point-rules strong {
    color: var(--gold);
}

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

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

    .profile-body,
    .profile-side {
        grid-column: 1;
        grid-row: auto;
    }

    .profile-body,
    .profile-side {
        position: static;
    }
}

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

    .reels-wrap {
        position: static;
        justify-content: center;
    }

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

    .profile-actions {
        width: 100%;
    }
}

@media (max-width: 560px) {
    /* Phones: the feed fills the screen like a reels app. */
    .reels {
        --reel-h: calc(100vh - 150px);
        width: 100%;
        max-width: calc(var(--reel-h) * 9 / 16);
    }

    .reel-nav {
        display: none;
    }

    .profile-main {
        padding: 0 18px;
    }

    .profile-stats {
        padding: 18px;
    }
}


/* Post boxes grow with their text (creator.js) instead of being dragged bigger. */
.composer textarea,
.post-editor textarea {
    max-height: 420px;
    resize: none;
    overflow-y: auto;
}

/* Follow button: gold to follow; outlined once following; red "Unfollow" while hovered. */
.follow-button {
    color: #2a1d02;
    background: linear-gradient(135deg, #f6d27a, #d9a531);
    border-color: transparent;
}

.follow-button .icon {
    display: none;
}

.follow-button .follow-icon-off,
.follow-button.is-following .follow-icon-on {
    display: block;
}

.follow-button.is-following .follow-icon-off {
    display: none;
}

.follow-label::before {
    content: attr(data-off);
}

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

.follow-button.is-following .follow-label::before {
    content: "Following";
}

/* Hovered "Unfollow" turns red (the .button-host colours). */
.follow-button.is-following:hover,
.follow-button.is-following:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #ff5a76, #e0254a);
    border-color: transparent;
    box-shadow: 0 0 26px rgba(255, 59, 92, 0.65);
}

.follow-button.is-following:hover .follow-label::before,
.follow-button.is-following:focus-visible .follow-label::before {
    content: "Unfollow";
}

.follow-button.is-following:hover .follow-icon-on,
.follow-button.is-following:focus-visible .follow-icon-on {
    display: none;
}

.follow-button.is-following:hover .follow-icon-hover,
.follow-button.is-following:focus-visible .follow-icon-hover {
    display: block;
}

/* Instagram's "Followed by @A, @B and 10 others" line (My Community): stacked photos, then the text. */
.followed-by {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

/* On the Following page it sits on the row's small line, after the badges. */
.following-text .followed-by {
    margin: 0;
    font-size: 12px;
}

.following-text .followed-by-avatar {
    width: 20px;
    height: 20px;
    font-size: 9px;
}

.followed-by a {
    font-weight: 700;
    color: var(--text);
}

.followed-by a:hover {
    color: var(--cyan-bright);
}

.followed-by-avatars {
    display: flex;
}

/* The photos as a button (they open the followers list). */
.follower-stack {
    flex: none;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.follower-stack:hover .followed-by-avatar {
    box-shadow: 0 0 0 2px #0a1d31, 0 0 0 3px rgba(0, 168, 232, 0.6);
}

/* Creator page Followers box: the count with the photos beside it. */
.followers-stat {
    display: flex;
    align-items: center;
    gap: 0 10px;
}

/* The follower count opens the followers list: it reads as the plain number, turning blue on hover. */
.followers-count {
    padding: 0;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.followers-count:hover,
.followers-count:focus-visible {
    color: var(--cyan-bright);
}
/* The three follower photos beside the count: small, so they sit quietly beside the number. */
.followers-stat .followed-by-avatar {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.followed-by-avatar {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: 10px;
    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 2px #0a1d31;
}

.followed-by-avatar + .followed-by-avatar {
    margin-left: -7px;
}

/* ---------- Following page ---------- */

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

.following-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: opacity 0.2s ease;
}

/* Only the photo opens the host's page. */
.following-photo {
    display: block;
    flex: none;
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.following-photo:hover {
    transform: scale(1.05);
}

.following-tabs {
    margin: 14px 0 4px;
}

.tab-count {
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.75;
}

.following-text small {
    display: flex;
    align-items: center;
    gap: 8px;
}

.following-who {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.following-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    font-size: 20px;
    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 2px #0a1d31, 0 0 0 4px rgba(0, 168, 232, 0.6);
}

.following-text {
    display: flex;
    flex-direction: column;
    /* The same room between the @handle and the line under it as on comments (name to text). */
    gap: 3.4px;
    min-width: 0;
}

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

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

.following-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.following-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 10px;
}

@media (max-width: 720px) {
    .following-row {
        grid-template-columns: 1fr auto;
    }

    .following-status {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-wrap: wrap;
    }
}


/* Bio box sections, divided like the host rewards box but in cyan. */
.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);
}

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

.info-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.info-row dt {
    color: var(--muted);
}

.info-row dd {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.profile-link-out {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

/* ---------- Viewer mode (owner seeing their page as visitors do) ---------- */

.viewer-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--muted);
    background: rgba(0, 168, 232, 0.08);
    border: 1px solid rgba(0, 168, 232, 0.35);
    border-radius: 14px;
}

.viewer-banner > .icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--cyan-bright);
}

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

.viewer-banner .button {
    flex: none;
    margin-left: auto;
    padding: 8px 16px;
    font-size: 14px;
}

/* The eye (viewer mode), left of Edit Profile: a square in the same style as Edit Profile and Share Page beside it
   (the outlined .button-ghost) - built like them too (11px padding around 18px), so it's exactly as tall. */
.viewer-toggle {
    display: grid;
    flex: none;
    place-items: center;
    padding: 11px;
    color: var(--text);
    background: transparent;
    border: 1px solid rgba(0, 168, 232, 0.45);
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.viewer-toggle:hover,
.viewer-toggle:focus-visible {
    background: rgba(0, 168, 232, 0.12);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 168, 232, 0.35);
}
.viewer-toggle .icon {
    width: 18px;
    height: 18px;
}
/* Viewer mode's preview Follow button looks exactly like the real one, it just doesn't click. */
.box .follow-button:disabled {
    color: #2a1d02;
    background: linear-gradient(135deg, #f6d27a, #d9a531);
    border-color: transparent;
    opacity: 1;
    cursor: not-allowed;
}

/* ---------- Links in the About box: a row per site they stream on, then their own link ---------- */

.link-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-rows:empty {
    display: none;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.link-row:hover {
    background: rgba(0, 168, 232, 0.1);
    border-color: rgba(0, 168, 232, 0.45);
}

.link-row[hidden] {
    display: none;
}

.link-row-icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--cyan-bright);
}

.link-row-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

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

.link-row-text small {
    overflow: hidden;
    font-size: 12px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-live {
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--red);
    border-radius: 4px;
}

/* ---------- Become a Host (a Player's own creator link) ---------- */

.host-upsell {
    max-width: 920px;
    margin: 0 auto;
}

.host-upsell-who {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.host-upsell-who .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 26px;
    box-shadow: none;
}

.host-upsell-who strong {
    display: block;
    font-size: 18px;
}

.player-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.35);
    border-radius: 999px;
}

.host-upsell-title {
    margin: 6px 0 8px;
    font-size: 30px;
    font-weight: 800;
}

.host-upsell-lead {
    max-width: 640px;
}

.host-upsell-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 28px;
    margin-top: 22px;
}

.perk-list-player .icon {
    color: var(--cyan-bright);
}

.host-upsell-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

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

    .host-upsell-title {
        font-size: 24px;
    }
}

/* ---------- Share card pop-up (share.js) ---------- */

.modal-share {
    width: min(860px, 100%);
}

.share-layout {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 26px;
}

.share-preview canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(111, 211, 255, 0.18);
}

.share-side .pe-field {
    margin-top: 0;
}

.share-link {
    display: flex;
    gap: 8px;
}

.share-link input {
    flex: 1;
    min-width: 0;
}

.share-warning {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #f6d27a;
    background: rgba(233, 185, 73, 0.1);
    border: 1px solid rgba(233, 185, 73, 0.35);
    border-radius: 10px;
}

.share-warning[hidden] {
    display: none;
}

.share-warning code {
    font-size: 12px;
    color: var(--text);
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 6px;
}

.share-actions .button {
    justify-content: center;
}

.share-actions .button[hidden] {
    display: none;
}

.share-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 18px;
    font-size: 14px;
    color: var(--muted);
}

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

    .share-preview {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ---------- Schedule a stream: month calendar and time picker (creator.js) ---------- */

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

.when-picker {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
}

.cal,
.clock {
    padding: 14px;
    background: rgba(2, 12, 22, 0.6);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-head strong {
    font-size: 15px;
}

.cal-nav {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Glows on hover, like the LIVE page's arrows (.reel-step). */
.cal-nav:hover:not(:disabled) {
    color: #e6f7ff;
    border-color: var(--cyan);
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(0, 168, 232, 0.6);
}

.cal-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.cal-nav .nav-arrow {
    width: 16px;
    height: 16px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-weekday {
    padding-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: var(--muted);
}

.cal-day {
    position: relative;
    aspect-ratio: 1;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.cal-day:hover:not(:disabled) {
    background: rgba(0, 168, 232, 0.12);
}

.cal-day.is-today {
    border-color: rgba(0, 168, 232, 0.5);
}

.cal-day.is-picked {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
    border-color: transparent;
}

/* A day that already has one of your streams: a small gold dot. */
.cal-day.has-stream::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
}

.cal-day:disabled {
    color: rgba(143, 179, 201, 0.3);
    cursor: default;
}

.clock-face {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.clock-readout {
    font-size: 40px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ampm {
    display: flex;
    padding: 3px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.ampm button,
.clock-hours button,
.clock-minutes button {
    font: inherit;
    font-weight: 700;
    color: var(--text);
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.ampm button {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 999px;
}

.clock-label {
    display: block;
    margin: 4px 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.clock-hours {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.clock-minutes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.clock-hours button,
.clock-minutes button {
    padding: 8px 0;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.ampm button:hover:not(:disabled):not(.is-picked),
.clock-hours button:hover:not(:disabled):not(.is-picked),
.clock-minutes button:hover:not(:disabled):not(.is-picked) {
    border-color: rgba(0, 168, 232, 0.5);
}

.ampm button.is-picked,
.clock-hours button.is-picked,
.clock-minutes button.is-picked {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
}

.ampm button:disabled,
.clock-hours button:disabled,
.clock-minutes button:disabled {
    color: rgba(143, 179, 201, 0.3);
    cursor: default;
}

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

/* Schedule pop-up: Game, Country and Time zone side by side. */
.pe-field-row.schedule-fields {
    grid-template-columns: 1fr 1fr 1.3fr;
}

@media (max-width: 640px) {
    .pe-field-row.schedule-fields {
        grid-template-columns: 1fr;
    }
}

/* ---------- Schedule tab: its buttons ---------- */

/* A panel's buttons (e.g. Time converter and Schedule a stream) stay on the right, even when they wrap under
   the heading. */
.panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

/* ---------- Time converter pop-up (converter.js) ---------- */

.modal-converter {
    width: min(820px, 100%);
}

/* Country, time zone and + on one line. */
.converter-add {
    display: grid;
    grid-template-columns: 1fr 1.25fr auto;
    align-items: end;
    gap: 10px;
    margin-top: 16px;
}

.converter-add .pe-field {
    margin-top: 0;
}

/* The day on show, with steps either side; "Back to now" appears once you've moved away. */
.converter-day {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.converter-day strong {
    min-width: 150px;
    font-size: 15px;
    text-align: center;
}

.converter-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.35);
    border-radius: 999px;
    cursor: pointer;
}

.converter-now[hidden] {
    display: none;
}

.converter-now .icon {
    width: 14px;
    height: 14px;
}

.converter-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.cv-row {
    padding: 12px 14px 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color 0.15s ease;
}

.cv-row:hover {
    border-color: rgba(0, 168, 232, 0.3);
}

/* Your own row, a little brighter, with a cyan edge. */
.cv-row:first-child {
    background: linear-gradient(90deg, rgba(0, 168, 232, 0.1), rgba(0, 168, 232, 0.02));
    border-color: rgba(0, 168, 232, 0.3);
    box-shadow: inset 3px 0 0 var(--cyan);
}

.cv-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv-place {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cv-globe {
    flex: none;
    width: 26px;
    height: 26px;
    color: var(--cyan-bright);
}

.cv-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cv-city {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
}

.cv-tag {
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.16);
    border-radius: 999px;
}

/* The zone a stream was scheduled in (Convert on a stream): gold, like its countdown. */
.cv-tag-scheduled {
    color: var(--gold);
    background: var(--gold-soft);
}

.cv-meta {
    font-size: 12px;
    color: var(--muted);
}

.cv-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.cv-time {
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    white-space: nowrap;
}

.cv-date {
    font-size: 12px;
    color: var(--muted);
}

.cv-date.is-other-day {
    font-weight: 700;
    color: var(--gold);
}

.cv-remove,
.cv-remove-space {
    flex: none;
    width: 28px;
    height: 28px;
}

.cv-remove {
    display: grid;
    place-items: center;
    color: var(--muted);
    background: none;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cv-row:hover .cv-remove,
.cv-remove:focus-visible {
    opacity: 1;
}

.cv-remove:hover {
    color: #ff8fa3;
    border-color: rgba(255, 59, 92, 0.4);
}

.cv-remove .icon {
    width: 14px;
    height: 14px;
}

/* The day bar, in the site's colours: deep navy nights, a gold sunrise and sunset, ocean-blue daytime.
   Hour ticks every 1/24, stronger every 3 hours. */
.cv-track {
    position: relative;
    height: 16px;
    margin-top: 12px;
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(100% / 8 - 1px), rgba(255, 255, 255, 0.22) calc(100% / 8 - 1px) calc(100% / 8)),
        repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), rgba(255, 255, 255, 0.08) calc(100% / 24 - 1px) calc(100% / 24)),
        linear-gradient(90deg,
            #071a2e 0%, #071a2e 20%,
            #6b5a2a 25.5%, #b88c2c 27%,
            #0f6f9e 31%, #1690c6 50%, #0f6f9e 70%,
            #b88c2c 74%, #6b5a2a 76%,
            #071a2e 81%, #071a2e 100%);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(111, 211, 255, 0.14);
    cursor: pointer;
    touch-action: none;
}

.cv-track:focus-visible {
    outline: 2px solid var(--cyan-bright);
    outline-offset: 4px;
}

/* The handle: a glowing pearl. */
.cv-handle {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 35% 30%, #ffffff, #bfeeff 45%, #6fd3ff);
    border-radius: 50%;
    box-shadow: 0 0 0 3px #0a1d31, 0 0 0 5px var(--cyan), 0 0 18px rgba(0, 168, 232, 0.7);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: left 0.12s ease;
}

.cv-track.is-dragging .cv-handle,
.cv-track:active .cv-handle {
    transition: none;
    box-shadow: 0 0 0 3px #0a1d31, 0 0 0 5px var(--cyan-bright), 0 0 26px rgba(0, 168, 232, 0.9);
}

.cv-markers {
    position: absolute;
    inset: 0;
}

.cv-marker {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    padding: 0;
    background: var(--red);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 59, 92, 0.8);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.cv-hours {
    position: relative;
    height: 16px;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(143, 179, 201, 0.75);
}

.cv-hours span {
    position: absolute;
    transform: translateX(-50%);
}

.cv-hours span:first-child {
    transform: none;
}

.converter-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

.converter-legend[hidden] {
    display: none;
}

.converter-legend-dot {
    width: 9px;
    height: 9px;
    background: var(--red);
    border: 2px solid #fff;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .converter-add {
        grid-template-columns: 1fr auto;
    }

    .converter-add .pe-field:first-child {
        grid-column: 1 / -1;
    }

    .cv-city {
        font-size: 15px;
    }

    .cv-time {
        font-size: 19px;
    }

    .cv-hours span:nth-child(even) {
        display: none;
    }

    .converter-day strong {
        min-width: 0;
        flex: 1;
    }
}
/* ---------- About box: get-to-know answers ---------- */

.about-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    list-style: none;
}

.about-chips li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan-bright);
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 999px;
}

.about-chips .icon {
    width: 13px;
    height: 13px;
}

/* The @handle beside a nickname in a creator page header. */
/* A nickname, under the @handle in the About box: "AKA Jess". */
.aka {
    margin: -4px 0 8px;
    font-size: 14px;
    color: var(--muted);
}

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

/* A pinned post: a gold edge and a "Pinned" tag by the time (one per feed). */
.post.is-pinned {
    border-color: rgba(233, 185, 73, 0.4);
    box-shadow: inset 3px 0 0 var(--gold);
}

/* The Pinned bubble (top-right of the post): the same pill as the live countdown
   (.countdown in site.css). */
.pinned-tag {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    /* The countdown's line height too, so the two pills are exactly the same size. */
    line-height: normal;
    color: var(--gold);
    white-space: nowrap;
    background: var(--gold-soft);
    border: 1px solid rgba(233, 185, 73, 0.35);
    border-radius: 999px;
}

.pinned-tag .icon {
    width: 12px;
    height: 12px;
}

/* Its word: "pinned" - or "unpin" while you hover your own (below). Lowercase, like every bubble. */
.pin-label::before {
    content: "pinned";
}

/* Your own pinned post: the bubble is the button. Hovering turns it "Unpin" in Delete's red (.post-tool.is-danger). */
.pin-toggle {
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pin-toggle:hover,
.pin-toggle:focus-visible {
    /* Delete's weight too (.post-tool), not the bubble's extra bold. */
    font-weight: 600;
    color: #ff8fa3;
    background: transparent;
    border-color: rgba(255, 59, 92, 0.5);
}


/* Pin (a post not pinned yet): hovering it shows the gold it'll be once pinned. */
.post-tool.is-pin:hover,
.post-tool.is-pin:focus-visible {
    color: var(--gold);
    background: var(--gold-soft);
    border-color: rgba(233, 185, 73, 0.35);
}

.pin-toggle:hover .pin-label::before,
.pin-toggle:focus-visible .pin-label::before {
    content: "unpin";
}

/* Share pop-up: the QR style picker above the link. */
.share-side .share-style {
    margin: 0 0 16px;
}

/* ---------- Replies to comments (one level deep) ---------- */

/* Replies sit indented under their comment, with a faint thread line, a little smaller. */
/* A comment's replies, indented under it; every box - comment or reply - is 8px from the next, the same as
   between comments. */
.comment-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 13px;
    /* Reply photos start in line with the comment box above them: 13px + 23px = 36px, the comment's 28px photo
       and 8px gap. */
    padding-left: 23px;
}

/* A comment and its replies together, with the thread line down the middle of the comment's photo (14px into
   its row; the 2px line covers 13-15px). The line keeps the same 12px from every photo around it: it starts
   12px below the comment's photo (its 3px offset + 28px + 12px = 43px down), the reply photos start in line
   with the comment box above, and it stops 12px above the next comment's photo (that's 8px gap + 3px offset below the group, so
   the line ends 1px short of the group's bottom). With replies closed there's no line. */
.comment-thread {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-thread:has(.comment.is-reply)::before {
    content: "";
    position: absolute;
    top: 43px;
    bottom: 1px;
    left: 13px;
    width: 2px;
    background: rgba(0, 168, 232, 0.18);
}

.comment.is-reply .comment-avatar {
    width: 26px;
    height: 26px;
    margin-top: 4px;
    font-size: 11px;
}

/* "Reply" beside the time, like Delete. */
.comment-reply {
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
}

.comment-reply:hover {
    color: var(--cyan-bright);
}

/* "View 4 more comments" / "View 2 more replies" (and Hide…): a quiet link with an arrow that turns up
   when it's open. Under a comment it lines up with the reply text. */
.view-more {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-left: 46px;
    padding: 2px 0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan-bright);
    background: none;
    border: 0;
    cursor: pointer;
}

/* "View 2 replies" / "Hide replies" start where "View more comments" does, in line with the comment text:
   the replies are already 36px in (13px + 23px), so 10px more makes the same 46px. */
.comment-replies .view-more {
    margin-left: 10px;
}

.view-more .icon {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.view-more.is-open .icon {
    transform: rotate(180deg);
}

.view-more:hover {
    text-decoration: underline;
}

/* What a notification brought you to - a post, comment, reply or review - glows blue on arrival and fades out
   over 3 seconds. */
.is-arrived {
    animation: arrive-glow 3s ease-out forwards;
}

@keyframes arrive-glow {
    0%, 20% {
        box-shadow: 0 0 0 2px rgba(0, 168, 232, 0.9), 0 0 24px rgba(0, 168, 232, 0.55);
    }
    100% {
        box-shadow: 0 0 0 2px rgba(0, 168, 232, 0), 0 0 24px rgba(0, 168, 232, 0);
    }
}
/* The comment box answering a comment: "Replying to @user ×" above it. */
.comment-form.is-replying {
    flex-wrap: wrap;
}

/* The chip takes its own line; the box and Post share the next. */
.comment-form.is-replying input {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.replying-to {
    display: inline-flex;
    flex-basis: 100%;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

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

.replying-cancel {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.replying-cancel:hover {
    color: var(--text);
}

.replying-cancel .icon {
    width: 12px;
    height: 12px;
}

/* ---------- ⋯ menu, LIVE-alert bell, blocking and reporting (creator.js) ---------- */

/* ⋯ sits in the banner's top-right corner; its menu drops below it in the header menu's style. */
.profile-more {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
}

.profile-more-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #fff;
    background: rgba(2, 12, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-more-button:hover,
.profile-more-button[aria-expanded="true"] {
    background: rgba(2, 12, 22, 0.8);
    border-color: rgba(0, 168, 232, 0.55);
}

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

.profile-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 6px;
    background: #0a1d31;
    border: 1px solid var(--box-border);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    animation: fade-in 0.15s ease;
}

.profile-more-menu[hidden] {
    display: none;
}

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

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

.profile-more-menu button.is-danger:hover {
    color: #ff8fa3;
    background: rgba(255, 59, 92, 0.12);
}

.profile-more-menu .icon {
    flex: none;
    width: 17px;
    height: 17px;
}

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

/* The bell left of Follow. Off: outlined like the buttons beside it. Hover: it lights up in Unfollow's red gradient
   with the same glow. On: that red gradient, ringing, with a softer glow that brightens on hover. */
.alert-bell {
    display: grid;
    flex: none;
    place-items: center;
    /* A rounded square like the header's bell, as tall as the Follow button beside it (42px). */
    width: 42px;
    height: 42px;
    padding: 0;
    /* At rest, the same as Edit Profile / Share Page / Follow's outline buttons. */
    color: var(--text);
    background: transparent;
    border: 1px solid rgba(0, 168, 232, 0.45);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.alert-bell:hover:not(:disabled),
.alert-bell:focus-visible,
.alert-bell.is-on {
    color: #fff;
    background: linear-gradient(135deg, #ff5a76, #e0254a);
    border-color: transparent;
}

.alert-bell.is-on {
    box-shadow: 0 6px 18px rgba(255, 59, 92, 0.35);
}

.alert-bell:hover:not(:disabled),
.alert-bell:focus-visible {
    box-shadow: 0 0 26px rgba(255, 59, 92, 0.65);
}
.alert-bell.is-on .icon {
    animation: bell-ring 0.6s ease;
}

.alert-bell:disabled {
    cursor: default;
}

.alert-bell .icon {
    width: 20px;
    height: 20px;
    /* It swings from the top, like a real bell. */
    transform-origin: 50% 15%;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(14deg); }
    40% { transform: rotate(-12deg); }
    60% { transform: rotate(8deg); }
    80% { transform: rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .alert-bell.is-on .icon {
        animation: none;
    }
}

/* You've blocked them: the banner in red. */
.viewer-banner.is-blocked {
    background: rgba(255, 59, 92, 0.08);
    border-color: rgba(255, 59, 92, 0.4);
}

.viewer-banner.is-blocked > .icon {
    color: #ff8fa3;
}

/* They've blocked you: the page isn't there. */
.unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 60px 24px;
    text-align: center;
}

.unavailable > .icon {
    width: 44px;
    height: 44px;
    color: var(--muted);
}

.unavailable h1 {
    font-size: 24px;
}

/* Report: one reason from a list, then optional details. */
.modal-report {
    width: min(520px, 100%);
}

.modal-report textarea {
    resize: none;
}

.modal-report .pe-group-label {
    margin-top: 0;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-reason {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.report-reason:hover {
    border-color: rgba(0, 168, 232, 0.45);
}

.report-reason:has(input:checked) {
    background: rgba(0, 168, 232, 0.12);
    border-color: rgba(0, 168, 232, 0.6);
}

.report-reason input,
.report-also-block input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--cyan);
}

.report-also-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 14px;
    cursor: pointer;
}

/* ---------- Loading dots (creator.js): more posts on the way, or comments and replies opening ---------- */

.loading-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--cyan-bright);
    border-radius: 50%;
    animation: dot-bounce 1s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

/* Under the feed, centred. */
.feed-loader {
    justify-content: center;
    padding: 18px 0 8px;
}

/* In place of "View 4 more comments", lined up with it. */
.comments-loader {
    align-self: flex-start;
    gap: 4px;
    height: 20px;
    margin-left: 46px;
}

.comment-replies .comments-loader {
    margin-left: 10px;
}

.comments-loader span {
    width: 6px;
    height: 6px;
}

@keyframes dot-bounce {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .loading-dots span {
        animation: dot-fade 1s ease-in-out infinite;
    }

    @keyframes dot-fade {
        0%, 100% { opacity: 0.35; }
        50% { opacity: 1; }
    }
}

/* ---------- Schedule tab: the week at a glance (creator.js) ---------- */

/* The same panel as the Schedule a stream calendar (.cal), a week wide. */
.week {
    margin-bottom: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.week-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.week-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.week-title strong {
    font-size: 15px;
}

.week-title .text-link {
    font-size: 12px;
}

.week-title .text-link[hidden] {
    display: none;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

/* A day: a tile of its own - its name, a big date, then a time per stream, coloured by how it went. Today glows
   blue; days gone by are dimmed. */
.week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 116px;
    padding: 10px 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.week-day:hover {
    border-color: rgba(0, 168, 232, 0.4);
}

.week-day.is-today {
    background: linear-gradient(180deg, rgba(0, 168, 232, 0.16), rgba(0, 168, 232, 0.05));
    border-color: rgba(0, 168, 232, 0.6);
    box-shadow: 0 0 18px rgba(0, 168, 232, 0.25);
}

.week-day.is-past {
    background: rgba(255, 255, 255, 0.015);
}

.week-day.is-past .week-weekday {
    opacity: 0.7;
}

/* Switching weeks: the calendar and the list slide in from the side you're heading to. */
.slide-from-right {
    animation: week-slide-right 0.32s ease-out;
}

.slide-from-left {
    animation: week-slide-left 0.32s ease-out;
}

@keyframes week-slide-right {
    from { opacity: 0; transform: translateX(36px); }
}

@keyframes week-slide-left {
    from { opacity: 0; transform: translateX(-36px); }
}

@media (prefers-reduced-motion: reduce) {
    .slide-from-right,
    .slide-from-left {
        animation: none;
    }
}

.week-weekday {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

.week-date {
    font-size: 16px;
    font-weight: 800;
}

.week-day.is-past .week-date {
    color: var(--muted);
}

.week-marks {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    width: 100%;
    margin-top: 2px;
}

.week-mark {
    padding: 3px 4px;
    overflow: hidden;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

/* A time takes you to its stream in the list. */
.week-mark:hover,
.week-mark:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(0, 168, 232, 0.35);
}

/* How a stream went: a pill like the countdown, in a colour per outcome (week marks use the same colours). */
.status-badge {
    flex: none;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 999px;
}

/* Two together (e.g. Early Start + Completed), side by side. */
.status-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.st-good { color: #4fe0a0; background: rgba(46, 204, 138, 0.12); border-color: rgba(46, 204, 138, 0.4); }
.st-warn { color: #ffb84d; background: rgba(255, 168, 51, 0.12); border-color: rgba(255, 168, 51, 0.4); }
.st-bad { color: #ff8fa3; background: rgba(255, 59, 92, 0.12); border-color: rgba(255, 59, 92, 0.4); }
.st-quiet { color: var(--muted); background: rgba(255, 255, 255, 0.05); border-color: var(--line); }
.st-gold { color: var(--gold); background: var(--gold-soft); border-color: rgba(233, 185, 73, 0.35); }
.st-cyan { color: var(--cyan-bright); background: rgba(0, 168, 232, 0.1); border-color: rgba(0, 168, 232, 0.35); }
.st-live { color: #fff; background: var(--red); border-color: var(--red); }

/* A cancelled stream reads as struck through in the list. */
.slot.is-cancelled .upcoming-text strong,
.slot.is-late_cancel .upcoming-text strong {
    text-decoration: line-through;
    text-decoration-color: rgba(143, 179, 201, 0.6);
}

/* Phones: the week stays seven across, just tighter, with dots instead of times. */
@media (max-width: 560px) {
    .week {
        padding: 10px 8px;
    }

    .week-grid {
        gap: 2px;
    }

    .week-day {
        min-height: 70px;
        padding: 6px 2px;
    }

    .week-marks {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .week-mark {
        width: 8px;
        height: 8px;
        padding: 0;
        font-size: 0;
        background: currentColor;
        border-radius: 50%;
    }
}

/* Editing your own comment: its text in a box, with Cancel and Save beside it. */
.comment-editor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.comment-editor input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: rgba(2, 12, 22, 0.5);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.comment-editor input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}

.comment-editor .comment-reply {
    color: var(--cyan-bright);
}

/* A reply answering another reply: "@A ↪ @B", the answered name a little quieter. */
.reply-to {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.reply-to-arrow {
    display: inline-grid;
    place-items: center;
}

/* The curved arrow, about the height of the names' capitals. */
.reply-to-arrow .icon {
    width: 13px;
    height: 13px;
}

.reply-to .name-link {
    color: var(--muted);
}

.reply-to .name-link:hover {
    color: var(--cyan-bright);
}

/* "View 7 more replies" and "Hide" side by side, where the thread's single link would be. */
.thread-links {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 10px;
}

.comment-replies .thread-links .view-more {
    margin-left: 0;
}

/* The header's Next LIVE line while they're on (creator.js), and its Watch LIVE button once they're off. */
.next-live[hidden],
[data-watch-live][hidden] {
    display: none;
}

/* A stat's small line that links somewhere (e.g. "12 reviews"): quiet until hovered. */
.stat-link {
    color: inherit;
    transition: color 0.15s ease;
}

.stat-link:hover,
.stat-link:focus-visible {
    color: var(--cyan-bright);
}
