:root {
    color-scheme: dark;
    --ink: #f8fbff;
    --muted: #b8c2d9;
    --panel: rgba(8, 10, 30, .78);
    --strong: rgba(8, 10, 30, .95);
    --line: rgba(255, 255, 255, .18);
    --pink: #ff4fd8;
    --cyan: #20e3ff;
    --yellow: #ffe552;
    --mint: #39ffc8;
    --shadow: 0 18px 60px rgba(4, 5, 20, .34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(255,79,216,.56), transparent 34%),
        radial-gradient(circle at 92% 20%, rgba(32,227,255,.45), transparent 35%),
        radial-gradient(circle at 55% 100%, rgba(255,176,46,.45), transparent 42%),
        #101228;
    background-size: 140% 140%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    animation: rave-background 14s ease-in-out infinite alternate;
}
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}
@keyframes rave-background {
    from { background-position: 0% 30%; }
    to { background-position: 100% 70%; }
}
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}
.menu-button {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(8,10,30,.78);
    box-shadow: 0 10px 35px rgba(0,0,0,.24);
    backdrop-filter: blur(16px);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform .2s, border-color .2s, background .2s;
}
.menu-button:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    background: rgba(8,10,30,.94);
}
.menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: var(--cyan);
    content: "";
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(340px, 88vw);
    padding: 28px;
    border-right: 1px solid var(--line);
    background: var(--strong);
    box-shadow: 20px 0 70px rgba(0,0,0,.45);
    transform: translateX(-105%);
    transition: transform .32s cubic-bezier(.2,.85,.3,1);
    backdrop-filter: blur(24px);
}
body.menu-open { overflow: hidden; }
body.menu-open .sidebar { transform: translateX(0); }
.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}
.sidebar-kicker {
    margin: 0 0 4px;
    color: var(--cyan);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.sidebar h2 { margin: 0; font-size: 1.55rem; }
.close-button {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: white;
    background: rgba(255,255,255,.06);
    cursor: pointer;
    font-size: 1.45rem;
}
.page-nav { display: grid; gap: 10px; }
.page-nav a {
    display: grid;
    grid-template-columns: 43px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--ink);
    text-decoration: none;
    transition: transform .18s, background .18s, border-color .18s;
}
.page-nav a:hover {
    transform: translateX(5px);
    border-color: var(--line);
    background: rgba(255,255,255,.07);
}
.nav-emoji {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 13px;
    background: rgba(32,227,255,.12);
    font-size: 1.25rem;
}
.nav-copy strong, .nav-copy span { display: block; }
.nav-copy span { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.nav-arrow { color: var(--cyan); font-size: 1.2rem; }
.backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    visibility: hidden;
    border: 0;
    opacity: 0;
    background: rgba(1,3,16,.66);
    backdrop-filter: blur(3px);
    cursor: pointer;
    transition: opacity .25s, visibility .25s;
}
body.menu-open .backdrop { visibility: visible; opacity: 1; }
.site-shell {
    width: min(1500px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0 140px;
}
.hero {
    max-width: 820px;
    margin: 20px auto 34px;
    text-align: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 12px;
    border: 1px solid rgba(32,227,255,.3);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(32,227,255,.08);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 14px var(--mint);
}
h1 {
    margin: 0;
    font-size: clamp(3.1rem, 8vw, 6.8rem);
    line-height: .92;
    letter-spacing: -.065em;
    text-shadow: 0 0 36px rgba(255,255,255,.22);
}
h1 span {
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan));
    background-clip: text;
    -webkit-background-clip: text;
}
.hero-copy {
    max-width: 580px;
    margin: 20px auto 0;
    color: #dce4f5;
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.65;
}
.primary-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.primary-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 13px;
    color: var(--ink);
    background: rgba(8,10,30,.58);
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
    text-decoration: none;
    font-weight: 850;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.primary-links a:first-child { border-color: rgba(255,79,216,.48); }
.primary-links a:nth-child(2) { border-color: rgba(255,229,82,.48); }
.primary-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,.28);
}
.dashboard {
    display: grid;
    grid-template-columns: minmax(280px,1.05fr) minmax(280px,.9fr) minmax(300px,1.05fr);
    gap: 18px;
    align-items: start;
}
.panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 20px;
    border-bottom: 1px solid var(--line);
}
.panel-title-wrap { display: flex; align-items: center; gap: 11px; }
.panel-icon {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 11px;
    background: rgba(255,255,255,.08);
    font-size: 1.08rem;
}
.panel h2 { margin: 0; font-size: 1.02rem; letter-spacing: -.01em; }
.live-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mint);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.live-label::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    content: "";
}
.news-list { display: grid; }
.news-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    min-height: 100px;
    padding: 18px 20px;
    color: var(--ink);
    text-decoration: none;
    transition: background .18s;
}
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item:hover { background: rgba(255,255,255,.065); }
.news-rank {
    color: var(--pink);
    font-size: 1.3rem;
    font-weight: 950;
    line-height: 1.1;
}
.news-item h3 {
    margin: 0;
    font-size: .96rem;
    line-height: 1.42;
    letter-spacing: -.01em;
}
.news-meta { margin: 8px 0 0; color: var(--muted); font-size: .74rem; }
.skeleton-line {
    height: 12px;
    margin: 5px 0 9px;
    border-radius: 99px;
    background: linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.15),rgba(255,255,255,.05));
    background-size: 200% 100%;
    animation: loading 1.4s infinite;
}
.skeleton-line.short { width: 58%; }
@keyframes loading { to { background-position: -200% 0; } }
.joke-panel { position: relative; min-height: 414px; }
.joke-panel::after {
    position: absolute;
    right: -45px;
    bottom: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,229,82,.14);
    filter: blur(8px);
    content: "";
}
.joke-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 334px;
    flex-direction: column;
    justify-content: center;
    padding: 30px 25px 34px;
    text-align: center;
}
.quote-mark {
    margin-bottom: 8px;
    color: var(--yellow);
    font-family: Georgia, serif;
    font-size: 4.8rem;
    line-height: .6;
    opacity: .85;
}
#jokeSetup {
    margin: 0;
    font-size: clamp(1.2rem,2.3vw,1.48rem);
    font-weight: 800;
    line-height: 1.42;
    letter-spacing: -.02em;
}
#jokePunchline {
    margin: 20px 0 0;
    color: var(--yellow);
    font-size: 1.07rem;
    font-weight: 750;
    line-height: 1.5;
}
.joke-date { margin: 28px 0 0; color: var(--muted); font-size: .76rem; }
.markets { display: grid; gap: 12px; padding: 14px; }
.market-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: #111827;
}
.market-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px 0;
    color: #f4f7ff;
    font-size: .76rem;
    font-weight: 850;
}
.market-label span { color: #8e9bb7; font-weight: 650; }
.market-widget { height: 164px; }
tv-mini-chart { display: block; width: 100%; height: 100%; }
.panel-note {
    margin: 0;
    padding: 0 18px 15px;
    color: var(--muted);
    font-size: .69rem;
    line-height: 1.4;
}
.panel-note a { color: #a8eaff; }
.party-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px auto 0;
}
.party-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 17px;
    border: 1px solid rgba(255,229,82,.45);
    border-radius: 999px;
    color: var(--yellow);
    background: rgba(8,10,30,.72);
    box-shadow: 0 8px 26px rgba(0,0,0,.2);
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    transition: transform .18s, background .18s, box-shadow .18s;
}
.party-button:hover {
    transform: translateY(-2px);
    background: rgba(255,229,82,.13);
    box-shadow: 0 10px 30px rgba(255,229,82,.16);
}
.party-button[aria-pressed="true"] {
    color: #091119;
    background: var(--yellow);
    box-shadow: 0 0 25px rgba(255,229,82,.65);
}
.extreme-button {
    border-color: rgba(255,79,216,.55);
    color: #ff9deb;
}
.extreme-button:hover {
    background: rgba(255,79,216,.15);
    box-shadow: 0 10px 30px rgba(255,79,216,.2);
}
.extreme-button[aria-pressed="true"] {
    color: white;
    background: linear-gradient(90deg, #ff006e, #8b5cf6, #00d9ff);
    box-shadow: 0 0 32px rgba(255,0,196,.8);
}
.motion-note {
    margin: 9px 0 0;
    color: rgba(255,255,255,.55);
    text-align: center;
    font-size: .68rem;
}
footer {
    margin-top: 28px;
    color: rgba(255,255,255,.68);
    text-align: center;
    font-size: .78rem;
}
.download-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 25;
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(8,10,30,.9);
    box-shadow: 0 16px 45px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
}
.download-dock a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 11px;
    border-radius: 10px;
    color: #07131a;
    background: var(--mint);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
    transition: transform .18s, filter .18s;
}
.download-dock a:last-child { background: var(--yellow); }
.download-dock a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.floating-emoji {
    position: fixed;
    z-index: 5;
    pointer-events: none;
    animation: float-up 2s ease-out forwards;
}
@keyframes float-up {
    from { transform: translateY(15px) rotate(0); opacity: 1; }
    to { transform: translateY(-140px) rotate(32deg); opacity: 0; }
}
.extreme-overlay,
.extreme-banner {
    display: none;
    pointer-events: none;
}
.extreme-overlay {
    position: fixed;
    inset: -45vmax;
    z-index: 60;
    opacity: .38;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 12deg,
        rgba(255,0,110,.55) 12deg 18deg,
        transparent 18deg 32deg,
        rgba(0,245,212,.5) 32deg 38deg
    );
    mix-blend-mode: screen;
}
.extreme-banner {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: max-content;
    min-width: 200vw;
    height: 34px;
    align-items: center;
    justify-content: space-around;
    gap: 8vw;
    color: #050510;
    background: repeating-linear-gradient(90deg, #ffe552 0 20px, #ff4fd8 20px 40px, #20e3ff 40px 60px);
    font-size: .78rem;
    font-weight: 1000;
    letter-spacing: .15em;
    text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.party-particle {
    position: fixed;
    z-index: 65;
    top: -55px;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.8));
    animation: party-rain var(--fall-time, 3s) linear forwards;
}
body.party-mode {
    animation-duration: 4s;
}
body.party-mode .panel {
    animation: party-panel-pulse 1.8s ease-in-out infinite alternate;
}
body.party-mode h1 {
    animation: party-title .65s ease-in-out infinite alternate;
}
body.party-mode .status-dot {
    animation: status-party .45s ease-in-out infinite alternate;
}
body.extreme-party {
    animation: extreme-background 1s steps(2, end) infinite;
}
body.extreme-party .extreme-overlay {
    display: block;
    animation: extreme-spin 1.35s linear infinite;
}
body.extreme-party .extreme-banner {
    display: flex;
    animation: banner-slide 2.2s linear infinite;
}
body.extreme-party .panel {
    animation: extreme-panel .62s steps(2, end) infinite;
}
body.extreme-party h1 {
    animation: extreme-title .32s ease-in-out infinite alternate;
    text-shadow: 5px 0 #ff006e, -5px 0 #00f5d4, 0 0 38px white;
}
body.extreme-party .primary-links a,
body.extreme-party .party-button,
body.extreme-party .download-dock {
    animation: extreme-buttons .48s ease-in-out infinite alternate;
}
body.extreme-party .site-shell {
    position: relative;
    z-index: 61;
}
body.extreme-party .download-dock { z-index: 66; }
body.extreme-party .menu-button { z-index: 68; }
body.extreme-party .backdrop { z-index: 75; }
body.extreme-party .sidebar { z-index: 80; }
@keyframes party-panel-pulse {
    from { border-color: rgba(255,255,255,.18); box-shadow: var(--shadow); }
    to { border-color: rgba(32,227,255,.68); box-shadow: 0 0 32px rgba(32,227,255,.25), 0 18px 60px rgba(4,5,20,.4); }
}
@keyframes party-title {
    from { transform: rotate(-.5deg) scale(1); }
    to { transform: rotate(.5deg) scale(1.025); }
}
@keyframes status-party {
    to { transform: scale(1.8); background: var(--pink); box-shadow: 0 0 20px var(--pink); }
}
@keyframes extreme-background {
    0%, 100% { background-color: #2b0047; background-position: 0% 20%; }
    50% { background-color: #003e49; background-position: 100% 80%; }
}
@keyframes extreme-spin {
    to { transform: rotate(360deg) scale(1.08); }
}
@keyframes extreme-panel {
    0%, 100% { border-color: #ff38cb; box-shadow: 0 0 32px rgba(255,0,174,.75); transform: translateY(0); }
    50% { border-color: #38f9ff; box-shadow: 0 0 38px rgba(0,238,255,.8); transform: translateY(-3px); }
}
@keyframes extreme-title {
    from { transform: skewX(-4deg) scale(1.02); }
    to { transform: skewX(4deg) scale(1.07); }
}
@keyframes extreme-buttons {
    from { transform: rotate(-1deg) scale(1); }
    to { transform: rotate(1deg) scale(1.05); }
}
@keyframes banner-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50vw); }
}
@keyframes party-rain {
    0% { transform: translate3d(0,-10vh,0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate3d(var(--drift,0),115vh,0) rotate(720deg); opacity: .9; }
}

@media (max-width: 1050px) {
    .dashboard { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .joke-panel { grid-column: 2; grid-row: 1; }
    .market-panel { grid-column: 1 / -1; }
    .markets { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .site-shell { width: min(100% - 24px,560px); padding-top: 90px; }
    .menu-button { top: 16px; left: 16px; width: 48px; padding: 0; justify-content: center; }
    .menu-button .menu-text { display: none; }
    .hero { margin-top: 8px; }
    .hero-copy { line-height: 1.55; }
    .dashboard { grid-template-columns: 1fr; }
    .joke-panel, .market-panel { grid-column: auto; grid-row: auto; }
    .markets { grid-template-columns: 1fr; }
    .joke-panel { min-height: 360px; }
    .joke-content { min-height: 280px; }
    .download-dock { right: 12px; bottom: 12px; }
}
@media (max-width: 430px) {
    .primary-links a { flex: 1 1 100%; justify-content: center; }
    .download-dock { gap: 5px; padding: 5px; }
    .download-dock a { padding: 0 8px; font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
    body:not(.party-motion-opt-in) .extreme-overlay,
    body:not(.party-motion-opt-in) .extreme-banner,
    body:not(.party-motion-opt-in) .party-particle { display: none !important; }
    body:not(.party-motion-opt-in),
    body:not(.party-motion-opt-in) *,
    body:not(.party-motion-opt-in) *::before,
    body:not(.party-motion-opt-in) *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}



/* External clothing link */
.primary-links a.clothing-link {
    min-height: 48px;
    justify-content: center;
    gap: 9px;
    padding: 6px 20px;
    border-color: rgba(255,255,255,.18);
    background: rgba(8,10,30,.58);
}
.clothing-icon {
    display: inline;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    background: none;
    font-size: 1rem;
}
.clothing-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    text-align: left;
}
.clothing-copy strong { font-size: 1rem; line-height: 1.05; }
.clothing-copy small {
    display: block;
    max-width: 170px;
    color: rgba(255,255,255,.4);
    font-size: .42rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
}