:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; color: #f7f5ff; background: radial-gradient(circle at 100% 0%, rgba(85, 56, 167, .26), transparent 33%), radial-gradient(circle at 0% 70%, rgba(16, 87, 126, .24), transparent 34%), #0b0b15; }
button, input { font: inherit; }
button { cursor: pointer; }
.public-shell, .login-shell { width: calc(100% - 48px); max-width: 1000px; margin: 0 auto; }
.public-shell { padding: 24px 0 80px; }
.public-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 0 34px; border-bottom: 1px solid rgba(205, 195, 255, .16); }
.nav-brand { color: #f7f5ff; font-size: .91rem; font-weight: 900; letter-spacing: .12em; text-decoration: none; }
.nav-brand span { margin-left: 5px; color: #af96ff; font-size: .7rem; }
.logout-link { color: #beb8d6; font-size: .84rem; text-decoration: none; }
.logout-link:hover { color: #fff; }
.eyebrow { margin: 0 0 8px; color: #bba9ff; font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.tournament-title { padding: 54px 0 42px; text-align: center; }
.tournament-title h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 4.5rem); letter-spacing: -.05em; }
.data-section { margin-top: 20px; padding: 25px; border: 1px solid #37354d; border-radius: 17px; background: rgba(25, 24, 38, .81); box-shadow: 0 18px 40px rgba(0, 0, 0, .13); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-heading h2 { margin: 0; font-size: 1.42rem; letter-spacing: -.03em; }
.table-status { font-size: .76rem; font-weight: 700; }
.table-status--sin_comenzar { color: #aaa6ba; }
.table-status--en_partida { color: #ff6b76; }
.table-status--actualizada { color: #82e4aa; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 630px; }
th, td { padding: 13px 12px; text-align: left; }
th { color: #aaa6ba; border-bottom: 1px solid #3d3b4e; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
td { border-bottom: 1px solid rgba(255,255,255,.065); color: #dedce8; font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { width: 58px; text-align: center; }
th:nth-last-child(-n+2), td:nth-last-child(-n+2) { text-align: right; }
.position-badge { color: #d7caff; }
.team-cell { display: flex; align-items: center; gap: 11px; min-width: 180px; color: #f7f5ff; font-weight: 800; }
.team-cell img { width: 34px; height: 34px; object-fit: contain; }
.team-cell span, .team-cell small { display: block; }
.team-cell small { margin-top: 2px; color: #9b97ad; font-size: .64rem; letter-spacing: .09em; }
.players-cell { color: #afacbd; font-size: .82rem; }
.empty-row { padding: 25px; text-align: center !important; color: #aaa6ba; }
.captain-tag { display: inline-block; margin-left: 7px; padding: 2px 6px; border-radius: 999px; color: #e2d8ff; background: #4e397e; font-size: .61rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.teams-section { margin-top: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.team-card, .register-card { min-height: 166px; padding: 17px; border: 1px solid #48455b; border-radius: 12px; background: rgba(15, 15, 25, .58); text-align: left; }
.team-card { display: grid; grid-template-columns: 43px minmax(0, 1fr); align-content: start; gap: 10px; }
.team-logo { width: 43px; height: 43px; object-fit: contain; }
.team-card h3 { margin: 2px 0 0; font-size: 1rem; line-height: 1.1; }
.team-card p { margin: 4px 0 0; color: #a5a1b5; font-size: .71rem; font-weight: 800; letter-spacing: .1em; }
.team-card ul { grid-column: 1 / -1; margin: 7px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,.08); color: #d5d2df; font-size: .82rem; list-style: none; }
.team-card li + li { margin-top: 5px; }
.team-card li span { color: #f0ca72; }
.editable-team-card { width: 100%; color: inherit; font: inherit; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.editable-team-card:hover { border-color: #ad93fa; background: rgba(72, 55, 112, .55); transform: translateY(-2px); }
.edit-team-label { grid-column: 1 / -1; margin-top: auto; color: #bfaff2; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-align: right; text-transform: uppercase; }
.field-help { display: block; margin-top: 5px; color: #a7a1ba; font-size: .71rem; }
.register-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-style: dashed; color: #cfc9dc; background: transparent; font-weight: 800; transition: border-color .18s, color .18s, background .18s; }
.register-card span { display: flex; width: 35px; height: 35px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid currentColor; font-size: 1.45rem; font-weight: 400; line-height: 1; }
.register-card:hover { border-color: #b79dff; color: #efeaff; background: rgba(138, 100, 230, .1); }
.visual-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 23px; padding: 15px 17px; border-left: 3px solid #926fe9; border-radius: 0 9px 9px 0; background: rgba(85, 60, 141, .16); }
.visual-note strong { color: #d5c7ff; font-size: .72rem; letter-spacing: .1em; }
.visual-note p { margin: 0; color: #bfbbcd; font-size: .82rem; line-height: 1.45; }
.top-preview { margin-top: 20px; padding: 22px; border: 1px solid #3e3b58; border-radius: 13px; background: linear-gradient(120deg, rgba(42, 28, 80, .42), rgba(11, 33, 56, .45)); }
.preview-heading { text-align: center; }
.preview-heading h3 { margin: 0; font-size: 1.35rem; letter-spacing: .04em; }
.fragger-preview-grid { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); gap: 10px; margin-top: 18px; }
.fragger-preview-card { position: relative; min-width: 0; overflow: hidden; border-radius: 9px; background: #141321; text-align: center; }
.preview-position { position: absolute; z-index: 1; top: 7px; left: 8px; color: #fff; font-size: .67rem; font-weight: 900; }
.preview-position img { display: block; width: 22px; height: 22px; object-fit: contain; }
.portrait { height: 123.6px; overflow: hidden; background: radial-gradient(circle at center, #6245a2, #211b36); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.fragger-preview-card:nth-child(1) .portrait img { object-position: center 1%; }
.fragger-preview-card:nth-child(2) .portrait img { object-position: center 1%; }
.fragger-preview-card:nth-child(3) .portrait img { object-position: center 1%; }
.fragger-preview-card:nth-child(4) .portrait img { object-position: center 1%; }
.fragger-preview-card:nth-child(5) .portrait img { object-position: center 1%; }
.portrait span { display: grid; height: 100%; place-items: center; color: #e7dfff; font-size: 2.3rem; font-weight: 900; }
.fragger-preview-card > div:last-child { padding: 9px 5px 10px; }
.fragger-preview-card strong, .fragger-preview-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fragger-preview-card strong { font-size: .76rem; }
.fragger-preview-card small { margin-top: 3px; color: #b0a1dc; font-size: .58rem; font-weight: 800; letter-spacing: .06em; }
.empty-preview { width: 100%; margin: 11px 0 0; color: #aaa6ba; font-size: .85rem; text-align: center; }
.no-active-tournament { max-width: 620px; margin: 14vh auto 0; padding: 54px 32px; border: 1px solid #3d3b50; border-radius: 18px; background: rgba(25, 24, 38, .8); text-align: center; }
.no-active-tournament > span { color: #c9baff; font-size: 2rem; }
.no-active-tournament h1 { margin: 14px 0 8px; font-size: clamp(1.8rem, 5vw, 2.7rem); }
.no-active-tournament p { margin: 0; color: #b6b2c3; line-height: 1.5; }
.registration-modal { width: min(960px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; overflow-y: auto; border: 1px solid #504b6a; border-radius: 17px; color: #f7f5ff; background: #181724; box-shadow: 0 25px 80px rgba(0,0,0,.55); }
.registration-modal::backdrop { background: rgba(4, 4, 10, .77); backdrop-filter: blur(3px); }
.modal-content { position: relative; padding: 30px; }
.modal-content h2 { margin: 0; font-size: 1.85rem; letter-spacing: -.04em; }
.modal-intro { max-width: 560px; margin: 8px 0 25px; color: #b6b2c5; font-size: .9rem; line-height: 1.45; }
.modal-close { position: absolute; top: 16px; right: 17px; width: 31px; height: 31px; border: 0; border-radius: 50%; color: #d9d4e8; background: #302e40; font-size: 1.3rem; line-height: 1; }
.registration-form label { display: block; color: #d8d5e2; font-size: .77rem; font-weight: 800; }
.registration-form input { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #4d4a5f; border-radius: 8px; outline: 0; color: #f7f5ff; background: #10101a; font-size: .87rem; }
.registration-form input:focus { border-color: #a58af2; }
.registration-form input[type=file] { padding: 8px; color: #bdb9cb; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.full-field { grid-column: 1 / -1; }
.player-form { margin-top: 21px; padding-top: 19px; border-top: 1px solid #363447; }
.player-form h3 { margin: 0 0 12px; font-size: .95rem; }
.player-form h3 span { margin-left: 5px; color: #dfd3ff; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.errorlist { margin: 5px 0 0; padding: 0; color: #ffacc1; font-size: .72rem; list-style: none; }
.form-alert { margin: 14px 0; padding: 10px 12px; border: 1px solid #87435a; border-radius: 8px; color: #ffd9e3; background: rgba(137, 48, 75, .23); font-size: .84rem; }
.primary-action { width: 100%; margin-top: 24px; padding: 13px 18px; border: 0; border-radius: 9px; color: white; background: #8c67e8; font-weight: 900; transition: background .18s, transform .18s; }
.primary-action:hover { background: #a582f5; transform: translateY(-1px); }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px 0; }
.login-shell { display: grid; grid-template-columns: 44% 56%; min-height: 600px; overflow: hidden; border: 1px solid #3b3860; border-radius: 20px; background: #181724; box-shadow: 0 30px 100px rgba(0,0,0,.34); }
.login-brand { display: flex; flex-direction: column; padding: 46px; background: radial-gradient(circle at 35% 30%, #6e50c5, transparent 38%), linear-gradient(145deg, #1f1645, #0e2851); }
.brand-kicker { margin: 0; color: #e1d8ff; font-size: .7rem; font-weight: 900; letter-spacing: .15em; }
.brand-emblem { display: grid; width: 69px; height: 69px; place-items: center; margin-top: auto; border: 1px solid rgba(255,255,255,.5); border-radius: 18px; color: #fff; font-size: 2rem; }
.login-brand h1 { margin: 18px 0 10px; font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: .96; letter-spacing: -.06em; }
.login-brand > p:not(.brand-kicker) { max-width: 300px; margin: 0; color: #d2cbe6; font-size: .9rem; line-height: 1.5; }
.brand-logo { margin-top: 25px; }
.brand-logo img { display: block; width: 76px; height: 46px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .82; }
.login-form-panel { display: grid; place-items: center; padding: 45px; background: #191824; }
.login-form { width: min(100%, 350px); }
.login-form h2 { margin: 0; font-size: 2rem; letter-spacing: -.05em; }
.login-intro { margin: 7px 0 27px; color: #aca9ba; font-size: .9rem; }
.login-form label { display: block; margin-top: 17px; color: #dbd8e4; font-size: .82rem; font-weight: 800; }
.login-form input { width: 100%; margin-top: 7px; padding: 12px; border: 1px solid #504c64; border-radius: 9px; outline: 0; color: #fff; background: #10101a; }
.login-form input:focus { border-color: #a58af2; }
.login-form .primary-action { margin-top: 27px; }
@media (max-width: 760px) { .public-shell, .login-shell { width: calc(100% - 30px); } .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fragger-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .login-shell { grid-template-columns: 1fr; min-height: auto; } .login-brand { min-height: 260px; padding: 31px; } .brand-emblem { margin-top: 35px; } .login-form-panel { padding: 38px 27px; } }
@media (max-width: 480px) { .public-shell { padding-top: 17px; } .tournament-title { padding: 40px 0 28px; } .data-section { padding: 18px; } .team-grid, .form-grid { grid-template-columns: 1fr; } .fragger-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .modal-content { padding: 25px 18px; } }
