:root {
    --hackathon-coral: #ff6458;
    --hackathon-coral-dark: #c83f35;
    --hackathon-ink: #111827;
    --hackathon-muted: #667085;
    --hackathon-line: #d9dee8;
    --hackathon-paper: #f3f5f9;
    --hackathon-white: #ffffff;
}

.hackathon-landing,
.hackathon-upload-intro,
.hackathon-sample-button,
.hackathon-parent-goal,
.hackathon-processing-journey,
.hackathon-ai-disclosure,
.hackathon-result-primary {
    display: none;
}

html[data-hackathon-mode="true"] body {
    color: var(--hackathon-ink);
    background: var(--hackathon-paper);
    font-family: Arial, "Helvetica Neue", sans-serif;
    letter-spacing: 0;
}

html[data-hackathon-mode="true"] button,
html[data-hackathon-mode="true"] a,
html[data-hackathon-mode="true"] input,
html[data-hackathon-mode="true"] summary {
    letter-spacing: 0;
}

html[data-hackathon-mode="true"] .hackathon-landing,
html[data-hackathon-mode="true"] .hackathon-upload-intro,
html[data-hackathon-mode="true"] .hackathon-sample-button,
html[data-hackathon-mode="true"] .hackathon-processing-journey,
html[data-hackathon-mode="true"] .hackathon-ai-disclosure,
html[data-hackathon-mode="true"] .hackathon-result-primary {
    display: block;
}

html[data-hackathon-mode="true"] body[data-page="app"] .nav-tabs,
html[data-hackathon-mode="true"] body[data-page="app"] #navSignInBtn,
html[data-hackathon-mode="true"] body[data-page="app"] #sessionStatus,
html[data-hackathon-mode="true"] body[data-page="app"] #guestQuotaOverlay,
html[data-hackathon-mode="true"] body[data-page="app"] #uploadThrottleOverlay,
html[data-hackathon-mode="true"] body[data-page="app"] .features-grid,
html[data-hackathon-mode="true"] body[data-page="app"] #guestQuotaOverlay .guest-quota-overlay__actions,
html[data-hackathon-mode="true"] body[data-page="app"] #guestQuotaOverlay .guest-quota-overlay__hint,
html[data-hackathon-mode="true"] body[data-page="app"] #uploadThrottleActions,
html[data-hackathon-mode="true"] body[data-page="app"] #uploadThrottleHint {
    display: none !important;
}

html[data-hackathon-mode="true"] body:not([data-page="app"]) > section:not(.hackathon-landing),
html[data-hackathon-mode="true"] body:not([data-page="app"]) > footer,
html[data-hackathon-mode="true"] body:not([data-page="app"]) nav .hidden.md\:flex:not(.nav-actions),
html[data-hackathon-mode="true"] body:not([data-page="app"]) #mobileMenu > a,
html[data-hackathon-mode="true"] body:not([data-page="app"]) #mobileMenu > hr,
html[data-hackathon-mode="true"] body[data-page="app"] .app-brand .logo-icon {
    display: none !important;
}

html[data-hackathon-mode="true"] nav,
html[data-hackathon-mode="true"] .app-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--hackathon-line);
    box-shadow: none;
}

.hackathon-eyebrow {
    margin: 0 0 10px;
    color: var(--hackathon-coral-dark);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.hackathon-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hackathon-button--primary {
    color: #ffffff;
    background: var(--hackathon-coral);
}

.hackathon-button--primary:hover,
.hackathon-button--primary:focus-visible {
    color: #ffffff;
    background: var(--hackathon-coral-dark);
    transform: translateY(-1px);
}

.hackathon-button--secondary {
    color: var(--hackathon-ink);
    background: var(--hackathon-white);
    border-color: var(--hackathon-ink);
}

.hackathon-button--secondary:hover,
.hackathon-button--secondary:focus-visible {
    color: var(--hackathon-coral-dark);
    border-color: var(--hackathon-coral-dark);
}

.hackathon-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

/* Landing */
html[data-hackathon-mode="true"] .hackathon-landing {
    max-width: none;
    padding: 0;
    background: var(--hackathon-paper);
}

.hackathon-hero {
    position: relative;
    min-height: min(820px, calc(100dvh - 70px));
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
}

.hackathon-hero__art {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
    background: #eeeeea;
}

.hackathon-hero__art::after {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: min(58%, 830px);
    background: rgba(247, 247, 244, 0.94);
    content: "";
}

.hackathon-hero__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 48%;
}

.hackathon-hero__art figcaption {
    position: absolute;
    right: 24px;
    bottom: 18px;
    z-index: 2;
    max-width: 48ch;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.hackathon-hero__copy {
    width: min(56%, 800px);
    padding: clamp(54px, 8vw, 118px) clamp(24px, 7vw, 108px) clamp(70px, 9vw, 128px);
}

.hackathon-hero h1 {
    max-width: 13ch;
    margin: 0;
    color: var(--hackathon-ink);
    font-size: clamp(2.55rem, 5.3rem, 5.3rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: 0;
}

.hackathon-hero__lead {
    max-width: 55ch;
    margin: 28px 0 0;
    color: #3f4745;
    font-size: 1.12rem;
    line-height: 1.75;
}

.hackathon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hackathon-boundary {
    max-width: 58ch;
    margin: 20px 0 0;
    color: var(--hackathon-muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.6;
}

.hackathon-hero-markers {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hackathon-hero-marker {
    position: absolute;
    display: block;
    max-width: 220px;
    border-left: 4px solid var(--hackathon-coral);
    padding: 8px 10px;
    color: var(--hackathon-ink);
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.35;
}

.hackathon-hero-marker--one { top: 19%; left: 68%; }
.hackathon-hero-marker--two { top: 51%; left: 58%; }
.hackathon-hero-marker--three { top: 32%; left: 82%; }

.hackathon-how,
.hackathon-safety {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hackathon-how {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.55fr);
    gap: clamp(38px, 7vw, 100px);
    padding: 92px 0 80px;
}

.hackathon-section-heading h2,
.hackathon-safety h2 {
    margin: 0;
    color: var(--hackathon-ink);
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    font-weight: 820;
    line-height: 1.08;
    letter-spacing: 0;
}

.hackathon-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--hackathon-line);
}

.hackathon-steps li {
    min-height: 210px;
    padding: 28px 28px 34px 0;
    border-bottom: 1px solid var(--hackathon-line);
}

.hackathon-steps li:nth-child(odd) {
    padding-right: 32px;
    border-right: 1px solid var(--hackathon-line);
}

.hackathon-steps li:nth-child(even) {
    padding-left: 32px;
}

.hackathon-steps span {
    color: var(--hackathon-coral-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.hackathon-steps h3 {
    margin: 18px 0 9px;
    font-size: 1.18rem;
    font-weight: 800;
}

.hackathon-steps p,
.hackathon-safety li {
    margin: 0;
    color: var(--hackathon-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.hackathon-safety {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    padding: 72px 0;
    border-top: 1px solid var(--hackathon-line);
}

.hackathon-safety ul {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hackathon-safety li {
    padding-left: 22px;
    border-left: 3px solid var(--hackathon-coral);
}

.hackathon-mini-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 36px;
    border-top: 1px solid var(--hackathon-line);
    color: var(--hackathon-muted);
    font-size: 0.82rem;
}

.hackathon-mini-footer a {
    color: var(--hackathon-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Upload */
html[data-hackathon-mode="true"] body[data-page="app"] .main-content > .container {
    max-width: 1100px;
}

html[data-hackathon-mode="true"] .hackathon-upload-intro {
    max-width: 720px;
    margin: 12px auto 28px;
    text-align: center;
}

.hackathon-upload-intro h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 840;
    line-height: 1.05;
}

.hackathon-upload-intro p:last-child {
    max-width: 56ch;
    margin: 15px auto 0;
    color: var(--hackathon-muted);
    line-height: 1.65;
}

html[data-hackathon-mode="true"] #step-upload > .text-center {
    display: none;
}

html[data-hackathon-mode="true"] .upload-flow-border {
    padding: 0;
    background: transparent;
}

html[data-hackathon-mode="true"] .upload-area {
    border: 1px dashed #969d9a;
    border-radius: 6px;
    background: var(--hackathon-white);
    box-shadow: none;
}

html[data-hackathon-mode="true"] .upload-floating-icons,
html[data-hackathon-mode="true"] .upload-icon-wrapper {
    display: none;
}

html[data-hackathon-mode="true"] .upload-btn-primary,
html[data-hackathon-mode="true"] .upload-selected-primary {
    background: var(--hackathon-coral);
    box-shadow: none;
}

html[data-hackathon-mode="true"] .hackathon-sample-button {
    min-height: 42px;
    margin-top: 12px;
    border: 0;
    padding: 8px 12px;
    color: var(--hackathon-ink);
    background: transparent;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 4px;
}

html[data-hackathon-mode="true"] .age-group-card[data-age-group="6-8"],
html[data-hackathon-mode="true"] .age-group-card[data-age-group="9-12"] {
    display: flex;
}

html[data-hackathon-mode="true"] .hackathon-parent-goal:not(.hidden) {
    display: block;
}

.hackathon-parent-goal {
    max-width: 920px;
    margin: 30px auto 0;
    border: 0;
    padding: 0;
}

.hackathon-parent-goal legend {
    padding: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.hackathon-parent-goal > p {
    margin: 6px 0 14px;
    color: var(--hackathon-muted);
    font-size: 0.82rem;
}

.hackathon-goal-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #bfc4c1;
    border-radius: 6px;
    background: var(--hackathon-white);
}

.hackathon-goal-control button {
    min-height: 52px;
    border: 0;
    border-right: 1px solid #bfc4c1;
    padding: 8px 10px;
    color: var(--hackathon-ink);
    background: transparent;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.35;
}

.hackathon-goal-control button:last-child { border-right: 0; }

.hackathon-goal-control button.is-selected {
    color: #ffffff;
    background: var(--hackathon-coral);
}

.hackathon-submit-row {
    display: none;
    max-width: 920px;
    margin: 18px auto 0;
    justify-content: flex-end;
}

.hackathon-parent-goal:not(.hidden) + .hackathon-submit-row {
    display: flex;
}

.hackathon-submit-row .upload-selected-primary {
    width: min(100%, 360px);
    min-height: 50px;
}

/* Processing */
html[data-hackathon-mode="true"] .processing-container {
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html[data-hackathon-mode="true"] .processing-bg,
html[data-hackathon-mode="true"] .processing-animation,
html[data-hackathon-mode="true"] #step-processing .processing-title,
html[data-hackathon-mode="true"] #step-processing .processing-step,
html[data-hackathon-mode="true"] #step-processing .step-progress-bar,
html[data-hackathon-mode="true"] #step-processing .step-progress-labels,
html[data-hackathon-mode="true"] #step-processing .fun-tip,
html[data-hackathon-mode="true"] #step-processing .detail-progress {
    display: none;
}

html[data-hackathon-mode="true"] #step-processing .processing-content {
    padding: 34px 0;
}

.hackathon-processing-journey {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(330px, 1.1fr);
    align-items: center;
    gap: clamp(34px, 7vw, 86px);
}

.hackathon-processing-artwork {
    margin: 0;
}

.hackathon-processing-artwork img {
    width: 100%;
    height: min(58vh, 510px);
    min-height: 320px;
    border: 1px solid var(--hackathon-line);
    background: var(--hackathon-white);
    object-fit: contain;
}

.hackathon-processing-artwork figcaption {
    margin-top: 10px;
    color: var(--hackathon-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hackathon-processing-stages {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hackathon-processing-stage {
    position: relative;
    min-height: 68px;
    padding: 20px 12px 20px 52px;
    border-bottom: 1px solid var(--hackathon-line);
    color: #969c99;
    font-size: 1rem;
    font-weight: 700;
}

.hackathon-processing-stage::before {
    position: absolute;
    top: 18px;
    left: 4px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #aeb4b1;
    border-radius: 50%;
    color: #7d8582;
    background: var(--hackathon-paper);
    content: counter(list-item, decimal-leading-zero);
    font-size: 0.65rem;
}

.hackathon-processing-stage.is-active {
    color: var(--hackathon-ink);
}

.hackathon-processing-stage.is-active::before {
    border-color: var(--hackathon-coral);
    color: #ffffff;
    background: var(--hackathon-coral);
    animation: hackathon-pulse 1.7s ease-in-out infinite;
}

.hackathon-processing-stage.is-complete {
    color: var(--hackathon-ink);
}

.hackathon-processing-stage.is-complete::before {
    border-color: var(--hackathon-ink);
    color: var(--hackathon-ink);
    content: "✓";
}

@keyframes hackathon-pulse {
    50% { transform: scale(1.08); }
}

.hackathon-ai-disclosure {
    border-top: 1px solid var(--hackathon-line);
    border-bottom: 1px solid var(--hackathon-line);
}

.hackathon-ai-disclosure--processing {
    margin-top: 34px;
}

.hackathon-ai-disclosure summary {
    min-height: 50px;
    padding: 14px 2px;
    color: var(--hackathon-ink);
    font-weight: 800;
    cursor: pointer;
}

.hackathon-ai-disclosure p {
    max-width: 74ch;
    margin: 0;
    padding: 0 0 20px;
    color: var(--hackathon-muted);
    line-height: 1.65;
}

/* Result journey */
html[data-hackathon-mode="true"] body[data-page="app"]
    .main-content > .container:has(> #step-result:not(.hidden)) {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

html[data-hackathon-mode="true"] .hackathon-result-primary {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.hackathon-result-band {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 60px max(24px, calc((100% - 1100px) / 2));
    border-bottom: 1px solid var(--hackathon-line);
}

.hackathon-result-band h2 {
    max-width: 24ch;
    margin: 0;
    font-size: clamp(1.9rem, 3.5vw, 3.4rem);
    font-weight: 840;
    line-height: 1.08;
    letter-spacing: 0;
}

.hackathon-discovery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: clamp(30px, 6vw, 74px);
    margin-top: 38px;
    min-width: 0;
}

.hackathon-evidence-panel,
.hackathon-evidence-rail,
.hackathon-conversation-paths,
.hackathon-direction-grid,
.hackathon-reference-region,
.hackathon-adventure > * {
    min-width: 0;
    max-width: 100%;
}

.hackathon-evidence-panel {
    overflow-x: clip;
    contain: inline-size;
}

.hackathon-original-frame {
    position: relative;
    width: 100%;
    min-height: 520px;
    margin: 0;
    border: 1px solid var(--hackathon-line);
    background: #ffffff;
}

.hackathon-original-frame img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: contain;
}

.hackathon-original-frame figcaption {
    position: absolute;
    right: 12px;
    bottom: 10px;
    padding: 5px 8px;
    color: var(--hackathon-ink);
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.72rem;
    font-weight: 800;
}

.hackathon-original-frame.is-unavailable::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--hackathon-muted);
    content: attr(data-unavailable-label);
}

.hackathon-evidence-pins {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hackathon-evidence-pin {
    position: absolute;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: var(--hackathon-coral-dark);
    box-shadow: 0 2px 8px rgba(24, 32, 31, 0.24);
    font-size: 0.86rem;
    font-weight: 800;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.hackathon-evidence-pin.is-selected {
    outline: 4px solid rgba(232, 95, 79, 0.28);
    transform: translate(-50%, -50%) scale(1.08);
}

.hackathon-evidence-summary {
    display: grid;
    gap: 10px;
    min-height: 150px;
    margin: 0 0 18px;
    padding-left: 18px;
    border-left: 4px solid var(--hackathon-coral);
}

.hackathon-evidence-summary > span:first-child {
    color: var(--hackathon-coral-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hackathon-evidence-summary strong {
    font-size: 1.35rem;
    line-height: 1.25;
}

.hackathon-evidence-summary > span:last-child {
    color: var(--hackathon-muted);
    line-height: 1.65;
}

.hackathon-evidence-rail {
    display: grid;
    gap: 7px;
}

.hackathon-evidence-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    width: 100%;
    min-height: 64px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 8px 10px;
    color: var(--hackathon-ink);
    background: transparent;
    text-align: left;
}

.hackathon-evidence-item.is-selected {
    border-color: var(--hackathon-line);
    background: #ffffff;
}

.hackathon-evidence-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--hackathon-coral-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

.hackathon-evidence-item > span:last-child {
    display: grid;
    gap: 3px;
}

.hackathon-evidence-item strong { font-size: 0.88rem; }
.hackathon-evidence-item small { color: var(--hackathon-muted); font-size: 0.7rem; }

.hackathon-affirmation {
    display: grid;
    grid-template-columns: minmax(140px, 0.25fr) minmax(0, 1fr);
    gap: 8px 28px;
    margin-top: 28px;
    padding: 22px 0;
    border-top: 1px solid var(--hackathon-line);
    border-bottom: 1px solid var(--hackathon-line);
}

.hackathon-affirmation-label {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 2px 0 0;
    color: var(--hackathon-coral-dark);
    font-size: 0.75rem;
    font-weight: 820;
    text-transform: uppercase;
}

.hackathon-affirmation blockquote {
    grid-column: 2;
    margin: 0;
    color: var(--hackathon-ink);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.45;
}

.hackathon-intention-line {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 4px 0 0;
    color: var(--hackathon-muted);
    font-size: 0.78rem;
}

.hackathon-intention-line strong { color: var(--hackathon-coral-dark); }

.hackathon-conversation-paths,
.hackathon-direction-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

html[data-hackathon-mode="true"] .hackathon-conversation-paths {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--hackathon-line);
    margin-top: 18px;
}

.hackathon-question-item {
    display: grid;
    grid-template-columns: 48px minmax(150px, 0.4fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--hackathon-line);
}

.hackathon-question-item > span {
    color: var(--hackathon-coral-dark);
    font-size: 0.76rem;
    font-weight: 820;
}

.hackathon-question-item strong { font-size: 0.94rem; }

.hackathon-question-item p {
    margin: 0;
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    font-weight: 680;
    line-height: 1.4;
}

.hackathon-question-item small {
    grid-column: 3;
    color: var(--hackathon-muted);
    line-height: 1.55;
}

html[data-hackathon-mode="true"] .hackathon-conversation .hackathon-inline-action,
html[data-hackathon-mode="true"] .hackathon-conversation-dialog {
    display: none;
}

.hackathon-path-button,
.hackathon-direction-choice {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--hackathon-line);
    border-radius: 6px;
    padding: 20px;
    color: var(--hackathon-ink);
    background: #ffffff;
    text-align: left;
}

.hackathon-path-button {
    display: grid;
    min-height: 150px;
    align-content: start;
    gap: 12px;
}

.hackathon-path-button strong,
.hackathon-direction-choice strong {
    font-size: 1rem;
    line-height: 1.3;
}

.hackathon-path-button span,
.hackathon-direction-choice span span {
    color: var(--hackathon-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.hackathon-path-button.is-selected,
.hackathon-direction-choice.is-selected {
    border-color: var(--hackathon-coral);
    box-shadow: inset 0 0 0 2px var(--hackathon-coral);
}

.hackathon-inline-action {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.hackathon-inline-action p {
    margin: 0;
    color: var(--hackathon-muted);
    font-size: 0.86rem;
}

.hackathon-conversation-dialog {
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 1px solid var(--hackathon-line);
    border-radius: 6px;
    padding: clamp(24px, 5vw, 48px);
    color: var(--hackathon-ink);
    background: var(--hackathon-paper);
}

.hackathon-conversation-dialog::backdrop { background: rgba(24, 32, 31, 0.72); }

.hackathon-dialog-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hackathon-dialog-topline p {
    margin: 0;
    color: var(--hackathon-coral-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.hackathon-icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--hackathon-line);
    border-radius: 50%;
    color: var(--hackathon-ink);
    background: #ffffff;
    font-size: 1.4rem;
}

.hackathon-conversation-dialog h3 {
    margin: 28px 0 0;
    font-size: 1rem;
    font-weight: 800;
}

.hackathon-dialog-question {
    min-height: 135px;
    margin: 16px 0 0;
    font-size: clamp(1.7rem, 4vw, 2.65rem);
    font-weight: 780;
    line-height: 1.25;
}

.hackathon-dialog-note,
.hackathon-privacy-note {
    color: var(--hackathon-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.hackathon-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hackathon-privacy-note {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--hackathon-line);
}

.hackathon-studio { background: #f0f1ed; }

.hackathon-direction-choice {
    display: grid;
    grid-template-rows: 128px auto;
    gap: 16px;
    padding: 8px 8px 20px;
}

.hackathon-direction-choice img {
    width: 100%;
    height: 128px;
    border-radius: 3px;
    background: var(--hackathon-paper);
    object-fit: cover;
}

.hackathon-direction-choice > span {
    display: grid;
    gap: 8px;
    padding: 0 10px;
}

.hackathon-direction-choice:nth-child(2) img { object-position: 35% 52%; }
.hackathon-direction-choice:nth-child(3) img { filter: contrast(0.9) saturate(0.78); object-position: 70% 42%; }

.hackathon-direction-confirmation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--hackathon-line);
    border-bottom: 1px solid var(--hackathon-line);
}

.hackathon-direction-confirmation[hidden] { display: none; }

.hackathon-direction-confirmation p {
    max-width: 62ch;
    margin: 0;
    line-height: 1.55;
}

.hackathon-reference-region {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.45fr);
    min-height: 430px;
    margin-top: 28px;
    border: 1px solid var(--hackathon-line);
    background: #ffffff;
}

.hackathon-reference-media {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #eceeea;
}

.hackathon-reference-media:empty::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #a0a6a3;
    content: attr(data-empty-label);
    padding: 30px;
    text-align: center;
}

.hackathon-reference-media > img,
.hackathon-reference-media .image-compare-wrapper {
    width: 100%;
    height: 430px;
    object-fit: contain;
}

.hackathon-reference-region[data-state="pending"] .hackathon-reference-media::after,
.hackathon-reference-region[data-state="processing"] .hackathon-reference-media::after {
    position: absolute;
    inset: auto 0 0;
    padding: 12px;
    color: #ffffff;
    background: rgba(24, 32, 31, 0.84);
    content: attr(data-pending-label);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.hackathon-reference-status {
    display: flex;
    align-items: center;
    padding: 28px;
    color: var(--hackathon-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.hackathon-reference-note {
    margin: 12px 0 0;
    color: var(--hackathon-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.hackathon-adventure {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.62fr);
    align-items: center;
    gap: clamp(42px, 8vw, 110px);
    background: #ffffff;
}

.hackathon-adventure > div > p:not(.hackathon-eyebrow) {
    max-width: 52ch;
    color: var(--hackathon-muted);
    line-height: 1.65;
}

.hackathon-adventure .hackathon-button { margin-top: 14px; }

#hackathonAdventureStatus {
    min-height: 22px;
    font-size: 0.78rem;
}

#hackathonAdventurePreview {
    display: block;
    width: min(100%, 390px);
    aspect-ratio: 3 / 4;
    justify-self: end;
    border: 1px solid var(--hackathon-line);
    background: var(--hackathon-paper);
    box-shadow: 0 18px 42px rgba(24, 32, 31, 0.12);
}

html[data-hackathon-mode="true"] #step-result:not(.hidden) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

html[data-hackathon-mode="true"] .result-first-screen {
    display: block;
    width: min(1180px, calc(100% - 48px));
    order: 1;
    margin: 0 auto;
    padding: 64px 0 72px;
}

html[data-hackathon-mode="true"] .hackathon-result-primary {
    order: 3;
}

html[data-hackathon-mode="true"] .result-second-screen {
    order: 2;
}

html[data-hackathon-mode="true"] .hackathon-ai-disclosure--result {
    order: 4;
}

html[data-hackathon-mode="true"] .hackathon-studio {
    display: none;
}

html[data-hackathon-mode="true"] .hackathon-adventure {
    display: none;
}

.enhanced-story {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(250px, 0.45fr);
    align-items: start;
    gap: clamp(28px, 5vw, 72px);
    background: #ffffff;
}

.enhanced-story [hidden] {
    display: none !important;
}

.enhanced-story-copy > p:not(.hackathon-eyebrow) {
    max-width: 58ch;
    color: var(--hackathon-muted);
    line-height: 1.55;
}

.enhanced-story-status {
    min-height: 52px;
    margin: 24px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--hackathon-line);
}

.enhanced-story.is-story-goal .enhanced-story-status {
    border-left-color: var(--hackathon-coral);
}

.enhanced-story-media {
    display: none;
    margin: 0;
}

.enhanced-story-media.is-visible {
    display: block;
}

.enhanced-story-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border: 1px solid var(--hackathon-line);
    background: var(--hackathon-paper);
}

.enhanced-story-media figcaption {
    margin-top: 8px;
    color: var(--hackathon-muted);
    font-size: 0.78rem;
}

.enhanced-story-content {
    grid-column: 1 / -1;
    max-width: 800px;
    padding: clamp(24px, 4vw, 44px);
    border-left: 4px solid var(--hackathon-coral);
    background: var(--hackathon-paper);
}

.enhanced-story-content h3 {
    margin: 0 0 16px;
    color: var(--hackathon-ink);
    font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.enhanced-story-content p {
    margin: 0;
    color: var(--hackathon-ink);
    font-size: 1.02rem;
    line-height: 1.85;
    white-space: pre-line;
}

.enhanced-story-content small {
    display: block;
    margin-top: 22px;
    color: var(--hackathon-muted);
    line-height: 1.6;
}

@media (max-width: 700px) {
    .enhanced-story {
        grid-template-columns: minmax(0, 1fr);
    }

    .enhanced-story-content {
        grid-column: 1;
    }

    .hackathon-question-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .hackathon-question-item p,
    .hackathon-question-item small {
        grid-column: 2;
    }
}

.hackathon-score-intro {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hackathon-line);
}

.hackathon-score-intro h2 {
    max-width: 18ch;
    margin: 0;
    color: var(--hackathon-ink);
    font-size: clamp(1.9rem, 3.3vw, 3.25rem);
    font-weight: 840;
    line-height: 1.02;
}

.hackathon-score-intro > p:last-child {
    max-width: 64ch;
    margin: 16px 0 0;
    color: var(--hackathon-muted);
    line-height: 1.65;
}

html[data-hackathon-mode="true"] .result-header {
    text-align: left;
}

html[data-hackathon-mode="true"] .result-overview-grid,
html[data-hackathon-mode="true"] .feedback-section-compact {
    border-color: var(--hackathon-line);
    box-shadow: none;
}

html[data-hackathon-mode="true"] .score-badge-large {
    background: var(--hackathon-coral);
}

html[data-hackathon-mode="true"] .result-second-screen {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 0;
}

html[data-hackathon-mode="true"] .result-second-screen > .explainability-section {
    display: none;
}

html[data-hackathon-mode="true"] .hackathon-detailed-observations {
    border-top: 1px solid var(--hackathon-line);
    border-bottom: 1px solid var(--hackathon-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html[data-hackathon-mode="true"] .hackathon-detailed-observations > summary {
    min-height: 66px;
    padding: 20px 2px;
    font-size: 1.15rem;
    font-weight: 820;
    cursor: pointer;
}

html[data-hackathon-mode="true"] .hackathon-detailed-observations .detail-scores-section {
    padding: 0 0 34px;
}

html[data-hackathon-mode="true"] .hackathon-detailed-observations .detail-scores-section > .section-title {
    display: none;
}

.hackathon-ai-disclosure--result {
    margin: 24px 0 72px;
}

html[data-hackathon-mode="true"] .result-actions .btn-gradient-primary,
html[data-hackathon-mode="true"] .upload-selected-badge {
    background: var(--hackathon-coral);
}

@media (max-width: 900px) {
    .hackathon-hero {
        min-height: min(900px, calc(100dvh - 62px));
        align-items: flex-end;
    }

    .hackathon-hero__art::after {
        inset: auto 0 0;
        width: 100%;
        height: 54%;
        background: rgba(247, 247, 244, 0.95);
    }

    .hackathon-hero__art img { object-position: 52% 24%; }
    .hackathon-hero__copy { width: 100%; padding: 38px 30px 55px; }
    .hackathon-hero h1 { max-width: 17ch; font-size: 3.1rem; }
    .hackathon-hero__lead { max-width: 64ch; margin-top: 18px; }
    .hackathon-hero-marker { max-width: 170px; font-size: 0.65rem; }
    .hackathon-hero-marker--one { top: 9%; left: 55%; }
    .hackathon-hero-marker--two { top: 27%; left: 20%; }
    .hackathon-hero-marker--three { top: 17%; left: 72%; }
    .hackathon-hero__art figcaption { top: 42%; bottom: auto; }

    .hackathon-how { grid-template-columns: 1fr; padding: 72px 0 64px; }
    .hackathon-safety { gap: 40px; }
    .hackathon-processing-journey { grid-template-columns: minmax(240px, 0.8fr) minmax(290px, 1.2fr); }
    .hackathon-original-frame,
    .hackathon-original-frame img { min-height: 430px; height: 430px; }
    .hackathon-discovery-layout { grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr); }
    .hackathon-reference-region { grid-template-columns: 1fr; }
    .hackathon-reference-status { min-height: 100px; }
}

@media (max-width: 700px) {
    html[data-hackathon-mode="true"] body:not([data-page="app"]) .mobile-menu-button { display: none; }

    .hackathon-hero { min-height: calc(100dvh - 58px); }
    .hackathon-hero__art::after { height: 60%; }
    .hackathon-hero__copy { padding: 28px 20px 40px; }
    .hackathon-hero h1 { font-size: 2.4rem; line-height: 1.02; }
    .hackathon-hero__lead { font-size: 0.92rem; line-height: 1.55; }
    .hackathon-actions { margin-top: 20px; }
    .hackathon-actions .hackathon-button { flex: 1 1 180px; }
    .hackathon-boundary { font-size: 0.7rem; }
    .hackathon-hero-marker { display: none; }
    .hackathon-hero__art figcaption { top: 34%; right: 12px; max-width: 30ch; text-align: right; }

    .hackathon-how,
    .hackathon-safety,
    .hackathon-mini-footer { width: min(100% - 32px, 1180px); }
    .hackathon-how { gap: 30px; padding: 60px 0 50px; }
    .hackathon-section-heading h2,
    .hackathon-safety h2 { font-size: 2rem; }
    .hackathon-steps { grid-template-columns: 1fr; }
    .hackathon-steps li,
    .hackathon-steps li:nth-child(odd),
    .hackathon-steps li:nth-child(even) {
        min-height: 0;
        padding: 22px 0;
        border-right: 0;
    }
    .hackathon-safety { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; }

    .hackathon-upload-intro { margin-top: 0; }
    .hackathon-upload-intro h2 { font-size: 2rem; }
    .hackathon-goal-control { grid-template-columns: 1fr 1fr; }
    .hackathon-goal-control button:nth-child(2) { border-right: 0; }
    .hackathon-goal-control button:nth-child(-n+2) { border-bottom: 1px solid #bfc4c1; }

    .hackathon-processing-journey { grid-template-columns: 1fr; gap: 22px; }
    .hackathon-processing-artwork img { min-height: 250px; height: 38vh; max-height: 330px; }
    .hackathon-processing-stage { min-height: 54px; padding: 15px 8px 15px 48px; font-size: 0.88rem; }
    .hackathon-processing-stage::before { top: 11px; }

    .hackathon-result-band { padding: 58px 16px; }
    .hackathon-result-band h2 { font-size: 2rem; }
    .hackathon-discovery-layout { grid-template-columns: 1fr; gap: 22px; margin-top: 26px; }
    .hackathon-original-frame,
    .hackathon-original-frame img { min-height: 340px; height: 50vh; max-height: 470px; }
    .hackathon-evidence-pin { width: 38px; height: 38px; }
    .hackathon-evidence-summary { min-height: 132px; }
    .hackathon-evidence-rail {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        grid-auto-columns: 100%;
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        touch-action: pan-x pan-y;
        padding-bottom: 8px;
        scroll-padding-inline: 0;
        scroll-snap-type: x mandatory;
    }
    .hackathon-evidence-item { scroll-snap-align: start; }

    .hackathon-affirmation { grid-template-columns: 1fr; gap: 8px; }
    .hackathon-affirmation-label,
    .hackathon-affirmation blockquote,
    .hackathon-intention-line { grid-column: 1; grid-row: auto; }
    .hackathon-affirmation blockquote { font-size: 1.2rem; }

    .hackathon-conversation-paths,
    .hackathon-direction-grid { grid-template-columns: 1fr; }
    .hackathon-path-button { min-height: 118px; }
    .hackathon-inline-action { align-items: stretch; flex-direction: column; }
    .hackathon-dialog-actions { display: grid; grid-template-columns: 1fr; }
    .hackathon-dialog-actions .hackathon-button { width: 100%; }
    .hackathon-direction-choice { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 112px; align-items: center; }
    .hackathon-direction-choice img { height: 112px; }
    .hackathon-direction-confirmation { align-items: stretch; flex-direction: column; }
    .hackathon-direction-confirmation .hackathon-button { width: 100%; }
    .hackathon-reference-region { min-height: 0; height: auto; }
    .hackathon-reference-media,
    .hackathon-reference-media > img,
    .hackathon-reference-media .image-compare-wrapper { min-height: 330px; height: 330px; }
    .hackathon-reference-status { min-height: auto; padding: 20px; }

    .hackathon-adventure { grid-template-columns: 1fr; gap: 34px; }
    #hackathonAdventurePreview { width: min(100%, 360px); justify-self: center; }
    html[data-hackathon-mode="true"] .result-second-screen { padding-top: 50px; }

    html[data-hackathon-mode="true"] .result-first-screen,
    html[data-hackathon-mode="true"] .result-second-screen {
        width: calc(100% - 32px);
    }

    html[data-hackathon-mode="true"] .result-first-screen {
        padding-top: 42px;
        padding-bottom: 54px;
    }

    .hackathon-score-intro h2 { font-size: 2.35rem; }
}

@media (max-width: 380px) {
    .hackathon-hero__art::after { height: 64%; }
    .hackathon-hero h1 { font-size: 2.05rem; }
    .hackathon-hero__lead { font-size: 0.82rem; }
    .hackathon-button { width: 100%; }
    .hackathon-goal-control { grid-template-columns: 1fr; }
    .hackathon-goal-control button,
    .hackathon-goal-control button:nth-child(2) {
        min-height: 46px;
        border-right: 0;
        border-bottom: 1px solid #bfc4c1;
    }
    .hackathon-goal-control button:last-child { border-bottom: 0; }
    .hackathon-original-frame,
    .hackathon-original-frame img { min-height: 300px; height: 44vh; }
    .hackathon-direction-choice { grid-template-columns: 86px minmax(0, 1fr); grid-template-rows: 96px; }
    .hackathon-direction-choice img { height: 96px; }
    .hackathon-reference-region { min-height: 0; height: auto; }
    .hackathon-reference-media,
    .hackathon-reference-media > img,
    .hackathon-reference-media .image-compare-wrapper { min-height: 290px; height: 290px; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-hackathon-mode="true"] *,
    html[data-hackathon-mode="true"] *::before,
    html[data-hackathon-mode="true"] *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
