:root {
    --bg1: #4834d4;
    --bg2: #686de0;
    --ink: #0b0f1a;
    --paper: #f0f4f8;
    --muted: #aab3c5;
    --shadow: 10px 10px 0 rgba(0, 0, 0, 0.55);

    --yellow: #ffd32a;
    --green: #2ed573;
    --purple: #7d5fff;
    --blue: #70a1ff;
    --red: #ff7070;
    --ghost: rgba(255, 255, 255, 0.12);

    --tierS: #ff4757;
    --tierA: #ffa502;
    --tierB: #eccc68;
    --tierC: #7bed9f;
    --tierD: #70a1ff;
    --tierF: #535c68;
    
    --space-dark: #ffffff;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    min-height: 100svh;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--paper);
    background-color: #f7db72;
    /* The Starfield 
    background-image:
        radial-gradient(1px 1px at 15% 15%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 85% 20%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 50% 45%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 20% 85%, rgba(255, 255, 255, 0.5), transparent),*/
        /* Base subtle glow 
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tierA) 20%, transparent) 0%, transparent 60%);*/
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Pseudo-element shared setup 
body::before,
body::after {
    content: "";
    position: fixed;
    inset: -40vmax;
    /* Even larger to ensure corners never peek during extreme rotations 
    pointer-events: none;
    z-index: -1;
    will-change: transform, filter, opacity;
}
*/
/* 3. LAYER 1: CINEMATIC AURORA SWIRL
  Uses color-dodge for intense, burning highlights where colors meet.

body::before {
    background: conic-gradient(from 180deg at 50% 50%,
            var(--tierS),
            var(--tierA),
            var(--tierB),
            var(--tierC),
            var(--tierD),
            var(--tierF),
            var(--tierS));
    filter: blur(80px) saturate(1.8) contrast(1.2);
    opacity: 0.45;
    mix-blend-mode: color-dodge;
    /* Upgraded from screen for a fiery, luminous effect 
    animation:
        auroraSpin 31s linear infinite,
        auroraPulse 17s ease-in-out infinite alternate;
}
*/
/* 4. LAYER 2: DRIFTING NEBULA CLOUDS + NOISE TEXTURE
  Added a subtle SVG fractal noise overlay directly into the background 
  to give it a hyper-realistic, grainy cosmic texture.

body::after {
    background:
        /* Subtle Grain/Noise overlay 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E"),
        /* Drifting color blobs 
        radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--tierS) 80%, transparent) 0 35%, transparent 60%),
        radial-gradient(circle at 90% 25%, color-mix(in srgb, var(--tierB) 75%, transparent) 0 32%, transparent 62%),
        radial-gradient(circle at 35% 90%, color-mix(in srgb, var(--tierC) 80%, transparent) 0 30%, transparent 60%),
        radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--tierA) 65%, transparent) 0 28%, transparent 62%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 25%, transparent 50%);

    filter: blur(45px) saturate(1.4);
    opacity: 0.7;
    mix-blend-mode: hard-light;
    /* Interacts beautifully with the color-dodge layer below 
    animation:
        nebulaDrift 23s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate,
        hueFlow2 29s ease-in-out infinite alternate;
}
*/
/* 5. ANIMATIONS 
  Tweaked easing and transforms for a more fluid, 3D-feeling drift.
*/
@keyframes auroraSpin {
    0% {
        transform: rotate(0deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1.1);
    }
}

@keyframes auroraPulse {
    0% {
        filter: blur(80px) saturate(1.8) contrast(1.2) hue-rotate(0deg);
        opacity: 0.45;
    }

    100% {
        filter: blur(95px) saturate(2.0) contrast(1.4) hue-rotate(40deg);
        opacity: 0.65;
    }
}

@keyframes nebulaDrift {
    0% {
        transform: translate3d(-3%, -2%, 0) scale(1.05) rotate(-5deg);
    }

    50% {
        transform: translate3d(2%, -1%, 0) scale(1.15) rotate(0deg);
    }

    100% {
        transform: translate3d(4%, 3%, 0) scale(1.08) rotate(5deg);
    }
}

@keyframes hueFlow2 {
    0% {
        filter: blur(45px) saturate(1.4) hue-rotate(0deg);
    }

    50% {
        filter: blur(55px) saturate(1.6) hue-rotate(90deg);
    }

    100% {
        filter: blur(45px) saturate(1.3) hue-rotate(180deg);
    }
}

/* 6. ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {

    body::before,
    body::after {
        animation: none;
        /* Set a static, beautiful default for users who prefer no motion */
        transform: scale(1.1);
        opacity: 0.5;
    }
}
.topbar{display: flex;padding: 5px;justify-content: space-between;}
.logoMark {
    width: 44px;
    height: 44px;
    border: 4px solid #000;
    background: var(--paper);
    color: #000;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 1);
}

.brandTitle {
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    font-size: 24px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
}

.brandSub {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase
}

.tierT {
    background: linear-gradient(90deg, var(--tierS), var(--tierA), var(--tierB), var(--tierC), var(--tierD), var(--tierF));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.roomPill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 10px;
}

.pillLabel {
    font-size: 10px;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
}

.pillCode {
    font-weight: 1000;
    font-size: 30px;
    letter-spacing: 3px
}

.pillBtn {
    border: 3px solid #000;
    background: var(--yellow);
    color: #000;
    font-weight: 900;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.2);
}

.pillBtn:active {
    transform: translate(2px, 2px);
    box-shadow: none
}

.main {
    flex: 1;
    padding: 16px;
    display: flex;
    justify-content: center
}

.view {
    width: 100%;
    max-width: 980px
}

.panel {
    background: var(--paper);
    color: #000;
    border: 5px solid #000;
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.bigPanel {
    max-width: 680px;
    margin: 12px auto
}

.panelHeader {
    margin-bottom: 14px
}

.panelHeader.compact {
    margin-bottom: 10px
}

.panelKicker {
    display: inline-block;
    background: #000;
    color: var(--yellow);
    font-weight: 1000;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
}

.panelTitle {
    margin: 10px 0 6px;
    font-size: 28px;
    font-weight: 1000;
    text-transform: uppercase
}

.panelDesc {
    margin: 0;
    color: #3b4254;
    font-weight: 700
}

.heroTitle {
    margin: 10px 0 6px;
    font-size: 52px;
    line-height: 1;
    font-weight: 1000;
    text-transform: uppercase;
    text-align: left;
}

.heroDesc {
    margin: 0;
    color: #3b4254;
    font-weight: 800
}

.formRow {
    margin-top: 14px
}

.label {
    display: block;
    font-weight: 1000;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #56607a;
    margin-bottom: 6px
}

.input {
    width: 100%;
    border: 5px solid #000;
    border-radius: 18px;
    padding: 12px 14px;
    font-weight: 1000;
    text-transform: uppercase;
    outline: none;
    background: #f3f5fb;
}

.input:focus {
    background: #fff6c7
}

.inputBig {
    font-size: 22px;
    text-align: center
}

.codeInput {
    letter-spacing: 6px
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px
}

@media(min-width:720px) {
    .grid2 {
        grid-template-columns: 1fr 1fr;
    }
}

.joinBox {
    background: #f3f5fb;
    border: 3px dashed #9aa6c4;
    border-radius: 22px;
    padding: 12px
}

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

.btn {
    border: 5px solid #000;
    border-radius: 22px;
    padding: 12px 14px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 1);
    transition: transform 0.06s ease;
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: none
}

.btnBig {
    width: 100%;
    font-size: 18px
}

.btnYellow {
    background: var(--yellow);
    color: #000
}

.btnGreen {
    background: var(--green);
    color: #fff
}

.btnPurple {
    background: var(--purple);
    color: #fff
}

.btnBlue {
    background: var(--blue);
    color: #fff
}

.btnRed {
    background: var(--red);
    color: #fff
}
.btnWhite {
    background: #fff;
    color: #000
}

.btnGhost {
    background: var(--ghost);
    color: #000
}

.hint {
    margin-top: 8px;
    font-weight: 900;
    color: #56607a;
    font-size: 12px
}

.statusLine {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
    background: #0b0f1a;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.statusDot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4757
}

.statusText {
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px
}

.playersBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 10px 0 14px
}

.playersCount {
    font-weight: 1000;
    text-transform: uppercase
}

.youAre {
    font-weight: 900;
    color: #3b4254
}

.hostBadge {
    display: inline-block;
    margin-left: 8px;
    background: #000;
    color: var(--yellow);
    font-weight: 1000;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
}

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

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

.playerCard {
    background: #fff;
    border: 4px solid #000;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar {
    font-size: 34px
}

.playerName {
    width: 100%;
    text-align: center;
    background: #000;
    color: #fff;
    border-radius: 12px;
    padding: 6px 8px;
    font-weight: 1000;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actionsRow {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap
}

.actionsRow .btn {
    flex: 1
}

.smallNote {
    margin-top: 10px;
    color: #56607a;
    font-weight: 900;
    font-size: 12px
}

.presetGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px
}

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

.presetBtn {
    border: 4px solid #000;
    border-radius: 16px;
    padding: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    background: #f3f5fb;
    cursor: pointer;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.presetBtn:active {
    transform: translate(3px, 3px);
    box-shadow: none
}

.divider {
    height: 4px;
    background: #000000;
    margin: 18px 0;
}

.submitTop {
    display: flex;
    gap: 10px;
    margin: 8px 0 14px
}

.chip {
    background: #000;
    color: #fff;
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 1000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.errorLine {
    margin-top: 10px;
    background: #ffe3e3;
    border: 3px solid #ff4757;
    border-radius: 16px;
    padding: 10px 12px;
    font-weight: 1000;
    color: #a10f1f;
}

.listBox {
    background: #f3f5fb;
    border-radius: 18px;
    padding: 12px;
    border: 3px solid #e2e7f7
}

.listTitle {
    font-weight: 1000;
    text-transform: uppercase;
    color: #56607a;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 8px
}

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

.miniItem {
    background: #fff;
    border: 2px solid #d7def3;
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.predictList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px
}

.predictCard {
    background: #fff;
    border: 4px solid #000;
    border-radius: 18px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
    padding: 12px;
}

.predictText {
    font-weight: 1000;
    text-transform: uppercase;
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px
}

.tierBtns {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px
}

.tierBtn {
    border: 3px solid #000;
    border-radius: 14px;
    height: 52px;
    font-weight: 1000;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.tierBtn:active {
    transform: translate(2px, 2px);
    box-shadow: none
}

.stage {
    width: 100%;
    max-width: 980px;
    margin: 0 auto
}

.progressWrap {
    height: 14px;
    background: #000;
    border-radius: 999px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2)
}

.progressBar {
    height: 100%;
    width: 0%;
    background: var(--yellow);
    transition: width 0.25s ease
}

.stageCard {
    position: relative;
    background: #fff;
    color: #000;
    border: 6px solid #000;
    border-radius: 26px;
    box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.5);
    padding: 35px 18px;
    margin-top: 14px;
    margin-bottom: 32px;
    text-align: center;
}

.stageMeta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px
}

.bigItem {
    font-weight: 1000;
    text-transform: uppercase;
    font-size: 36px;
    line-height: 1.1;
    text-align: center;
    padding: 14px 10px;
}

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

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

.tierChoice {
    height: 70px;
    border: 5px solid #000;
    border-radius: 18px;
    font-weight: 1000;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
}

.tierChoice:active {
    transform: translate(4px, 4px);
    box-shadow: none
}

.tierChoice.off {
    opacity: 0.4;
    background: #fff;
    color: #000
}

.tierChoice.sel {
    transform: translateY(-6px)
}

.revealBadge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
}

.revealTier {
    width: 140px;
    height: 140px;
    border-radius: 30px;
    border: 8px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 95px;
    font-weight: 1000;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
    padding-bottom: 11px;
}

.miniPanel {
    margin-top: 14px
}

.revealGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

@media(min-width:720px) {
    .revealGrid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.revealTile {
    background: #f3f5fb;
    border: 3px solid #e2e7f7;
    border-radius: 18px;
    padding: 12px;
}

.tileLabel {
    font-weight: 1000;
    text-transform: uppercase;
    font-size: 12px;
    color: #56607a;
    letter-spacing: 1px
}

.tileValue {
    font-weight: 1000;
    text-transform: uppercase;
    margin-top: 6px
}

.bottomRow {
    margin-top: 18px
}

.footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}

.toastHost {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    z-index: 1000;
}

.toast {
    pointer-events: none;
    background: #000;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 10px 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
    max-width: 820px;
    width: calc(100% - 32px);
}

.podium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

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

.podiumCard {
    background: #fff;
    border: 4px solid #000;
    border-radius: 18px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
    padding: 12px;
    text-align: center;
}

.podiumName {
    font-weight: 1000;
    text-transform: uppercase
}

.podiumScore {
    margin-top: 8px;
    display: inline-block;
    background: #000;
    color: var(--yellow);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 1000
}

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

.tierRow {
    background: #0b0f1a;
    border: 4px solid #000;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    min-height: 74px;
}

.tierLabel {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    font-size: 42px;
    border-right: 4px solid #000;
}

.tierItems {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    align-items: center;
}

.tierPill {
    background: #fff;
    border: 3px solid #000;
    border-radius: 14px;
    padding: 8px 10px;
    font-weight: 1000;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.predictStatusPanel {
    margin: 0 0 14px 0;
    padding: 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #000;
    border-radius: 14px;
}

.psHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.psTitle {
    font-weight: 900;
    letter-spacing: 0.2px;
}

.psMeta {
    opacity: 0.85;
    font-weight: 700;
}

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

.psRow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
}

.psRow.isDone {
    background: rgba(46, 213, 115, 0.10);
    border-color: rgba(46, 213, 115, 0.25);
}

.psRow.isWaiting {
    background: rgba(255, 71, 87, 0.08);
    border-color: rgba(255, 71, 87, 0.22);
}

.psAv {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 18px;
    flex: 0 0 auto;
}

.psMain {
    flex: 1 1 auto;
    min-width: 0;
}

.psName {
    font-weight: 900;
    line-height: 1.1;
}

.psSub {
    opacity: 0.85;
    font-size: 13px;
    margin-top: 2px;
}

.psMissing {
    opacity: 0.85;
    font-size: 12px;
    margin-top: 6px;
}

.psBadge {
    font-weight: 900;
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    flex: 0 0 auto;
}

[hidden] {
    display: none !important;
}

        /* Overlay to darken the background */
        .modalOverlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 9999;
            display: grid;
            justify-content: center;
            align-items: center;
            padding: 1rem;
            opacity: 1;
            transition: opacity 0.3s ease;
            overflow: auto;
        }
    
        /* Hide logic for the modal */
        .modalOverlay[hidden] {
            display: none !important;
            opacity: 0;
        }
    
        /* The modal box itself, reusing your panel styling but overriding width */
        .modalPanel {
            max-width: 500px;
            width: 100%;
            position: relative;
            animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }
    
        @keyframes popIn {
            0% {
                transform: scale(0.8);
                opacity: 0;
            }
    
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }
    
        /* Rules list styling */
        .rulesList {
            list-style: none;
            padding: 0;
            margin: 1.5rem 0;
            text-align: left;
        }
    
        .rulesList li {
            background: rgba(0, 0, 0, 0.03);
            margin-bottom: 0.75rem;
            padding: 1rem;
            border-radius: 8px;
            display: flex;
            gap: 12px;
            align-items: flex-start;
            line-height: 1.4;
        }
    
        .stepNumber {
            background: #333;
            /* Dark pill */
            color: #fff;
            font-weight: bold;
            border-radius: 50%;
            min-width: 24px;
            height: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.85rem;
            flex-shrink: 0;
        }
    
        .stepText strong {
            display: block;
            margin-bottom: 2px;
            font-size: 1.05rem;
        }
    
        /* Button to open the rules */
        .rulesBtnToggle {
            background: transparent;
            border: 2px solid #ccc;
            color: #fff;
            border-radius: 50px;
            padding: 4px 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            margin-left: auto;
            /* Pushes it to the right if in flex container */
        }
    
        .rulesBtnToggle:hover {
            background: #ccc;
            color: #000;
        }
    
        /* Predict confidence row */
        .confBtns {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
    
        .confBtn {
            appearance: none;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.06);
            color: rgba(255, 255, 255, 0.92);
            border-radius: 999px;
            padding: 8px 12px;
            font-weight: 900;
            font-size: 12px;
            letter-spacing: .3px;
            cursor: pointer;
            transition: transform .12s ease, border-color .12s ease, background .12s ease, opacity .12s ease;
        }
    
        .confBtn:hover {
            transform: translateY(-1px);
            border-color: rgba(255, 255, 255, 0.25);
        }
    
        .confBtn.isSel {
            background: rgba(255, 255, 255, 0.92);
            color: #111;
            border-color: rgba(255, 255, 255, 0.85);
        }
    
        .predictBreakdown {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
    
        .pbPill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.14);
            font-size: 12px;
            font-weight: 900;
            line-height: 1;
        }
    
        .pbTier {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 28px;
            height: 24px;
            padding: 0 8px;
            border-radius: 999px;
            border: 2px solid rgba(0, 0, 0, 0.35);
        }
    
        .pbPts {
            opacity: .9;
            font-weight: 1000;
        }
    
        .pbDim {
            opacity: .75;
            font-weight: 900;
        }
    
        .predictStatusPanel {
            margin-bottom: 14px;
        }
    
        .psHead {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }
    
        .psTitle {
            font-weight: 1000;
            letter-spacing: .6px;
            text-transform: uppercase;
            font-size: 12px;
            opacity: .9;
        }
    
        .psMeta {
            font-size: 12px;
            opacity: .8;
        }
    
        .psList {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
    
        .psRow {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 10px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }
    
        .psRow.isDone {
            border-color: rgba(123, 237, 159, 0.55);
        }
    
        .psRow.isWaiting {
            border-color: rgba(255, 165, 2, 0.55);
        }
    
        .psAv {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.22);
            border: 1px solid rgba(255, 255, 255, 0.12);
            font-size: 18px;
            flex: 0 0 auto;
        }
    
        .psMain {
            flex: 1;
            min-width: 0;
        }
    
        .psName {
            font-weight: 1000;
            font-size: 14px;
        }
    
        .psSub {
            font-size: 12px;
            opacity: .85;
            margin-top: 2px;
        }
    
        .psMissing {
            margin-top: 6px;
            font-size: 12px;
            opacity: .8;
        }
    
        .psBadge {
            font-weight: 1000;
            font-size: 12px;
            opacity: .9;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.22);
            border: 1px solid rgba(255, 255, 255, 0.12);
            flex: 0 0 auto;
        }
    
    
        /* The main row container */
        .pbPill {
            display: flex;
            align-items: center;
            justify-content: space-between;
            /* Pushes the 3 groups apart */
            background: #f8f9fa;
            /* Light background to make the pill stand out */
            padding: 10px 16px;
            border-radius: 8px;
            margin-bottom: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            font-family: sans-serif;
        }
    
        /* 1. Left column: Player */
        .pbPlayer {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            /* Takes up equal space */
            font-weight: 700;
            font-size: 1rem;
        }
    
        /* 2. Middle column: Prediction */
        .pbPrediction {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 1.5;
            /* Gives the middle slightly more room if needed */
        }
    
        /* The Tier Box */
        .pbTier {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 4px;
            font-weight: 900;
            font-size: 0.9rem;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }
    
        /* The Multiplier Text */
        .pbDim {
            font-size: 0.85rem;
            color: #666;
            font-weight: 600;
            background: #e2e8f0;
            padding: 4px 8px;
            border-radius: 12px;
        }
    
        /* 3. Right column: Points */
        .pbPts {
            flex: 1;
            text-align: right;
            /* Anchors the points to the far right */
            font-weight: 900;
            font-size: 1.1rem;
            color: #2ecc71;
            /* A nice "success" green for points earned */
        }
    
        /* --- Mobile Adjustments --- */
        @media (max-width: 480px) {
            .pbPill {
                padding: 8px 12px;
            }
    
            .pbPlayer {
                font-size: 0.9rem;
            }
    
            .pbDim {
                font-size: 0.75rem;
                padding: 3px 6px;
            }
    
            .pbPts {
                font-size: 1rem;
            }
        }
#copyRoomBtn{display:none;}