@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Space+Grotesk:wght@600;700&display=swap');
:root{--bg:#f6f7fb;--ink:#171923;--muted:#737887;--line:#e6e8ef;--card:#fff;--accent:#ff5a36;--blue:#3657e8}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 80% 0,#fff0dc,transparent 34%),var(--bg);color:var(--ink);font:15px 'DM Sans',sans-serif}.shell{max-width:1180px;margin:auto;padding:36px 22px 50px}.hero{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--accent)}h1,h2,p{margin:0}h1{font:700 clamp(32px,5vw,58px) 'Space Grotesk';letter-spacing:-.06em;margin:8px 0}.hero p{color:var(--muted);font-size:16px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 8px 24px #24283b08}.match-form,.rounds,.standings{grid-column:1/-1}.card-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}h2{font:700 21px 'Space Grotesk';letter-spacing:-.03em}.pill{border-radius:99px;background:#fff0e8;color:var(--accent);padding:6px 11px;font-weight:800}.muted,.hint{color:var(--muted);font-size:13px}.hint{margin-top:14px;line-height:1.5}label{display:grid;gap:7px;font-weight:700;font-size:13px}select,input{border:1px solid var(--line);background:#fff;border-radius:11px;padding:12px 13px;font:inherit;color:var(--ink);outline:none}.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.add-row,.match-row{display:flex;gap:10px;align-items:center}.add-row input{flex:1}button{border:0;border-radius:11px;background:var(--ink);color:#fff;padding:12px 16px;font:700 13px inherit;cursor:pointer}.ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}.danger{color:#c83d2c}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.chip{background:#f1f3fa;border-radius:99px;padding:8px 12px;font-weight:700}.chip button{background:transparent;color:#9a9ead;padding:0 0 0 7px}.match-row select{flex:1;min-width:120px}.match-row input{width:62px;text-align:center;font-weight:800}.matches{display:grid;gap:8px;margin-top:16px}.match-item{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#fafafd;border-radius:12px}.match-item button{padding:5px 8px;background:#ffe9e5;color:#c83d2c}.round-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:16px}.round{border:1px solid var(--line);border-radius:15px;padding:14px;background:#fafafd}.round h3{margin:0 0 10px;font:700 15px 'Space Grotesk'}.fixture{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}.fixture:last-child{border-bottom:0}.fixture span{font-weight:700}.fixture small{color:var(--muted)}.empty{color:var(--muted);padding:16px;background:#fafafd;border-radius:12px}.hidden{display:none}.winner{background:linear-gradient(110deg,#fff2b8,#ffe1d7);border-radius:16px;padding:18px;margin-bottom:18px;font-weight:800;font-size:18px}.winner small{display:block;font-size:13px;font-weight:500;margin-top:5px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:720px}th,td{text-align:left;padding:14px 10px;border-bottom:1px solid var(--line)}th{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.player-name{font-weight:800}.rank-medal{font-size:20px}.points{font-weight:800;color:var(--blue);font-size:18px}.roast{margin-top:18px;border:2px dashed #ffb08f;background:#fff8f4;border-radius:16px;padding:18px;line-height:1.7}.roast strong{color:var(--accent)}footer{color:var(--muted);font-size:12px;text-align:center;margin-top:22px}a{color:var(--blue)}@media(max-width:760px){.hero{align-items:start;flex-direction:column}.grid{grid-template-columns:1fr}.match-form,.rounds,.standings{grid-column:auto}.match-row{flex-wrap:wrap}.match-row select{min-width:calc(50% - 35px)}.match-row button{width:100%}}
/* Mobile overflow hardening */
@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); min-width: 0; width: 100%; }
  .grid > * { min-width: 0; width: 100%; }
}
@media (max-width: 600px) {
  body { overflow-x: hidden; }
  .shell { width: 100%; max-width: 100%; }
  .card, .setup, .players, .match-form, .standings { min-width: 0; max-width: 100%; width: 100%; }
  select, input { min-width: 0; max-width: 100%; }
  .add-row input { min-width: 0; }
  .table-wrap { width: 100%; overflow-x: auto; }
}
/* Premium typography and balanced mobile standings */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap');
body{font-family:'Manrope',sans-serif}h1,h2{font-family:'Outfit',sans-serif}
@media(max-width:600px){.standings{padding:14px 10px}.standings .card-title{padding:0 4px}.table-wrap{overflow-x:hidden}table{min-width:0;width:100%;table-layout:fixed;font-size:11px}th,td{padding:9px 3px;word-break:break-word}th{font-size:9px;letter-spacing:0}.player-name{font-size:11px;overflow-wrap:anywhere}.points{font-size:14px}.standings th:nth-child(1),.standings td:nth-child(1){width:25px}.standings th:nth-child(2),.standings td:nth-child(2){width:28%}.standings th:nth-child(7),.standings td:nth-child(7){width:47px}.standings th:nth-child(8),.standings td:nth-child(8){width:36px}.standings th:nth-child(9),.standings td:nth-child(9){width:43px}.standings th:nth-child(10),.standings td:nth-child(10){display:none}}
