/* Hackathon shares the learning workspace's paper, ink and type scale. */
.hackathon-workspace{width:100%;box-sizing:border-box;max-width:1180px;margin:0 auto;padding:24px 0 40px;color:#3d3428;display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:24px}
.hackathon-workspace[hidden],.hackathon-workspace [hidden]{display:none!important}
.hackathon-section{min-width:0;border:1.5px solid var(--ink-color,#3d3428);border-radius:16px;background:var(--paper-bright,#fdfcf9);padding:20px;box-shadow:2px 2px 0 rgba(60,52,44,.14)}
.hackathon-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid rgba(60,52,44,.12)}
.hackathon-section-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto}
html .hackathon-section-head h2{display:flex;align-items:center;gap:8px;font:600 var(--gg-type-section,18px)/1.5 var(--ui-font,var(--font-ui,sans-serif));margin:0;white-space:nowrap}
.hackathon-section .hackathon-section-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 12px;border-radius:10px;font-size:12px;white-space:nowrap;text-decoration:none;flex-shrink:0}
.hackathon-section .hackathon-create-action{background:#3d3428;color:#fdfcf9;border-color:#3d3428}
.hackathon-section .hackathon-create-action:hover{background:#4a3f34;color:#fdfcf9;border-color:#4a3f34}
.hackathon-section-action:focus-visible{outline:2px solid var(--accent-color,#d9570f);outline-offset:3px}
#hackathonSavedCount{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;box-sizing:border-box;border:1px solid rgba(60,52,44,.12);border-radius:8px;font:500 12px/1.5 var(--ui-font,sans-serif);color:#9a8b72}
#hackathonSavedCount:empty{display:none}
.hackathon-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}
.hackathon-project-card{min-width:0;background:#fdfcf9;border:1px solid rgba(211,198,185,.42);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.hackathon-saved-cover{position:relative;display:block;flex-shrink:0;overflow:hidden;aspect-ratio:3/2;background:#e9e5dd;color:#fff}
.hackathon-saved-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hackathon-saved-cover:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(24,31,26,.8));pointer-events:none}
.hackathon-saved-cover h4{position:absolute;z-index:1;bottom:16px;left:16px;right:16px;margin:0;font-size:19px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.hackathon-workspace .hackathon-card-copy{padding:18px;flex:1}
.hackathon-card-copy h4{font-size:19px;line-height:1.5;margin:0 0 10px;font-weight:600;overflow-wrap:anywhere}
.hackathon-card-copy p{margin:0 0 12px;line-height:1.7;font-size:15px;overflow-wrap:anywhere;white-space:pre-line}
.hackathon-card-copy small{display:block;color:#9a8b72;font-size:12px;line-height:1.6}
.hackathon-card-actions{padding:0 18px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.hackathon-card-actions a,.hackathon-card-actions button{font:500 13px/1.5 var(--font-ui, sans-serif);color:#4c7e69;min-height:44px;display:inline-flex;align-items:center;border:0;background:none;padding:0;text-decoration:none;cursor:pointer}
.hackathon-card-actions a:hover,.hackathon-card-actions button:hover{text-decoration:underline;text-underline-offset:4px}
/* Reuse Board's paper colors, asymmetric corners and ink shadow in a normal grid. */
.hackathon-workspace .wall-card{box-sizing:border-box;padding:22px;border:2px solid var(--ink-color,#3d3428);border-radius:7px 7px 20px 7px;box-shadow:3px 4px 0 var(--ink-color,#3d3428);background:#f7e6a7;overflow-wrap:anywhere}
.hackathon-workspace .wall-card:nth-child(3n+2){background:#f0f3e9}
.hackathon-workspace .wall-card:nth-child(3n){background:#f9efe7}
.hackathon-workspace .wall-card .wall-note{white-space:pre-wrap;line-height:1.8;margin-bottom:22px}
.hackathon-workspace .wall-card footer{border-top:1px dashed #84776555;padding-top:8px}
.hackathon-workspace .wall-card footer button{border:0;background:transparent;padding:8px 0;cursor:pointer}
.hackathon-idea-note{position:relative;width:auto;min-width:0;display:flex;flex-direction:column}
.hackathon-idea-note h4{margin:0;font:600 var(--gg-type-section,18px)/1.5 var(--ui-font,var(--font-ui,sans-serif));color:var(--ink-color,#3d3428)}
.hackathon-note-stage{font-size:12px;line-height:1.5;color:var(--ink-70,#4a3f34);margin:8px 0 22px}
.hackathon-idea-note .wall-note{margin-top:0;flex:1;font-size:var(--gg-type-body,16px)}
.hackathon-idea-note footer{margin-top:auto}
.hackathon-idea-note footer :is(button,a){display:inline-flex;align-items:center;min-height:44px;font:500 12px/1.5 var(--ui-font,var(--font-ui,sans-serif));color:var(--ink-70,#4a3f34);text-decoration:none}
.hackathon-idea-note footer :is(button,a):hover{text-decoration:underline;text-underline-offset:4px}
.hackathon-idea-note footer :is(button,a):focus-visible{outline:2px solid var(--accent-color,#d9570f);outline-offset:3px}
.hackathon-empty{grid-column:1/-1;margin:0;padding:16px 0;font-size:15px;line-height:1.7;color:#9a8b72}
.hackathon-empty p{margin:0 0 12px}
.hackathon-empty a{color:#4c7e69;text-underline-offset:4px}
.hackathon-status{font-size:14px;color:#9a8b72;line-height:1.7;margin:0 0 16px}
.hackathon-status:empty{display:none}
.hackathon-editor{padding:0;margin-bottom:24px;display:grid;gap:20px}
.hackathon-editor label{display:grid;gap:8px;font-size:13px;color:#746650}
.hackathon-editor input,.hackathon-editor textarea,.hackathon-editor select{width:100%;box-sizing:border-box;border:1px solid rgba(60,52,44,.18);border-radius:10px;padding:12px;font:400 15px/1.6 var(--font-ui, sans-serif);background:#fdfcf9;color:#3d3428;min-height:44px}
.hackathon-editor textarea{resize:vertical}
.hackathon-editor-meta{display:grid;grid-template-columns:2fr 1fr;gap:20px}
.hackathon-editor-actions{display:flex;align-items:center;gap:16px}
/* Games open within the same paper section; executable content stays inside its own frame. */
.hackathon-game-detail{min-width:0}
.hackathon-game-heading{margin-bottom:24px}
.hackathon-game-heading>button{min-height:44px;margin:0 0 12px;padding-left:0}
html .hackathon-game-heading h3{margin:0;font:600 var(--gg-type-project,26px)/1.5 var(--ui-font,var(--font-ui,sans-serif));overflow-wrap:anywhere}
.hackathon-game-heading p{margin:12px 0 0;font-size:16px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.hackathon-game-facts{display:flex;gap:16px 32px;flex-wrap:wrap;margin:0 0 28px;padding:16px 0;border-block:1px solid rgba(60,52,44,.12)}
.hackathon-game-facts>div{display:flex;gap:10px;align-items:baseline;min-width:0}
.hackathon-game-facts dt{color:#9a8b72;font-size:12px;flex-shrink:0}
.hackathon-game-facts dd{margin:0;font-size:13px;overflow-wrap:anywhere}
.hackathon-game-copy{margin:0 0 28px;max-width:780px}
.hackathon-game-copy h4{font:600 15px/1.5 var(--ui-font,var(--font-ui,sans-serif));margin:0 0 10px}
.hackathon-game-copy p{font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.hackathon-game-screenshots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 28px}
.hackathon-game-screenshots figure{margin:0;min-width:0}
.hackathon-game-screenshots img{display:block;max-width:100%;height:auto;border:1px solid rgba(60,52,44,.12);border-radius:10px}
.hackathon-game-screenshots figcaption{font-size:12px;color:#9a8b72;margin-top:8px}
.hackathon-game-versions{margin-top:28px;padding-top:20px;border-top:1px solid rgba(60,52,44,.12)}
.hackathon-game-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.hackathon-game-controls label{display:grid;gap:8px;font-size:12px;color:#746650;min-width:0;max-width:100%}
.hackathon-game-controls select{max-width:100%;min-height:44px;padding:8px 36px 8px 12px;border:1px solid rgba(60,52,44,.18);border-radius:10px;background:#fdfcf9;color:#3d3428;font:400 14px/1.5 var(--ui-font,var(--font-ui,sans-serif))}
.hackathon-game-controls>button{min-height:44px}
.hackathon-version-note{margin:0 0 16px;white-space:pre-wrap;font-size:14px;line-height:1.7;color:#746650;overflow-wrap:anywhere}
.hackathon-version-note:empty{display:none}
.hackathon-game-player{width:100%;border:1px solid rgba(60,52,44,.25);border-radius:12px;overflow:hidden;background:#fff}
.hackathon-game-player iframe{display:block;width:100%;height:min(72vh,720px);min-height:420px;border:0;background:#fff}
.hackathon-game-source{display:inline-flex;align-items:center;min-height:44px;margin-top:20px;color:#4c7e69;font-size:13px;text-underline-offset:4px}
/* The same public score is readable inside an owner's game detail. */
#hackathon-game-score .score-review{max-width:780px;margin:32px 0;padding-top:24px;border-top:1px solid rgba(60,52,44,.16);overflow-wrap:anywhere;scroll-margin-top:24px}
#hackathon-game-score :is(.score-header,.score-dimension-heading){display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
#hackathon-game-score .score-header h2{font:600 18px/1.5 var(--ui-font,sans-serif);margin:0}#hackathon-game-score .score-value{font:600 28px/1.4 var(--ui-font,sans-serif)}
#hackathon-game-score :is(.score-meta,.score-note,.score-method,.score-raw,.score-evidence-note){font-size:13px;line-height:1.8;color:#746650}#hackathon-game-score .score-summary{font-size:15px;line-height:1.8}
#hackathon-game-score .score-details>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-size:14px}
#hackathon-game-score :is(.score-dimension,.score-confidence,.score-stage,.score-cautions){padding:20px 0;border-top:1px solid rgba(60,52,44,.16)}
#hackathon-game-score h3,.hackathon-game-materials h4{font:600 15px/1.5 var(--ui-font,sans-serif);margin:0 0 10px}#hackathon-game-score p,#hackathon-game-score li{font-size:14px;line-height:1.8}
#hackathon-game-score .score-evidence{padding-left:16px;border-left:2px solid rgba(60,52,44,.16);margin:12px 0}#hackathon-game-score blockquote{margin:0;font-size:14px;line-height:1.8}
#hackathon-game-score a,.hackathon-game-materials a{color:#4c7e69;text-underline-offset:4px}.hackathon-game-materials .score-references{padding-left:20px;font-size:13px;line-height:1.8}.hackathon-game-materials a{overflow-wrap:anywhere}
@media(max-width:1050px){.home-view-toggle:has([data-home-view="hackathon"]){max-width:calc(100% - 240px);overflow-x:auto}.home-view-toggle:has([data-home-view="hackathon"]) .home-view-tab{padding-inline:12px}.hackathon-workspace{gap:20px}.hackathon-section{padding:16px}}
@media(max-width:900px){.hackathon-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.home-view-toggle:has([data-home-view="hackathon"]){max-width:calc(100% - 28px)}.home-view-toggle:has([data-home-view="hackathon"]) .home-view-tab{padding-inline:5px;font-size:11px}.hackathon-workspace{padding:10px 0 24px;gap:20px}.hackathon-section-head{gap:8px}.hackathon-editor-meta{grid-template-columns:1fr}}
@media(max-width:560px){.hackathon-project-grid,.hackathon-game-screenshots{grid-template-columns:minmax(0,1fr)}html .hackathon-section-head h2{font-size:16px}.hackathon-section .hackathon-section-action{padding-inline:10px;font-size:12px}html .hackathon-game-heading h3{font-size:var(--gg-type-project,22px)}.hackathon-game-player iframe{min-height:360px}}

.hackathon-saved-skeleton{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.hackathon-saved-skeleton span{height:260px;border-radius:14px;background:linear-gradient(#e9e5dd 65%,#fdfcf9 65%);border:1px solid rgba(60,52,44,.12)}
@media(max-width:900px){.hackathon-saved-skeleton{grid-template-columns:repeat(2,minmax(0,1fr))}.hackathon-saved-skeleton span:last-child{display:none}}
@media(max-width:560px){.hackathon-saved-skeleton{grid-template-columns:1fr}.hackathon-saved-skeleton span:nth-child(2){display:none}}

/* Hackathon interaction system: paper surfaces, quiet controls, readable mobile cards. */
.hackathon-workspace{--hack-line:rgba(60,52,44,.16);--hack-muted:#746650}
.hackathon-section{padding:24px;border-color:var(--hack-line);box-shadow:0 2px 8px rgba(60,52,44,.025)}
.hackathon-section-head{margin-bottom:24px;padding-bottom:20px}
.hackathon-workspace :is(button,a){touch-action:manipulation}
.hackathon-workspace :is(.hackathon-back,.hackathon-delete){display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--hack-line);border-radius:50%;box-shadow:none;background:transparent;color:var(--hack-muted);transform:none;cursor:pointer}
.hackathon-workspace :is(.hackathon-back,.hackathon-delete):hover{background:rgba(60,52,44,.055);color:#3d3428;box-shadow:none;transform:none}
.hackathon-workspace :is(.hackathon-back,.hackathon-delete):focus-visible{outline:2px solid #d9570f;outline-offset:3px}
.hackathon-workspace .hackathon-delete{border-color:transparent}
.hackathon-idea-note>header{display:flex;align-items:flex-start;gap:8px}
.hackathon-idea-note>header h4{flex:1;min-width:0;overflow-wrap:anywhere;padding-top:8px}
.hackathon-note-score{align-self:center;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:0 8px;border:1px solid var(--hack-line);border-radius:8px;color:#4c7e69;font:500 13px/1.5 var(--ui-font,sans-serif);font-variant-numeric:tabular-nums;text-decoration:none}
.hackathon-game-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.hackathon-game-heading{max-width:820px}.hackathon-game-heading h3{letter-spacing:-.02em}
.hackathon-game-copy{padding:24px;border-radius:14px;background:#f5f1ea}
.hackathon-game-copy h4{color:#746650;font-size:14px}.hackathon-game-copy p{line-height:1.85}
.hackathon-game-facts{gap:16px 28px;border-top:0;padding-top:0}
.hackathon-game-facts>div{display:grid;gap:4px}
.hackathon-idea-note footer{display:flex;flex-wrap:wrap;gap:4px 16px}
.hackathon-removal{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px;padding:14px 16px;border:1px solid var(--hack-line);border-radius:12px;background:#f5f1ea}
.hackathon-removal p{margin:0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.hackathon-removal>div{display:flex;gap:8px}
.hackathon-removal button{min-height:44px;padding:8px 14px;border:1px solid var(--hack-line);border-radius:10px;box-shadow:none;background:#fdfcf9;color:#3d3428;font:600 14px/1.5 var(--ui-font,sans-serif);transform:none}
.hackathon-removal [data-confirm-delete]{color:#993c1d}.hackathon-removal [data-undo-delete]{color:#4c7e69}
@media(max-width:720px){
 .hackathon-workspace .wall-card{padding:18px}
 .hackathon-section{padding:16px;border-radius:14px}.hackathon-workspace{gap:20px}
 .hackathon-section-head{align-items:flex-start;gap:12px;margin-bottom:20px;padding-bottom:16px}
 .hackathon-section-actions{gap:8px}.hackathon-section .hackathon-section-action{padding-inline:10px;box-shadow:none}
 .hackathon-game-copy{padding:18px 16px}.hackathon-game-heading p,.hackathon-game-copy p{font-size:16px;line-height:1.8}
 .hackathon-editor :is(input,textarea,select),.hackathon-game-controls select{font-size:16px}
 .hackathon-game-controls label{width:100%}.hackathon-game-controls select{width:100%}
 .hackathon-saved-cover h4{font-size:20px}.hackathon-idea-note .wall-note{font-size:16px;line-height:1.75}
}
@media(prefers-reduced-motion:reduce){.hackathon-workspace *{scroll-behavior:auto;transition:none!important}}

/* Cover navigation cue stays visible on touch screens. */
.hackathon-saved-cover h4{right:56px}
.hackathon-cover-entry{position:absolute;right:18px;bottom:20px;z-index:2;display:grid;place-items:center;width:20px;height:20px;color:rgba(255,254,249,.78);transition:color .18s,transform .18s}
.hackathon-cover-entry svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hackathon-saved-cover img{transition:transform .25s ease}
.hackathon-saved-cover:focus-visible{outline:3px solid #d9570f;outline-offset:-4px}
.hackathon-saved-cover:focus-visible .hackathon-cover-entry{color:#fffefa}
@media(hover:hover){.hackathon-saved-cover:hover .hackathon-cover-entry{color:#fffefa;transform:translateX(2px)}.hackathon-saved-cover:hover img{transform:scale(1.025)}}
.hackathon-saved-cover:active .hackathon-cover-entry{transform:scale(.94)}
@media(prefers-reduced-motion:reduce){.hackathon-cover-entry,.hackathon-saved-cover img{transition:none}.hackathon-saved-cover:hover img,.hackathon-saved-cover:hover .hackathon-cover-entry{transform:none}}
