/* Shared arena identity. Match and account behavior stay in the existing app. */
:root {
  color-scheme:dark;
  --red:#ff0738;
  --red-dark:#ce062d;
  --dark:#08090c;
  --dark2:#111216;
  --dark3:#202126;
  --accent:#f4f4f6;
  --muted:#a2a2ad;
  --surface:#111216;
  --line:#2a2b32;
  --arena-image:url('../images/clutchzone-arena-hd.webp');
  --display:'Archivo','Arial Black',Arial,sans-serif;
  --cut:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px));
}
body, main { background:var(--dark); color:var(--accent); }
.section { min-height:calc(100svh - 76px); padding:48px max(24px,calc((100% - 1180px)/2)) 72px; text-align:left; background:var(--dark); }
.section *, .modal *, #checkinBox *, .app-notice { letter-spacing:0; min-width:0; }
.section h2, .section h3, .section h4, .modal h2, .modal h3, #checkinBox h2 { font-family:Inter,Arial,sans-serif; font-weight:600; line-height:1.25; color:var(--accent); text-transform:none; overflow-wrap:anywhere; }
.section > h2, .lobby-title, .room-title h2 { font-size:30px; padding-left:16px; border-left:3px solid var(--red); }
#hub > h2, #tournaments > h2, #teams > h2, #rankings > h2 { font-family:var(--display); font-style:italic; font-weight:900; font-size:48px; line-height:1.1; text-transform:uppercase; border:0; padding:0; }
#hub > h2::before, #tournaments > h2::before, #teams > h2::before, #rankings > h2::before { content:''; display:block; width:28px; height:2px; margin-bottom:16px; background:var(--red); }
.section h3, .panel-head h3, .room-panel h3 { font-size:19px; }
.section h4 { font-size:16px; }
.section-sub { margin:12px 0 0; max-width:720px; color:var(--muted); font-size:14px; line-height:1.7; }
.section p, .section small, .modal p { overflow-wrap:anywhere; }
.section small { color:var(--muted); line-height:1.5; }
.section .data-card p { color:#c3c3cc; font-size:14px; }
.section :where(button:not(.gsi-material-button)), .modal button, #checkinBox button, .file-button {
  min-height:42px; padding:11px 18px; background:var(--red); color:#fff; border:1px solid transparent; border-radius:4px;
  font-family:Inter,Arial,sans-serif; font-size:12px; font-weight:600; line-height:1.4; letter-spacing:0; clip-path:none; box-shadow:none;
  transition:background .16s,border-color .16s,color .16s; white-space:normal;
}
.section :where(button:not(.gsi-material-button)):hover, .modal button:hover, #checkinBox button:hover { transform:none; box-shadow:none; background:var(--red-dark); }
.section button:disabled, .modal button:disabled { background:#24252c; color:#93939e; border-color:var(--line); cursor:not-allowed; box-shadow:none; }
.section :is(.button-muted,.file-button,.kick-btn,.wallet-tab,.map-ban-btn), .modal :is(.confirm-btn-cancel,.entry-mode-btn) { background:#18191f; color:#e3e3e8; border:1px solid #363740; }
.section :is(.button-muted,.file-button,.kick-btn,.wallet-tab,.map-ban-btn):hover { background:#24252c; border-color:#777781; }
.section :is(.button-danger,.btn-danger,.lobby-btn-delete,.member-remove), .modal .confirm-btn-danger { background:#2b1018; border:1px solid #8d203b; color:#ffb3c2; }
.section :is(button,input,select,textarea,a):focus-visible, .modal :focus-visible, #checkinBox :focus-visible { outline:2px solid #fff; outline-offset:3px; }
.section :is(input:not(.file-input),select,textarea), .modal :is(input,select,textarea) { background:#0d0e12; color:#f4f4f6; border:1px solid #363740; border-radius:4px; padding:12px 14px; font-family:Inter,Arial,sans-serif; font-size:14px; line-height:1.5; box-shadow:none; max-width:100%; }
.section :is(input,select,textarea):focus { border-color:#ff4267; box-shadow:none; }
.section ::placeholder { color:#85858f; opacity:1; }
.section select option { background:#17181d; color:#fff; }
.section input:-webkit-autofill { -webkit-text-fill-color:#fff; box-shadow:0 0 0 100px #16171d inset; }
.section input.file-input { width:1px; min-width:1px; max-width:1px; height:1px; padding:0; margin:0; border:0; }
.section :is(.data-card,.card,.match-card,.roster-card,.invite-row,.team-side-card,.team-card,.lobby-panel) { background:var(--surface); border:1px solid var(--line); border-radius:6px; box-shadow:none; backdrop-filter:none; }
.section .card:hover { transform:none; box-shadow:none; border-color:#773043; }
.section .data-card h3 { margin-bottom:12px; }
.section :is(.pill,.panel-pill,.leader-tag) { color:#d4d4dc; border:1px solid #37303a; background:#1c171d; border-radius:3px; font-size:10px; padding:5px 8px; line-height:1.5; white-space:normal; }
.section :is(.player-meta strong,.msgNome,.score-line,.balance-highlight) { font-family:Inter,Arial,sans-serif; font-size:15px; }
.app-grid { margin-top:30px; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:18px; }
.section .data-card { padding:22px; }
.section .inline-form { align-items:center; }
.section .inline-form > :is(input,select) { min-width:0; flex:1 1 160px; }
.section .inline-form button { flex-shrink:0; }
.section .msg:not(:empty), .action-message { border-radius:4px; box-shadow:none; font-size:13px; }
.msg.error:not(:empty) { background:#291018; color:#ffd0da; border-color:#7f243a; }
.msg.success:not(:empty) { background:#10271e; color:#a9eccb; border-color:#285840; }
.app-notice { background:#1a1118; border-color:#7b2840; z-index:1400; border-radius:4px; }

/* Account entry keeps the same arena image without framing the form in a card. */
#login, #register, #forgotPassword { text-align:center; padding:68px 24px 80px; background:linear-gradient(#08090cc9,#08090cf2),var(--arena-image) center/cover no-repeat; }
#login > h2, #register > h2, #forgotPassword > h2 { display:table; margin:0 auto; font-size:30px; }
#forgotPassword .section-sub { max-width:380px; margin:18px auto 0; }
.section .form { max-width:380px; margin:30px auto 0; text-align:left; }
.field-label { display:block; margin:18px 0 7px; font-size:12px; color:#c2c2cc; font-weight:500; }
.form input { margin:0; min-height:48px; }
.form .password-field input { padding-right:78px; }
.section .form > button:not(.gsi-material-button) { width:100%; margin-top:22px; min-height:46px; }
.section .password-toggle { top:8px; right:7px; min-height:32px; height:32px; padding:0 10px; background:#25262d; border:0; color:#dddde5; font-size:10px; }
.form .auth-link { display:block; text-align:center; font-size:12px; font-weight:500; color:#bdbdc8; margin-top:18px; }
.auth-divider { color:#93939d; margin:24px 0 18px; }
.auth-divider::before, .auth-divider::after { background:var(--line); }
.form .gsi-material-button { display:block; max-width:100%; min-width:0; height:44px; color-scheme:light; }

/* Lobby directory and match workspace. */
.create-trigger { margin:24px 0 0; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:18px; margin-top:28px; }
.cards .card { width:100%; padding:24px; text-align:left; }
.cards .card h3 { margin-bottom:14px; }
.card-actions { justify-content:flex-start; }
#hubPartidas { grid-template-columns:minmax(0,1fr); gap:10px; }
#hubPartidas .lobby-directory-row { display:grid; grid-template-columns:minmax(0,1fr) 160px 100px auto; align-items:center; gap:24px; padding:22px 26px; background:#0f1014; border:0; border-left:3px solid var(--red); border-radius:0; clip-path:var(--cut); }
.section .lobby-directory-identity h3 { font-family:var(--display); font-weight:800; font-style:italic; font-size:22px; text-transform:uppercase; margin:0 0 8px; }
.section .lobby-directory-identity p { font-size:12px; line-height:1.6; color:#8f909c; margin:3px 0; }
.lobby-directory-meta { display:grid; gap:8px; font-size:12px; line-height:1.5; color:#8f909c; }
.lobby-directory-meta .lobby-mode { text-transform:uppercase; font-weight:600; color:#f4f4f7; }
.lobby-directory-status { color:#f590a6; }
.lobby-directory-entry { display:grid; gap:8px; font-family:var(--display); font-size:25px; font-weight:800; font-style:italic; }
.lobby-directory-entry small { font:500 11px Inter,Arial,sans-serif; text-transform:uppercase; color:#8f909c; }
.section .lobby-directory-actions { margin:0; display:grid; gap:8px; min-width:100px; }
.section .lobby-directory-actions button { width:100%; min-width:0; padding:10px 16px; }
.lobby-create-panel { max-width:none; margin-top:24px; padding:24px 0; background:transparent; border:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.lobby-economy .data-card { background:transparent; padding:14px 0; border:0; border-radius:0; }
.lobby-economy .data-card h4 { font-size:14px; }
.section-label, .lobby-kicker { font-size:10px; letter-spacing:0; }
.lobby-kicker { display:none; }
.lobby-hero { align-items:flex-start; }
.lobby-subtitle { font-size:13px; }
.lobby-top-stats { width:100%; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding:18px 0; border-block:1px solid var(--line); }
.lobby-stat-card { background:transparent; border:0; border-right:1px solid var(--line); clip-path:none; padding:4px 20px; }
.lobby-stat-card:first-child { padding-left:0; }
.lobby-stat-card:last-child { border:0; }
.lobby-stat-card strong { font-family:Inter,Arial,sans-serif; font-size:19px; }
.lobby-stat-card .label { font-size:10px; }
.panel-head { padding:20px; background:#141519; border-bottom-color:var(--line); }
.panel-eyebrow { font-size:10px; }
.section .chat { background:var(--surface); min-height:460px; }
.chatMensagens { height:330px; background:#0d0e12; padding:18px; }
.chatInput { padding:16px; background:#111216; border-color:var(--line); }
.section .chatInput input { min-width:0; margin:0; }
.section .chatInput button { min-width:76px; }
.player-item { border:0; border-bottom:1px solid var(--line); background:transparent; padding:12px 0; }
.player-avatar, .msgAvatar { background:#33111c; border:1px solid #6d2135; clip-path:none; border-radius:4px; }
.player-meta { min-width:0; overflow-wrap:anywhere; }
.msgBubble { background:#191a20; border-color:var(--line); border-radius:6px; }
.msgChat.own .msgBubble { background:#30121d; border-color:#632239; }
.msgText { color:#d5d5de; }
.team-card h3 { background:#18191f; font-size:17px; }
.team-card li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 14px; }
.map-ban-box { padding:26px 0; background:transparent; border:0; border-block:1px solid var(--line); box-shadow:none; }
.map-ban-clock { background:#141519; border-color:var(--line); border-radius:4px; }
.map-ban-card { background:transparent; border:0; border-left:2px solid #5f2032; padding:8px 16px; }
.map-ban-card strong { font-size:16px; font-family:Inter,Arial,sans-serif; }
.section .map-ban-btn { min-height:56px; font-size:13px; }
.section .map-ban-btn.is-banned { background:#101115; color:#777782; border-color:#25262c; text-decoration:line-through; }
.team-side-card h4 { font-size:17px; }
.section .finish-lobby-box > .data-card { background:transparent; padding:24px 0; border:0; border-top:1px solid var(--line); }

/* Tournament rooms use unframed sections around individual matches. */
#tournamentsList { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.section .tournament-card { display:flex; flex-direction:column; align-items:stretch; gap:16px; background:#0f1014; border:0; border-left:3px solid var(--red); border-radius:0; clip-path:var(--cut); padding:28px 26px; }
.section .tournament-card h3 { margin:0; color:var(--red); font-size:12px; font-weight:700; text-transform:uppercase; }
.section .tournament-card > p { margin:0; line-height:1.65; }
.section .tournament-card .tournament-entry { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px; color:#8f909c; }
.tournament-entry > span { flex-basis:100%; font-size:11px; }
.tournament-entry strong { font-family:var(--display); font-size:44px; font-style:italic; font-weight:900; line-height:1.1; color:#f4f4f7; }
.tournament-entry small { font-size:12px; }
.section .tournament-card .tournament-status { color:#f18da3; font-size:11px; }
.section .tournament-card .tournament-description { color:#8f909c; }
.section .tournament-card .tournament-prize-line { font-size:13px; color:#f4f4f7; }
.tournament-registration-count { display:grid; gap:10px; color:#c3c3cc; font-size:12px; }
.tournament-progress { height:5px; background:#292329; overflow:hidden; }
.tournament-progress > span { display:block; height:100%; background:var(--red); }
.tournament-participants { border-top:1px solid #292329; padding-top:12px; }
.section .tournament-participants p { font-size:12px; color:#8f909c; line-height:1.6; margin:0 0 6px; }
.tournament-actions { margin-top:auto; }
.section .tournament-registration { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; margin:0; padding:0; }
.tournament-registration select { width:100%; }
.section .tournament-registration button, .section .tournament-login { width:100%; }
.section .tournament-registration .tournament-freelancer { min-height:34px; background:transparent; border:0; padding:5px; font-size:12px; text-transform:none; text-decoration:underline; text-underline-offset:4px; color:#a5a5b0; }
.section .tournament-registration .tournament-freelancer:hover { color:#fff; background:transparent; }
.tournament-card .admin-actions { margin-top:12px; display:grid; gap:10px; }
.section .tournament-card .admin-actions button { background:#15161b; border:1px solid #894052; }
.section .tournament-card .admin-actions button:hover { background:#250a13; border-color:var(--red); }
.tournament-card .action-message:empty { display:none; }
.room-shell { margin:0 auto; }
.room-header { background:transparent; border:0; border-bottom:1px solid var(--line); padding:0 0 26px; }
.room-title > button { margin-bottom:22px; }
.room-title p { color:var(--muted); line-height:1.6; font-size:14px; }
.room-panel { background:transparent; padding:0 0 26px; border:0; border-bottom:1px solid var(--line); }
.room-main, .room-side { display:grid; gap:28px; align-content:start; }
.room-panel h3 { font-size:18px; }
.match-card { padding:20px; }
.match-card > strong { font-family:Inter,Arial,sans-serif; margin-top:8px; font-size:15px; text-transform:none; }
.match-card p, .match-map, .match-veto-head { font-size:13px; color:#bcbcc7; }
.match-veto { background:transparent; border:0; border-top:1px solid var(--line); padding:14px 0 0; }
.freelancer-board-item { background:transparent; border:0; border-bottom:1px solid var(--line); padding:16px 0; flex-wrap:wrap; }
.roster-member { color:#d2d2dc; }
.score-line { font-variant-numeric:tabular-nums; }
.match-winner, .member-state.is-ready { color:#88d7ad; }

/* Team identity and roster. */
.team-create-card, .team-profile, .team-empty { background:transparent; border:0; border-radius:0; }
.section .team-create-card { background:transparent; border:0; padding:0; max-width:920px; margin:0; }
.team-create-wrap, .team-directory { margin-top:30px; }
.team-workspace { margin-top:30px; }
.team-workspace:has(.team-create-wrap:not(.hidden)) { display:grid; grid-template-columns:1.1fr .9fr; gap:32px; align-items:start; }
.team-workspace > .team-create-wrap, .team-workspace > .team-directory { margin-top:0; }
.section .team-create-card { background:#0f1014; border-left:3px solid var(--red); padding:28px; clip-path:var(--cut); }
.section .team-create-card > h3 { font-family:var(--display); font-size:24px; font-style:italic; font-weight:800; text-transform:uppercase; }
.section .team-create-card > p { color:#8f909c; font-size:13px; line-height:1.65; }
.team-create-grid { margin-top:22px; gap:18px; }
.section .team-create-grid label { font-size:12px; }
.team-create-grid textarea { min-height:116px; }
.team-create-card .team-create-submit { width:100%; margin-top:22px; }
.team-create-card .msg:empty { display:none; }
.team-starter-roster { margin-top:24px; display:grid; gap:8px; }
.team-starter-owner { display:flex; align-items:center; gap:14px; min-height:68px; padding:12px 18px; background:#15161b; border-left:3px solid var(--red); }
.team-starter-owner small { display:block; font-size:10px; text-transform:uppercase; margin-bottom:4px; }
.team-starter-owner strong { font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.team-open-slot { display:flex; align-items:center; gap:14px; padding:12px 18px; min-height:54px; background:#101115; border-left:3px solid #292329; color:#646570; font-size:12px; }
.team-open-slot .cz-icon { width:20px; height:20px; }
.team-open-slot > span:last-child { margin-left:auto; }
.team-create-grid label, .team-edit-grid label { color:#bbbbc6; font-weight:500; }
.team-profile-head { padding:24px 0 24px 18px; border-block:1px solid var(--line); }
.team-profile::before { top:24px; left:0; height:32px; width:3px; background:var(--red); }
.team-profile-title h3 { font-size:24px; }
.team-profile-body { padding:26px 0; }
.team-profile-title p, .team-detail small, .member-joined, .member-state { color:var(--muted); }
.team-detail { border-bottom-color:var(--line); }
.team-description { color:#d4d4dd; }
.team-logo-preview, .team-profile-logo { background:#111216; color:#a7a7b0; border-color:var(--line); border-radius:6px; }
.team-edit-panel { background:#101115; padding:24px; }
.team-roster-header { padding:24px 0 16px; }
.team-roster-header h4 { font-size:20px; border-left:3px solid var(--red); }
.team-member-row { grid-template-columns:140px minmax(100px,1fr) 80px 80px 110px 42px; margin:0; border-color:var(--line); }
.member-avatar, .avatar-preview { background:#25262e; }
.section .role-select { padding:8px; font-size:12px; }
.section .member-remove { width:36px; height:36px; min-height:36px; padding:0; font-size:22px; }
.team-empty { padding:28px 0; border-block:1px solid var(--line); }

/* Ranking, wallet and account settings. */
.ranking-layout { margin-top:30px; display:grid; grid-template-columns:minmax(0,1fr); gap:30px; align-items:start; }
.ranking-prize-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; }
.section .ranking-prize { border:0; border-left:2px solid #894052; border-radius:0; background:#0f1014; padding:18px 22px; clip-path:var(--cut); }
.section .ranking-prize h3 { font-size:11px; font-weight:600; color:#8f909c; margin:0 0 10px; }
.section .ranking-prize p { font-family:var(--display); font-style:italic; font-size:28px; font-weight:800; color:#f4f4f7; margin:0; }
.ranking-table { min-width:0; }
.ranking-columns, .ranking-row { display:grid; grid-template-columns:64px minmax(0,1fr) 130px 110px; gap:20px; align-items:center; }
.ranking-columns { padding:0 26px 14px; font-size:10px; font-weight:600; color:#8f909c; text-transform:uppercase; }
.ranking-columns > :nth-last-child(-n+2) { text-align:right; }
.ranking-board { display:block; background:#0f1014; border:0; border-radius:0; padding:0; gap:0; box-shadow:none; clip-path:var(--cut); }
.ranking-row { min-height:82px; border-radius:0; padding:20px 26px; border-bottom:1px solid #292329; background:transparent; text-align:left; }
.ranking-row:last-child { border:0; }
.ranking-row:first-child { background:linear-gradient(90deg,#ff073816,transparent 60%); border-left:3px solid var(--red); padding-left:23px; }
.ranking-position { font-family:var(--display); font-style:italic; font-weight:900; font-size:28px; color:#8f909c; }
.ranking-row:first-child .ranking-position { color:var(--red); }
.ranking-name { font-family:var(--display); font-style:italic; font-weight:800; font-size:21px; text-transform:uppercase; overflow-wrap:anywhere; }
.section .ranking-record { font-size:12px; font-weight:500; color:#8f909c; text-align:right; white-space:nowrap; }
.ranking-points { font-family:var(--display); font-style:italic; font-weight:800; font-size:19px; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.wallet { margin:30px 0 0; max-width:none; }
.saldoBox { background:transparent; padding:24px 0; text-align:left; border:0; border-block:1px solid var(--line); border-radius:0; margin-bottom:0; }
.saldoBox > p { color:var(--muted); font-size:12px; }
.saldoBox h3 { font-size:38px; margin:10px 0; color:white; font-variant-numeric:tabular-nums; }
.wallet-tabs { max-width:400px; margin:24px 0 0; gap:0; border-bottom:1px solid var(--line); }
.section .wallet-tab { background:transparent; border:0; border-bottom:2px solid transparent; border-radius:0; }
.section .wallet-tab.active { background:transparent; border-bottom-color:var(--red); color:#fff; }
.wallet-pane { width:min(820px,100%); margin:24px 0 0; }
.wallet-pane .app-grid { margin:0; }
.section .wallet-pane button.data-card { background:#111216; border:1px solid var(--line); padding:22px; text-align:left; }
.section .wallet-pane button.data-card:hover { border-color:var(--red); background:#191118; }
.section .btnComprar { width:auto; margin:0; }
.section .wallet-withdraw-card { background:transparent; border:0; padding:0; }
.wallet-withdraw-meta div { background:#111216; border-color:var(--line); border-radius:4px; }
#settings > .app-grid:last-child { display:block; }
#settings > .app-grid:last-child > .data-card { background:transparent; border:0; border-top:1px solid var(--line); border-radius:0; padding:28px 0; }
#settings .inline-form { max-width:680px; }
#settings .media-editor { max-width:650px; }
.section .support-card { background:transparent; border:0; border-top:1px solid var(--line); border-radius:0; padding:30px 0; margin:30px 0 0; }
.support-list { max-width:340px; grid-template-columns:minmax(0,1fr); }
.support-list a { background:#18191f; border:1px solid #45434d; border-radius:4px; font-size:14px; }
.support-list a:hover { border-color:var(--red); }
.modal { z-index:1300; padding:16px; background:#000b; }
.modal-box { background:#111216; border:1px solid #5e283a; border-radius:6px; box-shadow:0 20px 60px #0006; max-height:calc(100svh - 32px); overflow:auto; }
.confirm-title { font-family:Inter,Arial,sans-serif; font-size:23px; }
.confirm-text, .tournament-entry-note { color:#bfbfc9; }
#checkinBox { background:#08090cf5; }
#checkinBox h2 { font-size:30px; }
#checkinBox p { color:#bfbfc9; }

/* Standalone password and payment pages share the same tokens. */
body.standalone { margin:0; min-height:100svh; display:grid; place-items:center; padding:40px 24px; box-sizing:border-box; font-family:Inter,Arial,sans-serif; background:linear-gradient(#08090cc9,#08090cf5),var(--arena-image) center/cover no-repeat; }
.standalone * { box-sizing:border-box; letter-spacing:0; }
.standalone .panel { width:min(440px,100%); background:transparent; padding:0; border:0; box-shadow:none; }
.standalone .status-brand { display:block; color:#fff; text-decoration:none; font-size:29px; font-weight:900; font-style:italic; margin-bottom:48px; }
.status-brand span { color:var(--red); }
.standalone h1 { font-size:28px; font-weight:600; line-height:1.25; margin:0 0 18px; border-left:3px solid var(--red); padding-left:15px; }
.standalone p { font-size:14px; color:#bfbfc9; line-height:1.7; margin:12px 0; }
.standalone :is(input,button,.btn) { font-family:inherit; border-radius:4px; }
.standalone input { width:100%; height:48px; padding:12px 76px 12px 14px; border:1px solid #373740; background:#101115; color:white; margin:8px 0; font-size:14px; }
.standalone :is(button,.btn) { display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; min-height:44px; border:0; background:var(--red); color:white; font-size:13px; font-weight:600; text-decoration:none; cursor:pointer; margin-top:16px; }
.standalone .field { position:relative; }
.standalone .field button { position:absolute; right:8px; top:15px; min-height:32px; padding:0 10px; margin:0; background:#282930; font-size:11px; }
.standalone .msg { padding:14px; border:1px solid #7f243a; background:#291018; color:#ffd0da; font-size:13px; line-height:1.6; margin:18px 0; }
.standalone :focus-visible { outline:2px solid white; outline-offset:3px; }

/* Fixed controls must not move or overlap when hovered or resized. */
.nav button { transition:background .16s,border-color .16s; }
.nav-logo:hover { transform:none; box-shadow:none; }
@media (max-width:1100px) {
  .section { min-height:calc(100svh - 120px); }
  .nav-logo:hover { transform:none; }
}
@media (max-width:960px) {
  #tournamentsList { grid-template-columns:minmax(0,1fr); }
  .section .tournament-card { gap:14px; }
  .team-workspace:has(.team-create-wrap:not(.hidden)) { grid-template-columns:minmax(0,1fr); gap:28px; }
  .team-workspace:has(.team-create-wrap:not(.hidden)) .team-create-wrap { grid-row:1; }
  #hubPartidas .lobby-directory-row { grid-template-columns:minmax(0,1fr) 140px 100px; gap:18px; }
  .lobby-directory-actions { grid-column:1 / -1; grid-template-columns:repeat(auto-fit,minmax(100px,1fr)); }
  .team-member-row { grid-template-columns:minmax(100px,1fr) 70px 70px 105px 36px; }
  .member-joined { display:none; }
  .team-roster-header { align-items:flex-start; flex-direction:column; }
}
@media (max-width:760px) {
  .section { padding:32px 20px 56px; }
  .section > h2, .lobby-title, .room-title h2 { font-size:26px; }
  #hub > h2, #tournaments > h2, #teams > h2, #rankings > h2 { font-size:36px; }
  .ranking-layout { grid-template-columns:minmax(0,1fr); }
  .ranking-prize-list { grid-template-columns:repeat(auto-fit,minmax(100px,1fr)); }
  .team-profile-head { flex-direction:column; }
  .team-member-row { grid-template-columns:minmax(0,1fr) 100px 36px; gap:8px; }
  .member-state { display:none; }
  .team-profile-body, .team-create-grid, .team-edit-grid { grid-template-columns:minmax(0,1fr); }
  .team-profile-media { max-width:180px; }
  .room-layout, .lobby-grid, .team-sides, .team-chat-grid { grid-template-columns:minmax(0,1fr); }
  .lobby-top-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 0; }
  .lobby-stat-card:nth-child(3) { padding-left:0; }
  .lobby-stat-card:nth-child(2) { border:0; }
  .team-image-field { grid-template-columns:88px minmax(0,1fr); }
  .team-logo-preview { width:88px; }
  .room-header { padding-bottom:20px; }
  .form-row, .score-form { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:600px) {
  :root { --arena-image:url('../images/clutchzone-arena-medium.webp'); }
  .section { min-height:calc(100svh - 113px); }
  .nav-links li { min-width:0; }
  .nav-links a { flex-direction:column; font-size:8px; padding:0 2px; gap:4px; }
  .nav-primary, .nav-secondary { top:68px; }
  .nav-links a::after { bottom:-7px; }
  .nav-logo .brand-word { font-size:20px; }
  .nav-logo { left:12px; }
  .nav #menuNaoLogado, .nav #menuLogado { right:10px; max-width:154px; }
  .nav #menuLogado .perfilBtn { gap:5px; padding:7px; }
  .nav #nomeUsuario { max-width:50px; }
  .nav .nav-avatar { width:22px; height:22px; }
  #home h1 { font-size:40px; }
  #login, #register, #forgotPassword { padding:48px 24px 64px; }
  .section .data-card { padding:18px; }
  .section .team-create-card { padding:24px 20px; }
  .section .inline-form { flex-direction:column; align-items:stretch; }
  .section .inline-form > :is(input,select) { flex:auto; }
  .ranking-columns { display:none; }
  .ranking-row { grid-template-columns:36px minmax(0,1fr) 85px; padding:18px 16px; gap:6px 12px; }
  .ranking-row:first-child { padding-left:13px; }
  .ranking-position { grid-row:1 / 3; font-size:24px; }
  .ranking-name { font-size:17px; }
  .ranking-points { grid-row:1 / 3; grid-column:3; font-size:16px; }
  .section .ranking-record { grid-column:2; text-align:left; font-size:11px; }
  .section .ranking-prize { padding:16px; }
  .section .ranking-prize p { font-size:25px; }
  #hubPartidas .lobby-directory-row { grid-template-columns:minmax(0,1fr) auto; padding:20px; gap:16px; }
  .lobby-directory-identity { grid-column:1 / -1; }
  .section .lobby-directory-identity h3 { font-size:20px; }
  .lobby-directory-entry { text-align:right; font-size:24px; }
  .team-edit-panel { padding:20px 0; }
  .roster-invite { width:100%; }
  .roster-invite input { width:100%; min-width:0; }
  .media-editor { grid-template-columns:80px minmax(0,1fr); gap:16px; }
  .avatar-preview-large { width:80px; height:80px; }
  .wallet-withdraw-meta { grid-template-columns:minmax(0,1fr); }
  .match-veto-head { flex-wrap:wrap; }
  .map-ban-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:601px) and (max-width:760px) { #home h1 { font-size:64px; } }
@media (max-width:360px) {
  #tournaments > h2 { font-size:28px; }
  .nav-logo .brand-word { font-size:18px; }
  .nav-actions button { font-size:9px; padding:9px 6px; }
  .nav-actions .btn-main { max-width:65px; }
  #home h1 { font-size:34px; }
}
@media (prefers-reduced-motion:reduce) { .section *, .modal *, .nav * { animation:none !important; transition:none !important; } }
