#cupRoot { max-width: 920px; margin: 0 auto; padding-bottom: 36px; }
#cupRoot * { box-sizing: border-box; }
.cup-hero { padding: 28px; border-radius: 24px; color: #fffaf0; background: #1b4536; margin-bottom: 20px; }
.cup-hero h1 { font-size: clamp(28px,5vw,44px); line-height: 1.1; margin: 10px 0 14px; overflow-wrap: anywhere; }
.cup-hero p { color: #d1ded3; max-width: 620px; line-height: 1.55; }
.cup-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cup-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.cup-box { border: 1px solid #d9d6c9; background: #fffdf7; border-radius: 20px; padding: 22px; margin-bottom: 16px; min-width: 0; }
.cup-box h2, .cup-box h3 { margin: 0 0 10px; }
.cup-box p { line-height: 1.5; }
.cup-type { border-top: 4px solid #bd9b41; }
.cup-type h2 { font-size: 25px; }
.cup-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
#cupRoot button { cursor: pointer; }
#cupRoot .cup-btn { border-radius: 999px; padding: 11px 18px; border: 1px solid #cfcdbf; background: #fffdf7; color: #1b4536; font-weight: 700; min-height: 44px; }
#cupRoot .cup-btn.primary { color: #fff; background: #1b4536; border-color: #1b4536; }
#cupRoot button:focus-visible, #cupRoot input:focus-visible, #cupRoot select:focus-visible, #cupRoot textarea:focus-visible { outline: 3px solid #b79235; outline-offset: 3px; }
.cup-note { color: #607167; font-size: 13px; }
.cup-local { border-left: 3px solid #bd9b41; padding: 8px 12px; font-size: 13px; background: #faf3db; margin: 14px 0; }
.cup-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
#cupRoot label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
#cupRoot input, #cupRoot select, #cupRoot textarea { width: 100%; min-width: 0; border: 1px solid #cecabb; border-radius: 10px; background: #fff; color: #1b392e; padding: 11px; font: inherit; }
#cupRoot textarea { min-height: 160px; resize: vertical; }
.cup-wide { grid-column: 1 / -1; }
.cup-scroll { overflow-x: auto; }
#cupRoot table { width: 100%; border-collapse: collapse; font-size: 14px; }
#cupRoot th, #cupRoot td { text-align: left; padding: 13px 10px; border-bottom: 1px solid #e4e0d5; white-space: nowrap; }
#cupRoot th { color: #647266; font-weight: 600; }
.cup-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; text-align: center; margin: 24px 0; }
.cup-score strong { font-size: clamp(30px,7vw,58px); color: #f3d77e; white-space: nowrap; }
.cup-score span { overflow-wrap: anywhere; }
.cup-pill { display: inline-block; border-radius: 20px; padding: 5px 10px; background: #e5eee6; font-size: 12px; color: #254d36; }
.cup-round-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cup-match { padding: 16px 0; border-top: 1px solid #e4e0d5; }
.cup-match-grid { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 8px; }
.cup-match-grid span { text-align: center; }
.cup-match select { margin-bottom: 6px; }
.cup-error { color: #9d2b25; font-weight: 600; }
#cupRoot summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
#cupRoot details[open] > summary { margin-bottom: 18px; }
#cupRoot .cup-player-row { display: grid; grid-template-columns: minmax(110px,2fr) minmax(65px,.8fr) minmax(85px,1fr) 44px; gap: 8px; align-items: end; margin-bottom: 14px; }
#cupRoot .cup-profile { grid-template-columns: minmax(110px,2fr) minmax(65px,.8fr) minmax(85px,1fr); }
#cupRoot .cup-tees { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; margin: 12px 0 20px; }
#cupRoot .cup-tee-row { display: grid; grid-template-columns: minmax(0,1fr) 115px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e4e0d5; }
#cupRoot .cup-tee-row small { display: block; color: #607167; font-weight: 400; }
#cupRoot .cup-check { display: flex; align-items: center; border: 1px solid #d9d6c9; border-radius: 24px; padding: 10px; }
#cupRoot .cup-check input { width: 20px; height: 20px; accent-color: #1b4536; }
#cupRoot .cup-side { padding: 16px 0; border-top: 1px solid #e4e0d5; margin-bottom: 14px; }
#cupRoot .cup-side .cup-fields { margin-top: 16px; }
#cupRoot .cup-round-editor h3 { margin-top: 22px; }
#cupRoot .cup-round-editor summary .cup-note { display: block; margin: 6px 0 0 18px; }
@media(max-width: 580px) { #cupRoot .cup-tees { grid-template-columns: 1fr; } #cupRoot .cup-player-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 44px; } #cupRoot .cup-player-row label:first-child { grid-column: 1 / -1; } #cupRoot .cup-profile { grid-template-columns: 1fr 1fr; } }
@media(max-width: 580px) { .cup-grid, .cup-fields { grid-template-columns: 1fr; } .cup-box, .cup-hero { padding: 18px; } .cup-score { gap: 8px; } }
