:root {
    color-scheme: dark;
    --ink: #f7f7fb;
    --muted: #a7a8b7;
    --night: #090b18;
    --panel: #121528;
    --panel-2: #191d34;
    --line: rgba(255, 255, 255, .12);
    --yellow: #ffd84d;
    --cyan: #61e7f2;
    --pink: #ff6699;
    --danger: #ff7d7d;
    --shadow: 0 32px 90px rgba(0, 0, 0, .42);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--night); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 12%, rgba(97, 231, 242, .11), transparent 28rem),
        radial-gradient(circle at 85% 88%, rgba(255, 102, 153, .09), transparent 30rem),
        var(--night);
    overflow-x: clip;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.site-header {
    width: min(1180px, calc(100% - 40px));
    height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.03em; text-decoration: none; font-size: 1.18rem; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--night); background: var(--yellow); border-radius: 11px 11px 11px 3px; font-size: .9rem; transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--cyan); }
.site-nav, .nav-links { display: flex; align-items: center; gap: 6px; }
.mobile-menu-button { display: none; }
.site-nav a, .nav-button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current="page"], .nav-button:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.site-nav .nav-join { color: var(--night); background: var(--yellow); }

.joke-shell { width: min(940px, calc(100% - 40px)); min-height: calc(100vh - 84px); margin: 0 auto; padding: clamp(32px, 6vh, 72px) 0 48px; }
.joke-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.field-inline select, .admin-form select { appearance: none; color: var(--ink); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23a7a8b7' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 42px 10px 14px; }
.switch { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 650; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--yellow); }

.joke-card {
    position: relative;
    min-height: min(55vh, 540px);
    padding: clamp(24px, 5vw, 54px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(25,29,52,.98), rgba(15,18,34,.98));
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    box-shadow: var(--shadow);
    cursor: pointer;
    outline: none;
}
.joke-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--cyan), var(--yellow) 48%, var(--pink)); }
.joke-card::after { content: "{ HA }"; position: absolute; right: -15px; bottom: 52px; color: rgba(255,255,255,.025); font: 900 clamp(5rem, 16vw, 11rem)/1 ui-monospace, monospace; transform: rotate(-8deg); pointer-events: none; }
.joke-card:focus-visible { box-shadow: var(--shadow), 0 0 0 4px var(--cyan); }
.card-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.category-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border: 1px solid rgba(97,231,242,.35); border-radius: 999px; color: var(--cyan); background: rgba(97,231,242,.06); font: 700 .75rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.icon-button { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.04); cursor: pointer; font-size: 1.55rem; transition: transform .18s, background .18s; }
.icon-button:hover { transform: scale(1.06); background: rgba(255,255,255,.1); }
.favorite-button.is-saved { color: var(--pink); border-color: rgba(255,102,153,.45); background: rgba(255,102,153,.1); }
.joke-copy { position: relative; z-index: 1; margin: clamp(42px, 8vh, 80px) 0; max-width: 790px; }
.joke-kicker, .eyebrow { margin: 0 0 20px; color: var(--yellow); font: 800 .78rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; }
.joke-copy h1 { margin: 0; font-size: clamp(2rem, 5.2vw, 4.4rem); line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; }
.punchline { max-width: 690px; margin-top: 26px; padding-top: 25px; color: var(--yellow); border-top: 1px solid var(--line); font-size: clamp(1.35rem, 2.8vw, 2.15rem); font-weight: 750; line-height: 1.25; letter-spacing: -.02em; animation: punch-in .28s ease-out; }
.tap-hint { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: .9rem; }
.tap-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,216,77,.1); }
@keyframes punch-in { from { opacity: 0; transform: translateY(8px); } }

.player-controls { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 12px; margin-top: 18px; }
.control-button, .submit-button { min-height: 50px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--panel); font-weight: 750; cursor: pointer; text-decoration: none; transition: transform .15s, border-color .15s, background .15s; }
.control-button:hover, .submit-button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.3); }
.control-primary, .submit-button { color: var(--night); background: var(--yellow); border-color: var(--yellow); }
.member-nudge { display: flex; justify-content: center; gap: 10px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.member-nudge a { color: var(--cyan); font-weight: 700; }

.auth-shell { width: min(1040px, calc(100% - 40px)); min-height: calc(100vh - 84px); margin: 0 auto; padding: clamp(52px, 10vh, 110px) 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.auth-intro h1, .page-heading h1, .error-shell h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.8rem); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.auth-intro > p:last-child, .page-heading > p:last-child, .error-shell > p { max-width: 540px; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.auth-card, .admin-form { padding: clamp(24px, 4vw, 38px); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.auth-card label, .admin-form label { display: grid; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.auth-card input, .admin-form textarea { width: 100%; padding: 14px 15px; color: var(--ink); background: #0c0f20; border: 1px solid var(--line); border-radius: 11px; outline: none; }
.auth-card input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(97,231,242,.12); }
.form-note { margin: -10px 0 20px; color: var(--muted); font-size: .8rem; }
.form-error { padding: 10px 12px; color: var(--danger); background: rgba(255,125,125,.08); border-radius: 9px; font-size: .88rem; }
.submit-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 0 20px; }
.auth-switch { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: .9rem; }
.auth-switch a { color: var(--cyan); }

.library-shell, .admin-shell, .error-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.page-heading { margin-bottom: 42px; }
.page-heading h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.joke-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mini-joke { display: flex; flex-direction: column; align-items: flex-start; min-height: 270px; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.mini-joke h2 { margin: 26px 0 12px; font-size: 1.4rem; line-height: 1.28; }
.mini-joke p { margin: 0; color: var(--yellow); line-height: 1.5; }
.mini-joke > div { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 24px; }
.mini-joke a, .mini-joke button { color: var(--cyan); background: none; border: 0; padding: 0; font-weight: 700; cursor: pointer; }
.mini-joke button { color: var(--muted); }
.empty-state { padding: 70px 30px; text-align: center; background: var(--panel); border: 1px dashed rgba(255,255,255,.2); border-radius: 22px; }
.empty-state > span { color: var(--pink); font-size: 3rem; }
.empty-state h2 { margin: 12px 0 4px; }
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--cyan); font-weight: 700; }

.admin-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.admin-shell .page-heading { grid-column: 1 / -1; margin-bottom: 0; }
.admin-form { align-self: start; position: sticky; top: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.admin-form select { width: 100%; }
.admin-list { display: grid; gap: 9px; }
.admin-list-item { padding: 16px; color: var(--ink); text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.admin-list-item:hover { border-color: var(--cyan); }
.admin-list-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.admin-list-item strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.error-shell { min-height: calc(100vh - 84px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.error-shell .submit-button { width: auto; margin-top: 18px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; color: var(--night); background: var(--cyan); border-radius: 999px; box-shadow: var(--shadow); font-weight: 750; }

@media (max-width: 720px) {
    .site-header { width: min(calc(100% - 24px), 1180px); height: 70px; }
    .site-nav a:not(.nav-join), .site-nav .nav-button { display: none; }
    .mobile-menu-button { display: block; padding: 9px 12px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 11px; box-shadow: 3px 3px 0 var(--ink); font-weight: 950; }
    .site-nav { position: relative; }
    .site-nav .nav-links { display: none; }
    .site-nav.is-open .nav-links { position: absolute; z-index: 20; top: calc(100% + 12px); right: 0; width: min(260px, calc(100vw - 24px)); padding: 12px; display: grid; background: var(--panel); border: 3px solid var(--ink); border-radius: 15px; box-shadow: 6px 7px 0 var(--purple); }
    .site-nav.is-open .nav-links a, .site-nav.is-open .nav-button { display: block; width: 100%; text-align: left; }
    .joke-shell { width: min(calc(100% - 24px), 940px); min-height: calc(100vh - 70px); padding: 22px 0 34px; }
    .joke-card { min-height: 58vh; padding: 24px; border-radius: 21px; }
    .joke-copy { margin: 38px 0; }
    .joke-copy h1 { font-size: clamp(1.85rem, 9vw, 3rem); }
    .player-controls { grid-template-columns: 1fr 1fr; }
    .control-primary { grid-column: 1 / -1; grid-row: 1; }
    .member-nudge { flex-direction: column; align-items: center; }
    .auth-shell { min-height: calc(100vh - 70px); grid-template-columns: 1fr; gap: 32px; padding: 45px 0; }
    .auth-intro h1 { font-size: 3.1rem; }
    .joke-grid, .admin-shell { grid-template-columns: 1fr; }
    .admin-form { position: static; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

.settings-shell, .legal-shell {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(48px, 8vh, 86px) 0;
}
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 42px; align-items: start; }
.auth-card h2 { margin: 0 0 24px; font-size: 1.65rem; }
.form-success { padding: 10px 12px; color: #146c58; background: rgba(83, 221, 212, .2); border: 2px solid #146c58; border-radius: 9px; font-size: .9rem; font-weight: 800; }
.danger-card { border-color: #8f2447; box-shadow: 7px 8px 0 var(--pink); transform: rotate(-.35deg); }
.danger-card > p:not(.eyebrow, .form-error) { color: var(--muted); line-height: 1.6; }
.auth-card .confirm-check { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; }
.auth-card .confirm-check input { width: auto; margin-top: 2px; accent-color: var(--pink); }
.danger-button { width: 100%; min-height: 52px; color: white; background: #9d2850; border: 3px solid var(--ink); border-radius: 15px; box-shadow: 4px 5px 0 var(--ink); font-weight: 950; cursor: pointer; }
.danger-button:hover { background: #ba315f; transform: translateY(-2px); }
.analytics-panel { margin: 34px 0; padding: 22px 24px; display: grid; grid-template-columns: minmax(210px, 1fr) auto auto; gap: 22px; align-items: center; background: var(--panel); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 7px 8px 0 var(--cyan); }
.analytics-panel h2 { margin: 3px 0 0; }
.analytics-stat { min-width: 112px; display: grid; text-align: center; }
.analytics-stat strong { font-size: 2rem; line-height: 1; }
.analytics-stat span, .analytics-breakdown { color: var(--muted); font-size: .8rem; }
.analytics-breakdown { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 2px dashed rgba(24,25,41,.25); }
.analytics-breakdown span { padding: 6px 10px; background: #fff3bd; border: 1px solid var(--ink); border-radius: 999px; }
.legal-shell { max-width: 820px; }
.legal-shell .page-heading { margin-bottom: 44px; }
.legal-shell section { margin: 0 0 30px; padding: 24px 26px; background: rgba(255,255,255,.72); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 6px 0 var(--cyan); }
.legal-shell section:nth-of-type(even) { box-shadow: 5px 6px 0 var(--pink); }
.legal-shell h2 { margin: 0 0 10px; }
.legal-shell p { margin: 0; color: var(--muted); line-height: 1.7; }
.legal-shell a, .site-footer a { color: #5a35dc; font-weight: 800; }
.site-footer { width: min(1180px, calc(100% - 40px)); margin: 30px auto 0; padding: 26px 0 34px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 2px dashed rgba(24,25,41,.35); font-size: .9rem; }
.site-footer nav { display: flex; gap: 20px; }

@media (max-width: 720px) {
    .settings-shell, .legal-shell { width: min(calc(100% - 30px), 1040px); padding-top: 42px; }
    .settings-grid { grid-template-columns: 1fr; }
    .analytics-panel { grid-template-columns: 1fr 1fr; }
    .analytics-panel > div:first-child { grid-column: 1 / -1; }
    .site-footer { width: min(calc(100% - 30px), 1180px); flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Playful comedy-club theme */
:root {
    color-scheme: light;
    --ink: #261940;
    --muted: #695d7d;
    --night: #fff3bd;
    --panel: #fffdf5;
    --panel-2: #f2eaff;
    --line: #261940;
    --yellow: #ffd83d;
    --cyan: #53ddd4;
    --pink: #ff6b9d;
    --purple: #8568ff;
    --danger: #c7325c;
    --shadow: 10px 12px 0 #261940;
    font-family: "Trebuchet MS", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}

html { background: var(--night); }
body {
    color: var(--ink);
    background-color: var(--night);
    background-image:
        radial-gradient(circle, rgba(38, 25, 64, .13) 1.5px, transparent 1.7px),
        radial-gradient(circle at 12% 18%, rgba(83, 221, 212, .9) 0 5rem, transparent 5.1rem),
        radial-gradient(circle at 88% 76%, rgba(255, 107, 157, .78) 0 7rem, transparent 7.1rem),
        linear-gradient(135deg, #fff8d6, #ffedaa 58%, #ffe4af);
    background-size: 22px 22px, auto, auto, auto;
    background-attachment: fixed;
}

.site-header {
    border-bottom: 3px solid var(--ink);
}
.brand { font-size: 1.3rem; letter-spacing: -.045em; }
.brand-mark {
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: var(--yellow);
    border: 3px solid var(--ink);
    border-radius: 14px 14px 14px 4px;
    box-shadow: 4px 4px 0 var(--cyan);
    transform: rotate(-6deg);
    animation: logo-bob 3.5s ease-in-out infinite;
}
@keyframes logo-bob { 50% { transform: rotate(3deg) translateY(-2px); } }
.site-nav a, .nav-button { color: var(--ink); font-weight: 850; }
.site-nav a:hover, .site-nav a[aria-current="page"], .nav-button:hover { color: var(--ink); background: rgba(255,255,255,.62); }
.site-nav .nav-join {
    color: var(--ink);
    background: var(--pink);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(1deg);
}
.site-nav .nav-join:hover { background: #ff87b0; transform: rotate(-1deg) translateY(-1px); }

.joke-shell { width: min(980px, calc(100% - 40px)); padding: clamp(20px, 3vh, 36px) 0 42px; }
.joke-toolbar { margin-bottom: 18px; }
.field-inline select, .admin-form select {
    color: var(--ink);
    background-color: var(--panel);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 3px 3px 0 var(--ink);
}
.show-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    color: var(--ink);
    background: var(--cyan);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: .83rem;
    font-weight: 900;
    transform: rotate(1deg);
}
.show-status span { color: #168e75; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.switch { color: var(--ink); }

.joke-card {
    min-height: min(50vh, 500px);
    background: var(--panel);
    border: 4px solid var(--ink);
    border-radius: 28px 35px 25px 32px;
    box-shadow: 12px 14px 0 var(--purple), 18px 20px 0 var(--ink);
    transform: rotate(-.25deg);
    transition: transform .18s ease, box-shadow .18s ease;
}
.joke-card:hover { transform: rotate(.15deg) translateY(-2px); box-shadow: 14px 17px 0 var(--purple), 20px 23px 0 var(--ink); }
.joke-card::before {
    inset: 0;
    width: 100%;
    height: 13px;
    background: repeating-linear-gradient(90deg, var(--cyan) 0 45px, var(--yellow) 45px 90px, var(--pink) 90px 135px, var(--purple) 135px 180px);
    border-bottom: 3px solid var(--ink);
}
.joke-card::after { content: ""; }
.joke-card:focus-visible { box-shadow: 12px 14px 0 var(--purple), 18px 20px 0 var(--ink), 0 0 0 6px white; }
.comic-scribble { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.comic-scribble span { position: absolute; z-index: 0; color: transparent; -webkit-text-stroke: 2px rgba(90, 53, 220, .22); font-weight: 1000; letter-spacing: -.08em; }
.comic-scribble span:nth-child(1) { right: -1rem; bottom: 2rem; font-size: clamp(6rem, 16vw, 11rem); transform: rotate(-10deg); }
.comic-scribble span:nth-child(2) { left: 45%; top: 1.8rem; font-size: 3.5rem; color: transparent; -webkit-text-stroke-color: rgba(199, 50, 92, .22); transform: rotate(9deg); }
.comic-scribble span:nth-child(3) { left: -1rem; bottom: 1rem; font: 900 2.5rem/1 ui-monospace, monospace; color: transparent; -webkit-text-stroke-color: rgba(20, 108, 88, .24); transform: rotate(90deg); }
.card-topline { margin-top: 6px; }
.category-chip {
    min-height: 34px;
    padding: 6px 13px;
    color: var(--ink);
    background: var(--cyan);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 900;
    transform: rotate(-1.5deg);
}
.icon-button {
    width: 50px;
    height: 50px;
    color: var(--ink);
    background: #fff;
    border: 3px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 900;
}
.icon-button:hover { background: #ffe3ed; transform: rotate(10deg) scale(1.08); }
.favorite-button.is-saved { color: var(--ink); border-color: var(--ink); background: var(--pink); }
.joke-kicker, .eyebrow { color: #6746e8; font-weight: 950; }
.joke-copy { margin: clamp(32px, 6vh, 58px) 0; }
.joke-copy h1 {
    max-width: 820px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
    font-weight: 950;
    line-height: 1.02;
    text-shadow: 2px 2px 0 rgba(255, 216, 61, .7);
}
.punchline {
    position: relative;
    max-width: 720px;
    margin-top: 30px;
    padding: 20px 24px;
    color: var(--ink);
    background: var(--yellow);
    border: 3px solid var(--ink);
    border-radius: 18px 18px 18px 4px;
    box-shadow: 5px 5px 0 var(--ink);
    font-weight: 900;
    transform: rotate(.4deg);
    animation: punch-pop .35s cubic-bezier(.18, .89, .32, 1.4);
}
.punchline::after { content: ""; position: absolute; left: 20px; bottom: -15px; width: 22px; height: 22px; background: var(--yellow); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: skewY(-35deg); }
@keyframes punch-pop { from { opacity: 0; transform: scale(.82) rotate(-2deg) translateY(15px); } }
.joke-card.is-revealed { box-shadow: 12px 14px 0 var(--pink), 18px 20px 0 var(--ink); }
.tap-hint { color: var(--muted); font-weight: 750; }
.tap-dot { background: var(--pink); box-shadow: 0 0 0 5px rgba(255,107,157,.18); }

.player-controls { gap: 15px; margin-top: 30px; }
.control-button, .submit-button {
    min-height: 54px;
    color: var(--ink);
    background: var(--panel);
    border: 3px solid var(--ink);
    border-radius: 15px;
    box-shadow: 4px 5px 0 var(--ink);
    font-weight: 950;
}
.control-button:hover, .submit-button:hover { transform: translateY(-3px) rotate(-.5deg); border-color: var(--ink); box-shadow: 5px 8px 0 var(--ink); }
.control-button:active, .submit-button:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.control-primary, .submit-button { color: var(--ink); background: var(--yellow); border-color: var(--ink); }
#previous-button { background: var(--cyan); }
#next-button { background: #ffa9c6; }
.member-nudge { color: var(--ink); font-weight: 700; }
.member-nudge a { color: #5a35dc; text-decoration-thickness: 2px; }

.auth-intro h1, .page-heading h1, .error-shell h1 { color: var(--ink); font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; text-shadow: 4px 4px 0 var(--yellow); }
.auth-intro > p:last-child, .page-heading > p:last-child, .error-shell > p { color: var(--ink); }
.auth-card, .admin-form, .mini-joke, .empty-state, .admin-list-item {
    background: var(--panel);
    border: 3px solid var(--ink);
    box-shadow: 7px 8px 0 var(--ink);
}
.auth-card { transform: rotate(.5deg); }
.auth-card label, .admin-form label, .form-note, .auth-switch, .mini-joke button { color: var(--muted); }
.auth-card input, .admin-form textarea {
    color: var(--ink);
    background: white;
    border: 2px solid var(--ink);
}
.mini-joke:nth-child(3n+1) { box-shadow: 7px 8px 0 var(--pink); }
.mini-joke:nth-child(3n+2) { box-shadow: 7px 8px 0 var(--cyan); }
.mini-joke:nth-child(3n) { box-shadow: 7px 8px 0 var(--purple); }
.mini-joke p { color: #5a35dc; font-weight: 850; }
.mini-joke a, .auth-switch a, .empty-state a { color: #5a35dc; }
.toast { color: var(--ink); background: var(--cyan); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); }

@media (max-width: 720px) {
    .site-header { width: min(calc(100% - 24px), 1180px); }
    .joke-shell { width: min(calc(100% - 30px), 980px); padding-top: 20px; }
    .show-status { display: none; }
    .joke-card { min-height: 57vh; padding: 24px; border-width: 3px; box-shadow: 7px 8px 0 var(--purple), 11px 12px 0 var(--ink); }
    .joke-card:hover { transform: rotate(-.25deg); box-shadow: 7px 8px 0 var(--purple), 11px 12px 0 var(--ink); }
    .joke-copy h1 { font-size: clamp(2rem, 9.5vw, 3.1rem); }
    .joke-card.is-revealed { box-shadow: 7px 8px 0 var(--pink), 11px 12px 0 var(--ink); }
    .player-controls { margin-top: 23px; }
    .member-nudge { margin-top: 25px; }
}

/* Reactions, sharing and community moderation */
.growth-panel {
    margin-top: 22px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: rgba(255, 253, 245, .82);
    border: 3px solid var(--ink);
    border-radius: 18px;
    box-shadow: 6px 7px 0 var(--cyan);
}
.reaction-tools, .share-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.growth-label { margin-right: 3px; font-weight: 950; }
.reaction-button, .share-button, .report-link, .report-actions button {
    min-height: 39px;
    padding: 8px 12px;
    color: var(--ink);
    background: white;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}
.reaction-button:hover, .share-button:hover, .report-actions button:hover { transform: translateY(-2px); }
.reaction-button.is-selected { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.reaction-button[data-reaction="not_funny"].is-selected { background: #ffa9c6; }
.reaction-button span { display: inline-block; min-width: 1.15em; }
.share-button { background: #fff3bd; }
.whatsapp-button { background: #b9f6c9; }
.report-link { padding-inline: 7px; color: var(--muted); background: transparent; border-color: transparent; text-decoration: underline; }

.share-dialog { width: min(780px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; color: var(--ink); background: transparent; border: 0; overflow: visible; }
.share-dialog::backdrop { background: rgba(38, 25, 64, .68); backdrop-filter: blur(5px); }
.share-sheet { max-height: calc(100dvh - 24px); padding: 24px; display: grid; gap: 18px; overflow-y: auto; background: #fffdf5; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 10px 12px 0 var(--purple); }
.share-sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.share-sheet header .eyebrow { margin-bottom: 4px; }.share-sheet h2 { margin: 0; font-size: 2rem; }
.share-preview { min-height: 240px; max-height: 48dvh; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #ffe8a8, #f8efff 52%, #ddf7ff); border: 2px solid var(--ink); border-radius: 18px; }
.share-preview img { width: 100%; height: 100%; max-height: 48dvh; object-fit: contain; }.share-preview-loading { padding: 35px; color: var(--muted); font-weight: 850; }
.share-option-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.share-option-grid button { min-width: 0; min-height: 105px; padding: 12px 7px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 14px; cursor: pointer; }
.share-option-grid button:hover { background: var(--yellow); transform: translateY(-2px); box-shadow: 3px 4px 0 var(--ink); }
.share-option-grid button span { width: 38px; height: 38px; display: grid; place-items: center; background: #f2effb; border-radius: 50%; font-size: 1.45rem; font-weight: 950; }
.share-option-grid button strong { font-size: .78rem; line-height: 1.25; }.share-sheet-note { min-height: 1.25em; margin: -4px 0 0; color: #5138db; text-align: center; font-size: .82rem; font-weight: 850; }

.report-dialog { width: min(520px, calc(100% - 28px)); padding: 0; color: var(--ink); background: transparent; border: 0; }
.report-dialog::backdrop { background: rgba(38, 25, 64, .62); backdrop-filter: blur(3px); }
.report-card { padding: 25px; display: grid; gap: 18px; background: var(--panel); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 9px 10px 0 var(--pink); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-heading .eyebrow { margin-bottom: 5px; }
.dialog-heading h2 { margin: 0; font-size: 1.8rem; }
.dialog-close { width: 40px; height: 40px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-size: 1.5rem; font-weight: 950; cursor: pointer; }
.report-card label { display: grid; gap: 7px; font-weight: 900; }
.report-card select, .report-card textarea { width: 100%; padding: 12px 13px; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 12px; }
.report-card textarea { resize: vertical; }

.moderation-panel, .popular-panel { grid-column: 1 / -1; padding: 22px 24px; background: var(--panel); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 7px 8px 0 var(--pink); }
.popular-panel { box-shadow: 7px 8px 0 var(--purple); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 3px; }
.section-heading h2 { margin: 0; }
.queue-count { padding: 6px 10px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; font-size: .82rem; font-weight: 950; }
.report-queue { display: grid; gap: 10px; }
.report-item { padding: 14px 0; display: flex; justify-content: space-between; gap: 18px; border-top: 2px dashed rgba(38, 25, 64, .25); }
.report-item:first-child { border-top: 0; }
.report-item span { display: block; color: var(--muted); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.report-item strong { display: block; margin-top: 5px; }
.report-item p { margin: 7px 0 0; color: var(--muted); }
.report-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.report-actions button { border-radius: 10px; }
.report-actions button:last-child { background: #ffa9c6; }
.popular-list { margin: 0; padding-left: 28px; display: grid; gap: 10px; }
.popular-list li { padding-left: 5px; }
.popular-list a { color: var(--ink); font-weight: 900; }
.popular-list span { display: block; margin-top: 3px; color: var(--muted); font-size: .85rem; }
.empty-inline { margin: 0; color: var(--muted); }

@media (max-width: 720px) {
    .growth-panel { align-items: stretch; flex-direction: column; padding: 15px; }
    .reaction-tools, .share-tools { justify-content: center; }
    .growth-label { width: 100%; text-align: center; }
    .share-button, .reaction-button { flex: 1 1 auto; text-align: center; }
    .report-item { flex-direction: column; }
    .report-actions button { flex: 1; }
    .moderation-panel, .popular-panel { padding: 18px; }
    .share-sheet { padding: 18px; }.share-preview { max-height: 43dvh; }.share-preview img { max-height: 43dvh; }.share-option-grid { grid-template-columns: repeat(3, 1fr); }.share-option-grid button { min-height: 92px; }
}

@media (max-width: 430px) { .share-option-grid { grid-template-columns: 1fr 1fr; }.share-option-grid button:last-child { grid-column: 1 / -1; min-height: 76px; } }

/* Daily joke and member dashboard */
.toolbar-actions { display: flex; align-items: center; gap: 14px; }
.daily-link { padding: 8px 11px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-size: .84rem; font-weight: 950; text-decoration: none; transform: rotate(-1deg); }
.daily-link:hover { transform: rotate(1deg) translateY(-2px); }

.daily-shell, .dashboard-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: clamp(42px, 7vh, 78px) 0 84px; }
.daily-heading { text-align: center; }
.daily-heading > p:last-child { margin-inline: auto; }
.daily-card { position: relative; width: 100%; max-width: 860px; min-height: 470px; margin: 0 auto; padding: clamp(32px, 6vw, 62px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; overflow: hidden; background: var(--panel); border: 4px solid var(--ink); border-radius: 30px; box-shadow: 13px 15px 0 var(--purple), 20px 22px 0 var(--ink); }
.daily-card::before { content: "☀"; position: absolute; right: -35px; bottom: -70px; color: rgba(255, 216, 61, .35); font-size: 18rem; line-height: 1; transform: rotate(12deg); }
.daily-burst { position: absolute; top: 23px; right: 25px; padding: 11px 13px; background: var(--pink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 950; transform: rotate(7deg); }
.daily-card h2 { position: relative; max-width: 720px; margin: 34px 0 28px; font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.daily-punchline { position: relative; margin-bottom: 28px; padding: 18px 22px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 17px 17px 17px 4px; box-shadow: 5px 5px 0 var(--ink); font-size: clamp(1.3rem, 2.7vw, 2rem); font-weight: 950; animation: punch-pop .35s cubic-bezier(.18, .89, .32, 1.4); }
.daily-reveal { position: relative; min-height: 58px; padding: 0 24px; color: var(--ink); background: var(--cyan); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 6px 0 var(--ink); font-weight: 950; cursor: pointer; }
.daily-reveal:hover { transform: translateY(-3px); box-shadow: 6px 9px 0 var(--ink); }
.daily-actions { position: relative; display: flex; flex-wrap: wrap; gap: 9px; }
.daily-actions[hidden] { display: none; }
.daily-actions button { padding: 9px 13px; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; cursor: pointer; }
.daily-actions button[aria-pressed="true"] { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.daily-return { margin: 38px auto 0; text-align: center; color: var(--muted); font-weight: 800; }
.daily-return a { color: #5a35dc; }

.dashboard-heading { display: grid; grid-template-columns: 1fr minmax(310px, .72fr); gap: 40px; align-items: end; }
.dashboard-heading .page-heading { margin: 0; }
.dashboard-daily-cta { padding: 20px; display: grid; gap: 7px; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 19px; box-shadow: 6px 7px 0 var(--pink); text-decoration: none; transform: rotate(1deg); }
.dashboard-daily-cta:hover { transform: rotate(-.5deg) translateY(-3px); }
.dashboard-daily-cta span { font-size: .75rem; font-weight: 950; letter-spacing: .08em; }
.dashboard-daily-cta strong { line-height: 1.25; }
.dashboard-daily-cta em { color: #5a35dc; font-style: normal; font-weight: 950; }
.member-stats { margin: 38px 0 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.member-stats > div { min-height: 138px; padding: 20px 14px; display: grid; place-content: center; text-align: center; background: var(--panel); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 6px 0 var(--cyan); }
.member-stats > div:nth-child(2) { box-shadow: 5px 6px 0 var(--yellow); }
.member-stats > div:nth-child(3) { box-shadow: 5px 6px 0 var(--pink); }
.member-stats > div:nth-child(4) { box-shadow: 5px 6px 0 var(--purple); }
.member-stats strong { font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 1; }
.member-stats span { margin-top: 9px; color: var(--muted); font-size: .83rem; font-weight: 850; }
.dashboard-section { margin-top: 48px; }
.dashboard-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.dashboard-section-heading .eyebrow { margin-bottom: 5px; }
.dashboard-section-heading h2 { margin: 0; font-size: 2rem; }
.dashboard-section-heading > a { color: #5a35dc; font-weight: 950; }
.dashboard-jokes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dashboard-jokes.compact { grid-template-columns: repeat(4, 1fr); }
.dashboard-joke { min-height: 220px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; background: var(--panel); border: 3px solid var(--ink); border-radius: 17px; box-shadow: 5px 6px 0 var(--cyan); }
.dashboard-joke:nth-child(3n+2) { box-shadow: 5px 6px 0 var(--pink); }
.dashboard-joke:nth-child(3n) { box-shadow: 5px 6px 0 var(--purple); }
.dashboard-joke span { color: var(--muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.dashboard-joke h3 { margin: 17px 0 10px; line-height: 1.3; }
.dashboard-joke p { margin: 0 0 18px; color: #5a35dc; font-weight: 850; line-height: 1.45; }
.dashboard-joke a { margin-top: auto; color: var(--ink); font-weight: 950; }
.dashboard-jokes.compact .dashboard-joke { min-height: 190px; }
.empty-dashboard { padding: 25px; display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.58); border: 3px dashed var(--ink); border-radius: 18px; }
.empty-dashboard > span { font-size: 2.3rem; }
.empty-dashboard h3, .empty-dashboard p { margin: 0; }
.empty-dashboard p { margin-top: 4px; color: var(--muted); }
.empty-dashboard a { margin-left: auto; padding: 10px 13px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; font-weight: 950; text-decoration: none; }

@media (max-width: 850px) {
    .dashboard-heading { grid-template-columns: 1fr; }
    .member-stats { grid-template-columns: repeat(2, 1fr); }
    .dashboard-jokes.compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .toolbar-actions { gap: 8px; }
    .daily-link { font-size: .74rem; }
    .daily-shell, .dashboard-shell { width: min(calc(100% - 30px), 1080px); padding-top: 38px; }
    .daily-heading h1 { font-size: clamp(2.55rem, 12vw, 3.5rem); }
    .daily-heading > p:last-child { font-size: 1rem; }
    .daily-card { min-height: 440px; padding: 28px 23px; border-radius: 23px; box-shadow: 8px 9px 0 var(--purple), 12px 13px 0 var(--ink); }
    .daily-burst { top: 18px; right: 17px; font-size: .78rem; }
    .daily-card h2 { margin-top: 47px; font-size: clamp(2rem, 10vw, 3.2rem); }
    .daily-actions button { flex: 1 1 44%; }
    .dashboard-heading { gap: 24px; }
    .member-stats { margin-top: 28px; }
    .member-stats > div { min-height: 120px; }
    .dashboard-jokes, .dashboard-jokes.compact { grid-template-columns: 1fr; }
    .dashboard-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .empty-dashboard { align-items: flex-start; flex-wrap: wrap; }
    .empty-dashboard a { width: 100%; margin: 0; text-align: center; }
}

/* Opt-in daily email */
.email-preferences { margin: 0 0 56px; padding: clamp(24px, 4vw, 38px); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 58px); align-items: center; background: #e7fffb; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 9px 0 var(--cyan); }
.email-preferences-copy h2 { margin: 3px 0 10px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.email-preferences-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.email-status { display: inline-block; margin-top: 8px; padding: 6px 10px; background: white; border: 2px solid var(--ink); border-radius: 999px; font-size: .78rem; font-weight: 950; text-transform: uppercase; }
.email-status.status-active { background: #b9f6c9; }
.email-status.status-pending { background: var(--yellow); }
.email-status.status-paused { background: #ffe1eb; }
.email-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.email-preferences-form label { display: grid; gap: 7px; font-size: .85rem; font-weight: 900; }
.email-preferences-form select { width: 100%; padding: 12px 35px 12px 12px; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 12px; }
.email-consent { margin: 16px 0; display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 9px !important; color: var(--muted); line-height: 1.4; }
.email-consent input { width: auto; margin-top: 3px; accent-color: var(--purple); }
.email-buttons { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 9px; }
.email-buttons .submit-button { width: auto; flex: 1 1 190px; }
.email-secondary, .email-unsubscribe { padding: 10px 13px; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 12px; font-weight: 900; cursor: pointer; }
.email-unsubscribe { color: var(--danger); background: transparent; border-color: transparent; text-decoration: underline; }
.email-note { margin: 13px 0 0; color: var(--muted); font-size: .82rem; }
.email-admin-panel { grid-column: 1 / -1; padding: 22px 24px; display: grid; grid-template-columns: minmax(210px, 1fr) repeat(3, auto); gap: 22px; align-items: center; background: #e7fffb; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 7px 8px 0 var(--yellow); }
.email-admin-panel h2 { margin: 3px 0 0; }
.email-status-breakdown { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 2px dashed rgba(38,25,64,.25); }
.email-status-breakdown span { padding: 6px 10px; background: white; border: 1px solid var(--ink); border-radius: 999px; font-size: .8rem; }
.email-result .submit-button { display: inline-flex; }

@media (max-width: 850px) {
    .email-preferences { grid-template-columns: 1fr; }
    .email-admin-panel { grid-template-columns: repeat(3, 1fr); }
    .email-admin-panel > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .email-fields { grid-template-columns: 1fr; }
    .email-preferences { padding: 22px 18px; }
    .email-admin-panel { grid-template-columns: 1fr 1fr; }
    .email-admin-panel .analytics-stat:last-of-type { grid-column: 1 / -1; }
}

/* Content Operations Studio */
.content-ops-panel { grid-column: 1 / -1; padding: 24px; background: #fff9dc; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 7px 8px 0 var(--purple); }
.export-button { padding: 10px 14px; color: var(--ink); background: var(--cyan); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); font-weight: 950; text-decoration: none; }
.content-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.content-summary a { padding: 15px; display: grid; text-align: center; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; }
.content-summary strong { font-size: 1.8rem; line-height: 1; }
.content-summary span { margin-top: 6px; color: var(--muted); font-size: .77rem; font-weight: 900; text-transform: uppercase; }
.content-tools { padding-top: 20px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; border-top: 2px dashed rgba(38,25,64,.25); }
.content-filter { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto auto; gap: 8px; align-items: end; }
.content-filter input, .content-filter select, .csv-import input, .admin-form input[type="datetime-local"] { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 10px; }
.content-filter button, .csv-import button, .admin-form-heading button { min-height: 42px; padding: 8px 12px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; font-weight: 950; cursor: pointer; }
.content-filter > a, .csv-import > a { padding: 10px 4px; color: #5a35dc; font-weight: 900; }
.csv-import { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.csv-import label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 900; }
.csv-import > a { grid-column: 1 / -1; }
.csv-import .form-error, .csv-import .form-success { grid-column: 1 / -1; margin: 0; }
.admin-form-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.admin-form-heading .eyebrow { margin-bottom: 3px; }
.admin-form-heading h2 { margin: 0; }
.admin-form input[type="datetime-local"] { min-height: 48px; }
.joke-preview { margin: 4px 0 20px; padding: 18px; background: #fffdf5; border: 2px dashed var(--ink); border-radius: 14px; }
.joke-preview h3 { margin: 15px 0 9px; line-height: 1.3; }
.joke-preview p { margin: 0; padding: 10px 12px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; font-weight: 850; }
.admin-result-count { margin: 0 0 9px; color: var(--muted); font-size: .82rem; font-weight: 850; }
.admin-list-item small { display: block; margin-top: 9px; color: var(--muted); font-size: .78rem; font-weight: 850; }

@media (max-width: 900px) {
    .content-tools { grid-template-columns: 1fr; }
    .content-filter { grid-template-columns: 1fr 1fr; }
    .content-filter label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .content-summary { grid-template-columns: 1fr 1fr; }
    .content-filter { grid-template-columns: 1fr; }
    .content-filter label:first-child { grid-column: auto; }
    .content-filter button, .content-filter > a { text-align: center; }
}

/* App launch hub */
.apps-hero, .platform-section, .apps-feature-strip, .tester-callout, .feedback-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.apps-hero { min-height: 650px; padding: clamp(60px, 8vw, 105px) 0 75px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .75fr); gap: clamp(45px, 8vw, 100px); align-items: center; }
.apps-hero-copy h1 { max-width: 720px; margin: 8px 0 22px; font-size: clamp(3.1rem, 7vw, 6.5rem); line-height: .91; letter-spacing: -.065em; }
.apps-lede { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; }
.apps-hero-actions { margin: 32px 0 24px; display: flex; flex-wrap: wrap; gap: 13px; }
.apps-primary-action, .apps-secondary-action { padding: 14px 20px; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); font-weight: 950; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.apps-primary-action { background: var(--yellow); }
.apps-secondary-action { background: white; }
.apps-primary-action:hover, .apps-secondary-action:hover { transform: translate(2px, 2px); box-shadow: 3px 4px 0 var(--ink); }
.apps-trust-list { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; color: var(--muted); font-size: .88rem; font-weight: 850; }
.apps-trust-list li::before { content: '✓'; margin-right: 7px; color: #5138db; }
.phone-stage { min-height: 540px; position: relative; display: grid; place-items: center; }
.phone-shell { width: min(335px, 86vw); padding: 13px; position: relative; z-index: 2; background: var(--ink); border: 3px solid var(--ink); border-radius: 48px; box-shadow: 15px 18px 0 var(--purple); transform: rotate(2deg); }
.phone-camera { width: 105px; height: 24px; position: absolute; z-index: 3; top: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); border-radius: 999px; }
.phone-screen { min-height: 505px; padding: 48px 20px 25px; background: linear-gradient(145deg, #fff0ba, #fff 48%, #dffaff); border-radius: 36px; }
.phone-brand { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; }
.phone-brand img { width: 32px; height: 32px; border-radius: 9px; }
.phone-chip { margin: 26px 0 14px; padding: 7px 10px; display: inline-block; color: #5138db; background: #eee9ff; border-radius: 999px; font-size: .78rem; font-weight: 900; }
.phone-joke-card { min-height: 260px; padding: 30px 20px; display: grid; align-content: center; text-align: center; background: white; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 7px 8px 0 #40235b; }
.phone-joke-card small { color: #5b3ee5; font-weight: 950; letter-spacing: .08em; }
.phone-joke-card h2 { margin: 18px 0; font-size: 1.55rem; line-height: 1.15; }
.phone-joke-card p { margin: 0; padding: 10px; background: var(--yellow); border-radius: 10px; font-weight: 850; }
.phone-controls { padding: 24px 10px 0; display: flex; justify-content: space-between; align-items: center; font-size: 1.5rem; }
.phone-controls strong { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--purple); border-radius: 50%; }
.comic-spark { position: absolute; z-index: 3; padding: 12px 15px; color: var(--ink); background: var(--cyan); border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); font-weight: 1000; transform: rotate(-9deg); }
.spark-one { top: 62px; right: 0; font-size: 1.25rem; }
.spark-two { bottom: 75px; left: 0; background: #ff8cb4; transform: rotate(8deg); }
.platform-section { padding: 55px 0 70px; }
.apps-section-heading h2 { max-width: 730px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.platform-card { min-height: 350px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; background: white; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 7px 8px 0 var(--ink); }
.platform-web { background: #fff6c9; }
.platform-ios { background: #f3efff; }
.platform-android { background: #dcfff5; }
.platform-icon { margin-bottom: 20px; font-size: 2.1rem; }
.release-status { margin-bottom: 12px; padding: 6px 9px; border: 2px solid var(--ink); border-radius: 999px; font-size: .72rem; font-weight: 950; text-transform: uppercase; }
.status-live { background: #bdf5c8; }.status-review { background: #fff; }.status-testing { background: var(--cyan); }
.platform-card h3 { margin: 0 0 9px; font-size: 1.7rem; }
.platform-card p { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
.platform-card a, .platform-coming { margin-top: auto; color: #5138db; font-weight: 950; text-decoration: none; }
.apps-feature-strip { margin-bottom: 72px; padding: clamp(25px, 4vw, 42px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; background: var(--ink); border-radius: 26px; box-shadow: 9px 10px 0 var(--yellow); }
.apps-feature-strip article { display: flex; gap: 15px; color: white; }
.apps-feature-strip article > span { font-size: 1.8rem; }
.apps-feature-strip h3 { margin: 0 0 7px; }.apps-feature-strip p { margin: 0; color: #d5d2e4; line-height: 1.5; }
.tester-callout { margin-bottom: 85px; padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center; background: #ffdfeb; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 9px 10px 0 var(--purple); }
.tester-callout h2 { margin: 4px 0 10px; font-size: clamp(2rem, 4vw, 3.3rem); }.tester-callout p:not(.eyebrow) { max-width: 720px; color: var(--muted); line-height: 1.6; }
.tester-callout > a { padding: 14px 18px; color: white; background: var(--purple); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); font-weight: 950; text-decoration: none; }

/* Tester feedback */
.feedback-shell { padding: 70px 0 90px; }
.feedback-intro { max-width: 850px; margin-bottom: 38px; }
.feedback-intro h1 { margin: 7px 0 16px; font-size: clamp(3rem, 7vw, 6rem); line-height: .93; letter-spacing: -.06em; }
.feedback-intro > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.feedback-route { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: .88rem; font-weight: 850; }
.feedback-route span { width: 28px; height: 28px; display: grid; place-items: center; color: white; background: var(--purple); border-radius: 50%; }
.tester-feedback-form { display: grid; gap: 22px; }
.tester-feedback-form fieldset { margin: 0; padding: clamp(23px, 4vw, 38px); background: white; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 7px 8px 0 var(--yellow); }
.tester-feedback-form fieldset:nth-of-type(2) { box-shadow: 7px 8px 0 var(--cyan); }.tester-feedback-form fieldset:nth-of-type(3) { box-shadow: 7px 8px 0 #ff8cb4; }
.tester-feedback-form legend { padding: 0 12px; font-size: 1.2rem; font-weight: 950; }
.tester-feedback-form legend span { margin-right: 9px; color: #5138db; }
.feedback-grid { display: grid; gap: 18px; }.feedback-grid.two-columns { grid-template-columns: 1fr 1fr; }.feedback-grid .full-width { grid-column: 1 / -1; }
.feedback-grid label { display: grid; gap: 8px; color: var(--ink); font-size: .87rem; font-weight: 900; }
.feedback-grid label > span, .field-label span { color: var(--muted); font-weight: 700; }
.feedback-grid input, .feedback-grid select, .feedback-grid textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: #fffdf8; border: 2px solid var(--ink); border-radius: 11px; font: inherit; }
.feedback-grid textarea { resize: vertical; }.feedback-grid input:focus, .feedback-grid select:focus, .feedback-grid textarea:focus { outline: 3px solid rgba(91,62,229,.22); outline-offset: 2px; }
.input-hint { color: var(--muted); font-weight: 600; }.field-label { margin: 25px 0 12px; font-size: .9rem; font-weight: 950; }
.rating-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rating-row label { cursor: pointer; }.rating-row input { position: absolute; opacity: 0; pointer-events: none; }
.rating-row label > span { min-height: 62px; display: grid; place-items: center; background: #f5f1ff; border: 2px solid var(--ink); border-radius: 14px; font-size: 1.5rem; font-weight: 1000; transition: transform .12s ease, background .12s ease; }
.rating-row small { margin-top: 6px; display: block; text-align: center; color: var(--muted); font-weight: 800; }.rating-row input:checked + span { color: white; background: var(--purple); transform: translateY(-3px); box-shadow: 3px 4px 0 var(--ink); }.rating-row input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.feature-checks { display: flex; flex-wrap: wrap; gap: 9px; }.feature-checks label { cursor: pointer; }.feature-checks input { position: absolute; opacity: 0; }.feature-checks span { padding: 9px 12px; display: block; background: #f8f7fb; border: 2px solid var(--ink); border-radius: 999px; font-size: .82rem; font-weight: 850; }.feature-checks input:checked + span { background: var(--yellow); }.feature-checks input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.feedback-honeypot { position: absolute !important; left: -9999px !important; }.feedback-submit { justify-self: start; padding: 15px 22px; color: white; background: var(--purple); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); font-size: 1rem; font-weight: 950; cursor: pointer; }.feedback-submit:disabled { opacity: .6; cursor: wait; }.feedback-privacy { margin: -8px 0 0; color: var(--muted); font-size: .84rem; }.feedback-privacy a { color: #5138db; font-weight: 850; }
.feedback-thanks { padding: clamp(35px, 6vw, 70px); text-align: center; background: #e5fff6; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 9px 10px 0 var(--yellow); }.feedback-thanks > span { font-size: 3.5rem; }.feedback-thanks h2 { margin: 5px 0 12px; font-size: clamp(2.2rem, 5vw, 4rem); }.feedback-thanks > p:not(.eyebrow) { color: var(--muted); }.feedback-thanks div { margin-top: 25px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }.feedback-thanks a { padding: 11px 15px; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 11px; font-weight: 900; text-decoration: none; }

/* Tester feedback queue */
.tester-admin-panel { grid-column: 1 / -1; padding: 24px; background: #f5f1ff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 7px 8px 0 var(--cyan); }
.tester-summary { display: flex; flex-wrap: wrap; gap: 8px; }.tester-summary span { padding: 7px 10px; background: white; border: 2px solid var(--ink); border-radius: 999px; font-size: .78rem; }.tester-summary strong { font-size: 1rem; }
.tester-feedback-queue { display: grid; gap: 13px; }.tester-feedback-item { padding: 18px; background: white; border: 2px solid var(--ink); border-radius: 15px; }.tester-feedback-item > p { margin: 13px 0; line-height: 1.55; }.tester-feedback-meta, .tester-feedback-details, .tester-feedback-actions, .feedback-feature-list { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }.tester-feedback-meta { color: var(--muted); font-size: .8rem; }.tester-feedback-meta strong { color: #d99000; font-size: 1rem; }.feedback-status { padding: 4px 7px; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); border-radius: 999px; font-size: .68rem; font-weight: 950; }.feedback-status.status-reviewed { background: var(--cyan); }.feedback-status.status-resolved { background: #bdf5c8; }.feedback-feature-list span { padding: 4px 7px; background: #f2effb; border-radius: 999px; font-size: .72rem; font-weight: 800; }.tester-feedback-details { margin-top: 13px; color: var(--muted); font-size: .78rem; }.tester-feedback-details a { color: #5138db; font-weight: 850; }.tester-feedback-actions { margin-top: 14px; }.tester-feedback-actions button { padding: 7px 10px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 9px; font-weight: 900; cursor: pointer; }

@media (max-width: 850px) {
    .apps-hero { grid-template-columns: 1fr; }.phone-stage { min-height: 570px; }.platform-grid, .apps-feature-strip { grid-template-columns: 1fr; }.platform-card { min-height: 280px; }.tester-callout { grid-template-columns: 1fr; }.tester-callout > a { justify-self: start; }
}
@media (max-width: 600px) {
    .apps-hero, .platform-section, .apps-feature-strip, .tester-callout, .feedback-shell { width: min(100% - 28px, 1180px); }.apps-hero { padding-top: 48px; }.apps-hero-copy h1, .feedback-intro h1 { font-size: 3.35rem; }.spark-one { right: 5px; }.spark-two { left: 2px; }.feedback-grid.two-columns, .rating-row { grid-template-columns: 1fr; }.feedback-grid .full-width { grid-column: auto; }.rating-row label { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; }.rating-row label > span { min-height: 48px; }.rating-row small { margin: 0; text-align: left; padding-left: 12px; }.feedback-route b { display: none; }.site-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .apps-primary-action, .apps-secondary-action, .rating-row label > span { transition: none; }
}

/* Studio member management */
.admin-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.admin-section-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; color: var(--ink); background: var(--cyan); border: 2px solid var(--ink); border-radius: 11px; font-weight: 950; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); }
.members-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.member-summary { margin: 32px 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.member-summary > div { padding: 20px 16px; display: grid; text-align: center; background: var(--panel); border: 2px solid var(--ink); border-radius: 15px; box-shadow: 4px 5px 0 var(--yellow); }
.member-summary strong { font-size: 2rem; line-height: 1; }.member-summary span { margin-top: 7px; color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.member-filter { margin-bottom: 20px; padding: 18px; display: grid; grid-template-columns: minmax(240px, 1fr) 220px auto auto; gap: 12px; align-items: end; background: #f5f1ff; border: 2px solid var(--ink); border-radius: 15px; }
.member-filter label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 900; }.member-filter input, .member-filter select { width: 100%; min-height: 44px; padding: 9px 12px; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 10px; }.member-filter button, .member-filter > a, .member-actions button { min-height: 44px; padding: 9px 14px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; font-weight: 950; text-decoration: none; cursor: pointer; }.member-filter > a { display: inline-flex; align-items: center; justify-content: center; background: white; }
.member-result-count { color: var(--muted); font-size: .84rem; font-weight: 850; }.member-list { display: grid; gap: 15px; }.member-card { padding: 20px; background: var(--panel); border: 2px solid var(--ink); border-radius: 17px; box-shadow: 5px 6px 0 rgba(38,25,64,.14); }.member-identity { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; }.member-avatar { width: 46px; height: 46px; display: grid; place-items: center; background: var(--cyan); border: 2px solid var(--ink); border-radius: 50%; font-size: 1.15rem; font-weight: 950; }.member-identity h2 { margin: 0; overflow-wrap: anywhere; font-size: 1.15rem; }.member-identity p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }.member-status { padding: 6px 9px; border: 2px solid var(--ink); border-radius: 999px; font-size: .7rem; font-weight: 950; text-transform: uppercase; }.member-status.status-active { background: #bdf5c8; }.member-status.status-disabled { background: #ffd5df; }.member-metrics { margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.member-metrics div { padding: 12px; background: #f7f5ff; border-radius: 11px; }.member-metrics dt { color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; }.member-metrics dd { margin: 5px 0 0; font-size: 1.25rem; font-weight: 950; }.member-details { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .78rem; }.member-details strong { color: var(--ink); }.member-actions { margin-top: 17px; padding-top: 15px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); }.member-actions .danger-button { background: #ffd5df; }.member-action-note { margin: 0; color: var(--muted); font-size: .78rem; }
@media (max-width: 720px) { .admin-page-heading { align-items: flex-start; flex-direction: column; }.member-summary { grid-template-columns: 1fr 1fr; }.member-filter { grid-template-columns: 1fr; }.member-identity { grid-template-columns: auto 1fr; }.member-status { grid-column: 1 / -1; justify-self: start; }.member-metrics { grid-template-columns: 1fr 1fr; }.member-actions { align-items: flex-start; flex-direction: column; } }
