.cup-shell{width:min(100%,490px);margin:0 auto;padding:30px 24px 28px;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.4}
.cups-masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:9px;border-bottom:1px solid var(--ink)}.cups-masthead>a{display:block;max-width:70%}.cups-masthead img{width:170px;max-width:100%;height:auto;display:block}.cup-account{min-height:44px;border:0;padding:8px;font-size:13px;white-space:nowrap}.cups-masthead .cup-account{flex:0 1 auto;min-width:0}.cups-masthead>a{flex-shrink:0}.cups-masthead #account-state{max-width:150px}.cup-edition{margin:6px 0 14px;font-size:12px;font-weight:700}
.cups-page h1{font:bold 39px/1.05 Georgia,'Times New Roman',serif;letter-spacing:-1.3px;margin:10px 0;overflow-wrap:anywhere}.cups-page h1:focus{outline:none}.cup-back,.cup-text,.cup-link{border:0;background:transparent;color:inherit;font:inherit;min-height:44px;padding:8px 0;text-decoration:underline;text-underline-offset:4px;text-align:left}.cup-back{display:block;font-size:16px;font-weight:700;margin:8px 0 12px}.cup-rule{margin:12px 0 0}.cup-deadline{margin:0;font-size:17px}.cup-hint{font-size:13px;color:var(--muted)}
.cup-standings{border-collapse:collapse;width:calc(100% + 12px);table-layout:fixed;margin:32px -6px 0}.cup-standings thead th{font:bold 21px/1.2 Georgia,serif;padding:0 8px 10px;border-bottom:1px solid #8e8c86;text-align:left}.cup-standings thead th:first-child{width:24%}.cup-standings thead th:nth-child(2){width:49%}.cup-standings thead th:last-child{width:27%;text-align:right}.cup-standings tbody tr{height:58px;border-bottom:1px solid var(--line)}.cup-standings tbody td{font:bold 34px/1 Georgia,serif;padding:10px 12px}.cup-standings tbody td:first-child{text-align:center;font-size:29px}.cup-standings tbody td:last-child{text-align:right}.cup-standings tbody th{padding:10px 8px;text-align:left;font-size:21px;font-weight:700;overflow-wrap:anywhere}.cup-standings .cup-you{outline:1px solid var(--accent);outline-offset:-1px;border-bottom-color:transparent;color:var(--accent)}
.cup-score-note{text-align:center;font-size:14px;line-height:1.5;margin:24px 0}.cup-primary{display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:var(--ink);color:var(--paper);width:100%;min-height:50px;font-size:20px;font-weight:700;padding:12px 16px;line-height:1.2;text-decoration:none}.cup-primary:hover{background:#29333e}.cup-primary:disabled{opacity:.55;cursor:wait}.cup-action-note{text-align:center;font-size:14px;margin:10px 0 0}.cup-another{text-align:center;margin:28px 0}.cup-another p{font-size:15px;margin:0}.cup-link.cup-red{color:var(--accent);font-size:20px;font-weight:700}.cups-footer{border-top:1px solid #8e8c86;padding-top:12px;text-align:center;font-size:13px;margin-top:28px}.cups-footer p{margin:0 0 12px}.cups-footer>a{display:inline-block;margin:0 9px;font-size:12px;min-height:30px}
.cup-list{margin:30px 0}.cup-list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-top:1px solid var(--line);border-radius:0;padding:20px 0;color:inherit;background:transparent;text-align:left}.cup-list-row:last-child{border-bottom:1px solid var(--line)}.cup-list-row strong{display:block;font:bold 25px/1.15 Georgia,serif;overflow-wrap:anywhere}.cup-list-row small{display:block;font-size:13px;margin-top:7px}.cup-list-score{white-space:nowrap;font-size:19px;font-weight:700}.cup-empty{padding:35px 0}.cup-empty h2{font:bold 27px/1.2 Georgia,serif;margin:0 0 16px}.cup-empty p{font-size:16px;line-height:1.6}
.cup-create-rules{margin:28px 0;padding:5px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:16px;line-height:1.6}.cup-create-rules p{margin:16px 0}.cup-field{margin:0 0 20px}.cup-field label{display:block;font-size:18px;font-weight:700;margin:0 0 10px}.cup-field label span{font-size:14px;font-weight:400;color:var(--muted)}.cup-field input{width:100%;min-height:52px;border:1px solid #b8b5ae;border-radius:7px;padding:14px 13px;background:transparent;color:var(--ink);font-size:16px}.cup-field input:focus{outline:2px solid var(--accent);outline-offset:2px}.cup-invited{font-size:13px;letter-spacing:1px;font-weight:700;color:var(--accent);margin:25px 0 15px}.cup-status{font-size:14px;line-height:1.5;margin:14px 0;overflow-wrap:anywhere}.cup-status:empty{display:none}.cup-error{color:#a92609}.cup-signin-note,.cup-joining-note{font-size:14px;line-height:1.6;margin-top:24px}.cup-signin-note .cup-link{padding:0;min-height:32px}
.cup-dialog{width:min(440px,calc(100% - 32px));max-height:calc(100svh - 48px);overflow-y:auto;padding:24px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:10px}.cup-dialog::backdrop{background:#171e2766}.cup-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.cup-dialog h2{font:bold 29px/1.1 Georgia,serif;margin:0}.cup-dialog p{font-size:15px;line-height:1.6}.invite-address{padding:12px;border:1px solid var(--line);border-radius:4px;overflow-wrap:anywhere;font-size:14px!important}.cup-dialog .cup-primary{margin-top:14px}.cup-dialog #invite-name{font-weight:700;font-size:19px}.cup-shell :focus-visible,.cup-dialog :focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(max-width:390px){.cup-shell{padding:20px 20px 24px}.cups-page h1{font-size:35px}.cup-standings tbody td{padding-left:8px;padding-right:8px}.cup-standings tbody th{font-size:19px}.cup-standings thead th{font-size:20px}}

.cup-privacy-note{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 18px}

/* A quiet desktop frame; retain the existing 442px content width. */
@media(min-width:700px){
  body{background:#efebe2}
  .cup-shell{width:min(calc(100% - 64px),520px);margin:32px auto;padding:32px 38px;border:1px solid #ccc6bb;border-radius:12px;background:var(--paper)}
}
