@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root { color-scheme: light; --red:#990000; --ink:#202124; --muted:#68707a; --line:#e5e6e9; font:16px/1.5 'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color:var(--ink); background:#fff; }
* { box-sizing:border-box; }
body { margin:0; }
button,input { font:inherit; }
button { cursor:pointer; }
[hidden] { display:none !important; }
a { color:inherit; text-underline-offset:4px; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid #cba8b4; outline-offset:3px; }
.wrap { width:min(100% - 2.25rem,53rem); margin-inline:auto; }
.top { display:flex; justify-content:space-between; align-items:center; gap:1rem; min-height:84px; }
.brand,.back { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; }
.brand { gap:.8rem; font-family:Manrope,-apple-system,sans-serif; font-weight:700; font-size:1.05rem; letter-spacing:-.035em; }
.brand img { width:35px; height:40px; object-fit:contain; }.divider { height:29px; border-left:1px solid #c4c8cc; }
.brand sup { font-size:.55em; position:relative; top:-.28em; margin-left:1px; }.back { font-weight:700; font-size:.9rem; color:var(--red); }
.intro { padding:clamp(1.35rem,5vw,2rem); background:#f7f7f8; border:1px solid var(--line); border-radius:1.2rem; }
.event-logos { display:flex; justify-content:center; align-items:center; margin:0 0 1.1rem; }.event-logos img { display:block; width:clamp(165px,50vw,220px); height:auto; max-width:100%; }
.eyebrow { margin:0 0 .4rem; color:var(--red); font-size:.76rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase; }
h1,h2 { font-family:Manrope,-apple-system,sans-serif; }
h1 { margin:0; font-size:clamp(2.1rem,7.5vw,3.5rem); line-height:1.08; letter-spacing:-.065em; }
h2 { margin:0; font-size:clamp(1.3rem,4.5vw,1.7rem); line-height:1.15; letter-spacing:-.045em; }
.bracket-section { margin-top:1.7rem; }.section-heading { display:flex; align-items:end; gap:.6rem; margin-bottom:.7rem; }.section-heading .eyebrow { margin-bottom:.25rem; }
.bracket-intro { margin:.35rem 0; font-size:.94rem; line-height:1.45; }.bracket-schedule { margin:.35rem 0 .9rem; color:var(--muted); font-size:.82rem; }
.bracket-figure { margin:.8rem 0 0; padding:.6rem; border:1px solid var(--line); border-radius:1rem; background:#fff; box-shadow:0 2px 16px #18233109; }
.bracket-figure figcaption { padding:.4rem .3rem .2rem; color:var(--muted); font-size:.75rem; text-align:center; }
.championship-mark { display:flex; justify-content:center; margin:.7rem auto .3rem; }.championship-mark img { display:block; width:min(100%,22rem); height:auto; max-height:12rem; object-fit:contain; }
.bracket-image { display:block; width:100%; height:auto; }
.bracket-box { fill:#fff; stroke:#d9dce0; stroke-width:2; }.bracket-pending { fill:#f7f7f8; }
.bracket-tile { cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }.bracket-tile:active { cursor:grabbing; }.bracket-tile.drag-source { opacity:.36; }
.bracket-tile.is-selected .bracket-box,.bracket-tile.drop-target .bracket-box,.bracket-tile:focus-visible .bracket-box { fill:#fff3f2; stroke:#990000; stroke-width:4; }
.bracket-line { fill:none; stroke:#9b9fa5; stroke-width:3; }.bracket-column { fill:#8d0015; font:800 19px Manrope,sans-serif; letter-spacing:.04em; }
.bracket-seed { fill:#990000; font:800 20px Manrope,sans-serif; }.bracket-team { fill:#202124; font:700 25px 'DM Sans',sans-serif; }
.bracket-bye { fill:#777b80; font:700 15px 'DM Sans',sans-serif; }.bracket-pending-text { fill:#656970; font:600 20px 'DM Sans',sans-serif; }.bracket-detail { fill:#686d75; font:600 18px 'DM Sans',sans-serif; }
.selection-toolbar { position:fixed; z-index:20; left:50%; bottom:calc(env(safe-area-inset-bottom,0px) + .65rem); transform:translateX(-50%); display:flex; align-items:center; gap:.4rem; width:min(calc(100% - 1.3rem),32rem); padding:.5rem .6rem; border:1px solid #e4d2d2; border-radius:1rem; background:#fff; box-shadow:0 8px 32px #15151538; }
.selection-name { min-width:0; flex:1; overflow:hidden; color:var(--ink); font-size:.84rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }.selection-toolbar button { min-height:44px; padding:.45rem .7rem; border:0; border-radius:.7rem; font-size:.82rem; font-weight:700; }.selection-change { background:var(--red); color:#fff; }.selection-cancel { background:#f2f2f3; color:var(--ink); }
.drag-ghost { position:fixed; z-index:1000; display:flex; align-items:center; gap:.55rem; width:min(260px,75vw); padding:.6rem .8rem; border:1px solid #d9c2c2; border-radius:.75rem; background:#fff; box-shadow:0 10px 28px #14141438; font-weight:700; pointer-events:none; transform:translate(-50%,-50%); }.drag-ghost img { width:28px; height:28px; object-fit:contain; }.drag-ghost span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-top:1rem; }.actions button { min-height:44px; border-radius:99px; padding:.6rem 1rem; font-size:.89rem; font-weight:700; }.primary { border:1px solid #111; background:#111; color:#fff; }.secondary { border:1px solid #d7d9dd; background:#fff; color:var(--ink); }.text-button { border:1px solid transparent; background:transparent; color:var(--muted); }.primary:hover { background:#303030; }.secondary:hover,.text-button:hover { background:#ededee; }
.scenario-note,.status,.rules-note { color:var(--muted); font-size:.85rem; line-height:1.5; }.scenario-note { margin:.85rem 0 0; }.status { margin:.3rem 0 0; color:var(--red); }.status:empty,.seed-status:empty { display:none; }.seed-status { margin:.5rem 0 0; color:var(--red); font-size:.85rem; }
.bowl-panel { margin-top:1.6rem; padding:1rem; border:1px solid var(--line); border-radius:1rem; background:#f8f8f9; }.bowl-panel h3 { margin:0; font-size:.95rem; letter-spacing:-.02em; }.bowl-panel p { margin:.25rem 0 .65rem; color:var(--muted); font-size:.8rem; line-height:1.4; }
.bowl-seeds { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.4rem; margin:.7rem 0; }.bowl-seed { min-width:0; min-height:48px; padding:.4rem .2rem; border:1px solid #dcdde0; border-radius:.6rem; background:#fff; color:var(--ink); font-size:.8rem; font-weight:700; }.bowl-seed[aria-pressed="true"] { border-color:var(--red); background:#fff3f3; color:var(--red); }.bowl-seed small { display:block; overflow:hidden; color:#70757b; font-size:.65rem; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.bowl-choices,.semi-bowls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }.bowl-choice,.semi-bowls > div { display:flex; align-items:center; gap:.5rem; min-width:0; min-height:65px; padding:.45rem .5rem; border:1px solid #dedfe2; border-radius:.7rem; background:#fff; color:var(--ink); text-align:left; }.bowl-choice[aria-pressed="true"] { border-color:var(--red); background:#fff5f5; }.bowl-choice img,.semi-bowls img { flex:none; width:42px; height:42px; object-fit:contain; }.bowl-choice span,.semi-bowls span { min-width:0; font-size:.8rem; font-weight:700; line-height:1.25; }.bowl-choice small,.semi-bowls small { display:block; color:var(--muted); font-size:.73rem; font-weight:500; }
.clear-bowl { min-height:44px; padding:.4rem .1rem; border:0; background:transparent; color:var(--red); font-size:.8rem; font-weight:700; }.semi-title { margin:.65rem 0 .5rem !important; }
.rules-note { margin:1.5rem 0 0; }.footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem 1rem; padding:1.5rem 0 2rem; color:var(--muted); font-size:.85rem; }.footer a { color:var(--ink); font-weight:700; }
dialog { width:min(92vw,32rem); max-height:min(86vh,46rem); padding:1.25rem; border:0; border-radius:1.1rem; box-shadow:0 24px 90px #1116; }dialog::backdrop { background:#16171ccc; }.picker-header { display:flex; justify-content:space-between; align-items:start; gap:1rem; }.close-picker { width:44px; height:44px; border:0; border-radius:50%; background:#f2f2f3; color:#333; font-size:1.6rem; line-height:1; }
.search-label { display:block; margin:1rem 0 .35rem; font-size:.85rem; font-weight:700; }#team-search { display:block; width:100%; min-height:46px; padding:.6rem .8rem; border:1px solid #d6d7dc; border-radius:.65rem; background:#fff; }.picker-hint { margin:.6rem 0; color:var(--muted); font-size:.84rem; }.team-list { max-height:min(43vh,23rem); overflow-y:auto; overscroll-behavior:contain; border-top:1px solid var(--line); }
.team-option { display:flex; align-items:center; gap:.75rem; width:100%; min-height:58px; padding:.55rem .3rem; border:0; border-bottom:1px solid var(--line); background:#fff; color:var(--ink); text-align:left; font-weight:700; }.team-option:hover { background:#f7f7f8; }.team-option img { width:36px; height:36px; object-fit:contain; flex:none; }.team-option > span:first-of-type { flex:1; }.team-option small { display:block; color:var(--muted); font-size:.78rem; font-weight:400; }.assigned { color:var(--red); font-size:.78rem; }.no-results { color:var(--muted); }.remove-team { min-height:44px; margin-top:.7rem; padding:.5rem .25rem; border:0; background:transparent; color:var(--red); font-weight:700; }
@media (max-width:480px) { .top { min-height:72px; }.brand { gap:.55rem; font-size:.86rem; }.brand img { width:30px; height:35px; }.divider { height:25px; }.intro { padding:1.2rem; }.bracket-section { margin-top:1.5rem; }.bowl-panel { padding:.85rem; } }
@media (max-width:370px) { .wrap { width:calc(100% - 1.4rem); }.brand { font-size:.78rem; }.bowl-choice img,.semi-bowls img { width:34px; height:34px; } }
