* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}

#appBanner, .appBanner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3c72 40%, #7e22ce 100%);
    padding: 38px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.bannerContent {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
}

#appBanner::before {
    content: "";
    position: absolute;
    top: 12%;
    left: 6%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.28), transparent 55%);
    filter: blur(18px);
    pointer-events: none;
}

#appBanner::after {
    content: "";
    position: absolute;
    right: 10%;
    bottom: 8%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at bottom right, rgba(192, 132, 252, 0.22), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}

.bannerShapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.18;
}

.shape1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    top: -40px;
    left: 14%;
}

.shape2 {
    width: 140px;
    height: 140px;
    background: linear-gradient(45deg, rgba(255,255,255,0.35), transparent 75%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    bottom: -30px;
    left: 5%;
}

.shape3 {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.15);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: rotate(45deg);
    bottom: 20px;
    right: 15%;
}

.shape4 {
    width: 220px;
    height: 4px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(236, 72, 153, 0.8));
    top: 50%;
    left: 8%;
    transform: rotate(18deg);
    opacity: 0.4;
}

.bannerContent {
    position: relative;
    z-index: 2;
}

.bannerContent h1 {
    margin: 0 0 8px 0;
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bannerContent p {
    margin: 0;
    font-size: 16px;
    color: #e0e0e0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

#teamNameArea {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

#teamNameArea label {
    font-weight: bold;
}

#teamNameArea input {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #555;
    width: 220px;
    background-color: #111;
    color: white;
}

#teamNameArea input::placeholder {
    color: #888;
}

#teamNameArea button {
    padding: 8px 14px;
}

#gameArea {
    display: grid;
    grid-template-columns: 240px minmax(720px, 1fr) 240px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        ". draft ."
        "team draft squad";
    gap: 20px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    align-items: start;
}

#teamStrengthPanel {
    grid-area: team;
}

#draftArea {
    grid-area: draft;
}

#squadPanel {
    grid-area: squad;
}

#gameArea.simulationActive {
    display: block;
    padding: 0 20px;
    width: 100%;
    max-width: none;
}

#gameArea.simulationActive #draftArea {
    width: 100%;
    max-width: none;
}

#gameArea.simulationActive #teamStrengthPanel {
    display: none;
}

#playerChoices {
    width: 100%;
}

#playerChoices h2 {
    width: 100%;
    margin-bottom: 16px;
}

#playerChoices .playerOptionsWrapper {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 18px;

    padding: 28px;

    background:
        radial-gradient(circle at 50% 35%, rgba(74,144,226,0.16), transparent 55%),
        radial-gradient(circle at 18% 18%, rgba(126,214,126,0.08), transparent 30%),
        radial-gradient(circle at 82% 72%, rgba(239,68,68,0.07), transparent 34%),
        linear-gradient(135deg, #282828 0%, #1c1c1c 100%);

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

#playerChoices .playerOptionsWrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(32deg, transparent 0%, rgba(255,255,255,0.07) 49%, rgba(255,255,255,0.07) 51%, transparent 100%),
        linear-gradient(-28deg, transparent 0%, rgba(255,255,255,0.055) 49%, rgba(255,255,255,0.055) 51%, transparent 100%);

    opacity: 0.9;
}

#playerChoices .playerOptionsWrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(circle at 20% 22%,
            rgba(74,144,226,0.12) 0,
            rgba(74,144,226,0.12) 3px,
            transparent 4px),

        radial-gradient(circle at 30% 35%,
            rgba(74,144,226,0.10) 0,
            rgba(74,144,226,0.10) 3px,
            transparent 4px),

        radial-gradient(circle at 75% 28%,
            rgba(74,144,226,0.10) 0,
            rgba(74,144,226,0.10) 3px,
            transparent 4px),

        radial-gradient(circle at 82% 52%,
            rgba(74,144,226,0.10) 0,
            rgba(74,144,226,0.10) 3px,
            transparent 4px);

    opacity: 0.25;
}

#playerChoices .playerOptionsWrapper .tacticalLine {
    position: absolute;
}

#playerChoices .playerOptionsWrapper > * {
    position: relative;
    z-index: 2;
}

.draftingLabel {
    width: 100%;
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #7ed67e;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.draftButtonsContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.draftButton {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.draftButtonRandom {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.draftButtonRandom:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.draftButtonRandom:active {
    transform: translateY(0);
}

.draftButtonAuto {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.draftButtonAuto:hover {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.draftButtonAuto:active {
    transform: translateY(0);
}

/* ===== DRAFT PLAYER CARDS ===== */

.playerCard {
    position: relative;
    overflow: hidden;
    width: 260px;
    min-height: 420px;
    padding: 18px;
    border-radius: 22px;

    background:
        radial-gradient(circle at 78% 18%, var(--positionWash), transparent 34%),
        radial-gradient(circle at 20% 0%, rgba(255,255,255,0.08), transparent 28%),
        linear-gradient(160deg, #24344f 0%, #121827 58%, #080c16 100%);

    border: 2px solid var(--positionBorder);

    box-shadow:
        0 0 0 1px rgba(255,255,255,0.10) inset,
        0 16px 36px rgba(0,0,0,0.50),
        0 0 18px var(--positionGlow);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.playerCard::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            transparent 0,
            transparent 38px,
            rgba(255,255,255,0.04) 39px,
            rgba(255,255,255,0.04) 41px,
            transparent 42px
        ),
        linear-gradient(
            to bottom,
            transparent 49%,
            rgba(255,255,255,0.04) 50%,
            transparent 51%
        );

    border: 1px solid rgba(255,255,255,0.12);
}

.playerCard::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: var(--positionAccent);
    box-shadow: 0 0 18px var(--positionGlow);
    pointer-events: none;
}

.playerCard:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.16) inset,
        0 22px 52px rgba(0,0,0,0.62),
        0 0 24px var(--positionGlow);
}

.playerCard .cardHeader,
.playerCard .cardBody {
    position: relative;
    z-index: 2;
}

.playerCard .cardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.16);
}

.playerCard .cardHeader h3 {
    margin: 0;
    font-size: 21px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.playerCard .playerPosition {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--positionAccent);
    color: #07111f;
    font-weight: 900;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.28) inset,
        0 8px 18px var(--positionGlow);
}

.position-GK {
    --positionAccent: #4ade80;
    --positionBorder: rgba(74,222,128,0.65);
    --positionGlow: rgba(74,222,128,0.24);
    --positionWash: rgba(74,222,128,0.16);
}

.position-LB,
.position-CB,
.position-RB {
    --positionAccent: #38bdf8;
    --positionBorder: rgba(56,189,248,0.65);
    --positionGlow: rgba(56,189,248,0.24);
    --positionWash: rgba(56,189,248,0.16);
}

.position-CM {
    --positionAccent: #facc15;
    --positionBorder: rgba(250,204,21,0.65);
    --positionGlow: rgba(250,204,21,0.24);
    --positionWash: rgba(250,204,21,0.16);
}

.position-LW,
.position-RW,
.position-ST {
    --positionAccent: #ef4444;
    --positionBorder: rgba(239,68,68,0.65);
    --positionGlow: rgba(239,68,68,0.24);
    --positionWash: rgba(239,68,68,0.16);
}

.traitList {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}

.traitTooltip,
.traitList li {
    position: relative;
    cursor: default;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
}

.traitGood,
.traitList li.traitGood {
    color: #7ed67e !important;
    background: rgba(126,214,126,0.14) !important;
    border-color: rgba(126,214,126,0.35) !important;
}

.traitBad,
.traitList li.traitBad {
    color: #ff7a7a !important;
    background: rgba(255,122,122,0.14) !important;
    border-color: rgba(255,122,122,0.35) !important;
}

.traitMixed,
.traitList li.traitMixed {
    color: #ffb347 !important;
    background: rgba(255,179,71,0.14) !important;
    border-color: rgba(255,179,71,0.35) !important;
}

.traitNeutral,
.traitList li.traitNeutral {
    color: #c4c4c4;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.10);
}

.traitEmpty,
.traitList li.traitEmpty {
    visibility: hidden !important;
}

.selectButton {
    width: 100%;
    padding: 12px 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.selectButton:hover {
    background: linear-gradient(135deg, #6aa8ff 0%, #4a90e2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);
}

.selectButton:active {
    transform: translateY(0);
}

#playerChoices .playerCard button {
    cursor: pointer;
}

#squadPanel {
    background: linear-gradient(180deg, #16171b 0%, #0d0e13 100%);
    border: 1px solid #444;
    border-radius: 20px;
    padding: 24px;
    width: 240px;
    min-height: 420px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

#squadPanel h2 {
    display: none;
    margin: 0;
    font-size: 0;
    line-height: 0;
}

#draftedList {
    display: grid;
    gap: 8px;
}

#draftedList p {
    background: linear-gradient(135deg, #121416 0%, #1c1d20 100%);
    border: 1px solid #2f2f34;
    padding: 10px 12px;
    border-radius: 14px;
    margin: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 14px;
    line-height: 1.3;
}

#draftedList .playerNameHover {
    color: #81c8ff;
    text-decoration: underline dotted rgba(129, 200, 255, 0.7);
}

.teamNameLabel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%);
    color: white;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    text-align: center;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

button {
    padding: 8px 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #ddd;
}

.tacticsBox {
    background-color: #1b1f28;
    padding: 20px;
    border-radius: 18px;
    width: min(100%, 860px);
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.tacticsRow {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: left;
}

.tacticsRow label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #cbd5e1;
    font-size: 13px;
    margin: 0;
}

.tacticsOptionGroup {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tacticsOptionButton,
#simulateButton {
    border: none;
    font-family: inherit;
    text-align: center;
    line-height: 1.2;
    min-height: 42px;
}

.tacticsOptionButton {
    border: 1px solid #334155;
    background: #111827;
    color: #e2e8f0;
    padding: 10px 8px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    outline: none;
}

.tacticsOptionButton:hover {
    background: #1f2937;
    border-color: #60a5fa;
}

.tacticsOptionButton.active {
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
    border-color: #93c5fd;
    color: white;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
}

.tacticsOptionButton.active:hover {
    transform: translateY(-1px);
}

#simulateButton {
    width: 100%;
    justify-self: stretch;
}

@media (max-width: 900px) {
    .tacticsRow {
        grid-template-columns: 1fr;
    }

    .tacticsOptionGroup {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tacticsOptionGroup {
        grid-template-columns: 1fr;
    }
}

#seasonLayout {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(520px, 1fr) minmax(260px, 320px);
    gap: 12px;
    align-items: start;
    width: 100%;
    max-width: none;
}

#seasonLayout > div {
    min-width: 0;
}

#seasonContainer {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: start;
}

/* ===== MODERN LEAGUE TABLE ===== */

#leagueSection {
    background:
        radial-gradient(circle at 20% 0%, rgba(74,144,226,0.12), transparent 35%),
        linear-gradient(180deg, #151b26 0%, #0d1118 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 16px;
    box-shadow:
        0 18px 42px rgba(0,0,0,0.38),
        inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
}

#leagueSection h3 {
    margin: 0 0 14px 0;
    padding: 0 2px 10px;
    font-size: 16px;
    color: #facc15;
    font-weight: 900;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

#leagueTable {
    overflow-x: auto;
    border-radius: 14px;
}

#leagueTable table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(0,0,0,0.18);
    font-size: 12px;
    overflow: hidden;
}

#leagueTable th {
    background: rgba(255,255,255,0.07);
    color: #dbeafe;
    padding: 6px 4px;
    text-align: center;
    font-weight: 900;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.6px;
}

#leagueTable td {
    padding: 4px 4px;
    text-align: center;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #f8fafc;
}

#leagueTable tr:nth-child(even) td {
    background: rgba(255,255,255,0.025);
}

#leagueTable tr:hover td {
    background: rgba(74,144,226,0.10);
}

#leagueTable th:first-child,
#leagueTable td:first-child {
    text-align: left;
}

#leagueTable td:nth-child(2) {
    font-weight: 800;
    color: #ffffff;
}

#leagueTable td:last-child {
    font-weight: 900;
    color: #facc15;
}

#leagueTable .yourTeamRow td {
    background: linear-gradient(90deg, rgba(74,222,128,0.26), rgba(74,222,128,0.10)) !important;
    color: #ffffff;
    font-weight: 900;
    box-shadow: inset 4px 0 0 rgba(74,222,128,0.95);
}

#leagueTable .yourTeamRow:hover td {
    background: linear-gradient(90deg, rgba(74,222,128,0.34), rgba(74,222,128,0.14)) !important;
}

#matchCentreSection {
    display: flex;
    flex-direction: column;
    gap: 14px;
}



.bigPlayButton {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bigPlayButton:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5a9f 100%);
    transform: scale(1.02);
}

.bigPlayButton:active {
    transform: scale(0.98);
}

#latestMatch {
    min-height: 280px;
}

/* ===== MODERN PLAYER STATS TABLE ===== */

#squadSection {
    background:
        radial-gradient(circle at 80% 0%, rgba(74,222,128,0.10), transparent 36%),
        linear-gradient(180deg, #12201d 0%, #0d1412 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 16px;
    box-shadow:
        0 18px 42px rgba(0,0,0,0.38),
        inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
}

#squadSection h3 {
    margin: 0 0 14px 0;
    padding: 0 2px 10px;
    font-size: 16px;
    color: #7ed67e;
    font-weight: 900;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

#playerStats {
    overflow-x: auto;
    border-radius: 14px;
}

.squadStatsTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(0,0,0,0.18);
    font-size: 12px;
    overflow: hidden;
}

.squadStatsTable th {
    background: rgba(255,255,255,0.07);
    color: #d1fae5;
    padding: 5px 63x;
    text-align: center;
    font-weight: 900;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.6px;
}

.squadStatsTable td {
    padding: 4px 3px;
    text-align: center;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #f8fafc;
}

.squadStatsTable tr:nth-child(even) td {
    background: rgba(255,255,255,0.025);
}

.squadStatsTable tr:hover td {
    background: rgba(74,222,128,0.09);
}

.squadStatsTable td:first-child {
    text-align: left;
    font-weight: 800;
    color: #9fd3ff;
}

.squadStatsTable td:nth-child(3) {
    color: #4ade80;
    font-weight: 900;
}

.squadStatsTable td:nth-child(4) {
    color: #60a5fa;
    font-weight: 900;
}

.squadStatsTable td:nth-last-child(2) {
    color: #facc15;
    font-weight: 900;
}

.squadStatsTable td:last-child {
    color: #ef4444;
    font-weight: 900;
}

.squadStatsTable {
    table-layout: fixed;
}

.squadStatsTable th,
.squadStatsTable td {
    white-space: nowrap;
}

.squadStatsTable {
    table-layout: fixed;
}

.squadStatsTable th:first-child,
.squadStatsTable td:first-child {
    width: 86px;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.squadStatsTable th:nth-child(2),
.squadStatsTable td:nth-child(2) {
    width: 30px;
}

.squadStatsTable th:nth-child(3),
.squadStatsTable td:nth-child(3),
.squadStatsTable th:nth-child(4),
.squadStatsTable td:nth-child(4),
.squadStatsTable th:nth-last-child(2),
.squadStatsTable td:nth-last-child(2),
.squadStatsTable th:last-child,
.squadStatsTable td:last-child {
    width: 24px;
}

.squadStatsTable th,
.squadStatsTable td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matchCard {
    background: linear-gradient(135deg, #1a2a3a 0%, #1f2f35 100%);
    border: 2px solid #4a90e2;
    border-radius: 12px;
    padding: 20px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.15);
}

.matchCard h2,
.matchCard h3 {
    margin: 0;
    font-size: 20px;
}

.scoreLine {
    font-size: 42px;
    font-weight: bold;
    margin: 10px 0;
    color: #fff;
}

.winResult {
    color: #7ed67e;
}

.lossResult {
    color: #ff6b6b;
}

.drawResult {
    color: #ffa500;
}

.scorersGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.scorersGrid div {
    background-color: #262626;
    border-radius: 8px;
    padding: 10px;
    min-height: 50px;
}

.scorersGrid h4 {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #b3b3b3;
}

.scorersGrid ul {
    margin: 0;
    padding-left: 16px;
    text-align: left;
    font-size: 13px;
}

.cardsBox {
    margin: 10px 0;
}

.cardsGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cardsGrid div {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 8px;
}

.cardsGrid ul {
    margin: 0;
    padding-left: 18px;
    text-align: left;
    font-size: 12px;
}


.chanceLog {
    background-color: #262626;
    border-radius: 8px;
    padding: 10px;
    max-height: 180px;
    overflow-y: auto;
    text-align: left;
    font-size: 12px;
}

.chanceLog p {
    margin: 4px 0;
}

.cardEvent {
    color: #ffd54f;
    font-weight: 600;
}

.goalChance {
    color: #7ed67e;
    font-weight: bold;
}

.missedChance {
    color: #ccc;
}

table {
    border-collapse: collapse;
    width: 100%;
    background-color: #111;
    font-size: 12px;
}

th, td {
    border: 1px solid #444;
    padding: 3px 5px;
    text-align: center;
}

th {
    background-color: #333;
}

.topControls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.topControls label {
    font-weight: bold;
}

.topControls input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #111;
    color: white;
    min-width: 220px;
}

.playerNameHover {
    color: #9fd3ff;
    font-weight: 600;
    cursor: help;
    border-bottom: 1px dotted rgba(159, 211, 255, 0.6);
}

.tooltipCard {
    position: relative;
    overflow: hidden;
    width: 260px;
    min-height: 0;
    padding: 18px;
    border-radius: 22px;

    background:
        radial-gradient(circle at 78% 18%, var(--positionWash), transparent 34%),
        radial-gradient(circle at 20% 0%, rgba(255,255,255,0.08), transparent 28%),
        linear-gradient(160deg, #24344f 0%, #121827 58%, #080c16 100%);

    border: 2px solid var(--positionBorder);

    box-shadow:
        0 0 0 1px rgba(255,255,255,0.10) inset,
        0 16px 36px rgba(0,0,0,0.60),
        0 0 18px var(--positionGlow);

    text-align: left;
}

.tooltipCard::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            transparent 0,
            transparent 38px,
            rgba(255,255,255,0.04) 39px,
            rgba(255,255,255,0.04) 41px,
            transparent 42px
        ),
        linear-gradient(
            to bottom,
            transparent 49%,
            rgba(255,255,255,0.04) 50%,
            transparent 51%
        );

    border: 1px solid rgba(255,255,255,0.12);
}

.tooltipCard::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: var(--positionAccent);
    box-shadow: 0 0 18px var(--positionGlow);
    pointer-events: none;
}

.tooltipCard .cardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.16);
}

.tooltipCard .cardHeader h3 {
    margin: 0;
    font-size: 21px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.tooltipCard .playerPosition {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--positionAccent);
    color: #07111f;
    font-weight: 900;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.28) inset,
        0 8px 18px var(--positionGlow);
}

.tooltipCard .cardHeader,
.tooltipCard .traitList {
    position: relative;
    z-index: 2;
}

.tooltipCard h3 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.tooltipCard .playerPosition {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 12px;
    padding: 6px 15px;
    border-radius: 999px;
    background: var(--positionAccent);
    color: #07111f;
    font-weight: 900;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.28) inset,
        0 8px 18px var(--positionGlow);
}

.tooltipCard .traitList {
    margin-bottom: 0;
}

.bannerButtons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}



.supportButton:hover {
    background: #ffe95c;
}

@media (max-width: 980px) {
    body {
        padding: 10px;
    }

    #appBanner, .appBanner {
        padding: 30px 16px;
        margin-bottom: 24px;
    }

    .bannerContent h1 {
        font-size: 34px;
    }

    .bannerContent p {
        font-size: 14px;
    }

    .shape1 {
        width: 140px;
        height: 140px;
        top: -40px;
        right: 8%;
    }

    .shape2 {
        width: 110px;
        height: 110px;
        bottom: -20px;
        left: 4%;
    }

    .shape3 {
        width: 70px;
        height: 70px;
        bottom: 12px;
        right: 12%;
    }

    #teamNameArea {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 18px;
        padding: 0 4px;
    }

    #teamNameArea input {
        width: 100%;
    }

    #gameArea {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        flex-wrap: wrap;
    }

    #draftArea,
    #squadPanel,
    #teamStrengthPanel {
        width: 100%;
        max-width: none;
        flex: none;
    }

    #playerChoices .playerOptionsWrapper {
        flex-direction: column;
        padding: 14px;
        gap: 14px;
    }

    .draftButtonsContainer {
        justify-content: stretch;
    }

    .draftButton {
        flex: 1;
        min-width: 0;
    }

    #seasonContainer {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #leagueSection,
    #matchCentreSection,
    #squadSection {
        width: 100%;
    }

    #latestMatch {
        min-height: auto;
    }

    #matchCentreSection {
        gap: 12px;
    }

    .bigPlayButton {
        width: 100%;
    }

    #playerStats {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .bannerContent h1 {
        font-size: 28px;
    }

    #appBanner, .appBanner {
        padding: 24px 12px;
    }

    #teamNameArea {
        padding: 0;
    }

    .draftButton {
        padding: 12px 16px;
        font-size: 13px;
    }

    .playerCard {
        width: 100%;
        max-width: none;
        padding: 16px;
    }

    .selectButton {
        padding: 10px 0;
    }
}

.oppositionGoalChance {
    color: #ff6b6b;
    font-weight: bold;
}

.traitList {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.traitTooltip:hover {
    background: rgba(255, 255, 255, 0.09);
}

.traitTooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: 220px;
    background: #111827;
    color: #f3f4f6;
    border: 1px solid #4a90e2;
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 9999;
}

.traitTooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

.bannerButtons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.supportButton,
.feedbackButton {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;
    height: 52px;

    border-radius: 999px;
    font-size: 16px;
    letter-spacing: 0.5px;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.supportButton {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 28px rgba(249, 191, 59, 0.18);
}

.feedbackButton {
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}

.supportButton:hover,
.feedbackButton:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.feedbackButton:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
}

.feedbackModal.hidden {
    display: none;
}

.feedbackModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.feedbackModalContent {
    width: 420px;
    max-width: 90vw;
    background: #151515;
    border: 1px solid #4a90e2;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.6);
    position: relative;
    text-align: left;
}

.feedbackModalContent h2 {
    text-align: center;
    margin-top: 0;
}

.feedbackModalContent label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: bold;
}

.feedbackModalContent input,
.feedbackModalContent select,
.feedbackModalContent textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #222;
    color: white;
}

.submitFeedbackButton {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border-radius: 999px;
    border: none;
    background: #ffdd00;
    color: #111;
    font-weight: bold;
    cursor: pointer;
}

.closeFeedbackButton {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    color: white;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.homeScreen {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.homeLeftColumn {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.homeCard {
    background: linear-gradient(135deg, #202020 0%, #151515 100%);
    border: 1px solid #444;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.homeCard h2 {
    margin-top: 0;
}

.homeCard p {
    color: #ddd;
    line-height: 1.5;
}

.startGameButton {
    margin-top: 16px;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.startGameButton:hover {
    transform: translateY(-2px);
}

.changelogEntry {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    text-align: left;
}

.changelogEntry h3 {
    margin: 0 0 6px;
    color: #ffd700;
}

.changelogEntry p {
    margin: 0;
}

@media (max-width: 800px) {
    .homeScreen {
        grid-template-columns: 1fr;
    }
}

.seasonReview {
    margin-top: 24px;
}

.seasonReviewCard {
    background: linear-gradient(135deg, #1a2a3a 0%, #1f2f35 100%);
    border: 2px solid #ffd700;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.16);
}

.seasonReviewCard h2 {
    margin-top: 0;
    font-size: 30px;
}

.seasonFinish {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.seasonFinish h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.championFinish {
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.reviewGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.reviewBox {
    background: rgba(0,0,0,0.25);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 14px;
}

.reviewBox h4 {
    margin: 0 0 8px;
    color: #ffd700;
}

.reviewBox p {
    margin: 0;
    font-weight: bold;
}

@media (max-width: 700px) {
    .reviewGrid {
        grid-template-columns: 1fr;
    }
}

.identitySection {
    margin: 20px 0;
}

.identitySection h3 {
    margin-bottom: 12px;
    color: #ffd700;
}

.identityBadges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.identityBadge {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    text-align: left;
}

.identityBadge span {
    grid-row: 1 / 3;
    font-size: 28px;
    align-self: center;
}

.identityBadge strong {
    color: white;
    font-size: 15px;
}

.identityBadge small {
    color: #cfcfcf;
    font-size: 12px;
    margin-top: 3px;
}

@media (max-width: 700px) {
    .identityBadges {
        grid-template-columns: 1fr;
    }
}

.socialShareCard {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 900px;
    min-height: 1200px;
    background: linear-gradient(135deg, #111827 0%, #1e3c72 50%, #7e22ce 100%);
    color: white;
    padding: 48px;
    font-family: Arial, sans-serif;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.shareHeader {
    text-align: center;
    margin-bottom: 28px;
}

.shareHeader h1 {
    font-size: 48px;
    margin: 0;
}

.shareHeader p {
    font-size: 22px;
    color: #ddd;
    margin: 8px 0 0;
}

.shareFinish {
    background: rgba(0,0,0,0.35);
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 26px;
    padding: 30px;
    text-align: center;
    margin-bottom: 28px;
}

.shareFinish h2 {
    font-size: 42px;
    margin: 0 0 8px;
}

.shareFinish h3 {
    font-size: 34px;
    color: #ffd700;
    margin: 0 0 10px;
}

.shareFinish p {
    font-size: 22px;
    margin: 0;
}

.shareStatsGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 26px;
}

.shareStatsGrid div {
    background: rgba(0,0,0,0.32);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.shareStatsGrid small {
    display: block;
    color: #ddd;
    font-size: 15px;
    margin-bottom: 8px;
}

.shareStatsGrid strong {
    font-size: 20px;
}

.shareBadgeSection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.shareBadge {
    background: rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shareBadge span {
    font-size: 30px;
}

.shareBadge strong {
    font-size: 20px;
}

.shareSquad {
    background: rgba(0,0,0,0.3);
    border-radius: 24px;
    padding: 24px;
}

.shareSquad h3 {
    margin: 0 0 18px;
    text-align: center;
    font-size: 28px;
    color: #ffd700;
}

.shareSquadGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
}

.sharePlayer {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
}

.sharePlayer span {
    color: #7ed67e;
    font-weight: bold;
}

.sharePlayer strong {
    font-size: 18px;
}

.shareFooter {
    margin-top: 26px;
    text-align: center;
    font-size: 20px;
    color: #f0f0f0;
}

#teamStrengthPanel {
    background: linear-gradient(180deg, #16171b 0%, #11131a 100%);
    border: 1px solid #444;
    border-radius: 20px;
    padding: 20px;
    width: 240px;
    min-height: 220px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

#teamStrengthPanel h3 {
    margin-top: 0;
    text-align: center;
    color: #7ed67e;
}

.strengthRow {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-weight: bold;
    color: #ddd;
}

.matchButtonRow {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.simSeasonButton {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.simSeasonButton:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.strengthValue {
    display: flex;
    gap: 6px;
    align-items: center;
}

.profileGain {
    color: #4ade80;
    font-size: 12px;
    font-weight: bold;
}

.profileLoss {
    color: #ef4444;
    font-size: 12px;
    font-weight: bold;
}

.devButton {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* ===== FORMATION CARDS ===== */

.formationCard {
    background:
        radial-gradient(circle at 80% 15%, rgba(74,144,226,0.18), transparent 32%),
        linear-gradient(160deg, #24344f 0%, #121827 58%, #080c16 100%);
    border: 2px solid rgba(74,144,226,0.75);
    border-radius: 20px;
    width: 260px;
    min-height: 360px;
    padding: 16px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.10) inset,
        0 16px 36px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.formationCard .cardHeader {
    text-align: center;
}

.formationCard .cardHeader h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.formationCard .cardBody {
    margin-top: 10px;
}

.formationCard .formationPitch {
    margin: 8px 0 10px;
}

.formationCard:hover {
    transform: translateY(-4px);
    border-color: rgba(126,214,126,0.75);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.14) inset,
        0 20px 44px rgba(0,0,0,0.55),
        0 0 20px rgba(74,144,226,0.22);
}

.formationPitch {
    width: 100%;
    height: 190px;
    margin: 14px 0 18px;
    padding: 12px 10px;
    border-radius: 14px;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 18px,
            rgba(0,0,0,0.06) 18px,
            rgba(0,0,0,0.06) 36px
        ),
        linear-gradient(180deg, #166534 0%, #14532d 100%);
    border: 2px solid rgba(160, 255, 160, 0.45);
    box-shadow: inset 0 0 25px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.formationPitch::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.formationPitch::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 8px;
    height: 34px;
    border: 2px solid rgba(255,255,255,0.22);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.formationRow {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 28px;
}

.formationRow-narrow {
    justify-content: center;
}

.formationRow-medium {
    justify-content: space-around;
    padding: 0 22px;
}

.formationRow-wide {
    justify-content: space-between;
    padding: 0 6px;
}

.formationDot {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.75);
    flex-shrink: 0;
}

.teamNameFinalCard {
    max-width: 720px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 22px;
    background: linear-gradient(180deg, #242424 0%, #171717 100%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
    text-align: center;
}

.teamNameFinalCard h2 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 30px;
}

.teamNameFinalCard p {
    color: #d1d5db;
    margin-bottom: 26px;
    line-height: 1.5;
}

.finalNameRow {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.finalTeamNameInput {
    min-width: 320px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: #101010;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.finalTeamNameInput:focus {
    border-color: #60a5fa;
    box-shadow:
        0 0 0 3px rgba(96,165,250,0.22),
        inset 0 0 0 1px rgba(255,255,255,0.04);
}

#randomTeamNameButton {
    height: 48px;
    padding: 0 20px;
    border-radius: 14px;
}

#startSeasonButton {
    min-width: 220px;
}

.rerollInfo {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.12);
}

.rerollButton {
    min-width: 190px;
}

.draftCardsRow {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.rerollRow {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

@keyframes draftCardEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.draftCardsRow .playerCard {
    opacity: 0;
    animation: draftCardEnter 0.42s ease forwards;
}

.draftCardsRow .playerCard:nth-child(1) {
    animation-delay: 0.02s;
}

.draftCardsRow .playerCard:nth-child(2) {
    animation-delay: 0.10s;
}

.draftCardsRow .playerCard:nth-child(3) {
    animation-delay: 0.18s;
}

.tooltipCard.position-GK {
    --positionAccent: #4ade80;
    --positionBorder: rgba(74,222,128,0.65);
    --positionGlow: rgba(74,222,128,0.24);
    --positionWash: rgba(74,222,128,0.16);
}

.tooltipCard.position-LB,
.tooltipCard.position-CB,
.tooltipCard.position-RB {
    --positionAccent: #38bdf8;
    --positionBorder: rgba(56,189,248,0.65);
    --positionGlow: rgba(56,189,248,0.24);
    --positionWash: rgba(56,189,248,0.16);
}

.tooltipCard.position-CM {
    --positionAccent: #facc15;
    --positionBorder: rgba(250,204,21,0.65);
    --positionGlow: rgba(250,204,21,0.24);
    --positionWash: rgba(250,204,21,0.16);
}

.tooltipCard.position-LW,
.tooltipCard.position-RW,
.tooltipCard.position-ST {
    --positionAccent: #ef4444;
    --positionBorder: rgba(239,68,68,0.65);
    --positionGlow: rgba(239,68,68,0.24);
    --positionWash: rgba(239,68,68,0.16);
}

/* ===== MODERN MATCH CENTRE ===== */

.matchCard {
    background:
        radial-gradient(circle at 50% 0%, rgba(74,144,226,0.16), transparent 38%),
        linear-gradient(180deg, #141c29 0%, #0b111a 100%);
    border: 1px solid rgba(74,144,226,0.45);
    border-radius: 20px;
    padding: 22px;
    box-shadow:
        0 18px 42px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.matchCard h2,
.matchCard h3 {
    color: #e5f0ff;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.scoreLine {
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 18px 14px;
    font-size: 46px;
    line-height: 1.1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.scorersGrid div,
.cardsGrid div {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 12px;
}

.scorersGrid h4,
.cardsGrid h4 {
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-size: 11px;
}

.scorersGrid li::marker {
    content: "⚽ ";
}

.cardsGrid li {
    line-height: 1.45;
}

.chanceLog {
    background: rgba(0,0,0,0.26);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 14px;
    max-height: 210px;
}

.chanceLog::before {
    content: "📋 Match Events";
    display: block;
    color: #dbeafe;
    font-weight: 900;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.chanceLog p {
    padding: 6px 8px;
    margin: 4px 0;
    border-radius: 8px;
}

.goalChance {
    background: rgba(74,222,128,0.10);
    color: #7ed67e;
}

.oppositionGoalChance {
    background: rgba(239,68,68,0.10);
    color: #ff7a7a;
}

.missedChance {
    background: rgba(255,255,255,0.04);
    color: #d1d5db;
}

.cardEvent {
    background: rgba(250,204,21,0.10);
    color: #facc15;
}

/* ===== MATCH CENTRE LAYOUT TWEAKS ===== */

/* Put buttons underneath the match card so all three panels align at the top */
#matchCentreSection {
    display: flex;
    flex-direction: column;
}

#matchCentreSection .matchCard {
    order: 1;
}

#matchCentreSection .matchButtonRow {
    order: 2;
    margin-top: 14px;
}

/* Make match centre header match the other panels */
.matchCard h2 {
    margin: 0 0 14px 0;
    padding: 0 2px 10px;
    font-size: 18px;
    color: #e5f0ff;
    font-weight: 900;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* Stop long team names dropping onto two lines */
.scoreLine {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(30px, 2.7vw, 44px);
    margin: 8px 0;
    padding: 14px 12px;
}

/* Tighten the spacing inside the match centre */
.matchCard {
    gap: 10px;
    padding: 18px;
}

.scorersGrid {
    gap: 8px;
    margin: 6px 0;
}

.cardsBox {
    margin: 4px 0;
}

.cardsGrid {
    gap: 8px;
}

.scorersGrid div,
.cardsGrid div {
    padding: 10px;
    min-height: 44px;
}

.chanceLog {
    margin-top: 4px;
    max-height: 190px;
}

/* Keep Match Centre height consistent so buttons stay aligned */
#matchCentreSection {
    height: 100%;
}

.matchCard {
    height: 560px;
    display: flex;
    flex-direction: column;
}

.chanceLog {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

#matchCentreSection .matchButtonRow {
    flex-shrink: 0;
}