@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --maroon: #73000a;
    --maroon-dark: #470006;
    --gold: #b59a57;
    --gold-light: #e2cf9e;
    --ink: #241f20;
    --muted: #665e60;
    --paper: #f7f5f1;
    --white: #ffffff;
    --smoke: #d3dfd3;
    --teal: #527b82;
    --green: #788a38;
    --orange: #b7410e;
    --line: #ded8cf;
    --scroll-track: #ebe7e0;
    --shadow: 0 18px 45px rgba(49, 22, 24, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scrollbar-color: var(--maroon) var(--scroll-track);
    scrollbar-width: thin;
}
textarea,
.leaderboard-table-wrap {
    scrollbar-color: var(--maroon) var(--scroll-track);
    scrollbar-width: thin;
}
html::-webkit-scrollbar,
textarea::-webkit-scrollbar,
.leaderboard-table-wrap::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
html::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track,
.leaderboard-table-wrap::-webkit-scrollbar-track {
    background: var(--scroll-track);
}
html::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb,
.leaderboard-table-wrap::-webkit-scrollbar-thumb {
    background: var(--maroon);
    border: 3px solid var(--scroll-track);
    border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover,
.leaderboard-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}
html::-webkit-scrollbar-corner,
textarea::-webkit-scrollbar-corner,
.leaderboard-table-wrap::-webkit-scrollbar-corner {
    background: var(--scroll-track);
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
    position: fixed;
    top: 0;
    left: 1rem;
    z-index: 999;
    transform: translateY(-120%);
    background: var(--white);
    color: var(--maroon);
    padding: .75rem 1rem;
    font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
    min-height: 78px;
    padding: .7rem clamp(1rem, 4vw, 4rem);
    background: var(--maroon-dark);
    display: flex;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 2px solid var(--gold);
}
.brand-link { display: flex; align-items: center; width: 220px; height: 44px; flex: 0 0 auto; }
.brand-link img { width: 210px; height: auto; }
.topbar nav { display: flex; gap: 1.5rem; margin-left: auto; }
.topbar nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: .92rem; }
.topbar nav a:hover { color: var(--gold-light); }
.admin-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-light); border: 1px solid var(--gold); padding: .35rem .65rem; text-decoration: none; font-weight: 700; font-size: .82rem; }
.admin-link:hover { background: var(--gold); color: var(--maroon-dark); }
.admin-link svg { width: 17px; height: 17px; }
.system-status {
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .78rem;
    color: rgba(255,255,255,.78);
    white-space: nowrap;
}
.system-status::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: .45rem; }
.system-status.is-ready::before { background: var(--green); }
.system-status.is-offline::before { background: var(--orange); }

.hero {
    min-height: 690px;
    position: relative;
    overflow: hidden;
    background: var(--maroon-dark);
    color: var(--white);
    display: grid;
    align-items: end;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,0,4,.92) 0%, rgba(58,4,9,.76) 36%, rgba(58,4,9,.12) 72%); }
.hero-content { position: relative; z-index: 2; width: min(760px, 90%); padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7rem); }
.eyebrow, .section-label { color: var(--gold-light); text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 700; margin: 0 0 .8rem; }
.hero h1, h2, h3 { font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; line-height: 1.05; }
.hero h1 { font-size: clamp(3.4rem, 7vw, 6.7rem); margin: 0 0 1.4rem; letter-spacing: -.035em; max-width: 750px; }
.hero-content > p:not(.eyebrow) { font-size: clamp(1.05rem, 1.5vw, 1.35rem); max-width: 650px; margin: 0 0 2rem; color: rgba(255,255,255,.9); }
.hero-brief { position: absolute; z-index: 3; right: clamp(1rem, 5vw, 5rem); bottom: 2.5rem; background: var(--gold); color: var(--maroon-dark); padding: 1rem 1.35rem; display: grid; gap: .15rem; box-shadow: var(--shadow); }
.hero-brief strong { font-family: 'Roboto Condensed'; font-size: 1.35rem; }
.hero-brief span { font-size: .83rem; }

.button { border: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.2rem; text-decoration: none; font-weight: 700; cursor: pointer; }
.button-gold { background: var(--gold); color: var(--maroon-dark); }
.button-gold:hover { background: var(--gold-light); }
.button:disabled { opacity: .55; cursor: wait; }

.section-shell { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.section-block { padding-block: clamp(4rem, 8vw, 7.5rem); }
.mission { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 8vw, 7rem); align-items: start; }
.mission .section-label, .section-heading .section-label, .leaderboard-section .section-label { color: var(--maroon); }
h2 { font-size: clamp(2.3rem, 4.3vw, 4.2rem); margin: 0 0 1rem; letter-spacing: -.025em; color: var(--maroon-dark); }
.mission-copy { font-size: 1.12rem; max-width: 700px; }
.mission-copy p:first-child { margin-top: 0; }
.mission-goal { margin-top: 1.7rem; padding: 1.25rem 1.4rem; background: var(--maroon); color: var(--white); border-left: 8px solid var(--gold); box-shadow: var(--shadow); }
.mission-goal span { display: block; margin-bottom: .35rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.mission-goal strong { display: block; font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.16; }

.section-heading { max-width: 800px; margin-bottom: 2.5rem; }
.section-heading > p:not(.section-label) { color: var(--muted); font-size: 1.05rem; }
.team-intro { max-width: 760px; padding: 1rem 1.15rem; border-left: 5px solid var(--gold); background: #f4ead2; color: var(--maroon-dark) !important; font-size: clamp(1.08rem, 1.6vw, 1.28rem) !important; line-height: 1.5; box-shadow: 0 10px 28px rgba(49,22,24,.08); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; background: var(--white); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
label { display: grid; gap: .45rem; font-weight: 700; color: var(--maroon-dark); }
input, select, textarea {
    width: 100%;
    border: 1px solid #bdb6ae;
    background: var(--white);
    color: var(--ink);
    padding: .82rem .9rem;
    border-radius: 4px;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
textarea::placeholder { color: #6f686a; opacity: 1; font-style: italic; font-weight: 400; }
textarea:focus::placeholder { color: transparent; opacity: 0; }
.response-field textarea { min-height: 220px; }
input:focus, select:focus, textarea:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(181,154,87,.28); outline: 0; }

.roles-section { background: var(--maroon-dark); color: var(--white); }
.light-heading h2, .light-heading p { color: var(--white) !important; }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.role-card { background: rgba(255,255,255,.08); border-top: 4px solid var(--gold); padding: 1.5rem; display: flex; flex-direction: column; min-height: 390px; }
.role-card h3 { font-size: 1.65rem; margin: .5rem 0; }
.role-card p { color: rgba(255,255,255,.78); }
.role-card small { color: var(--gold-light); margin-top: auto; font-weight: 700; }
.role-number { font-family: 'Roboto Condensed'; font-size: 2.4rem; color: var(--gold); }
.role-link { border-top: 1px solid rgba(255,255,255,.2); margin-top: 1.1rem; padding-top: 1rem; color: var(--white); text-decoration: none; font-weight: 700; }
.role-link:hover { color: var(--gold-light); }
.role-mission { margin-top: 1rem; padding: .85rem .9rem; background: rgba(255,255,255,.08); border-left: 3px solid var(--gold); }
.role-mission strong { color: var(--gold-light); font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }
.role-mission p { margin: .35rem 0 0; color: rgba(255,255,255,.86); font-size: .88rem; line-height: 1.5; }

.tasks-heading { max-width: none; display: flex; gap: 3rem; justify-content: space-between; align-items: end; }
.tasks-heading > div:first-child { max-width: 750px; }
.task-progress { min-width: 240px; text-align: right; color: var(--muted); font-size: .88rem; }
.progress-track { height: 8px; background: #ddd7cf; margin-top: .55rem; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--maroon); transition: width .25s ease; }
.decision-rail { position: relative; display: grid; gap: 1rem; }
.decision-rail::before { content: ''; position: absolute; left: 30px; top: 34px; bottom: 34px; width: 2px; background: var(--gold); }
.task-card { background: var(--white); box-shadow: 0 8px 28px rgba(49,22,24,.07); position: relative; }
.task-card summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; }
.task-card summary::-webkit-details-marker { display: none; }
.task-node { width: 58px; height: 58px; border-radius: 50%; background: var(--maroon); color: var(--white); display: grid; place-items: center; font-family: 'Roboto Condensed'; font-size: 1.25rem; position: relative; z-index: 2; }
.task-title { display: grid; }
.task-title small { color: var(--maroon); font-weight: 700; }
.task-title strong { font-family: 'Roboto Condensed'; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.task-ready { opacity: 0; color: var(--green); font-weight: 700; }
.task-card.is-ready .task-ready { opacity: 1; }
.task-card.is-ready .task-node { background: var(--green); }
.task-content { border-top: 1px solid var(--line); padding: 1.5rem 1.5rem 2rem 5.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.context-label { margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--maroon); }
.task-context p:not(.context-label) { margin-top: 0; }
.task-briefing { color: var(--muted); }
.task-stakes { background: #f2ede4; border-left: 4px solid var(--gold); padding: .75rem .9rem; color: var(--ink); }
.task-stakes strong { color: var(--maroon); }
.task-question { font-family: 'Roboto Condensed'; font-size: 1.35rem; font-weight: 700; color: var(--maroon-dark); }
.role-contributions ul { padding-left: 1.15rem; margin: .5rem 0; }
.role-contributions li { margin-bottom: .45rem; }
.hint-control { grid-column: 1 / -1; }
.hint-button { border: 1px solid var(--gold); background: #f4ead2; color: var(--maroon-dark); padding: .65rem .9rem; font-weight: 700; cursor: pointer; }
.hint-button:hover, .hint-button[aria-expanded="true"] { background: var(--gold-light); }
.hint-button span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: .4rem; border-radius: 50%; background: var(--maroon); color: var(--white); }
.hint-panel { margin-top: .6rem; padding: .9rem 1rem; background: #fbf7ed; border-left: 4px solid var(--gold); }
.hint-panel p { margin: .35rem 0 0; color: var(--muted); }
.response-field { grid-column: 1 / -1; }
.response-field > span { color: var(--muted); font-size: .84rem; font-weight: 400; }
.save-row { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.save-button { min-width: 110px; border: 1px solid #cfb978; background: #f2e5c6; color: var(--maroon-dark); padding: .65rem 1rem; font-weight: 700; cursor: pointer; }
.save-button:hover, .save-button:focus-visible { background: var(--gold-light); }
.save-status { color: var(--muted); font-size: .86rem; }
.save-status.is-saved { color: var(--green); font-weight: 700; }
.save-status.is-dirty { color: var(--orange); font-weight: 700; }
.save-row-dark .save-status { color: rgba(255,255,255,.75); }
.save-row-dark .save-status.is-saved { color: #d9f1ce; }
.save-row-dark .save-status.is-dirty { color: var(--gold-light); }
.task-save-row { grid-column: 1 / -1; justify-content: flex-end; }

.identity-section { background: var(--teal); color: var(--white); }
.identity-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.identity-fields label { color: var(--white); }
.logo-field { grid-column: 1 / -1; display: grid; gap: .65rem; position: relative; }
.logo-field-label { color: var(--white); font-size: .96rem; font-weight: 700; }
.logo-native-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.logo-upload-card { min-height: 132px; padding: 1rem 1.1rem; border: 2px dashed var(--gold-light); background: rgba(255,255,255,.96); color: var(--ink) !important; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.logo-upload-card:hover { border-color: var(--gold); background: var(--white); transform: translateY(-2px); }
.logo-native-input:focus-visible + .logo-upload-card { outline: 3px solid var(--gold-light); outline-offset: 4px; border-color: var(--maroon); }
.logo-upload-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gold-light); color: var(--maroon); display: grid; place-items: center; }
.logo-upload-icon svg { width: 34px; height: 34px; }
.logo-upload-copy { display: grid; gap: .2rem; }
.logo-upload-copy strong { color: var(--maroon-dark); font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; font-size: 1.35rem; }
.logo-upload-copy span { color: var(--muted); font-size: .86rem; font-weight: 400; }
.logo-upload-button { background: var(--maroon); color: var(--white); padding: .68rem .9rem; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.logo-file-name { width: fit-content; color: var(--white); background: rgba(71,0,6,.38); border-left: 3px solid var(--gold-light); padding: .35rem .6rem; font-size: .88rem; font-weight: 600; }
.logo-preview { width: 78px; height: 78px; object-fit: contain; background: var(--white); border: 1px solid var(--line); padding: .35rem; }
.logo-preview:not([hidden]) + .logo-upload-icon { display: none; }
.identity-save-row { grid-column: 2; }

.reflection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.reflection-grid textarea { resize: none; height: 150px; min-height: 150px; }
.wide-field { grid-column: 1 / -1; }
.submit-section { background: var(--maroon); color: var(--white); padding-block: 3.5rem; }
.submit-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.submit-grid h2, .submit-grid p { color: var(--white); }
.submit-actions { min-width: min(360px, 100%); }
.submit-actions .button { width: 100%; }
.form-message { min-height: 1.5rem; font-size: .9rem; margin-bottom: 0; }
.form-message[data-type="error"] { color: #ffd3d6; }
.form-message[data-type="success"] { color: #d9f1ce; }
.form-message[data-type="processing"] { color: var(--gold-light); }
.incomplete-dialog { width: min(620px, calc(100% - 2rem)); border: 0; padding: 0; box-shadow: 0 24px 70px rgba(32,0,4,.35); }
.incomplete-dialog::backdrop { background: rgba(32,0,4,.72); }
.incomplete-dialog-content { padding: clamp(1.4rem,4vw,2.6rem); background: var(--white); }
.incomplete-dialog h2 { font-size: clamp(2rem,5vw,3.3rem); }
.missing-items-panel { margin: 1rem 0 1.15rem; background: #fff1f2; border: 1px solid #efc2c7; border-left: 5px solid var(--orange); padding: 1rem 1.1rem; color: var(--ink); }
.missing-items-panel p { margin: 0 0 .65rem; color: var(--maroon-dark); }
.missing-items-panel li::marker { color: var(--orange); }
.incomplete-dialog ul { columns: 2; padding-left: 1.2rem; }
.incomplete-dialog li { margin-bottom: .35rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .8rem; margin-top: 1.5rem; }
.dialog-secondary { background: var(--scroll-track); color: var(--maroon-dark); border: 1px solid var(--line); }

.results-section { margin-block: 4rem; padding: clamp(1.5rem, 5vw, 4rem); background: var(--white); box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; }
.score-orbit { width: 190px; height: 190px; border-radius: 50%; background: var(--maroon); color: var(--white); display: flex; align-items: baseline; justify-content: center; padding-top: 3.5rem; box-shadow: 0 0 0 12px var(--gold-light); }
.score-orbit span { font-family: 'Roboto Condensed'; font-size: 4.6rem; font-weight: 700; line-height: 1; }
.dimension-results { display: grid; gap: .7rem; }
.dimension-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.dimension-row div { display: grid; }
.dimension-row span { color: var(--muted); font-size: .88rem; }
.dimension-row b { color: var(--maroon); font-family: 'Roboto Condensed'; font-size: 1.25rem; }

.leaderboard-section { background: var(--white); }
.leaderboard-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; }
.text-button { border: 0; background: transparent; color: var(--maroon); font-weight: 700; cursor: pointer; text-decoration: underline; }
.leaderboard-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
th { text-align: left; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; padding: .8rem; border-bottom: 2px solid var(--maroon); }
td { padding: 1rem .8rem; border-bottom: 1px solid var(--line); }
.rank-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--maroon); color: var(--white); font-weight: 700; }
.score-suffix { color: var(--muted); font-size: .8rem; }
.empty-state { text-align: center; color: var(--muted); padding: 3rem; }

footer { background: var(--maroon-dark); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem clamp(1.25rem, 6vw, 6rem); }
footer strong { font-family: 'Roboto Condensed'; font-size: 1.35rem; }
footer p { margin: .2rem 0 0; color: rgba(255,255,255,.75); }
footer img { width: 190px; }

@media (max-width: 980px) {
    .topbar nav { display: none; }
    .system-status { margin-left: auto; }
    .role-grid { grid-template-columns: 1fr 1fr; }
    .hero-brief { display: none; }
    .identity-grid, .mission { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 680px) {
    .topbar { min-height: 66px; padding-inline: 1rem; }
    .brand-link { width: 145px; height: 34px; }
    .brand-link img { width: 140px; }
    .admin-link { margin-left: auto; font-size: 0; padding: .4rem; }
    .admin-link svg { width: 18px; height: 18px; }
    .system-status { font-size: 0; padding: .45rem; }
    .system-status::before { margin: 0; }
    .hero { min-height: 650px; }
    .hero > img { object-position: 68% center; }
    .hero-shade { background: linear-gradient(0deg, rgba(45,0,4,.95) 0%, rgba(53,0,5,.74) 60%, rgba(53,0,5,.2) 100%); }
    .hero-content { padding: 3rem 1.25rem; }
    .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
    .section-shell { width: min(100% - 1.5rem, 1180px); }
    .team-grid, .role-grid, .reflection-grid, .identity-fields { grid-template-columns: 1fr; }
    .logo-upload-card { grid-template-columns: auto 1fr; }
    .logo-upload-button { grid-column: 1 / -1; justify-self: start; }
    .tasks-heading, .leaderboard-heading { display: block; }
    .task-progress { text-align: left; margin-top: 1.5rem; }
    .task-card summary { grid-template-columns: 48px 1fr; padding: 1rem; }
    .task-node { width: 44px; height: 44px; }
    .task-ready { display: none; }
    .decision-rail::before { left: 31px; }
    .task-content { padding: 1rem; grid-template-columns: 1fr; }
    .response-field { grid-column: 1; }
    .submit-grid, .results-section { grid-template-columns: 1fr; }
    .identity-save-row { grid-column: 1; }
    .submit-actions { min-width: 0; }
    .score-orbit { width: 145px; height: 145px; padding-top: 2.6rem; }
    .score-orbit span { font-size: 3.5rem; }
    footer { display: grid; }
    .incomplete-dialog ul { columns: 1; }
    .dialog-actions { display: grid; }
}

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

/* Expanded context: scenario, cast panel, task method, field guide */
.news-list { margin: .6rem 0 1rem; padding-left: 1.2rem; }
.news-list li { margin-bottom: .55rem; line-height: 1.55; }
.cast { padding-block: clamp(3rem, 6vw, 5rem); }
.cast .section-heading p { max-width: 720px; color: var(--muted); }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.cast-card { background: var(--white); border-top: 4px solid var(--gold); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.cast-card h3 { margin: 0 0 .6rem; font-size: 1.2rem; color: var(--maroon); }
.cast-card p, .cast-card li { font-size: .96rem; line-height: 1.55; color: var(--ink); }
.cast-card ul { margin: 0; padding-left: 1.1rem; }
.cast-card li { margin-bottom: .5rem; }
.task-method { background: var(--white); border-left: 8px solid var(--maroon); padding: 1.4rem 1.6rem; margin: 1.8rem 0 2.2rem; box-shadow: var(--shadow); }
.task-method h3 { margin: 0 0 .8rem; font-size: 1.3rem; color: var(--maroon); }
.task-method ol { margin: 0; padding-left: 1.3rem; }
.task-method li { margin-bottom: .55rem; line-height: 1.55; }
.task-method-note { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }


/* Café wall */
.cafes-section { background: var(--paper, #f7f5f1); }
.cafes-section .section-heading p { max-width: 720px; color: var(--muted); }
.cafe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.cafe-empty { grid-column: 1 / -1; }
.cafe-card { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: .25rem; padding: 1rem .9rem .8rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); box-shadow: var(--shadow); cursor: pointer; font: inherit; color: var(--ink); position: relative; overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.cafe-card:hover, .cafe-card:focus-visible { transform: translateY(-3px); border-color: var(--maroon); outline: none; }
.cafe-logo { width: 74px; height: 74px; object-fit: contain; border-radius: 12px; background: #fff; flex: 0 0 auto; }
.cafe-logo-fallback { display: flex; align-items: center; justify-content: center; background: var(--maroon); color: var(--white); font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; font-size: 2.4rem; font-weight: 700; }
.cafe-team { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); }
.cafe-name { font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; font-size: 1.2rem; line-height: 1.1; }
.cafe-members { list-style: none; margin: .15rem 0 0; padding: 0; font-size: .76rem; line-height: 1.3; color: var(--muted); }
.cafe-members li { display: flex; justify-content: center; gap: .35rem; }
.cafe-members small { color: var(--gold-dark, #8a7440); }
.cafe-score { position: absolute; top: .6rem; right: .7rem; font-weight: 700; color: var(--maroon); }
.cafe-score small { font-weight: 400; color: var(--muted); }
.cafe-dialog { border: 0; padding: 0; width: min(760px, 92vw); max-height: 88vh; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.cafe-dialog::backdrop { background: rgba(35,10,10,.55); }
.cafe-dialog-content { padding: 1.8rem 2rem 2rem; position: relative; overflow-y: auto; max-height: 88vh; }
.dialog-close { position: absolute; top: .6rem; right: .8rem; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cafe-dialog-head { display: flex; gap: 1.4rem; align-items: center; margin-bottom: 1rem; }
.cafe-dialog-logo { width: 120px; height: 120px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.cafe-dialog h3 { margin: .2rem 0; font-size: 1.9rem; }
.cafe-slogan { font-style: italic; color: var(--muted); margin: 0; }
.cafe-dialog-score { margin: .4rem 0 0; color: var(--maroon); }
.cafe-dialog-score strong { font-size: 1.6rem; }
.cafe-dialog h4 { margin: 1.2rem 0 .4rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); }
.cafe-members-large { font-size: .95rem; }
.cafe-members-large li { justify-content: flex-start; }
.cafe-response { border: 1px solid var(--line); padding: .5rem .8rem; margin-bottom: .4rem; }
.cafe-response summary { cursor: pointer; font-weight: 700; }
.cafe-response p { white-space: pre-wrap; margin: .5rem 0 0; font-size: .93rem; line-height: 1.5; }
