:root {
    --green-950: #052e26;
    --green-900: #064e3b;
    --green-700: #087f5b;
    --green-100: #dff7eb;
    --blue: #155eef;
    --yellow: #ffd43b;
    --gold: #d9a514;
    --red: #c92a2a;
    --ink: #17221e;
    --muted: #66746d;
    --line: #dce6e1;
    --surface: #ffffff;
    --background: #f2f6f4;
    --radius: 20px;
    --shadow: 0 16px 40px rgba(5, 46, 38, .10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 85% 8%, rgba(255, 212, 59, .2), transparent 24rem),
        radial-gradient(circle at 10% 24%, rgba(8, 127, 91, .10), transparent 25rem),
        var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: var(--green-700); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 8vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { line-height: 1.15; }

.topbar {
    min-height: 68px;
    padding: 14px 5vw;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-900); font-weight: 900; }
.brand img { width: 42px; height: 42px; object-fit: cover; object-position: center 36%; border-radius: 50%; }
.topbar nav { display: flex; gap: 14px; font-size: .88rem; font-weight: 700; }
.container { width: min(1120px, 90%); margin: 0 auto; padding: 32px 0 72px; }
.footer { padding: 28px 5vw; color: #d9efe6; background: var(--green-950); text-align: center; font-size: .85rem; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.footer-separator { color: rgba(217, 239, 230, .65); }
.footer-linkedin { color: #ffffff; display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.footer-linkedin:hover { color: #9bd8ff; }
.footer-linkedin-icon { width: 14px; height: 14px; fill: #0a66c2; background: #ffffff; border-radius: 2px; flex: 0 0 14px; }

.hero {
    display: grid;
    gap: 28px;
    align-items: center;
    min-height: calc(100vh - 170px);
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 em { color: var(--green-700); font-style: normal; }
.hero-copy p { max-width: 580px; color: var(--muted); font-size: 1.12rem; }
.hero-logo { width: 110px; height: 110px; margin-bottom: 18px; object-fit: cover; object-position: center 34%; border-radius: 28px; box-shadow: 0 14px 30px rgba(5, 46, 38, .18); }
.hero-visual { min-height: 520px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 36px; background: linear-gradient(145deg, #021d3d 0%, #063f35 60%, #0b7e4c 100%); box-shadow: 0 30px 70px rgba(3, 38, 31, .25); }
.hero-visual::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: rgba(255, 212, 59, .45); filter: blur(65px); }
.hero-trophy { width: min(86%, 440px); position: relative; z-index: 1; filter: drop-shadow(0 28px 26px rgba(0,0,0,.34)); mix-blend-mode: screen; }
.floating-score { width: calc(100% - 42px); padding: 17px 20px; position: absolute; left: 21px; bottom: 20px; z-index: 3; display: grid; gap: 3px; color: white; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(3, 31, 48, .82); backdrop-filter: blur(14px); }
.floating-score span, .floating-score small { color: #bcd9cf; }
.floating-score strong { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.floating-score b { padding: 6px 10px; color: var(--green-950); background: var(--yellow); border-radius: 9px; }

.manual-hero { min-height: calc(100vh - 150px); display: grid; align-items: center; gap: 40px; padding: 30px 0 60px; }
.manual-hero-copy h1 { margin: 18px 0 24px; font-size: clamp(3rem, 7vw, 5.6rem); }
.manual-hero-copy h1 em { color: var(--green-700); font-style: normal; }
.manual-hero-copy > p { max-width: 650px; color: var(--muted); font-size: 1.15rem; }
.hero-pill { display: inline-flex; padding: 8px 13px; color: var(--green-900); background: var(--green-100); border-radius: 999px; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.hero-cta { min-width: 180px; }
.hero-trust { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.manual-hero-board { min-height: 600px; padding: 40px 28px; position: relative; overflow: hidden; display: grid; align-content: end; gap: 16px; color: white; border-radius: 38px; background: radial-gradient(circle at 50% 15%, rgba(255,212,59,.34), transparent 28%), linear-gradient(155deg, #031a38, #064e3b 62%, #0b8d59); box-shadow: 0 35px 80px rgba(4, 45, 37, .3); }
.manual-hero-board::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 38px 38px; }
.board-light { width: 160px; height: 160px; position: absolute; top: -80px; border-radius: 50%; background: white; filter: blur(30px); opacity: .2; }
.board-light-left { left: -20px; }
.board-light-right { right: -20px; }
.board-logo { width: min(82%, 420px); position: absolute; z-index: 1; top: 16px; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 25px 25px rgba(0,0,0,.35)); mix-blend-mode: screen; }
.board-card, .board-ranking { position: relative; z-index: 2; border: 1px solid rgba(255,255,255,.17); border-radius: 20px; background: rgba(1, 28, 43, .86); backdrop-filter: blur(16px); }
.board-card { padding: 18px; }
.board-card-top { display: flex; justify-content: space-between; gap: 10px; color: #b9d4ca; font-size: .7rem; }
.board-card-top strong { color: #83f2b7; }
.board-match { margin: 18px 0 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.board-match > div { display: grid; justify-items: center; gap: 7px; }
.board-match b { width: 48px; height: 48px; display: grid; place-items: center; color: var(--green-950); background: var(--yellow); border-radius: 50%; }
.board-match > div:last-child b { color: white; background: var(--blue); }
.board-versus { color: var(--yellow); font-size: 1.4rem; font-weight: 900; }
.board-date { color: #bdd4cb; text-align: center; font-size: .76rem; }
.board-ranking { padding: 15px 18px; }
.board-ranking > span { display: block; margin-bottom: 9px; color: var(--yellow); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.board-ranking > div { padding: 6px 0; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; border-top: 1px solid rgba(255,255,255,.09); font-size: .8rem; }
.board-ranking b { color: var(--yellow); }
.board-ranking em { color: #b9d4ca; font-style: normal; }
.home-flow { padding: 70px 0; }
.center-heading { max-width: 700px; margin-inline: auto; text-align: center; }
.center-heading h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.flow-grid { display: grid; gap: 18px; }
.flow-card { padding: 28px; position: relative; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 12px 30px rgba(5,46,38,.07); }
.flow-card > span { position: absolute; top: 22px; right: 24px; color: #c6d2cc; font-size: 1.5rem; font-weight: 950; }
.flow-card.featured { color: white; background: var(--green-900); transform: translateY(-8px); }
.flow-card.featured p { color: #cbe0d7; }
.flow-icon { width: 52px; height: 52px; margin-bottom: 20px; display: grid; place-items: center; color: var(--green-950); background: var(--yellow); border-radius: 16px; font-size: 1.5rem; font-weight: 900; }
.flow-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.flow-card p { margin: 0; color: var(--muted); }
.home-banner { padding: 34px; margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: white; background: linear-gradient(110deg, #031f3f, var(--green-900)); border-radius: 28px; }
.home-banner h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--green-700); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-primary { color: white; background: var(--green-700); box-shadow: 0 10px 22px rgba(8, 127, 91, .22); }
.button-secondary { color: var(--green-900); background: var(--green-100); }
.button-gold { color: #332700; background: var(--yellow); }
.button-danger { color: white; background: var(--red); }
.button-outline { color: var(--green-700); background: white; border: 1px solid var(--green-700); }
.button-block { width: 100%; }

.card {
    padding: 22px;
    border: 1px solid rgba(6, 78, 59, .09);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.steps { display: grid; gap: 16px; margin-top: 30px; }
.steps article > strong {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--green-950);
    background: var(--yellow);
}
.steps h2 { margin-bottom: 6px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

.section-heading { margin-bottom: 28px; }
.section-heading h1 { margin-bottom: 12px; }
.section-heading p { color: var(--muted); max-width: 680px; }
.form-layout, .share-layout { display: grid; gap: 28px; align-items: start; }
.form-logo-wrap { min-height: 430px; display: grid; place-items: center; overflow: hidden; border-radius: 30px; background: radial-gradient(circle, rgba(255,212,59,.35), transparent 45%), linear-gradient(145deg, #053d33, #061f3f); box-shadow: var(--shadow); }
.form-logo { width: min(86%, 430px); filter: drop-shadow(0 25px 28px rgba(0,0,0,.35)); mix-blend-mode: screen; }
.form-card { display: grid; gap: 9px; }

label { margin-top: 7px; font-weight: 800; font-size: .9rem; }
input, textarea, select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--ink);
    background: white;
    border: 1px solid #c9d7d0;
    border-radius: 12px;
    font: inherit;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(21, 94, 239, .15); border-color: var(--blue); }
.help { color: var(--muted); font-size: .82rem; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.created-room-links { padding: 18px 20px; margin-bottom: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: white; background: linear-gradient(110deg, #041f42, var(--green-700)); border-radius: 18px; box-shadow: var(--shadow); }
.created-room-links > div { min-width: 0; display: grid; gap: 3px; }
.created-room-links span { color: #c9e1d8; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.created-room-links a { color: white; overflow-wrap: anywhere; font-weight: 850; text-decoration: underline; }
.share-actions { display: grid; gap: 12px; }
.share-actions hr { width: 100%; border: 0; border-top: 1px solid var(--line); }

.share-card {
    width: min(100%, 430px);
    aspect-ratio: 2 / 3;
    margin: auto;
    position: relative;
    overflow: hidden;
    background: #071d45;
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.share-card-template { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.share-room-name { width: 72%; padding: 5px 12px; position: absolute; z-index: 2; top: 44.2%; left: 14%; overflow: hidden; color: #082b69; background: rgba(255,255,255,.94); border-radius: 999px; font-size: clamp(.65rem, 2.7vw, 1rem); font-weight: 900; text-align: center; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 5px 12px rgba(0,0,0,.12); }
.share-qr-area { width: 54%; aspect-ratio: 1; position: absolute; z-index: 2; top: 50%; left: 23%; display: grid; place-items: center; }
.qrcode { width: 100%; height: 100%; padding: 5%; display: grid; place-items: center; background: white; border-radius: 10%; }
.qrcode img, .qrcode canvas { max-width: 100%; height: auto !important; }
.qrcode .qr-fallback { width: 100%; height: 100% !important; object-fit: contain; }
.qr-error { padding: 12px; color: var(--red); font-size: .72rem; font-weight: 800; text-align: center; }

.room-hero { padding: 28px; margin-bottom: 24px; position: relative; overflow: hidden; display: grid; gap: 24px; color: white; background: linear-gradient(125deg, #041f42 0%, var(--green-950) 58%, var(--green-700) 100%); border-radius: 28px; box-shadow: 0 20px 45px rgba(5,46,38,.18); }
.room-hero::after { content: ""; width: 270px; height: 270px; position: absolute; right: -90px; top: -110px; border-radius: 50%; border: 50px solid rgba(255,212,59,.12); }
.room-hero-content { position: relative; z-index: 2; }
.room-hero h1 { font-size: clamp(2rem, 9vw, 3.6rem); }
.prize-box { padding: 13px 16px; margin: 16px 0; color: #332700; background: var(--yellow); border-radius: 14px; font-weight: 850; }
.room-summary { padding: 16px; position: relative; z-index: 2; display: grid; grid-template-columns: 68px repeat(3, 1fr); align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(0,0,0,.2); backdrop-filter: blur(10px); }
.room-summary img { width: 64px; height: 64px; object-fit: cover; object-position: center 34%; border-radius: 16px; }
.room-summary div { display: grid; text-align: center; }
.room-summary strong { color: var(--yellow); font-size: 1.35rem; }
.room-summary span { color: #cfe4dc; font-size: .68rem; text-transform: uppercase; }
.prediction-form { display: grid; gap: 18px; }
.participant-card { position: relative; z-index: 2; }
.participant-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.participant-heading label { margin: 0; }
.participant-heading a { font-size: .78rem; font-weight: 800; }
.match-list { display: grid; gap: 16px; }
.match-card { padding: 20px; position: relative; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 28px rgba(5, 46, 38, .08); transition: transform .2s, box-shadow .2s; }
.match-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(5, 46, 38, .13); }
.match-card::before { content: ""; height: 4px; position: absolute; inset: 0 0 auto; background: linear-gradient(90deg, var(--green-700), var(--yellow), var(--blue)); }
.match-card.is-locked { background: #f3f5f4; }
.match-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .8rem; }
.stage-chip { padding: 5px 9px; color: var(--green-700); background: var(--green-100); border-radius: 999px; font-weight: 850; }
.match-status { width: fit-content; padding: 5px 10px; margin: 14px auto 0; color: #087443; background: #dcfce7; border-radius: 999px; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.match-status.finalizado, .is-locked .match-status { color: #66746d; background: #e4e9e6; }
.score-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 18px; text-align: center; }
.team { min-width: 0; display: grid; justify-items: center; gap: 8px; }
.team strong { max-width: 100%; overflow-wrap: anywhere; font-size: .95rem; }
.team-badge { width: 52px; height: 52px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--green-700), var(--green-950)); border: 3px solid white; border-radius: 50%; box-shadow: 0 5px 14px rgba(5,46,38,.22); font-size: 1.25rem; font-weight: 950; }
.team-away .team-badge { background: linear-gradient(145deg, #155eef, #061f3f); }
.score-inputs { padding: 8px; display: grid; grid-template-columns: 58px 18px 58px; align-items: center; gap: 5px; background: var(--green-950); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.score-inputs span { color: var(--yellow); font-size: 1.15rem; font-weight: 900; }
.score-inputs input { height: 52px; min-height: 52px; padding: 5px; text-align: center; border: 0; font-size: 1.4rem; font-weight: 950; }
.score-inputs input:disabled { color: #66746d; background: #dfe5e2; }
.locked-message { margin: 16px 0 0; color: var(--red); font-size: .84rem; font-weight: 750; }
.public-predictions { padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); }
.public-predictions-title { margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.public-predictions-title span { color: var(--muted); font-size: .75rem; }
.prediction-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prediction-chip { padding: 8px 11px; display: inline-grid; grid-template-columns: minmax(0, auto) auto; align-items: center; gap: 1px 12px; color: var(--green-950); background: var(--green-100); border-radius: 12px; }
.prediction-chip span { grid-column: 1; font-size: .78rem; font-weight: 900; }
.prediction-chip time, .prediction-date { color: rgba(5, 46, 38, .56); font-size: .6rem; font-weight: 700; }
.prediction-chip time { grid-column: 1; grid-row: 2; }
.prediction-chip strong { grid-row: 1 / span 3; grid-column: 2; font-size: 1rem; }
.prediction-chip small { color: var(--green-700); font-size: .68rem; }
.no-predictions { margin: 0; color: var(--muted); font-size: .82rem; }
.match-result, .winners { display: grid; gap: 5px; padding: 14px; margin-top: 15px; border-radius: 13px; background: var(--green-100); }
.winners h3 { margin: 0; font-size: 1rem; }
.winners p { margin: 0; font-size: .85rem; }
.sticky-submit { position: sticky; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 10; box-shadow: 0 12px 28px rgba(8,127,91,.3); }

.ranking-list, .admin-list { display: grid; gap: 12px; }
.ranking-card { padding: 16px; display: grid; grid-template-columns: 48px minmax(110px, 1fr) repeat(3, auto); gap: 12px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 17px; }
.ranking-card > div:not(.ranking-name) { display: grid; text-align: center; }
.ranking-card small { color: var(--muted); font-size: .72rem; }
.ranking-position { width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); border-radius: 50%; font-weight: 900; }
.ranking-name { display: grid; }

.alert { padding: 14px 16px; margin-bottom: 18px; border-radius: 13px; font-weight: 700; }
.alert-success { color: #07543d; background: #d8f5e8; }
.alert-error { color: #8d1b1b; background: #ffe3e3; }
.empty-state { padding: 40px 22px; color: var(--muted); background: white; border: 1px dashed #b8c9c0; border-radius: var(--radius); text-align: center; }
.setup-warning { max-width: 680px; margin: 8vh auto; border-color: #f0b429; }
.setup-warning h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.login-panel { max-width: 440px; margin: 8vh auto; }
.login-panel form { display: grid; gap: 12px; }
.auth-simple { width: min(520px, 100%); margin: 5vh auto; }
.auth-simple-heading { margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.auth-simple-heading img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.auth-simple-heading h1 { margin-bottom: 5px; font-size: clamp(2rem, 7vw, 3rem); }
.auth-simple-heading p { margin: 0; color: var(--muted); }
.auth-card { width: 100%; }
.auth-card form { display: grid; gap: 10px; }
.auth-card > p, .auth-card small { color: var(--muted); }
.admin-users-section { margin-top: 28px; display: grid; gap: 18px; }
.admin-user-list { display: grid; gap: 8px; }
.admin-user-list > div { padding: 12px 0; display: grid; gap: 2px; border-bottom: 1px solid var(--line); }
.admin-user-list > div:last-child { border-bottom: 0; }
.admin-user-list small { color: var(--muted); }
.prediction-filter { max-width: 520px; margin-bottom: 24px; }
.prediction-admin-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.prediction-admin-card > div { display: grid; gap: 3px; }
.prediction-admin-card .eyebrow { margin: 0; }
.prediction-admin-card small { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { padding: 22px; display: grid; background: var(--green-900); color: white; border-radius: 18px; }
.stat-card strong { font-size: 2rem; }
.admin-grid { display: grid; gap: 14px; }
.admin-link { display: grid; gap: 6px; color: var(--ink); }
.admin-link strong { font-size: 1.15rem; }
.admin-link span { color: var(--muted); }
.admin-link small { color: var(--muted); }
.compact-form { max-width: 680px; margin-bottom: 36px; }
.organizer-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; }
.organizer-grid { display: grid; gap: 20px; margin-bottom: 42px; }
.form-two-columns { display: grid; gap: 10px; }
.organizer-tip { min-height: 100%; display: grid; place-items: center; overflow: hidden; text-align: center; background: radial-gradient(circle, rgba(255,212,59,.25), transparent 35%), linear-gradient(145deg, #041f42, var(--green-900)); color: white; }
.organizer-tip img { width: min(70%, 260px); filter: drop-shadow(0 20px 18px rgba(0,0,0,.3)); mix-blend-mode: screen; }
.organizer-tip p { color: #cbe0d7; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.section-title-row h2 { margin-bottom: 0; }
.organizer-match { display: grid; gap: 16px; align-items: center; }
.organizer-match-info { display: grid; gap: 4px; }
.organizer-match-info small, .organizer-match-info > span { color: var(--muted); }
.organizer-match-info strong { font-size: 1.15rem; }
.organizer-match-info strong span { color: var(--gold); }
.inline-result { display: grid; grid-template-columns: 54px 16px 54px auto; align-items: center; gap: 6px; }
.inline-result input { min-height: 44px; padding: 5px; text-align: center; }
.official-score { color: var(--green-900); font-size: 1.5rem; font-weight: 950; }
.organizer-share { margin-top: 55px; }
.admin-list { margin-top: 28px; }
.admin-list-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.admin-list-item > div:first-child { display: grid; }
.admin-list-item small { color: var(--muted); }
.result-form { display: grid; grid-template-columns: minmax(120px, 1fr) 64px 16px 64px; align-items: center; gap: 8px; }
.result-form > div { display: grid; grid-column: 1 / -1; }
.result-form select, .result-form button { grid-column: span 2; }

@media (max-width: 560px) {
    .topbar nav a:first-child { display: none; }
    .topbar nav { gap: 10px; font-size: .78rem; }
    .container { width: min(94%, 1120px); padding-top: 22px; }
    .ranking-card { grid-template-columns: 44px 1fr repeat(3, auto); gap: 7px; font-size: .84rem; }
    .ranking-card small { font-size: .64rem; }
    .brand span { display: none; }
    .hero-visual { min-height: 420px; }
    .hero-trophy { width: 96%; }
    .room-hero { padding: 22px; }
    .room-summary { grid-template-columns: repeat(3, 1fr); }
    .room-summary img { display: none; }
    .score-grid { gap: 6px; }
    .team strong { font-size: .78rem; }
    .team-badge { width: 44px; height: 44px; }
    .score-inputs { grid-template-columns: 46px 12px 46px; padding: 6px; }
    .score-inputs input { height: 46px; min-height: 46px; font-size: 1.2rem; }
}

@media (min-width: 760px) {
    .hero { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .form-layout, .share-layout { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .admin-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-users-section { grid-template-columns: 1fr 1fr; }
    .manual-hero { grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); }
    .flow-grid { grid-template-columns: repeat(3, 1fr); }
    .organizer-grid { grid-template-columns: 1.05fr .95fr; }
    .form-two-columns { grid-template-columns: repeat(2, 1fr); }
    .organizer-match { grid-template-columns: minmax(250px, 1fr) auto auto; }
    .result-form { grid-template-columns: minmax(220px, 1fr) 64px 16px 64px 160px 100px; }
    .result-form > div, .result-form select, .result-form button { grid-column: auto; }
    .room-hero { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); align-items: center; }
}
