:root{font-family:system-ui,sans-serif;color:#1e2341;background:#f2f5f8;--blue:#3e3d83;--teal:#007b8e;--line:#d8dfe9}
*{box-sizing:border-box}
body{margin:0}
.masthead{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.4rem max(1.25rem,calc((100% - 1320px)/2))}
.masthead img{width:min(32vw,300px);height:auto}
h1,h2,h3{margin:0;line-height:1.15}
h1{font-size:clamp(1.8rem,4vw,3rem)}
main{max-width:1360px;margin:auto;padding:1.25rem 1.25rem 5rem}
:root:fullscreen{font-size:clamp(16px,min(1.3vw,2.05vh),28px);--board-gutter:clamp(1rem,2.5vw,2rem);overflow:auto}
:root:fullscreen main{max-width:none;padding-inline:var(--board-gutter)}
:root:fullscreen #screen-content.fit main{padding-bottom:.5rem}
:root:fullscreen #screen-content.fit #columns{grid-template-columns:repeat(4,minmax(0,1fr))}
:root:fullscreen .masthead{padding-inline:var(--board-gutter)}
:root:fullscreen .masthead img{width:min(26vw,15rem)}
:root:fullscreen #columns{gap:1rem}
:root:fullscreen .column{gap:.65rem}
:root:fullscreen .roster h2,:root:fullscreen .column h2{font-size:1.3rem}
:root:fullscreen .answer,:root:fullscreen .chip{min-height:max(44px,2.65rem)}
:root:fullscreen .row{padding:.45rem}
#fullscreen{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:3;box-shadow:0 3px 12px #18243c33}
#fullscreen-message{position:fixed;right:1rem;bottom:4.5rem;z-index:3;max-width:min(24rem,calc(100% - 2rem));padding:.6rem .85rem;background:white;border:1px solid var(--line);border-radius:.55rem}
details,.roster,.row{background:#fff;border:1px solid var(--line);border-radius:1rem}
summary{padding:.8rem 1rem;font-weight:700;cursor:pointer}
form{padding:0 1rem 1rem}
label{display:block;font-weight:700}
textarea,input{width:100%;padding:.6rem;border:1px solid #8792a7;border-radius:.45rem;font:inherit}
#names-help,.hint,#progress,.intro p{color:#4c5772}
#names-help{margin:.25rem 0 .6rem}
#options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:.85rem;margin-top:1rem}
fieldset{min-width:0;border:1px solid var(--line);border-radius:.6rem}
fieldset label{margin:.35rem 0}
.row-option{display:block;field-sizing:content;min-height:3.6em;resize:vertical;overflow-wrap:anywhere}
button{font:inherit;font-weight:700;cursor:pointer;border:1px solid transparent;border-radius:.55rem;min-height:44px;padding:.5rem .85rem;background:var(--blue);color:#fff}
button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #007f93;outline-offset:3px}
.actions,.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.secondary,.chip{background:#fff;color:var(--blue);border-color:#9395bd}
.chip.active{background:var(--blue);color:white}
.intro{margin:.35rem 0 .65rem}
.intro p,#progress{margin:.5rem 0}
.roster{padding:.75rem}
.roster h2,.column h2{font-size:1.15rem;overflow-wrap:anywhere}
#columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:1rem}
.column{display:grid;grid-template-rows:auto minmax(2.75em,auto);grid-auto-rows:min-content;gap:.5rem;align-content:start}
.question{color:#4c5772;margin:0}
.row{border-inline-start:5px solid #139c59;padding:.35rem}
.row[data-answer="1"]{border-inline-start-color:#f5b835}
.row[data-answer="2"]{border-inline-start-color:#00a6bd}
.row[data-answer="3"]{border-inline-start-color:#a84689}
.row.over{background:#e0f8f5;outline:3px solid var(--teal)}
.answer{display:flex;align-items:center;min-height:44px;padding:.5rem .85rem;border-radius:.55rem;font-size:1rem;background:#f0f2fa;color:#1e2341;overflow-wrap:anywhere;white-space:pre-wrap}
.row .chips:not(:empty){padding-top:.35rem}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:.5rem .85rem;border:1px solid #9395bd;border-radius:.55rem;font-weight:700;cursor:grab;touch-action:none;user-select:none;overflow-wrap:anywhere;max-width:100%}
.chip.placed{background:#f2f3f5;color:#30343b;border-color:#d0d4da}
#roster .in-progress{background:#fff0da;color:#873c00;border-color:#b96617}
#roster .complete{background:#e4f5e9;color:#155832;border-color:#398455}
.ghost{position:fixed;z-index:4;pointer-events:none;transform:translate(-50%,-50%);box-shadow:0 8px 25px #18243c55;max-width:75vw}
#message{margin:.4rem 0;color:#354365}
#message:empty{margin:0}
@media(max-width:760px){#columns{grid-template-columns:repeat(2,minmax(0,1fr))}.masthead{padding:1rem}.masthead img{width:38vw}}
