:root{color-scheme:light;--ink:#142c26;--muted:#52635b;--paper:#fff;--bg:#f3f4ed;--line:#dce5d9;--mint:#c1e381;--dark:#132b25}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,sans-serif}
.frame{width:min(1070px,calc(100% - 40px));margin-inline:auto}.top{background:#0d1715;border-bottom:1px solid #233a32}.top-inner{display:flex;justify-content:space-between;align-items:center;min-height:68px}
.brand img{display:block;width:151px;height:auto}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.11em}
main{padding:25px 0 36px}.footer{padding:14px 0 30px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
h1,h2,h3,p{margin:0}h1,h2{line-height:1.1;letter-spacing:-.035em}h2{font-size:21px}h3{font-size:15px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:16px;min-width:0}
.muted{color:var(--muted)}
.guest{display:grid;gap:clamp(30px,6vw,60px)}
.hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:clamp(22px,5vw,54px);padding:clamp(24px,5vw,58px);background:radial-gradient(ellipse at 94% 5%,#28533f 0%,var(--dark) 61%);color:#f4faef;border-radius:18px}
.hero h1{font-size:clamp(43px,6vw,72px);margin:10px 0 16px;letter-spacing:-.065em}
.hero h1 em{display:block;color:#aff532;font-style:normal}
.hero .eyebrow{color:#c5e68d}
.hero p{color:#dcebe0;max-width:43ch}
.guest-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:22px}
.guest-actions a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#e6f2e7;text-decoration:underline;text-underline-offset:4px;font-weight:700}
.guest .primary{min-height:44px;padding-inline:16px;background:#aff532;border-color:#aff532}
.guest .primary:hover:not(:disabled){background:#c4ff61}
.hero .hint{font-size:12px;margin-top:9px}
.cover{min-width:0;background:#1d4135;border:1px solid #567e69;border-radius:14px;padding:14px}
.cover svg{display:block;width:100%;margin:8px 0;stroke:#a1c3af;stroke-width:1.2;fill:none}
.cover .players{fill:#d3eaa4;stroke:#132b25;stroke-width:2}
.cover .route{stroke:#b7d783;stroke-dasharray:6 6;opacity:.75}
.cover-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#e0ede2;font-size:10px;font-weight:800;letter-spacing:.1em}
.guest-formation{padding:3px 8px;border-radius:6px;background:#dcf3ad;color:#1a3c2b;white-space:nowrap}
.cover .guest-match-question{max-width:none;padding:10px 11px;border-radius:8px;background:#132f26;color:#e1ede4;font-size:13px}
.guest-match-question span{color:#c9ef8a;font-weight:800}
.guest-section>.eyebrow,.guest-modes .eyebrow{color:#39604a}
.guest-section h2{margin:5px 0 17px;font-size:clamp(26px,4.3vw,41px)}
.guest-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.guest-features .panel{padding:18px}
.guest-feature-index{display:inline-grid;place-items:center;width:32px;height:32px;margin-bottom:13px;background:#edf5dd;border-radius:8px;color:#325840;font-size:12px;font-weight:800}
.guest-features h3,.guest-modes dt{font-size:17px;font-weight:800}
.guest-features p,.guest-modes dd{color:var(--muted);margin:5px 0 0}
.guest-modes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:16px 30px;background:#e8efdf;border:1px solid var(--line);border-radius:16px;padding:clamp(18px,4vw,35px)}
.guest-modes h2{margin-bottom:0}
.guest-modes dl{display:grid;gap:12px;margin:0}
.guest-modes .primary{justify-self:start}
button,select,input{font:inherit;color:var(--ink);background:#fff;border:1px solid #cbdacf;border-radius:7px;padding:8px 10px;min-width:0}button{cursor:pointer;font-weight:700}button:disabled{opacity:.48;cursor:default}button:hover:not(:disabled){border-color:#488259}
button.primary{background:var(--mint);border-color:var(--mint);color:#17342a}button.primary:hover:not(:disabled){background:#d0ee98}button.text{background:transparent}.primary:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #4b8d72;outline-offset:2px}
#status{margin-bottom:10px;padding:9px 11px;border-radius:7px;background:#e1eee0;color:#153b2a;overflow-wrap:anywhere}#status[data-error=true]{background:#f7e4e1;color:#7c2728}
.stack{display:grid;gap:13px}.head,.room-bar,.member-row,.actions,.form-fields{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.head,.room-bar,.member-row{justify-content:space-between}.head{margin-bottom:12px}
.head .eyebrow{color:#48775b}.form-fields{align-items:end;margin-top:10px}.form-fields label,.tactics label{display:grid;gap:4px;min-width:0;font-size:13px;font-weight:700}
.form-fields input,.form-fields select{width:100%;min-width:160px}.section-intro{margin-top:5px}
.room-bar{background:var(--dark);color:#eef6ed;border-radius:11px;padding:15px}.room-bar .eyebrow{color:#c2dd8d}.room-bar .muted{color:#d3e4d7}.room-bar .club-mark{border-color:transparent}
.club-mark{width:29px;height:29px;padding:2px;object-fit:contain;background:#f7f9f4;border:1px solid #e0e7dd;border-radius:5px;flex:none;vertical-align:middle}
span.club-mark{display:inline-grid;place-items:center;color:#18382d;font-size:11px;font-weight:800}
.club-label{display:inline-flex;align-items:center;gap:7px;min-width:0}.member-row{padding:6px 0;border-bottom:1px solid var(--line)}.member-row:last-child{border-bottom:0}
.room-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;align-items:start}.room-grid .stack{min-width:0}
.tag{display:inline-block;font-size:11px;font-weight:750;color:#43564b;background:#edf1eb;padding:3px 7px;border-radius:6px}.tag.ready{color:#24543b;background:#e0efd9}.tactics{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}
.lineup{display:grid;gap:5px}.lineup label{display:grid;grid-template-columns:59px minmax(0,1fr);align-items:center;gap:5px;color:#3d574b;font-weight:750;font-size:12px}.lineup select{width:100%;font-size:13px}
.ready-panel .actions{margin-top:12px}.fixture{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:6px 0;border-bottom:1px solid var(--line);font-size:13px}.fixture:last-child{border:0}
.fixture .club-label{flex:1}.fixture .club-label:last-child{justify-content:flex-end;text-align:right}.fixture strong{flex:none;text-align:center;min-width:38px;font-variant-numeric:tabular-nums}
details{margin-top:8px}summary{cursor:pointer;font-weight:700}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;margin-top:7px;font-size:13px;white-space:nowrap}td,th{padding:6px;text-align:right;border-bottom:1px solid var(--line)}td:nth-child(2),th:nth-child(2){text-align:left}th{color:var(--muted);font-size:11px}.mine{background:#eaf3e8}
@media(max-width:700px){.frame{width:calc(100% - 24px)}main{padding-top:13px}.top-inner{min-height:54px}.brand img{width:133px}.hero,.guest-modes{grid-template-columns:minmax(0,1fr);gap:16px}.hero{padding:23px 18px}.guest-features{grid-template-columns:minmax(0,1fr);gap:8px}.room-grid{grid-template-columns:1fr}.room-bar,.panel{padding:12px}.fixture{font-size:11px}.fixture .club-mark{width:23px;height:23px}}

fieldset{margin:0;padding:0;border:0;min-width:0}.panel [data-action=copy]{margin-top:8px}#copy-link{width:100%;margin-top:8px}


body:has(#club-game) { overflow: hidden; }
body:has(#club-game) > .top, body:has(#club-game) > .footer { display: none; }
body:has(#club-game) main.frame { width: 100%; height: 100dvh; margin: 0; padding: 0; }
body:has(#club-game) #app { height: 100%; }
body:has(#club-game) #status:not([hidden]) { position: fixed; bottom: 84px; left: 12px; right: 12px; z-index: 30; margin: 0; box-shadow: 0 3px 15px #10251b20; }
#club-game { display: block; width: 100%; height: 100%; border: 0; background: #f3f5f7; }
.game-menu { position: fixed; right: 12px; top: 12px; z-index: 25; margin: 0; }
.game-menu > summary { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #dce3eb; border-radius: 9px; background: #fff; color: #172339; font-size: 25px; line-height: 1; cursor: pointer; list-style: none; }
.game-menu > summary::-webkit-details-marker { display: none; }
.game-menu-panel { position: absolute; right: 0; top: 48px; width: min(280px,calc(100vw - 24px)); display: grid; gap: 8px; padding: 14px; border: 1px solid #dce3eb; border-radius: 12px; background: #fff; box-shadow: 0 12px 35px #13283d26; }
.game-menu-panel > strong { padding: 3px 2px; font-size: 13px; color: #58677b; }
.game-menu-panel button { text-align: left; min-height: 42px; border-color: transparent; background: #f3f5f7; font-size: 13px; }
.game-menu-panel #league-members { display: grid; gap: 5px; }
.game-menu-panel #league-invites:not(:empty) { display: grid; gap: 8px; }
.game-menu-panel #league-invites:empty { display: none; }
#league-identity button { width: 100%; }
#league-identity:empty { display: none; }
#club-identity-dialog { box-sizing: border-box; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 18px; border: 1px solid #dce3eb; border-radius: 14px; color: #172339; }
#club-identity-dialog::backdrop { background: #10251fa6; }
#club-identity-dialog .mode-form { margin: 0; }
.identity-heading, .identity-colors { display: flex; gap: 12px; }
.identity-heading { justify-content: space-between; align-items: center; }
.identity-heading h2 { margin: 0; }
.identity-colors label { flex: 1; min-width: 0; }
.identity-error { color: #9e2929; margin: 0; }
.game-menu-panel #copy-link { margin: 0; font-size: 12px; }
.game-menu-panel #cloud-status { padding: 0 2px; font-size: 12px; color: #58677b; }

/* App instalável (install.js) */
.install-app{margin-left:auto;margin-right:10px;padding:6px 12px;font-size:13px;font-weight:700;background:#aff532;border:1px solid #aff532;border-radius:6px;color:#17342a;cursor:pointer}.install-app:hover{background:#c4ff61}.install-app[hidden],.install-tip[hidden]{display:none}.install-tip{position:fixed;left:16px;right:16px;bottom:16px;z-index:50;margin:0;padding:14px 16px;background:var(--dark);color:#fff;border-radius:10px;font-size:14px;line-height:1.45;box-shadow:0 8px 24px rgba(0,0,0,.25)}
@media(max-width:700px){.install-app{margin-right:0}}

.lobby{max-width:920px;margin-inline:auto;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:22px;align-items:start}
.lobby-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:6px 14px;border-bottom:1px solid var(--line)}
.lobby-head h1{font-size:clamp(27px,5vw,38px)}
.lobby-head button{min-height:44px;padding-inline:12px;border-color:transparent;color:var(--muted);font-size:13px}
.lobby h2{margin-bottom:10px;font-size:17px}
.lobby-progress[hidden]+.lobby-modes{grid-column:1/-1}
.saved-games,.mode-options{display:grid;gap:8px;align-items:start}
.saved-game{display:flex;align-items:center;gap:10px;width:100%;min-height:76px;padding:10px;text-align:left;border:1px solid var(--line);border-radius:12px}
.saved-game-placeholder{background:#f6f8f3;color:var(--muted);font-size:13px}
#last-game .saved-game:not(.saved-game-placeholder){background:#f1f7e8;border-color:#9cb38d}
.other-games{margin-top:8px;border:1px solid var(--line);border-radius:12px;background:var(--panel,#fff)}
.other-games summary{padding:10px 12px;min-height:44px;cursor:pointer;font-weight:650}
.other-games .saved-games{padding:0 8px 8px}
.other-games .muted{margin:0;padding:4px 4px 8px}
.saved-game:hover:not(:disabled){background:#f7faf4;border-color:#84a28c}
.saved-game .club-mark{width:46px;height:46px;padding:5px;border-radius:9px}
.saved-game-info{display:grid;gap:2px;flex:1;min-width:0;overflow-wrap:anywhere}
.saved-game-info .eyebrow{color:#486554;text-transform:uppercase;font-size:10px;letter-spacing:.065em}
.saved-game-info strong{font-size:17px;line-height:1.15}
.saved-game-meta{display:flex;flex-wrap:wrap;gap:0 8px;color:var(--muted);font-size:12px;font-weight:500}
.saved-game-meta span{white-space:nowrap}
.saved-game-action{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:4px 7px;border-radius:7px;background:#e8f1de;color:#254b35;font-size:12px;white-space:nowrap}
.saved-game-action svg,.mode-entry>svg{width:16px;height:16px;flex:none}
.mode-option{margin:0;padding:0}
.mode-entry{display:flex;align-items:center;gap:10px;width:100%;min-height:65px;padding:10px;text-align:left}
.mode-entry[hidden]{display:none}
.mode-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:8px;background:#eaf1e6;color:#285841}
.mode-icon svg{width:20px;height:20px}
.mode-copy{min-width:0;flex:1}
.mode-entry strong,.mode-entry small{display:block}
.mode-entry small{color:var(--muted);font-weight:500;font-size:12px}
.mode-option summary{list-style:none}
.mode-option summary::-webkit-details-marker{display:none}
.mode-option summary::after{content:'';width:7px;height:7px;margin-inline:3px;flex:none;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg)}
.mode-option[open] summary::after{transform:rotate(225deg)}
.mode-option summary:focus-visible{outline:2px solid #4b8d72;outline-offset:2px;border-radius:12px}
.mode-form{display:grid;gap:10px;margin:0 12px;padding:12px 0;border-top:1px solid var(--line)}
.mode-form label{display:grid;gap:4px;font-size:13px;font-weight:700}
.mode-form input,.mode-form select,.mode-form button{width:100%;min-height:44px}
@media(min-width:761px){
  .lobby-progress[hidden]+.lobby-modes .mode-options{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .lobby{grid-template-columns:minmax(0,1fr);gap:17px}
  .lobby-head{padding-block:0 8px}
}

.draw-lobby { display: grid; gap: 13px; max-width: 560px; }
.draw-club { display: flex; align-items: center; gap: 10px; }
.draw-club .club-mark { width: 44px; height: 44px; padding: 4px; }
.draw-lobby .actions button { min-height: 44px; }
.invite-clubs { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.invite-clubs legend { padding: 0 0 8px; font-weight: 700; }
.mode-form .invite-club { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid #dce3eb; border-radius: 10px; font-weight: 400; cursor: pointer; }
.invite-club:has(input:checked) { border-color: #276751; background: #edf6f1; }
.invite-club input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: #276751; }
.invite-club-info { display: grid; gap: 4px; color: #4f5e73; }
.invite-club-info strong { color: #172339; }

#league-schedule, #round-schedule { display:grid; gap:5px; }
.league-paused { display:grid; gap:4px; margin:0; padding:8px 10px; border-radius:8px; background:#fff4d6; color:#5a4100; }
.league-paused small { color:inherit; }
.league-title-form { display:grid; gap:5px; padding-block:5px; }
.league-title-form label { display:grid; gap:4px; font-size:13px; font-weight:700; }
.league-title-form input { width:100%; }
#round-schedule { padding-block:5px; border-block:1px solid var(--line); }
#round-schedule label { display:grid; gap:4px; font-size:13px; font-weight:700; }
#round-schedule label.round-switch { display:flex; align-items:center; justify-content:space-between; min-height:44px; cursor:pointer; }
.round-switch input { appearance:none; flex:none; width:42px; height:24px; padding:2px; margin:0; border:1px solid #52635b; border-radius:999px; background:#e7ece7; cursor:pointer; }
.round-switch input::before { content:""; display:block; width:18px; height:18px; border-radius:50%; background:#52635b; }
.round-switch input:checked { background:#24543b; border-color:#24543b; }
.round-switch input:checked::before { margin-left:auto; background:#fff; }
#round-schedule input[type=number] { width:100%; }
.game-menu-panel { max-height:calc(100dvh - 75px); overflow:auto; }
.push-offer{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 14px;border:1px solid #9cb38d;border-radius:12px;background:#f1f7e8}
.push-offer p{display:grid;gap:2px;margin:0;flex:1 1 220px}
.push-offer p span{color:var(--muted);font-size:13px}
.push-offer div{display:flex;gap:8px;align-items:center}
.push-offer .text{min-height:44px;border-color:transparent;color:var(--muted)}
.free-note{margin:4px 2px;font-size:13px}
.privacy-consent{display:grid;gap:12px;padding:18px;max-width:560px}
.privacy-consent p{margin:0;line-height:1.5}
.footer a{color:inherit}
