/* Background utility */
.bg-custom-theme2 {
  background-color: #f9f9f9 !important;
}

.bg-custom-theme-blue {
  background-color: #200080 !important;
}

.start-30{left:30%!important}
.top-25{top:25%!important}


.bg-custom-theme {
    background-color: #151c2c;
}

.bg-custom-theme-dash {
    background-color: #070f21;
}

.text-secondary-light {
    color: #b3b3b3; /* Makes the paragraph text a clean, readable grey so headings pop in bright white */
}

.text-secondary-dark {
    color: #3c3c3c; /* Makes the paragraph text a clean, readable grey so headings pop in bright white */
}

.tracking-wide {
    letter-spacing: 0.15em;
}

:root {
    /* Your default signature fluo green color */
    --team-accent-color: #2F80ED;
    --bs-lightgrey-rgb:234, 234, 234;
}

.button-login{
    --bs-btn-color:#fff;--bs-btn-bg:#2aba11;--bs-btn-border-color:#2aba11;--bs-btn-hover-color:#505050;--bs-btn-hover-bg:#fff;--bs-btn-hover-border-color:#2aba11;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#2aba11;--bs-btn-active-border-color:#fff;--bs-btn-border-width: 2.25px;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.button-create-account{
    --bs-btn-color:#505050;--bs-btn-bg:#fff;--bs-btn-border-color:#2aba11;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#2aba11;--bs-btn-hover-border-color:#fff;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#fff;--bs-btn-active-border-color:#2aba11;--bs-btn-border-width: 2.25px;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);
}



.link-white{color:RGBA(var(--bs-lightgrey-rgb),var(--bs-link-opacity,1))!important}

.button-logout{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-border-width: 2.25px;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);}

/* Style for the accent line: the game's blue, or the colour of the club whose page you're on
   (--navbar-accent-color, set by setNavbarAccent() in navbar.js) — it fades over. */
.navbar-accent-line {
    height: 3px; /* Thin, clean profile line */
    background-color: var(--navbar-accent-color, var(--team-accent-color));
    box-shadow: 0 0 10px var(--navbar-accent-color, var(--team-accent-color)); /* Subtle neon glow effect */
    transition: background-color 1.2s ease, box-shadow 1.2s ease; /* Smooth color-fading transition */
}
/* Text utility 
.text-gold {
  color: #ffd700 !important;
}

/* Custom Button using your color 
.btn-gold {
  background-color: #ffd700;
  color: #000;
  border: 1px solid #ffd700;
}

.btn-gold:hover {
  background-color: #e6c200; /* Slightly darker shade for hover effect 
  border-color: #e6c200;
  color: #000;
}*/

.ts-wrapper {
    font-size: 0.95rem;
}

.ts-control {
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
}

.input-error {
    border: 1px solid #dc3545 !important;
}

.input-success {
    border: 1px solid #28a745 !important;
}

/* Dropdown hover */
.dropdown-item:hover {
    background-color: #343a40; /* Pick a color matching your theme */
    color: #fff;
}

/* While clicking */
.dropdown-item:active {
    background-color: #495057;
    color: #fff;
}

/* Active item (Bootstrap's .active class) */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #495057;
    color: #fff;
}
.dashboard-wrapper{

    min-height:calc(100vh - 80px);

    display:flex;

    /* ("safe": when the page is taller than the screen it starts at the top instead of being pushed up under the
       navbar — bug 2026-11-12, the home page's name hidden behind it.) */
    align-items:safe center;
}


.dashboard-info-box{

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.2);

    border-radius:15px;

    padding:10px 14px;

    backdrop-filter:blur(12px);

}

.dashboard-globe-icon{

    width:45px;
    height:40px;
    min-width:25px;

    border-radius:8px;

    object-fit:cover;

    font-size:1.6rem;
    line-height:42px;

    text-align:center;

    flex-shrink:0;

}

.dashboard-flag-icon{

    width:35px;
    height:30px;
    min-width:25px;

    border-radius:8px;

    object-fit:cover;

    font-size:1.6rem;
    line-height:42px;

    text-align:center;

    flex-shrink:0;

}


.career-card{

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.20);

    border-radius:16px;

    padding:16px;

    height:100%;

    cursor:pointer;

    transition:.25s ease;

    display:flex;

    align-items:center;

    gap:14px;

}


.career-card:hover{

    transform:translateY(-4px);

    border-color:rgba(255,255,255,.65);

    background:rgba(255,255,255,.12);

    box-shadow:
        0 12px 24px rgba(0,0,0,.35),
        0 0 20px #0e3c06;

}


.career-avatar{

    width:64px;
    height:64px;

    border-radius:50%;

    object-fit:cover;

    flex-shrink:0;

    border:2px solid rgba(255,255,255,.18);

    transition:.25s ease;

}

.career-avatar-empty{

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:1.5rem;

    color:rgba(255,255,255,.5);

    background:rgba(255,255,255,.05);

}

.career-card:hover .career-avatar{

    border-color:rgba(255,255,255,.45);

}

.career-avatar-composite{

    position:relative;

    overflow:hidden;

}

.career-avatar-layer{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    object-fit:cover;

}

.career-body{

    min-width:0;

    flex:1 1 auto;

}

.career-body h5{

    font-size:1rem;

    margin-bottom:2px;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.career-stats-inline{

    display:flex;

    flex-wrap:wrap;

    gap:4px 12px;

    font-size:.8rem;

    color:rgba(255,255,255,.75);

}


/* Personal career dashboard (public/dashboard.html) */

.countdown-strip{

    font-size:2rem;

    font-weight:700;

    letter-spacing:.05em;

    font-variant-numeric:tabular-nums;

}

.career-navbar{

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.15);

    border-radius:12px;

    padding:10px 16px;

}

.career-nav-items{

    list-style:none;

    display:flex;

    gap:6px;

    margin:0;

    padding:0;

    flex-wrap:wrap;

}

.career-nav-items li a{

    color:rgba(255,255,255,.75);

    text-decoration:none;

    padding:6px 12px;

    border-radius:8px;

    display:inline-block;

    transition:.2s;

}

/* (2026-11-11) Dropdowns in the navbar (the club page: News, Club, Venue). */
.career-nav-dropdown .dropdown-menu{ background: #1b2130; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: .35rem; min-width: 11rem; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.career-nav-items .career-nav-dropdown .dropdown-menu li a{ display: block; width: 100%; padding: 6px 12px; color: rgba(255,255,255,.8); }
.career-nav-items .career-nav-dropdown .dropdown-menu li a.active{ background: var(--team-accent-color); color: #000; }
.career-nav-dropdown .dropdown-toggle::after{ vertical-align: .15em; margin-left: .35em; }

.career-nav-items li a:hover{

    background:rgba(255,255,255,.1);

    color:#fff;

}

.career-nav-items li a.active{

    background:var(--team-accent-color);

    color:#000;

    font-weight:600;

}

.career-stat-strip{

    font-size:.9rem;

    color:rgba(255,255,255,.8);

}

/* The manager's Training tab (career/footballtraining.js): the week, the drill panel, fitness. */
.tr-week{ table-layout: fixed; min-width: 760px; }
.tr-week th, .tr-week td{ vertical-align: middle; }
.tr-week th:first-child{ width: 7rem; }
.tr-day{ font-weight: 600; }
.tr-block{ color: rgba(255,255,255,.6); font-weight: 600; white-space: nowrap; }
.tr-match{ color: #f4c20d; }
.tr-cell{ cursor: pointer; text-align: center; font-size: .82rem; border: 2px solid transparent !important; border-radius: 8px; background: rgba(255,255,255,.04) !important; }
.tr-cell:hover{ background: rgba(255,255,255,.09) !important; }
.tr-cell.is-empty{ color: rgba(255,255,255,.4); }
.tr-cell.is-match{ color: #f4c20d; background: rgba(244,194,13,.08) !important; }
.tr-cell.is-picked{ border-color: #2fbf2f !important; }
.tr-cell.cat-technical{ background: rgba(13,110,253,.18) !important; }
.tr-cell.cat-physical{ background: rgba(220,53,69,.18) !important; }
.tr-cell.cat-tactical{ background: rgba(111,66,193,.22) !important; }
.tr-cell.cat-mental{ background: rgba(32,201,151,.18) !important; }
.tr-cell.cat-setPieces{ background: rgba(253,126,20,.2) !important; }
.tr-cell.cat-match{ background: rgba(255,193,7,.16) !important; }
.tr-cell.cat-recovery{ background: rgba(13,202,240,.14) !important; }
.tr-half{ font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.12) !important; }
.tr-half.is-played, .tr-day.is-played{ opacity: .5; }
.tr-cell.is-played{ opacity: .45; }
.tr-cell.is-match{ cursor: default; padding: .3rem .35rem; }
.tr-opponent{ display: flex; align-items: center; justify-content: center; gap: .35rem; min-width: 0; }
.tr-crest{ flex: none; width: 1.4rem; height: 1.4rem; }
.tr-crest svg{ width: 100%; height: 100%; display: block; }
.tr-opponent-name{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; }
.tr-match-meta{ color: #f4c20d; font-size: .7rem; }
.tr-int{ font-size: .7rem; opacity: .8; }
.tr-int.int-hard{ color: #ff6b6b; opacity: 1; }
.tr-int.int-light{ color: #8fd3ff; }
.tr-drill{ background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: .6rem .75rem; color: #e9ecef; height: 100%; }
.tr-drill:hover:not(:disabled){ border-color: rgba(47,191,47,.7); background: rgba(47,191,47,.08); }
.tr-drill.is-current{ border-color: #2fbf2f; background: rgba(47,191,47,.12); }
.tr-drill.is-locked{ opacity: .45; cursor: not-allowed; }
.tr-fatigue{ width: 5rem; height: .45rem; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.tr-fatigue span{ display: block; height: 100%; }
.tr-fatigue-n{ width: 1.8rem; text-align: right; }
/* The entrepreneur's week (ownerweek.js, §21 12B). */
.tr-cell.ow-cat-courses{ background: rgba(13,110,253,.18) !important; }
.tr-cell.ow-cat-work{ background: rgba(111,66,193,.22) !important; }
.tr-cell.ow-cat-business{ background: rgba(253,126,20,.2) !important; }
.tr-cell.ow-cat-rest{ background: rgba(13,202,240,.14) !important; }
.ow-fatigue{ flex: 1; width: auto; height: .6rem; }
.ow-dim{ opacity: .4; }
.ow-trace{ font-size: .7rem; }
.ow-skill-n{ width: 2.2rem; text-align: right; }
.ow-skill-gain{ width: 2.6rem; }
.ow-match .tr-crest{ width: 1.6rem; height: 1.6rem; }
/* Customisable pages (cardgrid.js, §21 12H): 12 columns × 12 rows that fill the window's height (the row
   height comes from cardgrid.js: --cg-row). A stretched card gets room, its content stays the same size (no
   scaling) and never scrolls. Edit: the grid's lines, resize edges. On a phone: one column, in their order. */
.cg-grid{ --cg-row: 3.5rem; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: var(--cg-row); gap: .6rem; }
body.has-cardgrid .container.pb-5{ padding-bottom: .75rem !important; }
/* (A card whose content needs more room than this screen gives it: it scrolls rather than hiding things —
   Edit shows it in red. With the minimum sizes that only happens on a short window.) */
.cg-card.is-clipped .cg-body, .cg-card.is-clipped .cg-body .creation-card{ overflow: auto; scrollbar-width: thin; }
.cg-body{ container-type: inline-size; }
/* (A table on a card shows its columns by the card's width, not the screen's.) */
.cg-body .hub-col-wdl, .cg-body .hub-col-form{ display: none !important; }
@container (min-width: 26rem){ .cg-body .hub-col-wdl{ display: table-cell !important; } }
@container (min-width: 36rem){ .cg-body .hub-col-form{ display: table-cell !important; } }
.cg-body .followers-from{ display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .875em; color: rgba(255,255,255,.5); }
/* The followers card: the countries under the total — or, on a wide card, to its right. */
.followers-tile{ display: flex; flex-direction: column; }
@container (min-width: 22rem){
    .followers-tile{ flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
    .cg-body .followers-tile .followers-from{ white-space: normal; text-align: right; display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: .6rem; }
}
/* The standings on a card: fixed columns (the club's name takes what's left, cut off with "…") — never wider
   than the card; the full table a size smaller so a whole league fits in fewer rows. */
.hub-table.is-card{ table-layout: fixed; width: 100%; }
.hub-table.is-card .hub-c-pos{ width: 1.7rem; }
.hub-table.is-card .hub-c-num{ width: 1.9rem; }
.hub-table.is-card .hub-c-goals{ width: 3.2rem; }
.hub-table.is-card .hub-c-pts{ width: 2.3rem; }
.hub-table.is-card .hub-c-form{ width: 6.6rem; }
.hub-table.is-card td:nth-child(2){ max-width: none; }
.hub-table.is-card .club-link-name{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-table.is-dense{ font-size: .74rem; }
.hub-table.is-dense td, .hub-table.is-dense th{ padding-top: .03rem !important; padding-bottom: .03rem !important; }
.hub-table.is-dense .hub-crest{ width: 1rem; height: 1rem; }
.hub-table.is-dense .form-badge{ transform: scale(.85); }
.hub-table.is-dense .hub-c-form{ width: 5.8rem; }
/* Home cards: the newspaper's headlines with a line between them; the crest on its own; the hosting block. */
.home-headline{ padding: .25rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.home-headline:last-of-type{ margin-bottom: .4rem; }
.home-logo-card{ display: flex; align-items: center; justify-content: center; padding: .5rem !important; }
.home-logo-card svg{ width: auto; height: 100%; max-width: 100%; max-height: 100%; }
.venue-hosting-card h5{ font-size: 1rem; }
.venue-hosting-card .creation-card{ background: rgba(255,255,255,.04); }
/* The energy in the career navbar (100 − the agenda's fatigue). */
.nav-energy{ color: inherit; text-decoration: none; }
.nav-energy:hover{ color: #fff; }
.nav-energy.is-low i{ color: #ffc107; }
.nav-energy.is-empty i, .nav-energy.is-empty span{ color: #dc3545; }
.cg-bar{ display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; height: 2rem; margin-bottom: .5rem; min-width: 0; }
.cg-hint{ min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-cell{ border: 1px solid rgba(255,255,255,.08); border-radius: 6px; pointer-events: none; }
.cg-card{ position: relative; z-index: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.cg-body{ flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.cg-scrolls .cg-body{ overflow: auto; }
.cg-body > .creation-card, .cg-body > div:only-child{ flex: 1; min-height: 0; }
.cg-body > div:only-child > .creation-card:only-child{ height: 100%; }
/* (Cards on the grid: a little tighter than the full pages, so more fits.) */
.cg-body .creation-card{ padding: .6rem .8rem; overflow: hidden; }
.cg-body .hub-table td, .cg-body .hub-table th{ padding: .12rem .4rem; height: auto; }
.cg-grid.is-editing .cg-card{ outline: 2px dashed rgba(212,180,106,.6); outline-offset: 1px; border-radius: 12px; }
.cg-grid.is-editing .cg-card.is-too-small{ outline-color: rgba(220,53,69,.9); }
.cg-grid.is-editing .cg-body{ pointer-events: none; opacity: .75; }
/* (The edit strip lies over the card's top — the card keeps the room it has when not editing.) */
.cg-edit{ position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: .3rem; font-size: .75rem; background: rgba(48,40,22,.92); border-radius: 12px 12px 0 0; padding: .15rem .35rem; }
.cg-handle{ cursor: grab; user-select: none; touch-action: none; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-btn{ padding: 0 .35rem; font-size: .75rem; color: #fff; border: 1px solid rgba(255,255,255,.3); }
/* (The view list: the card's dark colours, not a white box.) */
.cg-view{ width: auto; max-width: 11rem; padding: 0 1.6rem 0 .4rem; font-size: .75rem; height: 1.5rem; color: #fff; background-color: #2a2f3a;
    border-color: rgba(255,255,255,.3); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.cg-view:focus{ background-color: #2a2f3a; color: #fff; border-color: rgba(212,180,106,.8); box-shadow: none; }
.cg-view option{ background: #2a2f3a; color: #fff; }
.cg-palette{ max-height: 60vh; overflow: auto; }
.cg-palette .dropdown-item:disabled{ opacity: .45; }
/* Resize edges: right (↔), bottom (↕), the corner. */
.cg-rs{ position: absolute; z-index: 4; touch-action: none; }
.cg-rs-e{ top: 1.6rem; bottom: .6rem; right: -6px; width: 12px; cursor: ew-resize; }
.cg-rs-s{ left: .6rem; right: .6rem; bottom: -6px; height: 12px; cursor: ns-resize; }
.cg-rs-se{ right: -6px; bottom: -6px; width: 16px; height: 16px; cursor: nwse-resize; }
.cg-rs-e:hover, .cg-rs-s:hover, .cg-rs-se:hover{ background: rgba(212,180,106,.45); border-radius: 6px; }
.cg-too-small-note{ display: none; position: absolute; z-index: 3; left: .5rem; bottom: .4rem; font-size: .7rem; color: #fff; background: rgba(220,53,69,.9); border-radius: 6px; padding: 0 .35rem; }
.cg-card.is-too-small .cg-too-small-note{ display: block; }
body.cg-dragging, body.cg-dragging *{ user-select: none; }
@media (max-width: 767.98px){
    .cg-grid{ grid-template-columns: 1fr; grid-template-rows: none !important; grid-auto-rows: auto; }
    .cg-card{ grid-column: auto !important; grid-row: auto !important; }
    .cg-body{ overflow: visible; }
    .cg-edit-button{ display: none; }
}
/* The match page as cards (match.js, §21 12H): the pitch fits its card (--cg-px: the card's height). */
.live-grid .live-pitch-wrap{ padding: .35rem; height: 100%; }
.live-grid .live-board .live-pitch, .live-grid .live-pitch{ height: calc(var(--cg-px, 600px) - 5.5rem); max-height: none; width: auto; max-width: 100%; margin: 0 auto; }
.live-grid .live-squad{ max-height: calc(var(--cg-px, 600px) - 4rem); }
.live-grid .live-board.is-pitch-only{ justify-content: center; }
.live-grid .live-board.is-pitch-only .live-center{ flex: 1 1 auto; }
.live-grid .live-commentary{ margin: 0; height: 100%; }
.live-grid .live-commentary.is-text .live-balloon::before{ display: none; }
.live-card{ overflow: hidden; }
.cg-scrolls .live-card{ overflow: auto; }
.live-card .live-crest{ width: 1.2rem; height: 1.2rem; }
.live-notes{ height: calc(100% - 3rem); min-height: 4rem; resize: none; background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
.live-squad-card{ font-size: .78rem; }
.live-table td{ padding: .1rem .25rem; }
@media (max-width: 1100px){ .live-grid .live-squad{ display: none; } .live-grid .live-board .live-pitch{ height: auto; width: 100%; } }
/* The newspaper (newspaper.js, §21 12G): paper on the dark page. */
.nw-paper{ background: #f3eee2; color: #1d1b16; border-radius: 6px; padding: 1.25rem 1.5rem; font-family: Georgia, "Times New Roman", serif; }
.nw-paper .club-link, .nw-paper a{ color: #1d1b16; }
.nw-masthead{ text-align: center; border-bottom: 3px double #1d1b16; margin-bottom: 1rem; padding-bottom: .5rem; }
.nw-name{ font-family: "Playfair Display", Georgia, serif; font-size: 2.2rem; font-weight: 700; letter-spacing: .02em; }
.nw-dateline{ font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.nw-lead .nw-headline{ font-size: 1.7rem; font-weight: 700; }
.nw-headline{ font-weight: 700; margin-bottom: .3rem; }
.nw-body{ font-size: .95rem; line-height: 1.45; }
.nw-columns{ column-count: 2; column-gap: 1.5rem; column-rule: 1px solid rgba(0,0,0,.2); margin-top: 1rem; }
.nw-article{ break-inside: avoid; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(0,0,0,.15); }
.nw-article.is-mine, .nw-lead.is-mine{ background: rgba(212,180,106,.25); padding: .4rem .5rem; border-radius: 4px; }
.nw-totw{ border: 2px solid #1d1b16; padding: .75rem; }
.nw-totw-title{ font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; font-weight: 700; text-transform: uppercase; }
.nw-totw-line{ border-top: 1px dashed rgba(0,0,0,.3); padding: .3rem 0; }
.nw-totw-player{ display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .85rem; }
.nw-totw-player.is-mine{ background: rgba(212,180,106,.3); }
.nw-rating{ display: inline-block; min-width: 2rem; text-align: center; background: #1d1b16; color: #f3eee2; border-radius: 3px; font-size: .75rem; }
.nw-crest{ display: inline-block; width: 1rem; height: 1rem; vertical-align: -2px; }
.nw-crest svg{ width: 100%; height: 100%; }
@media (max-width: 768px){ .nw-columns{ column-count: 1; } .nw-name{ font-size: 1.6rem; } }
/* The social feed (socials.js, §21 12G). */
.so-post.is-mention{ border-color: rgba(255,193,7,.7) !important; }
.so-avatar{ display: inline-flex; width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; }
.so-avatar svg{ width: 100%; height: 100%; }
.so-icon{ border-radius: 50%; background: rgba(255,255,255,.12); }
.so-gossip{ background: rgba(232,62,140,.35); }
.so-like{ color: #fff; border: 1px solid rgba(255,255,255,.25); }
.so-like.is-liked{ color: #ff6b8b; border-color: #ff6b8b; }
.so-comment{ color: rgba(255,255,255,.7); }
.so-totw{ display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .85rem; margin-top: .25rem; }
.so-news{ border-left: 3px solid #d4b46a; padding-left: .6rem; }
.so-preview{ background: rgba(255,255,255,.06); border-radius: 6px; padding: .5rem .6rem; }
/* Stadium events (venueevents.js, §21 12F). */
.ve-kind{ display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 1rem; background: rgba(255,255,255,.07); }
/* The lifestyle shop (shop.js, §21 12C). */
.sh-item{ display: flex; flex-direction: column; }
.sh-item.is-owned{ border-color: rgba(25,135,84,.6) !important; }
.sh-brand{ font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #d4b46a; font-weight: 600; }
.live-switch{ display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .3rem; }
.live-switch-item{ display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 1rem; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.live-switch-item:hover{ background: rgba(255,255,255,.2); color: #fff; }
.live-switch-item.is-off{ opacity: .45; }
.live-switch-item .live-crest{ width: 1.1rem; height: 1.1rem; }
.tr-player{ padding: .2rem .4rem; border-radius: 6px; background: rgba(255,255,255,.03); }

/* Squad page: the owner's "try to sell" request on the bell. */
.sq-bell.is-sell{ color: #ff9f43; }

/* The competition builder (entrepreneur/shared/ownbuilder.js): the logo preview. */
.ob-logo{ width: 5.5rem; height: 5.5rem; flex: none; }
.ob-logo svg{ width: 100%; height: 100%; display: block; }
.comp-round + .comp-round{ margin-top: .9rem; }
.own-rank{ flex: none; font-size: .7rem; }
.wallet-ledger{ max-height: 16rem; overflow-y: auto; }
.comp-audience{ font-size: .75rem; }
.ob-hype-box{ background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: .5rem; padding: .6rem .7rem; margin: .4rem 0; }
.ob-hype-box .flag-img, .ob-hype-box img{ height: .8rem; }

/* Club tab: why a player is a legend. */
.legend-reasons{ color: rgba(255,255,255,.65); padding-left: 1.6rem; margin-top: -.15rem; }

/* Trophies (trophy.js): a few sizes; the trophy cabinet's shelves (records.js). */
.trophy-svg{ width: 100%; height: 100%; display: block; }
.trophy-xs{ display: inline-block; width: 1.4rem; height: 1.9rem; }
.trophy-sm{ display: inline-block; width: 2.2rem; height: 3rem; }
.trophy-md{ display: inline-block; width: 4rem; height: 5.3rem; }
.ob-trophy{ width: 9rem; height: 12rem; }
.rc-shelf{ width: 8rem; padding: .5rem; border-radius: .5rem; background: rgba(255,255,255,.04); }

/* Board tab (board.js): the confidence through the season. */
.bd-spark{ width: 100%; height: 46px; display: block; }

/* Transfers tab "Ongoing" (transfers.js): a scrolling list with IN / OUT tags. */
.tf-ongoing{ max-height: 22rem; overflow-y: auto; }
.tf-tag{ min-width: 2.6rem; font-size: .7rem; }

/* Navbar money (empire-common.js renderNavMoney): whose money it is — a crest/logo or an icon. */
.nav-money{ display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; cursor: default; }
.nav-money-crest{ display: inline-block; width: 1.25rem; height: 1.25rem; line-height: 1.25rem; text-align: center; }
.nav-money-crest svg{ width: 100%; height: 100%; display: block; }

/* ── In-game layout: top navbar (next event) → ad space → career navbar → content ────────── */

/* Next event + countdown, centred in the top navbar on every page. */
.navbar-next-event{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.15;
    pointer-events: none;
}

.navbar-next-event-label{
    font-size: .75rem;
    color: rgba(255,255,255,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    white-space: nowrap;
}

.navbar-next-event-timer{
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}

/* A club's next match: home name, home logo, the countdown over a dash, away logo, away name (the
   competition on hover). The names keep equal room, so the countdown stays in the middle. */
.navbar-fixture{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    pointer-events: auto;
    cursor: default;
}
.navbar-fixture-crest{ display: inline-block; width: 2.6rem; height: 2.6rem; flex: none; }
.navbar-fixture-crest svg{ width: 100%; height: 100%; display: block; }
/* The dash sits on the names' line; the countdown (a bit smaller) floats just above it. */
.navbar-fixture-middle{ position: relative; display: flex; justify-content: center; min-width: 6.5rem; }
.navbar-fixture-middle .navbar-next-event-timer{ position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .98rem; line-height: 1; white-space: nowrap; }
.navbar-fixture-dash{ color: rgba(255,255,255,.55); font-weight: 700; font-size: .95rem; line-height: 1.2; }
.navbar-fixture-name{
    width: 13rem;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.navbar-fixture-name.is-home{ text-align: right; }
@media (max-width: 1299px){ .navbar-fixture-name{ width: 11rem; font-size: .9rem; } }
@media (max-width: 1150px){ .navbar-fixture-name{ width: 8rem; font-size: .85rem; } }

/* Hidden on small screens, where the navbar has no room for it in the middle. */
@media (max-width: 991px){
    .navbar-next-event{ display: none !important; }
}

/* Placeholder for an ad between the top navbar and the career navbar (leaderboard size). */
.ad-slot{
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto 1rem;
    border: 1px dashed rgba(255,255,255,.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.35);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Career navbar buttons that aren't available yet (e.g. before the investor meeting). */
.career-nav-items li a.locked{
    color: rgba(255,255,255,.3);
    cursor: not-allowed;
}

.career-nav-items li a.locked:hover{
    background: none;
    color: rgba(255,255,255,.3);
}

.career-nav-items li a .bi-lock-fill{
    font-size: .75rem;
    margin-left: .3rem;
}

/* ── Market: country picker, league pyramid, club list ─────────────────────────────────────── */

.market-flag{
    width: 18px;
    height: 13px;
    border-radius: 2px;
    vertical-align: -1px;
    object-fit: cover;
}

.market-tier{
    margin-top: 1.25rem;
}

.market-tier-label{
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--team-accent-color, #6ea8fe);
    margin-bottom: .5rem;
}

.market-league{
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 12px 14px;
    height: 100%;
}

.market-league-meta{
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    font-size: .8rem;
    color: rgba(255,255,255,.7);
    margin: .5rem 0 .6rem;
}

.market-crests{
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.market-crest{
    width: 26px;
    height: 26px;
    display: inline-block;
}

.market-crest .logo-svg,
.market-club-crest .logo-svg{
    width: 100%;
    height: 100%;
    display: block;
}

.market-club{
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 8px 10px;
}

.market-club-crest{
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.market-club-value{
    flex-shrink: 0;
    font-size: .8rem;
    font-weight: 600;
    color: #7ee08a;
}

.market-club-buyable{
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}

.market-club-buyable:hover,
.market-club-buyable:focus-visible{
    border-color: rgba(126,224,138,.6);
    background: rgba(126,224,138,.07);
    transform: translateY(-1px);
    outline: none;
}

.market-sold-out{ color: #ff9f43; }

/* Manage club page */
.facility-pips{ display: inline-flex; gap: 3px; font-size: .6rem; color: #7ee08a; }
.facility-pips .bi-circle{ color: rgba(255,255,255,.25); }
.facility-progress{ height: 6px; background: rgba(255,255,255,.1); }
.staff-row{ padding: .35rem .5rem; border-radius: 8px; background: rgba(255,255,255,.03); }
.staff-row .market-flag{ height: 11px; margin-left: 4px; vertical-align: baseline; }

/* Club grounds map (grounds.js): the map, clickable buildings, and the pop-up over it. */
/* The map fits the screen height (map is 3:2; 170px ≈ navbar + heading), centered. */
.grounds-map{
    max-width: min(100%, 1000px, calc((100vh - 170px) * 1.5)); margin: 0 auto;
    border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.35); line-height: 0;
}
.grounds-svg{ width: 100%; height: auto; display: block; }
.grounds-spot.is-interactive{ cursor: pointer; outline: none; }
.grounds-spot.is-interactive .grounds-hit{ transition: fill .15s, stroke .15s; }
.grounds-spot.is-interactive:hover .grounds-hit,
.grounds-spot.is-interactive:focus-visible .grounds-hit{ fill: rgba(255,255,255,.14); stroke: #fff; stroke-width: 2; }
.grounds-spot .grounds-label{ pointer-events: none; }
/* The pop-up: centered on the screen over a dark backdrop. */
.grounds-backdrop{
    position: fixed; inset: 0; z-index: 1050; background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
/* Only when it opens — redraws (hiring, switching roles) must not flash. */
.grounds-backdrop.is-opening{ animation: grounds-fade .15s ease-out; }
.budget-box{ padding: .75rem 1rem; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.grounds-popup{
    position: relative; width: min(600px, 100%); max-height: 88vh; overflow-y: auto;
    padding: 1.5rem; border-radius: 14px;
    background: #0e1422; border: 1px solid rgba(255,255,255,.15); color: #e9ecef;
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.grounds-popup.is-wide{ width: min(820px, 100%); }
@keyframes grounds-fade{ from{ opacity: 0; } to{ opacity: 1; } }
.grounds-popup .creation-card{ height: auto !important; background: transparent; border: 0; box-shadow: none; padding: 0; }
.grounds-popup [data-facility-box] > .d-flex:first-child,
.grounds-popup > .fw-semibold:first-of-type{ padding-right: 2.5rem; }
.grounds-popup .staff-row{ background: rgba(255,255,255,.05); }
.grounds-popup-close{ position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2; }   /* above a locked (faded = own layer) box */
/* Club / venue page (empire-dashboard.js, /club/<id>): history chart and league table. */
.hub-chart{ position: relative; }
.hub-chart-svg{ width: 100%; height: auto; display: block; }
.hub-chart .hub-grid{ stroke: rgba(255,255,255,.08); stroke-width: 1; }
.hub-chart .hub-axis{ fill: rgba(255,255,255,.5); font-size: 11px; }
.hub-chart .hub-line{ fill: none; stroke: #3987e5; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hub-chart .hub-cross{ stroke: rgba(255,255,255,.35); stroke-width: 1; }
.hub-chart .hub-dot{ fill: #3987e5; stroke: #141b2d; stroke-width: 2; }
.hub-chart .hub-hit{ cursor: crosshair; }
.hub-tooltip{ position: absolute; top: 0; transform: translateX(-50%); background: #0e1422; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: .15rem .5rem; font-size: .8rem; pointer-events: none; white-space: nowrap; }
.hub-table td, .hub-table th{ padding: .3rem .5rem; vertical-align: middle; background: transparent; }
.hub-table thead th{ color: rgba(255,255,255,.55); font-size: .75rem; font-weight: 600; }
.hub-table td:nth-child(2){ max-width: 14rem; }
.hub-table .hub-crest{ display: inline-block; width: 1.3rem; height: 1.3rem; vertical-align: middle; }
.hub-table .hub-crest svg{ width: 100%; height: 100%; }
.hub-table tr.hub-mine td{ background: rgba(244,194,13,.12); font-weight: 700; }
.hub-table tr.hub-promote td:first-child{ box-shadow: inset 3px 0 0 #3fb950; }
.hub-table tr.hub-relegate td:first-child{ box-shadow: inset 3px 0 0 #f85149; }
.hub-table tr.hub-maybe td:first-child{ box-shadow: inset 3px 0 0 #d29922; }
.hub-table tr.hub-gap td{ color: rgba(255,255,255,.35); padding: 0 .5rem; line-height: 1; }

/* Club page: title by the back button, to-do list, competition switcher, fixtures. */
.club-title{ font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.club-title .hub-crest{ display: inline-block; width: 1.5rem; height: 1.5rem; }
.club-title .hub-crest svg{ width: 100%; height: 100%; }
.todo-item{ display: flex; align-items: center; gap: .5rem; padding: .45rem .65rem; border-radius: 8px; background: rgba(255,255,255,.04); color: inherit; text-decoration: none; }
a.todo-item:hover{ background: rgba(255,255,255,.08); color: inherit; }
.todo-item .todo-check{ color: rgba(255,255,255,.35); }
.todo-item.is-done .todo-check{ color: #3fb950; }
.todo-item.is-soon{ opacity: .55; }
/* The Competitions tab (user 2026-11-09): the competitions across the top, the seasons at the far right. */
.comp-topbar{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.comp-switcher{ display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; flex: 1 1 auto; min-width: 0; }
.comp-season-nav{ display: flex; align-items: center; gap: .5rem; margin-left: auto; }
/* (The table a bit narrower here: no last-5 column.) */
.comp-main .hub-col-form{ display: none !important; }
.comp-page .col-md-7 > .creation-card, .comp-page .col-md-5 > .creation-card{ height: 100%; }
/* (The transfers fill what's left next to the table — club.js shows as many rows as fit.) */
.comp-main > .creation-card{ height: 100%; }
@media (min-width: 1200px){
    .comp-transfers{ flex: 1 1 0; min-height: 8rem; display: flex; flex-direction: column; }
    #compTransferRows{ flex: 1 1 0; min-height: 0; overflow: hidden; }
}
/* (2026-11-12) The short transfer list: fixed columns, one even line per deal; clubs as crest + 3-letter code. */
.tf-short{ table-layout: fixed; width: 100%; }
.tf-short td{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding-top: .3rem; padding-bottom: .3rem; }
.tf-short .tf-s-date{ width: 3.2rem; }
.tf-short .tf-s-from, .tf-short .tf-s-to{ width: 4.6rem; }
.tf-short .tf-s-arrow{ width: 1.3rem; padding-left: 0; padding-right: 0; text-align: center; }
.tf-short .tf-s-fee{ width: 5.6rem; text-align: right; }
.tf-short .club-link{ display: inline-flex; align-items: center; gap: .3rem; }
.club-code{ font-weight: 600; letter-spacing: .04em; cursor: help; }
/* (2026-11-12) The Youth page: the division table (your club highlighted) and the fixtures list. */
.yt-table{ table-layout: fixed; }
.yt-table th:first-child, .yt-table td:first-child{ width: 2rem; }
.yt-table th:nth-child(n+3), .yt-table td:nth-child(n+3){ width: 2.6rem; }
.yt-table tr.is-own td{ background: rgba(63,185,80,.14); }
.yt-fixtures{ max-height: 18rem; overflow-y: auto; padding-right: .25rem; }
.yt-fx{ display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3.6rem minmax(0, 1fr); align-items: center; gap: .4rem; padding: .25rem .3rem; border-radius: 6px; font-size: .85rem; }
.yt-fx.is-next{ background: rgba(255,255,255,.06); }
.yt-fx-home{ display: flex; justify-content: flex-end; min-width: 0; }
.yt-fx-away{ display: flex; min-width: 0; }
.yt-fx-home .club-link, .yt-fx-away .club-link{ display: inline-flex; align-items: center; gap: .3rem; min-width: 0; }
.yt-fx-score{ text-align: center; font-weight: 600; border-radius: 5px; padding: .05rem 0; background: rgba(255,255,255,.05); }
.yt-fx-score.is-won{ background: rgba(63,185,80,.3); }
.yt-fx-score.is-lost{ background: rgba(220,53,69,.3); }
.yt-fx-score.is-draw{ background: rgba(255,193,7,.22); }
.yt-toggle .is-blocked{ opacity: .45; cursor: help; }
/* (2026-11-12) More leagues: every country as a flag tile. */
.ml-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; }
.ml-country{ display: flex; flex-direction: column; align-items: center; gap: .25rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: .6rem .35rem; color: #fff; min-width: 0; }
.ml-country:hover{ border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.07); }
.ml-country.is-own{ border-color: rgba(63,185,80,.6); }
.ml-flag{ width: 3.2rem; height: 2.4rem; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.ml-name{ font-size: .85rem; font-weight: 600; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-podium{ display: flex; align-items: center; gap: .5rem; padding: .2rem .25rem; border-radius: 6px; font-size: .82rem; }
.comp-podium.is-on{ background: rgba(63,185,80,.14); }
.comp-podium-season{ flex: none; font-size: .72rem; }
.comp-switch{ display: flex; align-items: center; gap: .5rem; text-align: left; padding: .55rem .7rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: #fff; }
.comp-switch.active{ background: rgba(63,185,80,.18); border-color: #3fb950; }
.comp-switch.is-other{ border-style: dashed; }
/* Competitions tab: the right column (info, fixtures, top players) as tall as the table; the fixtures card takes the rest and scrolls. */
.comp-side{ display: flex; flex-direction: column; gap: 1rem; }
.comp-fixtures{ display: flex; flex-direction: column; }
.comp-fixtures .mv-row{ grid-template-columns: 1fr 3.2rem 1fr; gap: .3rem; padding: .3rem .4rem; font-size: .82rem; }
.comp-fixtures .mv-crest{ width: 1rem; height: 1rem; }
.cup-tab-mine{ color: #f4c20d; font-size: .7rem; }
.stadium-svg{ width: 100%; height: auto; display: block; border-radius: 8px; }
.stadium-map{ max-width: min(100%, 1000px, calc((100vh - 170px) * 1.56)); margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.35); line-height: 0; }
.stadium-spot.is-interactive{ cursor: pointer; outline: none; }
.stadium-spot .spot-hit{ transition: fill .15s, stroke .15s; }
.stadium-spot.is-hot .spot-hit, .stadium-spot.is-interactive:focus-visible .spot-hit{ fill: rgba(255,255,255,.16); stroke: #fff; stroke-width: 2; }
.stadium-spot.is-hot[data-spot="stands"]:not(:has(.label-box)){ filter: brightness(1.12) drop-shadow(0 0 5px rgba(255,255,255,.7)); }
.stadium-spot .kiosk{ pointer-events: none; transition: filter .15s; }
.stadium-spot.is-hot .kiosk{ filter: brightness(1.35) drop-shadow(0 0 3px #fff); }
.stadium-spot.is-hot .label-box{ fill: rgba(40,60,110,.95); stroke: #fff; stroke-width: 1.2; }
.works-card.is-flash{ box-shadow: 0 0 0 2px #f4c20d; transition: box-shadow .3s; }
.club-tab-logo{ width: 140px; height: 140px; }
.club-tab-logo svg{ width: 100%; height: 100%; }
.rc-trophy{ display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; background: rgba(244,194,13,.1); border: 1px solid rgba(244,194,13,.35); }
.rc-trophy > i{ font-size: 1.6rem; color: #f4c20d; }
.rc-trophy.is-small{ background: rgba(63,185,80,.08); border-color: rgba(63,185,80,.3); }
.rc-trophy.is-small > i{ font-size: 1.1rem; color: #3fb950; }
.rc-row{ padding: .12rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.rc-books{ max-height: 70vh; overflow-y: auto; }
.outlook-box{ padding: .6rem .75rem; border-radius: 8px; background: rgba(255,255,255,.04); }
.top-row.is-mine{ background: rgba(244,194,13,.12); border-radius: 6px; }
.cont-group{ padding: .5rem .6rem; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.cont-group.is-mine{ border-color: rgba(244,194,13,.45); }
.cont-group .hub-table td, .cont-group .hub-table th{ padding: .2rem .3rem; }
.cont-group tr.cont-through td:first-child{ box-shadow: inset 3px 0 0 #3fb950; }
.prize-row{ display: flex; justify-content: space-between; gap: .5rem; padding: .35rem .6rem; border-radius: 6px; background: rgba(255,255,255,.04); font-size: .9rem; }
.prize-row.is-mine{ background: rgba(244,194,13,.14); }
.comp-switch.is-other.active{ background: rgba(88,166,255,.15); border-color: #58a6ff; }
.comp-switch .comp-close{ color: rgba(255,255,255,.6); font-size: 1.1rem; line-height: 1; }
.comp-switch .comp-close:hover{ color: #fff; }
.fixtures-table tr.fixture-past td{ opacity: .45; }
.row > [class*="col"] > .budget-box{ height: 100%; margin-bottom: 0 !important; }
/* A club's page (clubview.js): in the place of the page's content — which is only hidden. */
.cp-under, .cp-held{ display: none !important; }
body.cp-has-held{ overflow: auto !important; padding-right: 0 !important; }
.cp-page.is-alone .cp-wrap{ max-width: 1320px; margin: 0 auto; padding: 1rem; }
/* Top: who the club is and its kits · its trophies and seasons. Below: four cards. */
.cp-top{ display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1rem; }
@media (min-width: 992px){ .cp-top{ grid-template-columns: minmax(18rem, 1fr) minmax(0, 3fr); } }
.cp-four{ display: grid; gap: 1rem; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px){ .cp-four{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px){ .cp-four{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cp-kits{ flex-wrap: nowrap; gap: .35rem; }
.cp-kits .kit-slot{ flex: 1 1 0; min-width: 0; padding: .25rem; }
.cp-kits .kit-slot .kit-svg{ max-width: 3.4rem; }
.cp-cabinet{ display: flex; gap: 1rem; align-items: stretch; }
.cp-cabinet .cp-shelf{ flex: 0 0 8rem; }
.cp-more{ margin-left: auto; flex: 0 0 5.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.25); border-radius: 10px; color: #fff; }
.cp-more span{ font-size: 1.8rem; line-height: 1; }
.cp-more:hover{ background: rgba(255,255,255,.1); }
.cp-history{ display: flex; flex-direction: column; overflow: hidden; }
#cpHistoryRows{ overflow-x: auto; overflow-y: hidden; }
@media (min-width: 992px){ .cp-history{ flex: 1 1 0; min-height: 12rem; } #cpHistoryRows{ flex: 1 1 0; min-height: 0; } }
.cp-next{ background: rgba(244,194,13,.12); border-radius: 6px; }
.cp-col{ display: flex; flex-direction: column; gap: 1rem; min-width: 0; }


/* The search for a club, right across the page. */
.club-search{ position: relative; }
.club-search > .bi-search{ position: absolute; left: .85rem; top: .55rem; color: rgba(255,255,255,.5); pointer-events: none; }
.club-search .form-control{ padding-left: 2.4rem; background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.club-search .form-control::placeholder{ color: rgba(255,255,255,.5); }
.club-search-results{ position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: .25rem; padding: .5rem .75rem; max-height: 22rem; overflow-y: auto; background: #1b2130; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
/* A club's calendar: a square per day (clubview.js). */
.cal-grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
@media (min-width: 768px){ .cal-grid{ grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1200px){ .cal-grid{ grid-template-columns: repeat(12, minmax(0, 1fr)); } }
/* (User 2026-11-10: the competition only as a slash in the top-left corner with its mark over it; the whole
   square carries the result's colour once played.) */
.cal-day{ position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 5.7rem; padding: .25rem .35rem; border-radius: 6px; font-size: .68rem; color: #fff;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.cal-day:not(.is-empty)::before{ content: ""; position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; pointer-events: none;
    background: linear-gradient(135deg, var(--cal-color) 0 52%, transparent 52%); opacity: .9; }
.cal-day[role="button"]:hover{ filter: brightness(1.3); }
.cal-day.is-empty{ background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.06); color: rgba(255,255,255,.35); }
.cal-day.is-out{ background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.cal-day.is-out::before{ opacity: .35; }
.cal-day.is-today{ outline: 2px solid #f4c20d; outline-offset: -1px; }
.cal-day-top, .cal-day-bottom{ position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: .25rem; }
.cal-day-top{ min-height: 1rem; }
.cal-day-ha{ margin-left: auto; font-weight: 700; color: rgba(255,255,255,.8); }
/* The competition's mark over the slash: a flag (the cup: a trophy over its right side), a globe, a logo. */
.cal-badge{ position: relative; display: inline-flex; align-items: center; line-height: 1; }
.cal-badge-flag{ display: block; width: 1.05rem; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
i.cal-badge-flag, .cal-badge-icon{ width: auto; font-size: .9rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); box-shadow: none; }
.cal-badge-logo{ display: block; width: 1.05rem; height: 1.05rem; }
.cal-badge-logo svg{ width: 100%; height: 100%; }
.cal-badge-trophy{ position: absolute; right: -.5rem; bottom: -.3rem; font-size: .66rem; color: #f4c430; text-shadow: 0 0 2px rgba(0,0,0,.9), 0 1px 2px rgba(0,0,0,.8); }
/* (Slightly down: the crest in the middle of the square, where the result goes.) */
.cal-day-team{ position: relative; top: .3rem; min-width: 0; text-align: center; }
.cal-day-opp{ display: flex; flex-direction: column; align-items: center; min-width: 0; }
.cal-day-crest{ display: block; width: 1.8rem; height: 1.8rem; margin: 0 auto; }
.cal-day-crest svg{ width: 100%; height: 100%; }
.cal-day-name{ display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .66rem; }
.cal-day-note{ text-align: center; color: rgba(255,255,255,.6); }
.cal-day-code{ margin-left: auto; font-weight: 600; color: rgba(255,255,255,.55); }
.cal-day.is-out .cal-day-code{ color: rgba(255,255,255,.45); }
/* A played match: the square in the result's colour, the score big over the (dimmed) crest. */
.cal-day.cal-res-W{ background: rgba(46,160,67,.32); border-color: rgba(46,160,67,.6); }
.cal-day.cal-res-D{ background: rgba(140,145,155,.3); border-color: rgba(160,165,175,.5); }
.cal-day.cal-res-L{ background: rgba(218,54,51,.32); border-color: rgba(218,54,51,.6); }
.cal-day.is-played .cal-day-crest{ opacity: .4; }
.cal-day-result{ position: absolute; z-index: 1; pointer-events: none; top: 50%; left: 50%; transform: translate(-50%, -45%); font-size: 1.45rem; font-weight: 800; line-height: 1; white-space: nowrap; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 8px rgba(0,0,0,.5); }
/* (User 2026-11-11: "when something is blocked, show why when you hover".) Blocked but still hoverable — the
   title says why. Bootstrap turns hovering off on disabled buttons; a native disabled button can't be clicked
   anyway, so its tooltip may show. */
.is-blocked{ opacity: .5; cursor: not-allowed; }
button.btn:disabled[title]{ pointer-events: auto; cursor: not-allowed; }
/* A knockout bracket (club.js koBracketHTML, tournament.js — user 2026-11-11): a column per round, the ties
   spread out so each one sits between the two it comes from. */
.ko-bracket{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.ko-round{ display: flex; flex-direction: column; min-width: 0; }
.ko-round-head{ display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.ko-ties{ flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: .4rem; }
.ko-tie{ background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: .25rem .4rem; }
.ko-tie[role="button"]:hover{ background: rgba(255,255,255,.1); }
.ko-side{ display: flex; align-items: center; gap: .35rem; min-height: 1.7rem; font-size: .82rem; min-width: 0; }
.ko-side + .ko-side{ border-top: 1px solid rgba(255,255,255,.08); }
.ko-side .mv-crest{ width: 1.2rem; height: 1.2rem; flex: none; }
.ko-side.is-mine{ color: #f4c20d; font-weight: 600; }
.ko-side.is-lost{ opacity: .45; }
.ko-side.is-won b{ color: #3fb950; }
/* A cup match whose draw you haven't seen (clubview.js calDrawKey): the opponent a question mark. */
.cal-day-mystery{ display: flex !important; align-items: center; justify-content: center; font-size: 1.4rem; color: rgba(255,255,255,.55); border: 1px dashed rgba(255,255,255,.3); border-radius: 50%; }
.cal-day-hidden .cal-day-name{ font-style: italic; color: rgba(255,255,255,.7); }
/* The venue's calendar (venuehub.js, user 2026-11-11): matches with both badges, events, offers, open days. */
.vc-match{ display: flex; align-items: center; justify-content: center; gap: .25rem; }
.vc-crest{ display: inline-block; width: 1.5rem; height: 1.5rem; }
.vc-crest svg{ width: 100%; height: 100%; }
.vc-vs{ font-weight: 800; font-size: .8rem; white-space: nowrap; }
.vc-label{ text-align: center; font-size: .68rem; line-height: 1.2; overflow: hidden; }
.cal-day.vc-event{ --cal-color: #a371f7; background: rgba(163,113,247,.16); border-color: rgba(163,113,247,.45); }
.cal-day.vc-event.vc-show{ background: rgba(163,113,247,.32); }
.cal-day.vc-offer{ border-style: dashed; border-color: rgba(244,194,13,.6); }
.cal-day.vc-window{ --cal-color: #3fb950; background: rgba(63,185,80,.12); border: 1px solid rgba(63,185,80,.55); }
.cal-day.vc-free.is-selectable{ cursor: pointer; border-style: dashed; border-color: rgba(255,255,255,.3); }
.cal-day.vc-free.is-selectable:hover{ background: rgba(255,255,255,.1); }
.cal-day.is-selected{ background: rgba(63,185,80,.3) !important; border-color: #3fb950 !important; }
.cp-logo{ width: 7rem; height: 7rem; }
.cp-logo svg{ width: 100%; height: 100%; }
.cp-shelf{ flex: 0 1 8rem; text-align: center; }
.cp-season-nav{ display: flex; align-items: center; gap: .5rem; }

/* Matches (matchview.js): rows, the report, form badges. */
.mv-crest{ display: inline-block; width: 1.3rem; height: 1.3rem; vertical-align: middle; }
.mv-crest svg{ width: 100%; height: 100%; }
.mv-list{ display: flex; flex-direction: column; gap: .3rem; }
.mv-row{ display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr); align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: 8px; background: rgba(255,255,255,.04); border: 0; color: inherit; width: 100%; }
button.mv-row:hover{ background: rgba(255,255,255,.09); }
.mv-row.is-mine{ background: rgba(244,194,13,.12); font-weight: 700; }
.mv-team{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }   /* a played match is a <button>: no centring */
.mv-score{ text-align: center; font-weight: 700; }
/* The pre-match report's fixture (user 2026-11-11): "name logo – logo name" on one line. */
.mv-fixture-head{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.mv-fh-side{ display: flex; min-width: 0; }
.mv-fh-side.is-home{ justify-content: flex-end; text-align: right; }
.mv-fh-side > *, .mv-fh-side .club-link{ display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.mv-fh-side .mv-crest{ width: 3rem; height: 3rem; flex: none; }
.mv-fh-name{ font-size: 1.35rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-fh-mid{ font-size: 2rem; font-weight: 800; line-height: 1; text-align: center; }
.mv-fh-mid small{ font-size: .8rem; font-weight: 400; }
@media (max-width: 575px){ .mv-fh-name{ font-size: 1rem; } .mv-fh-side .mv-crest{ width: 2.2rem; height: 2.2rem; } }
.mv-head{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; text-align: center; margin-bottom: 1rem; }
.mv-head .mv-crest{ width: 3.5rem; height: 3.5rem; margin-bottom: .3rem; }
.mv-head-score{ font-size: 2.2rem; font-weight: 800; line-height: 1; }
.mv-event{ font-size: .85rem; padding: .1rem 0; }
.mv-minute{ display: inline-block; min-width: 2rem; color: rgba(255,255,255,.55); }
.mv-card{ display: inline-block; width: .55rem; height: .8rem; border-radius: 2px; vertical-align: -1px; }
.mv-yellow{ background: #f2c230; }
.mv-red{ background: #f85149; }
.mv-rating{ display: inline-block; min-width: 2.4rem; text-align: center; border-radius: 4px; padding: 0 .3rem; background: rgba(255,255,255,.08); font-weight: 700; }
.mv-rating.is-good{ background: #3fb950; color: #0b1020; }
.mv-rating.is-poor{ background: rgba(248,81,73,.35); }
.cup-rounds tr[role="button"]{ cursor: pointer; }
.cup-rounds tr[role="button"]:hover td{ background: rgba(255,255,255,.05); }
.bracket{ display: flex; gap: .9rem; overflow-x: auto; padding-bottom: .5rem; }
.bracket-round{ flex: 0 0 13.5rem; display: flex; flex-direction: column; }
.bracket-head{ position: sticky; top: 0; background: #141b2d; padding: .25rem 0 .5rem; z-index: 1; }
.bracket-matches{ flex-grow: 1; display: flex; flex-direction: column; justify-content: space-around; gap: .45rem; }
.bracket-match{ display: block; width: 100%; text-align: left; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.04); color: inherit; overflow: hidden; }
button.bracket-match:hover{ border-color: #58a6ff; }
.bracket-match.is-empty{ border-style: dashed; background: transparent; }
.bracket-side{ display: flex; align-items: center; gap: .4rem; padding: .25rem .5rem; font-size: .82rem; min-height: 1.8rem; }
.bracket-side + .bracket-side{ border-top: 1px solid rgba(255,255,255,.07); }
.bracket-side .mv-crest{ width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.bracket-side.is-winner{ font-weight: 700; }
.bracket-side.is-mine{ background: rgba(244,194,13,.14); }
.bracket-score{ font-weight: 700; white-space: nowrap; }
.form-badges{ display: inline-flex; gap: 2px; }
.form-badge{ display: inline-block; width: 1.15rem; height: 1.15rem; line-height: 1.15rem; text-align: center; border-radius: 3px; font-size: .65rem; font-weight: 700; color: #0b1020; }
.form-W{ background: #3fb950; }
.form-D{ background: #9aa4b2; }
.form-L{ background: #f85149; color: #fff; }
.fixtures-table tr[data-open-match]{ cursor: pointer; }
.fixtures-table tr[data-open-match]:hover td{ background: rgba(255,255,255,.05); }
.ha-badge{ display: inline-block; min-width: 1.4rem; text-align: center; font-size: .7rem; font-weight: 700; border-radius: 4px; padding: 0 .25rem; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.match-card .mv-crest{ width: 2.2rem; height: 2.2rem; }
.top-row{ display: flex; align-items: center; gap: .5rem; padding: .2rem 0; font-size: .85rem; }
.top-row .top-pos{ width: 1.3rem; color: rgba(255,255,255,.5); text-align: right; }
.top-row .top-value{ margin-left: auto; font-weight: 700; }

/* Inbox (inbox.js): list + reader, the briefing's blocks, the cup draw, the navbar badge. */
.nav-badge{ display: inline-block; min-width: 1.15rem; height: 1.15rem; line-height: 1.15rem; padding: 0 .3rem; margin-left: .35rem; border-radius: 999px; background: #f85149; color: #fff; font-size: .68rem; font-weight: 700; text-align: center; vertical-align: 1px; }
.page-inbox-link{ display: inline-flex; align-items: center; gap: .35rem; }
.inbox-list{ display: flex; flex-direction: column; gap: .3rem; max-height: 75vh; overflow-y: auto; }
.inbox-item{ display: flex; align-items: center; gap: .6rem; text-align: left; width: 100%; padding: .55rem .7rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: rgba(255,255,255,.75); }
.inbox-item:hover{ background: rgba(255,255,255,.07); }
.inbox-item.active{ border-color: #58a6ff; background: rgba(88,166,255,.12); }
.inbox-item.is-unread{ color: #fff; border-left: 3px solid #f4c20d; }
.inbox-item.is-unread .inbox-subject{ font-weight: 700; }
.inbox-flag{ color: #f0883e; }
.inbox-icon{ width: 1.8rem; text-align: center; flex-shrink: 0; }
.inbox-icon .mv-crest{ width: 1.6rem; height: 1.6rem; }
.inbox-reader{ min-height: 20rem; }
/* Wide screens: the open mail stays in view while the page scrolls. */
@media (min-width: 992px){ .inbox-reader{ position: sticky; top: 5.5rem; max-height: calc(100vh - 7rem); overflow-y: auto; } }
.briefing-block{ border-top: 1px solid rgba(255,255,255,.08); padding: .9rem 0; }
.briefing-title{ font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); margin-bottom: .5rem; }
.briefing-score{ display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .75rem; font-weight: 600; }
.briefing-score-value{ font-size: 1.6rem; font-weight: 800; }
.briefing-odds{ display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.briefing-odd{ background: rgba(255,255,255,.04); border-radius: 8px; padding: .4rem .6rem; }
.matchday-stats{ display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (max-width: 576px){ .matchday-stats{ grid-template-columns: repeat(2, 1fr); } }
.matchday-stat{ background: rgba(255,255,255,.04); border-radius: 8px; padding: .45rem .6rem; }
.briefing-odd-bar{ height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin: .25rem 0 .1rem; }
.briefing-odd-bar span{ display: block; height: 100%; border-radius: 2px; background: #58a6ff; }
.verdict-big_favourite, .verdict-favourite{ background: #3fb950; color: #0b1020; }
.verdict-even{ background: #9aa4b2; color: #0b1020; }
.verdict-outsider, .verdict-big_outsider{ background: #f0883e; color: #0b1020; }
.briefing-news, .briefing-todo{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.briefing-news li, .briefing-todo li{ display: flex; gap: .55rem; align-items: baseline; }
.briefing-news .bi{ color: rgba(255,255,255,.5); }
.briefing-todo a{ color: inherit; }
.briefing-todo .bi{ color: rgba(255,255,255,.4); }
.briefing-todo li.is-done{ opacity: .5; }
.briefing-todo li.is-done a{ text-decoration: line-through; }
.briefing-todo li.is-done .bi{ color: #3fb950; }
.cup-draw .draw-slot{ min-height: 1.4rem; }
.cup-draw .draw-slot.is-drawn{ animation: draw-in .35s ease-out; }
@keyframes draw-in{ from{ opacity: 0; transform: translateY(-4px); } to{ opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .cup-draw .draw-slot.is-drawn{ animation: none; } }

/* Squad (squadview.js) */
.sq-table td, .sq-table th{ vertical-align: middle; padding: .4rem .75rem; }
.sq-table thead th{ background: #141b2d; color: rgba(255,255,255,.6); font-size: .8rem; }
.sq-table .sq-group td{ background: rgba(255,255,255,.04); color: rgba(255,255,255,.55); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .5rem; }
.sq-pos{ display: inline-block; min-width: 2.2rem; text-align: center; font-size: .75rem; font-weight: 700; border-radius: 4px; padding: .1rem .3rem; background: rgba(255,255,255,.08); }
.sq-ovr{ display: inline-block; min-width: 2.8rem; text-align: center; font-weight: 700; border-radius: 6px; padding: .1rem .35rem; color: #0b1020; }
.sq-ovr-elite{ background: #3fb950; }
.sq-ovr-good{ background: #a5d65a; }
.sq-ovr-mid{ background: #f2c230; }
.sq-ovr-low{ background: #f0883e; }
.sq-ovr-weak{ background: #c9d1d9; }
.sq-table th.sq-sortable{ cursor: pointer; user-select: none; white-space: nowrap; }
.sq-table th.sq-sortable:hover{ color: #fff; }
.sq-table th.is-sorted{ color: #f4c20d; }
.sq-table th.is-sorted .bi{ margin-left: .2rem; font-size: .7rem; }
.sq-table .sq-stat{ width: 3rem; }
.sq-filter{ width: auto; background-color: #141b2d; color: #fff; border-color: rgba(255,255,255,.2); }
/* Office staff: "Fire" and its "Sure?" step keep one width, whatever the name next to it. */
.staff-fire{ min-width: 4.5rem; }
.sq-bell{ background: none; border: 0; padding: 0 .15rem; color: rgba(255,255,255,.45); }
.sq-bell:hover{ color: #f4c20d; }
.sq-bell.is-on{ color: #f4c20d; }
.sq-manager{ padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.12); }

/* Season calendar (seasoncalendar.js): game weeks × midweek/weekend, a colour per purpose. */
.cal-table-wrap{ max-height: 65vh; overflow-y: auto; position: relative; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); }
.cal-table thead th{ position: sticky; top: 0; z-index: 1; background: #141b2d; font-size: .85rem; color: rgba(255,255,255,.6); }
.cal-table td{ padding: .25rem .4rem; vertical-align: top; }
.cal-table .cal-week{ width: 3.5rem; text-align: center; color: rgba(255,255,255,.5); padding-top: .9rem; }
.cal-slot{ border-left: 4px solid var(--cal-color); background: rgba(255,255,255,.04); border-radius: 6px; padding: .35rem .6rem; }
.cal-slot .cal-date{ color: rgba(255,255,255,.55); font-size: .75rem; }
.cal-slot .cal-label{ font-weight: 600; font-size: .9rem; }
.cal-slot .cal-youth{ color: rgba(255,255,255,.45); font-size: .72rem; }
.cal-slot.is-past{ opacity: .45; }
.cal-slot.is-today{ background: rgba(244,194,13,.12); box-shadow: 0 0 0 2px #f4c20d; }
.cal-legend{ border-left: 4px solid var(--cal-color); padding: 0 .5rem; color: rgba(255,255,255,.75); }
.cal-hint{ max-width: 320px; }
.cal-league{ --cal-color: #3fb950; }
.cal-cup{ --cal-color: #f0883e; }
.cal-continental{ --cal-color: #58a6ff; }
.cal-open{ --cal-color: #6e7681; }
.cal-entrepreneur{ --cal-color: #a371f7; }
.cal-legend-button{ background: none; border: 0; border-left: 4px solid var(--cal-color); padding: .15rem .5rem; color: rgba(255,255,255,.75); border-radius: 0 4px 4px 0; }
.cal-legend-button:hover{ background: rgba(255,255,255,.07); color: #fff; }
.cal-legend-button.is-active{ background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.cal-legend-button.is-dimmed{ opacity: .45; }
.cal-table .cal-when{ padding-top: .9rem; width: 6rem; }
.cal-slot .cal-window{ display: block; color: #f4c20d; font-size: .72rem; }
.cal-international{ --cal-color: #f85149; }
.cal-friendly{ --cal-color: #39c5cf; }
.cal-break{ --cal-color: #8b949e; }

.layout-choice{ cursor: pointer; border: 2px solid transparent; border-radius: 10px; overflow: hidden; line-height: 0; }
.layout-choice.active{ border-color: #f4c20d; }
.layout-choice svg{ width: 100%; height: auto; }

.market-club-disabled{
    opacity: .4;
    cursor: not-allowed;
}

.market-club-disabled .market-club-value{ color: rgba(255,255,255,.7); }

/* ── Club purchase contract ──────────────────────────────────────────────────────────────────── */

.contract-modal .modal-content{
    background: #141b2d;
    color: #f1f3f7;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
}

.contract-paper{
    background: #f7f3ea;
    color: #2b2b2b;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    /* Typed like a real contract; headings and signature below have their own fonts
       (loaded in empire-dashboard.html). */
    font-family: "Courier Prime", "Courier New", monospace;
    font-size: .95rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.contract-paper h4{
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
}

.contract-paper h4 + em{
    font-family: "Playfair Display", Georgia, serif;
}

.contract-muted{ color: #6c6a64; }

.contract-venue-icon{
    color: #2b2b2b;
    background: rgba(0,0,0,.07);
    font-size: 1.6rem;
}

.contract-crest-big.contract-venue-icon{
    color: #f1f3f7;
    background: rgba(255,255,255,.08);
    font-size: 2.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.contract-select,
.contract-input{
    max-width: 320px;
    background-color: #fffdf8;
    border-color: rgba(0,0,0,.2);
    color: #2b2b2b;
    font-family: inherit;
}

.contract-warning{
    background: rgba(214, 140, 0, .1);
    border-left: 3px solid #d68c00;
    padding: .45rem .7rem;
    color: #5c4300;
}

.contract-mini-btn{
    border: 1px solid rgba(0,0,0,.25);
    color: #2b2b2b;
    background: #fffdf8;
    padding: .05rem .45rem;
    font-family: inherit;
}

.contract-mini-btn:hover{ background: #ece6d8; }

.contract-choice{
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .35rem .5rem;
    border-radius: 6px;
    cursor: pointer;
}

.contract-choice:hover{ background: rgba(0,0,0,.04); }
.contract-choice input{ margin-top: .3rem; }

/* Club emblem editor inside the founding charter. */
.emblem-editor{
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin: .6rem 0 .2rem;
    flex-wrap: wrap;
}

.emblem-preview{
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.emblem-preview .logo-svg{ width: 100%; height: 100%; display: block; }

.emblem-controls{
    flex: 1;
    min-width: 240px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem .9rem;
    font-size: .85rem;
}

.emblem-control{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .4rem;
}

.emblem-color{
    width: 28px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(0,0,0,.25);
    background: none;
}

.emblem-initials{ max-width: 70px; text-transform: uppercase; }

.contract-info{
    margin: .35rem 0 .2rem;
    font-size: .85rem;
    color: #3d3b36;
}

.contract-info summary{
    cursor: pointer;
    color: #6c6a64;
    list-style: none;
}

.contract-info summary::-webkit-details-marker{ display: none; }
.contract-info summary:hover{ color: #2b2b2b; }
.contract-info[open] summary{ color: #2b2b2b; }

.contract-info li{ padding: .1rem 0 .1rem 1.2rem; }

.contract-suggestions{
    position: absolute;
    z-index: 5;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    font-family: system-ui, sans-serif;
}

.contract-paper .form-range::-webkit-slider-thumb{ background: #1d3c8f; }
.contract-paper .form-range::-moz-range-thumb{ background: #1d3c8f; }

.contract-crest{
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.contract-crest-big{
    width: 96px;
    height: 96px;
}

.contract-crest .logo-svg{
    width: 100%;
    height: 100%;
    display: block;
}

.contract-section{
    margin: 1.1rem 0 .35rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid rgba(0,0,0,.15);
    font-family: "Playfair Display", Georgia, serif;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6c6a64;
}

.contract-row{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .2rem 0;
    font-size: .9rem;
}

.contract-row > span:first-child{ color: #6c6a64; flex-shrink: 0; }
.contract-row > span:last-child{ text-align: right; }

.contract-signature-area{
    margin-top: 1.5rem;
    max-width: 320px;
}

.contract-signature{
    height: 64px;
    display: flex;
    align-items: flex-end;
    padding: 0 .25rem .2rem;
    border-bottom: 2px solid #2b2b2b;
    cursor: pointer;
}

.contract-sign-hint{
    color: #a19d93;
    font-style: italic;
    margin-bottom: .3rem;
}

.contract-signature:hover .contract-sign-hint{ color: #2b2b2b; }

.contract-signature.signed{ cursor: default; }

.contract-signed-name{
    font-family: "Mrs Saint Delafield", "Brush Script MT", "Segoe Script", cursive;
    font-size: 2.7rem;
    line-height: 1.1;
    padding-right: .4rem;
    color: #1d3c8f;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: contract-sign 1s steps(24) forwards;
    width: 0;
}

@keyframes contract-sign{
    to{ width: 100%; }
}

.market-venue-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    font-size: 1.1rem;
}

.market-credit{
    margin: 1.25rem 0 0;
    font-size: .75rem;
    color: rgba(255,255,255,.4);
}

.market-credit a{ color: rgba(255,255,255,.6); }

.min-w-0{ min-width: 0; }

/* ── Investor meeting ──────────────────────────────────────────────────────────────────────── */

.pitch-meeting{
    max-width: 820px;
    margin: 0 auto;
}

.pitch-investor{
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pitch-investor-avatar{
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.pitch-investor-avatar .avatar-svg{
    width: 100%;
    height: 100%;
    display: block;
    background: #f1ede4;
    border-radius: 50%;
}

.pitch-bubble{
    position: relative;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px 16px 16px 4px;
    padding: 14px 18px;
    font-size: 1.1rem;
    flex-grow: 1;
}

.pitch-bubble small{
    display: block;
    color: rgba(255,255,255,.55);
    font-size: .8rem;
    margin-bottom: .2rem;
}

.pitch-progress{
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 1rem;
}

.pitch-progress span{
    width: 28px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
}

.pitch-progress span.done{ background: var(--team-accent-color, #0d6efd); }

.pitch-answers{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}

.pitch-answer{
    text-align: left;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.pitch-answer:hover:not(:disabled){
    background: rgba(255,255,255,.1);
    border-color: var(--team-accent-color, #0d6efd);
    transform: translateY(-2px);
}

.pitch-answer:disabled{
    opacity: .45;
    cursor: not-allowed;
}

.pitch-answer b{
    display: block;
    margin-bottom: .25rem;
}

.pitch-answer small{
    color: rgba(255,255,255,.6);
    display: block;
}

.pitch-answer .pitch-skill-hint{
    margin-top: .4rem;
    font-size: .75rem;
    color: var(--team-accent-color, #6ea8fe);
}

.pitch-total{
    font-size: 2.6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pitch-breakdown{
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.pitch-breakdown li{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .9rem;
}

.pitch-breakdown .positive{ color: #39d98a; }
.pitch-breakdown .negative{ color: #ff6b6b; }

.shortcut-tile{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:6px;

    background:rgba(255,255,255,.06);

    border:1px solid rgba(255,255,255,.12);

    border-radius:12px;

    padding:18px 8px;

    text-decoration:none;

    color:#fff;

    transition:.2s;

    height:100%;

}

.shortcut-tile:hover{

    background:rgba(255,255,255,.12);

    transform:translateY(-2px);

    color:#fff;

}

.shortcut-icon{

    font-size:1.6rem;

}

.standings-you{

    background:rgba(57,255,20,.12) !important;

    color:#fff;

}

.standings-you td:first-child{

    border-left:3px solid var(--team-accent-color);
    padding-left:9px;

}

/*
Creation
*/
/* Position-importance highlight — subtle on purpose, distinct from the +/- specialization
   badges: a small accent bar + slightly bolder label, not a loud color wash. */
.skill-label-important{
    border-left: 3px solid var(--team-accent-color);
    padding-left: 8px;
    font-weight: 600;
}

.spec-badge{
    font-size: .75rem;
    font-weight: 700;
    margin-left: 4px;
}

.spec-badge-boost{ color: #39ff14; }
.spec-badge-penalty{ color: #ff4d4d; }

/* Company / club logos — drawn as inline SVG by logo.js, so they scale to any size. */
.logo-preview{
    width: 96px;
    height: 96px;
}

.logo-preview-lg{
    width: 180px;
    height: 180px;
}

.logo-preview .logo-svg{
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

.logo-option-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem 1rem;
    text-align: center;
}

.logo-option b{
    display: block;
    margin-bottom: .3rem;
}

.logo-option-counter{
    display: inline-block;
    min-width: 3.2rem;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
}

.logo-text-input{
    max-width: 110px;
    margin: 0 auto;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .1em;
}

.logo-color-label{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    font-size: .85rem;
}

.logo-color-label input[type="color"]{
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.logo-color-label input[type="color"]::-webkit-color-swatch-wrapper{ padding: 0; }
.logo-color-label input[type="color"]::-webkit-color-swatch{ border: none; border-radius: 50%; }
.logo-color-label input[type="color"]::-moz-color-swatch{ border: none; border-radius: 50%; }

/* Tennis: marks a skill that's key on the player's favorite surface (visual only). */
.surface-key-icon{
    color: #4fc3f7;
    font-size: .8rem;
    margin-left: 4px;
    cursor: help;
}

.avatar-preview{
    width:180px;
    height:180px;
    position:relative;
    margin:auto;
}

.avatar-layer{
    position:absolute;
    width:100%;
}

/* SVG avatars (avatar.js) — the svg fills its preview box at any size, on a light off-white
   circle so dark hair and outfits stand out against the dark page. The circle also crops the
   shoulders neatly at the bottom. */
.avatar-svg-preview .avatar-svg,
.career-avatar .avatar-svg{
    width: 100%;
    height: 100%;
    display: block;
    background: #f1ede4;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.avatar-editor-preview-sticky{
    position: sticky;
    top: 0;
}

.avatar-editor-preview-sticky .avatar-preview{
    width: 210px;
    height: 210px;
}

.avatar-option-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem 1rem;
    text-align: center;
}

.avatar-option b{
    display: block;
    margin-bottom: .2rem;
    font-size: .85rem;
}

.avatar-option-wide{
    grid-column: 1 / -1;
}

.avatar-swatches{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.avatar-swatch.selected{
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--team-accent-color, #0d6efd);
}

.avatar-color-input{
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.avatar-color-input::-webkit-color-swatch-wrapper{ padding: 0; }
.avatar-color-input::-webkit-color-swatch{ border: none; border-radius: 50%; }
.avatar-color-input::-moz-color-swatch{ border: none; border-radius: 50%; }

/* Step indicator (creation flow) — circles + connecting line, driven by adding/removing
   .active/.completed classes in JS. .completed shows a checkmark via content in JS, not CSS. */
.step-indicator{
    display:flex;
    align-items:center;
    justify-content:center;
}

.step-item{
    display:flex;
    align-items:center;
    gap:.6rem;
}

.step-circle{
    width:32px;
    height:32px;
    flex-shrink:0;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.35);
    color:rgba(255,255,255,.6);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    transition:all .2s ease;
}

.step-circle.active{
    background:#0d6efd;
    border-color:#0d6efd;
    color:#fff;
}

.step-circle.completed{
    border-color:#0d6efd;
    color:#0d6efd;
}

.step-label{
    color:rgba(255,255,255,.6);
    font-weight:500;
    white-space:nowrap;
    transition:all .2s ease;
}

.step-label.active{
    color:#fff;
    font-weight:700;
}

.step-connector{
    width:60px;
    height:2px;
    background:rgba(255,255,255,.35);
    margin:0 1rem;
    transition:background .2s ease;
}

.step-connector.completed{
    background:#0d6efd;
}

/* Motorsport creation page redesign — stat cards (Overall Rating / Skill Points Remaining),
   icon+label field rows (Career Focus / Specialization / step-1 section headers), and the
   3 skill panels (Pace & Racecraft / Mental & Consistency / Technical & Physical). All scoped
   under "creation-" / "skill-panel-" so they don't leak into other pages' card styling. */
.creation-card{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.15);
    border-radius:14px;
    padding:16px 18px;
}

.creation-stat-icon{
    width:38px;
    height:38px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.15rem;
    flex-shrink:0;
}

.creation-stat-icon.icon-gold{ background:rgba(255,193,7,.15); color:#ffc107; }
.creation-stat-icon.icon-blue{ background:rgba(13,110,253,.15); color:#0d6efd; }

.creation-stat-value{
    font-size:1.9rem;
    font-weight:700;
    line-height:1.1;
}

.creation-stat-value small{
    font-size:1rem;
    font-weight:500;
    color:rgba(255,255,255,.5);
}

.creation-progress{
    height:6px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    overflow:hidden;
    margin-top:10px;
}

.creation-progress-fill{
    height:100%;
    border-radius:999px;
    transition:width .2s ease;
}

.creation-progress-fill.fill-gold{ background:#ffc107; }
.creation-progress-fill.fill-blue{ background:#0d6efd; }

.creation-field-label{
    display:flex;
    align-items:center;
    gap:.5rem;
    font-weight:600;
}

.creation-field-label i{
    color:var(--team-accent-color);
    font-size:1.05rem;
}

.skill-panel{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    padding:14px;
    height:100%;
}

.skill-panel-header{
    display:flex;
    align-items:center;
    gap:.5rem;
    margin-bottom:.85rem;
}

.skill-panel-header i.panel-icon{
    color:var(--team-accent-color);
    font-size:1.05rem;
}

.skill-panel-header h6{
    margin:0;
    font-weight:700;
    flex:1;
    font-size:.9rem;
}

.skill-panel-header i.info-icon{
    color:rgba(255,255,255,.4);
    cursor:pointer;
}

.step-section-label{
    display:flex;
    align-items:center;
    gap:.5rem;
    font-weight:700;
    color:rgba(255,255,255,.85);
}

.step-section-label i{
    color:var(--team-accent-color);
}

/* "Reset Skills" button at the end of the Skills title row — keeps the button's own text
   colour instead of the accent colour .step-section-label gives its icons. */
.step-section-label .reset-skills-btn{
    font-weight:400;
}

.step-section-label .reset-skills-btn i{
    color:inherit;
}

/* Top-left "Back" link on the choose-career / choose-sport / creation pages. */
.page-back-link{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    border-radius:999px;
    padding:.3rem .9rem;
    border-color:rgba(255,255,255,.35);
}

.color-btn{
    width:30px;
    height:30px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.2);
    margin:2px;
    cursor:pointer;
}



.unit-toggle .btn.active{
    background: var(--team-accent-color);
    color:#000;
    border-color: var(--team-accent-color);
}

.bg-creation{
    background-color: #151c2c !important;
}

/*Football*/
/* Tactical Pitch Styles */
.pitch-container {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Grass Stripes Effect */
.pitch-stripes {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10%,
        rgba(0, 0, 0, 0.05) 10%,
        rgba(0, 0, 0, 0.05) 20%
    );
    pointer-events: none;
}

/* Field Marking Lines */
.field-line {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    pointer-events: none;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
}

/* FIXED: these were anchored to the container's own edge (top/bottom: 0), but the actual pitch
   boundary (.pitch-outline below) sits inset 4% from that edge — so the open end of each box
   started 4% outside the real backline, and its side-lines crossed straight through the
   backline on their way in instead of starting flush at it. Anchoring to that same 4% inset
   puts the open end exactly on the backline. */
.penalty-box-top {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 18%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-top: none;
    pointer-events: none;
}

.penalty-box-bottom {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 18%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-bottom: none;
    pointer-events: none;
}

.goal-box-top {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 24%;
    height: 7%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-top: none;
    pointer-events: none;
}

.goal-box-bottom {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 24%;
    height: 7%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-bottom: none;
    pointer-events: none;
}

/* Interactive Position Pins */
.position-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.position-pin:hover {
    transform: translate(-50%, -50%) scale(1.18);
    z-index: 20;
}

.position-pin.active {
    transform: translate(-50%, -50%) scale(1.25);
    z-index: 30;
}

.position-pin.active .pin-bg {
    background-color: #2f80ed;
    color: #000;
    box-shadow: 0 0 20px rgba(47, 128, 237, 0.8), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

/* Pin badge — base look + per-category colors (replaces the Tailwind utility classes the
   copied pitch code used for this, since this project doesn't load Tailwind). */
.pin-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: #1e293b;
    color: #f1f5f9;
    white-space: nowrap;
}

.pin-bg.pin-attacker { background-color: #de1515; border-color: #ff8787; }
.pin-bg.pin-midfielder { background-color: #d97706; border-color: #fcd34d; }
.pin-bg.pin-defender { background-color: #059669; border-color: #6ee7b7; }
.pin-bg.pin-goalkeeper { background-color: #7c3aed; border-color: #c4b5fd; }

/* Pitch wrapper/outline/legend — plain-CSS replacements for the Tailwind layout & color
   utility classes (w-full, max-w-md, aspect-[3/4], inset-4, top-1/2, bg-slate-950/40, ...)
   that the copied pitch snippet relied on. None of those do anything here since this project
   uses Bootstrap, not Tailwind — that's why the pitch wasn't rendering/sizing at all. */
.pitch-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.pitch-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    border-radius: 1rem;
}

#pitch-positions-layer {
    position: absolute;
    inset: 0;
}

.pitch-outline {
    position: absolute;
    inset: 4%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 0.5rem;
    pointer-events: none;
}

.pitch-halfway-line {
    position: absolute;
    top: 50%;
    left: 4%;
    right: 4%;
    border-top: 2px solid rgba(255, 255, 255, 0.65);
    transform: translateY(-50%);
    pointer-events: none;
}

.pitch-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.legend-dot-attacker { background-color: #059669; }
.legend-dot-midfielder { background-color: #2563eb; }
.legend-dot-defender { background-color: #d97706; }
.legend-dot-goalkeeper { background-color: #7c3aed; }

/*Basketball*/
/* Half-court position picker — same structure as the football pitch above (wrapper →
   container → background layer → markings → #...-positions-layer of pins), and it reuses
   .position-pin / .pin-bg as-is. The markings are an inline SVG in the HTML instead of
   positioned divs, since a court is mostly arcs (three-point line, circles). */
.court-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.court-container {
    width: 100%;
    aspect-ratio: 15 / 14;
    position: relative;
    border-radius: 1rem;
    background: linear-gradient(135deg, #c98a4b 0%, #a96a32 100%);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Hardwood plank effect */
.court-planks {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 6%,
        rgba(0, 0, 0, 0.06) 6%,
        rgba(0, 0, 0, 0.06) 6.4%
    );
    pointer-events: none;
}

/* Court area inset from the container edge, same idea as .pitch-outline's 4% inset. Equal %
   on all sides keeps the 15/14 ratio, so the SVG isn't stretched. */
.court-inner {
    position: absolute;
    inset: 5%;
}

.court-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* boundary lines sit exactly on the SVG edge — let their outer half of the stroke show */
    overflow: visible;
    pointer-events: none;
}

.court-lines rect,
.court-lines path,
.court-lines line,
.court-lines circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.75);
    stroke-width: 2;
    /* widths are screen px, same as the pitch's 2px borders, regardless of the SVG's scaling */
    vector-effect: non-scaling-stroke;
}

.court-lines .court-paint {
    fill: rgba(127, 29, 29, 0.35);
}

.court-lines .court-dashed {
    stroke-dasharray: 6 5;
}

.court-lines .court-backboard {
    stroke-width: 4;
}

.court-lines .court-hoop {
    stroke: #f97316;
    stroke-width: 2.5;
}

#court-positions-layer {
    position: absolute;
    inset: 0;
}

.pin-bg.pin-guard { background-color: #0f766e; border-color: #5eead4; }
.pin-bg.pin-forward { background-color: #de1515; border-color: #ff8787; }
.pin-bg.pin-center { background-color: #7c3aed; border-color: #c4b5fd; }

/* Equal-height card grids (choose-career / choose-sport pages). A Bootstrap .row is flexbox, which
   only equalizes heights within one line — so in a 2x2 grid the top and bottom pair could differ.
   CSS grid with grid-auto-rows: 1fr makes every row as tall as the tallest card. */
.equal-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
}

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

@media (min-width: 768px) {
    .equal-cards-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.equal-cards > * {
    width: auto;
}

.equal-cards > * > .card {
    height: 100%;
}

/* the image/content row inside a sport card has to fill the card too */
.sport-card > .row {
    flex-grow: 1;
}

/* Cards on the choose-career / choose-sport pages — same look as .creation-card on the creation
   pages, but without its padding so the sport cards' image can still run edge to edge. */
.choose-card{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.15);
    border-radius:14px;
    color:#fff;
    transition:border-color .2s ease, background-color .2s ease;
}

.choose-card:hover{
    background:rgba(255,255,255,.09);
    border-color:rgba(255,255,255,.3);
}
/* Sponsors (sponsors.js): logos in three styles, slot cards, offers, the deal's terms. */
.sp-logo{ display: inline-flex; align-items: center; gap: .35rem; background: var(--sp-bg); color: var(--sp-fg); border-radius: 6px; padding: .2rem .55rem; font-weight: 700; white-space: nowrap; line-height: 1.1; }
.sp-logo-sm{ font-size: .7rem; padding: .1rem .4rem; }
.sp-logo-md{ font-size: .85rem; }
.sp-logo-lg{ font-size: 1.05rem; padding: .35rem .8rem; }
.sp-style-1{ flex-direction: column; gap: 0; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; }
.sp-style-1 .bi{ font-size: 1.2em; }
.sp-style-2{ flex-direction: column; gap: 0; align-items: flex-start; border-radius: 2px; font-style: italic; border-left: 4px solid var(--sp-fg); }
.sp-style-2 small{ font-size: .6em; font-weight: 600; font-style: normal; opacity: .85; }
.sp-slot.is-free{ border-style: dashed; }
.sp-target{ border-radius: 8px; padding: .4rem .6rem; background: rgba(255,255,255,.04); border-left: 3px solid #f0883e; }
.sp-target.is-met{ border-left-color: #3fb950; }
.sp-offer{ display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: 10px; background: rgba(255,255,255,.04); }
.sp-terms{ background: rgba(255,255,255,.04); border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; text-align: left; }

/* ── The match page and check-in (§20, phase 11B) ─────────────────────────────────────────── */
.navbar-join{ position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: .15rem; padding: .05rem .5rem; font-size: .72rem; white-space: nowrap; }
.live-cover{ position: fixed; inset: 0; z-index: 2000; background: #080c12; display: flex; align-items: center; justify-content: center; padding: 1rem; color: #fff; }
.live-cover-card{ max-width: 30rem; text-align: center; background: rgba(255,255,255,.05); border-radius: 16px; padding: 2rem; }
.live-banner{ position: fixed; right: 1rem; bottom: 1rem; z-index: 1900; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.live-page{ max-width: 1500px; }
.live-header{ text-align: center; margin-bottom: .75rem; }
.live-score{ display: flex; align-items: center; justify-content: center; gap: .75rem; }
.live-team{ font-size: 1.35rem; font-weight: 600; flex: 1; text-align: left; }
.live-team.is-home{ text-align: right; }
.live-crest{ display: inline-block; width: 3rem; height: 3rem; vertical-align: middle; flex: none; }
.live-crest svg{ width: 100%; height: 100%; display: block; }
.live-notebook .live-crest, .live-ticket .live-crest, .btn .live-crest{ width: 1.4rem; height: 1.4rem; }
.live-score-mid{ display: flex; flex-direction: column; align-items: center; min-width: 9rem; }
.live-score-text{ font-size: 2.2rem; font-weight: 700; line-height: 1; }
.live-clock{ font-size: .85rem; color: #9fd49f; margin-top: .3rem; }
.live-sub{ color: rgba(255,255,255,.55); font-size: .85rem; margin-top: .25rem; }
.live-commentary{ display: flex; align-items: center; gap: 1rem; margin: .5rem 0 1rem; }
.live-commentator{ width: 5.5rem; flex: none; text-align: center; opacity: .55; transition: opacity .3s, transform .3s; }
.live-commentator .avatar-svg, .live-commentator svg{ width: 5rem; height: 5rem; display: block; margin: 0 auto; }
.live-commentator small{ display: block; color: rgba(255,255,255,.6); font-size: .72rem; }
.live-commentator.is-talking{ opacity: 1; transform: scale(1.06); }
.live-balloon{ position: relative; flex: 1; background: #f4f6f8; color: #1d232b; border-radius: 14px; padding: .65rem 1rem; min-height: 3.6rem; display: flex; flex-direction: column; justify-content: center; animation: liveBalloonIn .35s ease; }
.live-balloon small{ color: #6a7380; font-size: .72rem; }
.live-balloon::before{ content: ""; position: absolute; top: 50%; margin-top: -8px; border: 8px solid transparent; }
.live-balloon.from-left::before{ left: -15px; border-right-color: #f4f6f8; }
.live-balloon.from-right::before{ right: -15px; border-left-color: #f4f6f8; }
@keyframes liveBalloonIn{ from{ opacity: 0; transform: translateY(4px); } to{ opacity: 1; transform: none; } }
.live-pitch-wrap{ background: rgba(0,0,0,.25); border-radius: 12px; padding: .5rem; }
.live-pitch{ width: 100%; display: block; border-radius: 8px; }
.live-player text{ font-weight: 700; font-family: system-ui, sans-serif; }
.live-notebook{ background: #f3ecd8; color: #2b2418; border-radius: 6px 12px 12px 6px; box-shadow: inset 6px 0 0 #b9a77a, 0 6px 18px rgba(0,0,0,.35); min-height: 100%; display: flex; flex-direction: column; }
.live-notebook .text-white-50{ color: #7a6d55 !important; }
.live-notebook .border-secondary{ border-color: #d8ccab !important; }
.live-notebook-tabs{ display: flex; gap: .25rem; padding: .5rem .5rem 0 1rem; border-bottom: 1px solid #d8ccab; flex-wrap: wrap; }
.live-tab{ border: 0; background: transparent; color: #6b5d43; padding: .35rem .55rem; border-radius: 8px 8px 0 0; font-size: .8rem; display: flex; align-items: center; gap: .3rem; }
.live-tab.is-active{ background: #fffaf0; color: #2b2418; font-weight: 600; }
.live-notebook-page{ padding: .9rem 1rem .9rem 1.4rem; background: #fffaf0; flex: 1; border-radius: 0 0 12px 0; overflow: auto; max-height: 70vh; }
.live-notebook .btn-outline-light{ color: #2b2418; border-color: #b9a77a; }
.live-notebook .btn-outline-light:hover{ background: #efe3c4; color: #2b2418; }
.live-ticket{ background: #e3f3e3; border: 1px dashed #4c9a4c; border-radius: 10px; padding: .6rem .8rem; font-weight: 600; }
.live-fan{ display: flex; align-items: center; gap: .4rem; padding: .2rem 0; }
.live-fan.is-me{ font-weight: 600; }
.live-fan-face{ width: 2rem; height: 2rem; flex: none; }
.live-fan-face svg{ width: 100%; height: 100%; display: block; }
.live-form{ display: inline-block; width: 1.25rem; text-align: center; border-radius: 4px; margin-left: 2px; font-size: .72rem; color: #fff; }
.live-form-W{ background: #2e8b57; } .live-form-D{ background: #8a8f98; } .live-form-L{ background: #c0392b; }
.live-minute{ font-weight: 700; color: #b9f0b9; font-size: 1rem; }
/* (2026-11-12) Stoppage time: the clock stays at 45' / 90', the added minutes in light blue beside it. */
.live-added{ color: #7cc7ff; margin-left: .2rem; }
.live-kit{ display: inline-block; width: 1.6rem; vertical-align: middle; }
.live-kit svg, .kit-svg{ width: 100%; height: auto; display: block; }
.kit-card{ display: flex; gap: .75rem; flex-wrap: wrap; }
.kit-card .kit-slot{ flex: 1 1 5rem; text-align: center; background: rgba(255,255,255,.04); border-radius: 10px; padding: .5rem; cursor: pointer; border: 2px solid transparent; }
.kit-card .kit-slot.is-active{ border-color: #2aba11; }
.kit-card .kit-slot .kit-svg{ max-width: 5rem; margin: 0 auto; }
/* Phase 12A: the kit window and the fans' verdict. */
.kit-card.is-locked .kit-slot{ cursor: default; }
.kit-window{ padding: .4rem .6rem; border-radius: 8px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.7); }
.kit-window.is-open{ background: rgba(42,186,17,.12); color: #fff; }
.kit-verdict{ display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: 8px; background: rgba(255,255,255,.04); }
.kit-verdict-last{ flex: none; width: 2.6rem; text-align: center; color: rgba(255,255,255,.5); }
.kit-verdict-last .kit-svg{ width: 100%; }
.kit-colors{ display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.kit-colors label{ display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; white-space: nowrap; }
.kit-colors input[type=color]{ width: 2.2rem; height: 1.6rem; padding: 0; border: 0; background: none; }
.live-flash{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1rem; pointer-events: none; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.live-flash.is-on{ opacity: 1; transform: scale(1); }
.live-flash span{ font-size: 4rem; font-weight: 900; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.6); letter-spacing: .05em; }
.live-flash .live-crest{ width: 4.5rem; height: 4.5rem; }
/* A replay (goal / offside): the sign in the pitch's top corner while it plays. */
.live-replay{ position: absolute; top: .6rem; left: .6rem; padding: .15rem .6rem; border-radius: .35rem; background: rgba(0,0,0,.7); color: #fff; font-weight: 800; letter-spacing: .12em; font-size: .85rem; pointer-events: none; opacity: 0; transition: opacity .25s; }
.live-replay.is-on{ opacity: 1; }
/* VAR: the blue panel over the pitch — the check, then the verdict (confirmed: green edge, no goal: red). */
.live-var{ position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%) scale(.9); padding: .6rem 1.6rem; border-radius: .5rem; background: linear-gradient(135deg, #0d3b8c, #1e63d6); color: #fff; font-weight: 900; letter-spacing: .14em; font-size: 1.4rem; box-shadow: 0 6px 24px rgba(0,0,0,.45); border: 2px solid #8fb6ff; pointer-events: none; opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap; }
.live-var.is-on{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
.live-var.is-ok{ border-color: #3ddc84; }
.live-var.is-no{ border-color: #ff5252; }
/* The match chat (§20 11G): the messages with the supported side's colour, the emoji row, the unread badge. */
.live-chat-list{ max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: .35rem; padding-right: .2rem; }
.live-chat-msg{ display: flex; gap: .45rem; align-items: flex-start; padding: .3rem .45rem; border-left: 3px solid var(--side-color, #888); background: rgba(255,255,255,.04); border-radius: .3rem; font-size: .88rem; word-break: break-word; }
.live-chat-msg.is-mine{ background: rgba(255,255,255,.09); }
.live-chat-face{ width: 1.7rem; height: 1.7rem; flex: none; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.live-chat-face svg{ width: 100%; height: 100%; }
.live-chat-big{ font-size: 1.5rem; line-height: 1.2; }
.live-chat-mute{ background: none; border: 0; color: rgba(255,255,255,.4); padding: 0 .2rem; font-size: .8rem; }
.live-chat-mute:hover{ color: #fff; }
.live-chat-emojis{ display: flex; flex-wrap: wrap; gap: .15rem; }
.live-chat-emoji{ background: rgba(255,255,255,.06); border: 0; border-radius: .3rem; padding: .05rem .3rem; font-size: 1.05rem; line-height: 1.4; }
.live-chat-emoji:hover{ background: rgba(255,255,255,.16); }
.live-tab{ position: relative; }
.live-tab-badge{ position: absolute; top: -.3rem; right: -.35rem; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: .6rem; background: #e53935; color: #fff; font-size: .65rem; font-weight: 700; line-height: 1.05rem; text-align: center; }
/* Goal of the month (§20 11G): a nominee row — ▶ the clip, who and how, the vote / the votes. */
.gotm-row{ display: flex; align-items: center; gap: .5rem; padding: .35rem .2rem; border-top: 1px solid rgba(255,255,255,.07); }
.gotm-row.is-winner{ background: rgba(255,193,7,.08); border-radius: .3rem; }
/* A club name that opens that club's page (club view, for analysing opponents). */
/* Crest + name as one block, both centred on the row's middle (the crest has room for stars on top, so
   on the text baseline it looked lower than the name). */
.club-link{ cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; min-width: 0; vertical-align: middle; line-height: 1.2; }
.club-link.is-plain{ cursor: default; }
/* (A club's name inside running text — the newspaper, posts — without a crest: on the text's own line, user
   2026-11-03: it "jumped" as an inline-flex box.) */
.club-link:not(:has(.mv-crest, .hub-crest, .live-crest, .navbar-fixture-crest)){ display: inline; vertical-align: baseline; line-height: inherit; }
.club-link > .mv-crest, .club-link > .hub-crest{ flex: none; vertical-align: 0; }
.club-link-name{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-link:not(.is-plain):hover .club-link-name, .club-link:not(.is-plain):hover:not(:has(.club-link-name)){ text-decoration: underline; text-underline-offset: 2px; color: #fff; }
.hub-table td{ height: 2.1rem; }
.top-row{ min-height: 1.9rem; }
.cv-match .ha-badge{ flex: none; }
.mv-head-team > .club-link{ flex-direction: column; gap: 0; }
/* A fixture row everywhere (user 2026-10-27): home right-aligned, a little space, the time or score in a
   fixed centre column ("–" always in the middle), a little space, away left-aligned. */
.fx{ display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr); column-gap: .5rem; align-items: center; flex: 1 1 auto; min-width: 0; }
.fx-home{ min-width: 0; overflow: hidden; text-align: right; white-space: nowrap; }
.fx-away{ min-width: 0; overflow: hidden; text-align: left; white-space: nowrap; }
.fx-mid{ text-align: center; white-space: nowrap; font-weight: 600; line-height: 1.15; }
.fx-score{ display: inline-grid; grid-template-columns: 1.6em auto 1.6em; column-gap: .2em; }
.fx-score > :first-child{ text-align: right; }
.fx-score > :last-child{ text-align: left; }
.fx-pens{ display: block; font-size: .68rem; font-weight: 400; color: rgba(255,255,255,.5); }
.fx-lead{ flex: none; min-width: 4.6rem; }
.fx-extra{ flex: none; min-width: 9.5rem; text-align: right; }
.mv-row .fx-score, .briefing-score .fx-score{ grid-template-columns: 1.4em auto 1.4em; }
/* International tournaments: the tabs of one competition (tournament / qualifying / U21 / U18). */
.intl-tabs{ display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.intl-tabs .comp-tab{ background: none; border: 0; border-bottom: 2px solid transparent; color: rgba(255,255,255,.6); padding: .35rem .8rem; font-size: .85rem; font-weight: 600; }
.intl-tabs .comp-tab:hover{ color: #fff; }
.intl-tabs .comp-tab.active{ color: #fff; border-bottom-color: #f4c20d; }
.intl-group{ overflow: hidden; }
/* (User 2026-11-04) "Attend" where the score goes — small, inside the fixture's centre column. */
.intl-attend{ padding: 0 .45rem; font-size: .7rem; line-height: 1.35rem; font-weight: 600; border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.intl-attend:hover{ background: rgba(244,194,13,.18); border-color: #f4c20d; color: #fff; }
.intl-attend.is-on{ background: #f4c20d; border-color: #f4c20d; color: #1a1a1a; }
.intl-attend.is-on:hover{ background: #ffd84a; color: #1a1a1a; }
.top-row.intl-mine{ background: rgba(244,194,13,.08); border-radius: 6px; }

/* The navbar's tournament banner: confetti over the host's party colours, a trophy, the name. */
.navbar-tournament{ position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .95rem .35rem .75rem; border-radius: 999px; overflow: hidden; color: #fff; text-decoration: none;
    background: linear-gradient(110deg, #c8102e, #f4c20d 35%, #1e9e52 65%, #1f5fd1); background-size: 220% 100%; animation: tour-shimmer 7s ease-in-out infinite alternate; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 4px 16px rgba(0,0,0,.35); }
.navbar-tournament:hover{ color: #fff; filter: brightness(1.1); }
.navbar-tournament > .bi{ font-size: 1.35rem; color: #fff6c9; text-shadow: 0 1px 3px rgba(0,0,0,.5); position: relative; }
.navbar-tournament-text{ display: flex; flex-direction: column; line-height: 1.1; position: relative; text-shadow: 0 1px 3px rgba(0,0,0,.55); white-space: nowrap; }
.navbar-tournament-text b{ font-size: .95rem; letter-spacing: .02em; }
.navbar-tournament-text small{ font-size: .7rem; opacity: .92; }
.navbar-tournament-confetti{ position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: radial-gradient(circle, var(--tnh-1, #fff) 1.2px, transparent 1.8px), radial-gradient(circle, var(--tnh-2, #ffe066) 1.2px, transparent 1.8px), radial-gradient(circle, var(--tnh-3, #ff6b9a) 1.2px, transparent 1.8px);
    background-size: 22px 18px, 31px 23px, 27px 29px; background-position: 0 0, 9px 7px, 15px 3px; animation: tour-confetti 6s linear infinite; }
.navbar-tournament{ border: 0; }
/* (The navbar's middle lets clicks through — .navbar-next-event; the tournament's button and pop-up take them.) */
.navbar-tour-zone, .navbar-tour-small, .navbar-tournament, .navbar-tournament-menu{ pointer-events: auto; }
.navbar-tournament.dropdown-toggle::after{ position: relative; margin-left: .2rem; }
.navbar-tournament.is-small{ padding: .3rem .55rem; }
.navbar-tournament.is-small > .bi{ font-size: 1.05rem; }
/* Beside a countdown: the small "Go to" just right of the fixture. */
.navbar-tour-small{ position: absolute; left: calc(100% + .75rem); top: 50%; transform: translateY(-50%); }
/* Nothing to count down: "Go to the …" and the tournament's next match under it. */
.navbar-tour-zone{ display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.navbar-tour-next{ color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.7); white-space: nowrap; }
.navbar-tour-next #next-event-timer{ font-variant-numeric: tabular-nums; }
.navbar-tournament-menu .dropdown-item{ display: flex; align-items: center; gap: .5rem; }
.nav-tour-test{ font-size: .75rem; padding: .15rem .55rem; white-space: nowrap; }
.navbar-tournament-trophy{ display: inline-block; width: 1.3rem; height: 1.75rem; flex: none; }
.navbar-tournament-trophy svg{ width: 100%; height: 100%; display: block; }

/* (User 2026-11-05: "really let go on the navbar") The whole navbar during a tournament: moving stripes in
   the championship's colours (--tn-1…4, navbar.js), bubbles in the host's (--tnh-*), white diagonal ribbons,
   the host's flag as the line under it. */
#navbar-container nav.is-tournament{ background:
        radial-gradient(circle, var(--tnh-1, #fff) 1.3px, transparent 2px),
        radial-gradient(circle, var(--tnh-2, #fff096) 1.3px, transparent 2.1px),
        linear-gradient(rgba(10,14,22,.36), rgba(10,14,22,.2)),
        repeating-linear-gradient(115deg, rgba(255,255,255,.16) 0 10px, transparent 10px 46px),
        linear-gradient(100deg, var(--tn-1, #e63946) 0%, var(--tn-2, #f4c20d) 26%, var(--tn-3, #2a9d8f) 52%, var(--tn-4, #3a86ff) 76%, var(--tn-1, #e63946) 100%) !important;
    background-size: 37px 23px, 53px 31px, 100% 100%, 220px 100%, 300% 100% !important; animation: tn-stripes 18s linear infinite; box-shadow: 0 4px 18px rgba(0,0,0,.45); }
#navbar-container nav.is-tournament .navbar-brand, #navbar-container nav.is-tournament .text-light, #navbar-container nav.is-tournament .nav-link{ text-shadow: 0 1px 4px rgba(0,0,0,.7); }
#navbar-container nav.is-tournament .navbar-accent-line{ display: none; }
#navbar-container nav.is-tournament .navbar-next-event-timer, #navbar-container nav.is-tournament .navbar-fixture-name{ text-shadow: 0 1px 4px rgba(0,0,0,.8); }
#navbar-container nav.is-tournament .navbar-tournament{ background: rgba(10,14,22,.55); box-shadow: 0 0 0 2px #fff, 0 4px 16px rgba(0,0,0,.4); animation: tn-pulse 2.4s ease-in-out infinite; }
/* (The navbar's middle — and its pop-up — above the flag line.) */
#navbar-container nav.is-tournament .navbar-next-event{ z-index: 3; }
/* (User 2026-11-05) The accent line in the host's flag (navbar.js flagLineBackground): a horizontal
   tricolour is three thin stacked bands, so it's a little taller than the usual line. */
.navbar-flagline{ z-index: 1; position: absolute !important; left: 0; right: 0; bottom: 0; height: 6px; display: flex; pointer-events: none; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.navbar-flagline span{ flex: 1 1 0; }
.navbar-flagline span + span{ border-left: 2px solid rgba(10,14,22,.8); }
@keyframes tn-stripes{ from{ background-position: 0 0, 11px 7px, 0 0, 0 0, 0% 50%; } to{ background-position: 74px 92px, 117px 131px, 0 0, 220px 0, 300% 50%; } }
@keyframes tn-pulse{ 0%, 100%{ transform: scale(1); } 50%{ transform: scale(1.04); } }

/* The tournament page's own navbar and parts. */
.tour-navbar{ background: linear-gradient(90deg, color-mix(in srgb, var(--tour-1) 35%, rgba(255,255,255,.06)), color-mix(in srgb, var(--tour-3) 30%, rgba(255,255,255,.06))); }
.tour-navbar .career-nav-items li a.active{ background: var(--tour-2); color: #111; }
.tour-select{ background-color: #2a2f3a; color: #fff; border-color: rgba(255,255,255,.2); }
.tour-fav-badge{ display: inline-block; width: 6.5rem; height: 6.5rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.tour-fav-badge svg{ width: 100%; height: 100%; }
.tour-fav-badge.is-out{ filter: grayscale(1) opacity(.45); }
.tour-fav-name{ font-size: 1.25rem; font-weight: 800; margin-top: .25rem; }
.tour-fav-card{ border-top: 3px solid var(--tour-2) !important; }
.tour-timer{ font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: .35rem; }
.tour-champions{ font-size: 1.2rem; font-weight: 800; color: #f4c20d; margin-top: .3rem; }
.tour-headline{ padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 600; font-size: .9rem; }
.tour-bracket{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 991px){ .tour-bracket{ grid-template-columns: 1fr; } }
.tour-paper-title{ font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.tour-lead{ font-family: "Playfair Display", Georgia, serif; font-weight: 700; }
.tour-story{ padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.tour-post{ padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.tour-post.is-me{ background: rgba(244,194,13,.07); }
.tour-post-face{ display: inline-flex; width: 1.8rem; height: 1.8rem; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; }
.tour-post-face svg{ width: 100%; height: 100%; }

/* The draw (user 2026-11-05): a pot's balls jiggling in a glass bowl, one picked, opened, flying to its slot. */
.tour-draw-card{ border-top: 3px solid var(--tour-2) !important; padding: 1.4rem 1rem; }
.tour-draw-balls{ display: flex; justify-content: center; gap: .4rem; margin-bottom: .6rem; }
.tour-draw-balls span{ width: 1.3rem; height: 1.3rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--tour-2) 45%, var(--tour-1)); animation: draw-jiggle .9s ease-in-out infinite alternate; }
.tour-draw-balls span:nth-child(2n){ animation-delay: -.4s; }
.tour-draw-balls span:nth-child(3n){ animation-delay: -.7s; }
.draw-overlay{ position: fixed; inset: 0; z-index: 3000; overflow: auto; color: #fff; padding: 1.25rem;
    background: radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--tour-1) 60%, transparent), transparent 55%), radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--tour-3) 65%, transparent), transparent 60%), #0d1220; }
.draw-overlay::after{ content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35;
    background-image: radial-gradient(circle, var(--host-1, #fff) 1.6px, transparent 2.4px), radial-gradient(circle, var(--host-2, var(--tour-2)) 1.8px, transparent 2.6px);
    background-size: 52px 44px, 71px 63px; animation: tour-confetti-big 16s linear infinite; }
/* The draw (tournament.js trPlayDraw — user 2026-11-06, after the Ardennen game): the groups at the top,
   four glass bowls below (only the active one tumbles — trDrawPots), the ball's reveal in the middle. */
.draw-stage{ position: relative; z-index: 1; max-width: 1300px; margin: 0 auto; }
.draw-head{ display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.draw-status{ color: rgba(255,255,255,.7); font-size: .9rem; min-height: 1.4em; }
.draw-groups{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
@media (max-width: 767px){ .draw-groups{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.draw-group{ background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); border-top: 3px solid var(--tour-2); border-radius: 10px; padding: .5rem; transition: box-shadow .3s, border-color .3s; }
.draw-group.is-targeted{ border-color: var(--tour-2); box-shadow: 0 0 28px color-mix(in srgb, var(--tour-2) 60%, transparent); }
.draw-pots{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 767px){ .draw-pots{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.draw-pot{ text-align: center; opacity: .55; transition: opacity .4s, transform .4s; }
.draw-pot.is-active{ opacity: 1; transform: scale(1.05); }
.draw-pot.is-done{ opacity: .3; }
.draw-pot-label{ font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.draw-pot.is-active .draw-pot-label{ color: var(--tour-2); }
.draw-bowl{ position: relative; width: min(11rem, 100%); aspect-ratio: 1; margin: .4rem auto 0; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.1), rgba(0,0,0,.45) 70%);
    border: 3px solid rgba(255,255,255,.35); box-shadow: inset 0 0 30px rgba(255,255,255,.15), 0 8px 24px rgba(0,0,0,.4); transition: box-shadow .4s, border-color .4s; }
.draw-pot.is-active .draw-bowl{ border-color: var(--tour-2); box-shadow: inset 0 0 30px rgba(255,255,255,.2), 0 0 40px color-mix(in srgb, var(--tour-2) 55%, transparent); }
/* (The glass shine.) */
.draw-bowl::after{ content: ""; position: absolute; top: 8%; left: 14%; width: 30%; height: 22%; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.35), transparent); transform: rotate(-30deg); pointer-events: none; z-index: 2; }
.draw-bowl-balls{ position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.draw-ball{ position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform;
    background: radial-gradient(circle at 35% 30%, #fff 0%, #eef0f4 22%, var(--tour-2) 62%, var(--tour-1) 100%); box-shadow: inset -3px -4px 8px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.4); }
.draw-bowl-stand{ width: 45%; height: 14px; margin: -3px auto .5rem; background: linear-gradient(#cfd8e4, #6b7686); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.draw-pot-list{ display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem .5rem; font-size: .72rem; }
.draw-pot-nation{ transition: opacity .3s; }
.draw-pot-nation.is-drawn{ opacity: .3; text-decoration: line-through; }
/* The reveal: the ball rises to the middle, opens, the badge flies to its slot. */
.draw-reveal{ position: fixed; inset: 0; z-index: 3002; display: none; pointer-events: none; }
.draw-reveal.is-on{ display: block; }
.draw-reveal-backdrop{ position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle, rgba(8,14,30,.8), rgba(0,0,0,.93)); }
.draw-reveal-center{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 0 16px; }
.draw-reveal-ball{ position: relative; width: min(38vh, 300px); height: min(38vh, 300px); }
.draw-reveal-badge{ position: absolute; inset: 10%; display: flex; align-items: center; justify-content: center; opacity: 0; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--tour-2) 70%, transparent)); }
.draw-reveal-badge svg{ width: 100%; height: 100%; }
.draw-ball-half{ position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden; }
.draw-ball-half.is-top{ top: 0; }
.draw-ball-half.is-bottom{ top: 50%; }
.draw-ball-skin{ position: absolute; left: 0; width: 100%; height: 200%; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0%, #eef0f4 22%, var(--tour-2) 62%, var(--tour-1) 100%); box-shadow: inset -10px -14px 30px rgba(0,0,0,.3); }
.draw-ball-half.is-top .draw-ball-skin{ top: 0; }
.draw-ball-half.is-bottom .draw-ball-skin{ top: -100%; }
/* (The seam where the ball opens.) */
.draw-ball-half.is-top::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(40,50,70,.45); }
.draw-reveal-flash{ position: absolute; inset: 0; border-radius: 50%; border: 6px solid var(--tour-2); box-shadow: 0 0 80px var(--tour-2); opacity: 0; }
.draw-reveal-name{ font-size: clamp(1.8rem, 5vw, 3.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; text-align: center; text-shadow: 0 0 30px color-mix(in srgb, var(--tour-2) 70%, transparent); opacity: 0; }
.draw-reveal-group{ font-size: clamp(1rem, 2.2vw, 1.6rem); color: var(--tour-2); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: 0; }
.draw-group-name{ font-weight: 800; font-size: .85rem; margin-bottom: .35rem; }
.draw-slot{ display: flex; align-items: center; gap: .35rem; height: 1.9rem; padding: 0 .4rem; margin-bottom: .25rem; border-radius: 6px; border: 1px dashed rgba(255,255,255,.25); font-size: .8rem; min-width: 0; }
.draw-slot-n{ flex: none; width: 1.5rem; color: rgba(255,255,255,.45); font-size: .7rem; font-weight: 700; }
.draw-slot.is-filled{ border-style: solid; border-color: var(--tour-2); background: color-mix(in srgb, var(--tour-1) 35%, transparent); }
.draw-slot.is-new{ animation: draw-pop .9s ease-out; }
@keyframes draw-pop{ 0%{ transform: scale(1.15); box-shadow: 0 0 20px var(--tour-2); } 100%{ transform: scale(1); box-shadow: none; } }
.draw-done{ text-align: center; margin-top: 1.25rem; }
/* The cups' draws (potdraw.js, user 2026-11-10): the pairs at the top, one big bowl below. */
.draw-pairs{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .9rem; margin-bottom: 1.25rem; }
@media (min-width: 1200px){ .draw-pairs{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px){ .draw-pairs{ grid-template-columns: 1fr; } }
.draw-pair{ display: flex; align-items: center; gap: .4rem; min-width: 0; }
.draw-pair .draw-slot{ flex: 1 1 0; margin-bottom: 0; }
.draw-pair-vs{ flex: none; color: rgba(255,255,255,.45); font-size: .7rem; font-weight: 700; }
.draw-pair.is-mine .draw-slot, .draw-slot.is-mine{ box-shadow: 0 0 0 1px #f4c20d; }
.draw-slot-crest{ flex: none; display: inline-block; width: 1.3rem; height: 1.3rem; }
.draw-slot-crest svg{ width: 100%; height: 100%; }
.draw-pots.is-single{ grid-template-columns: minmax(0, 1fr); }
.draw-pots.is-single .draw-bowl{ width: min(15rem, 100%); }
/* A round whose draw you haven't seen: blurred, with Watch / Skip over it. */
.draw-gate{ position: relative; min-height: 7rem; }
.draw-gate-blur{ filter: blur(7px); pointer-events: none; user-select: none; }
.draw-gate-over{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; background: rgba(13,18,32,.35); border-radius: 8px; }
/* The favourite picker: a small pop-up, the nations by their odds to win. */
.fav-picker{ position: fixed; inset: 0; z-index: 2500; background: rgba(5,8,14,.65); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.fav-picker-box{ width: min(26rem, 100%); max-height: min(40rem, 90vh); display: flex; flex-direction: column; background: #1b2130; color: #fff; border-radius: 14px; padding: 1rem;
    border-top: 4px solid var(--tour-1, #d4a017); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.fav-pick-list{ overflow-y: auto; margin-top: .25rem; padding-right: .2rem; }
.fav-pick-row{ display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: .35rem .5rem; color: #fff; }
.fav-pick-row:hover{ background: rgba(255,255,255,.08); }
.fav-pick-row.is-on{ background: color-mix(in srgb, var(--tour-1, #d4a017) 30%, transparent); }
.fav-pick-row.is-out{ opacity: .45; }
.fav-pick-rank{ width: 1.3rem; flex: none; text-align: right; color: rgba(255,255,255,.45); font-size: .8rem; }
.fav-pick-badge{ width: 2rem; height: 2rem; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.fav-pick-badge svg{ width: 100%; height: 100%; }
.fav-pick-name{ display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.2; }
.fav-pick-name small{ color: rgba(255,255,255,.5); font-size: .74rem; }
.fav-pick-check{ color: var(--tour-2, #f5e6a8); flex: none; }
.draw-host{ margin-left: auto; flex: none; font-size: .62rem; font-weight: 800; text-transform: uppercase; padding: 0 .35rem; border-radius: 999px; background: var(--tour-2); color: #111; }
.navbar-fixture-link{ display: contents; color: inherit; text-decoration: none; }
.navbar-fixture-link:hover .navbar-fixture-name{ text-decoration: underline; text-underline-offset: 2px; }
@keyframes tour-shimmer{ from{ background-position: 0% 50%; } to{ background-position: 100% 50%; } }
@keyframes tour-confetti{ from{ background-position: 0 0, 9px 7px, 15px 3px; } to{ background-position: 0 36px, 9px 53px, 15px 61px; } }

/* The tournament page: tinted in the host's colours (--tour-1/2/3, set by tournament.js), bunting in the
   nations' colours, the trophy — the party feel of a big tournament. */
/* (The defaults on the page's container — tournament.js sets the championship's own there; on .tour-page
   itself they overrode those: the same colours for every tournament.) */
#tournamentPage{ --tour-1: #d4a017; --tour-2: #f5e6a8; --tour-3: #8a6d0b; }
.tour-hero{ position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 1rem; padding: 2.4rem 1.5rem 1.4rem;
    background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--tour-1) 55%, transparent), transparent 55%), radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--tour-3) 50%, transparent), transparent 55%),
        radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--tour-2) 35%, transparent), transparent 60%), #141a24;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.tour-hero::after{ content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
    background-image: radial-gradient(circle, var(--host-1, #fff) 1.6px, transparent 2.4px), radial-gradient(circle, var(--host-2, var(--tour-2)) 1.8px, transparent 2.6px), radial-gradient(circle, var(--host-3, #ffd84a) 1.6px, transparent 2.4px);
    background-size: 46px 38px, 63px 51px, 57px 67px; background-position: 0 0, 20px 13px, 33px 29px; animation: tour-confetti-big 14s linear infinite; }
@keyframes tour-confetti-big{ from{ background-position: 0 0, 20px 13px, 33px 29px; } to{ background-position: 0 76px, 20px 115px, 33px 163px; } }
.tour-flagline{ position: absolute; top: 0; left: 0; right: 0; height: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
/* The World Cup (user 2026-11-11: "something extra — it's the World Cup"): a gold rim with light running round
   it, the title in shining gold, the trophy glowing. */
.tour-hero.is-wc{ box-shadow: inset 0 0 0 2px rgba(244,196,48,.55), 0 0 40px rgba(212,160,23,.25); }
.tour-hero.is-wc::before{ content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 16px; padding: 2px;
    background: linear-gradient(110deg, transparent 30%, rgba(255,236,160,.95) 45%, transparent 60%) 0 0 / 250% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: wc-rim 4.5s linear infinite; }
@keyframes wc-rim{ from{ background-position: 120% 0; } to{ background-position: -120% 0; } }
.tour-hero.is-wc .tour-title{ background: linear-gradient(100deg, #fff6d0 0%, #f4c430 35%, #fff2b0 50%, #d4a017 65%, #fff6d0 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); animation: wc-shine 6s linear infinite; font-size: clamp(1.8rem, 4vw, 2.6rem); }
@keyframes wc-shine{ from{ background-position: 100% 0; } to{ background-position: -120% 0; } }
.tour-hero.is-wc .tour-trophy{ width: 7rem; height: 7rem; filter: drop-shadow(0 0 18px rgba(244,196,48,.65)) drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
@media (prefers-reduced-motion: reduce){ .tour-hero.is-wc::before, .tour-hero.is-wc .tour-title{ animation: none; } }
.tour-hero-body{ position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.tour-trophy{ width: 5.5rem; height: 5.5rem; flex: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.tour-trophy svg{ width: 100%; height: 100%; }
.tour-kicker{ font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.75); }
.tour-title{ font-weight: 800; margin: .1rem 0 .25rem; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.tour-sub{ font-size: .9rem; color: rgba(255,255,255,.88); }
.tour-mine{ margin-left: auto; min-width: 18rem; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .5rem .75rem; }
.tour-tabs{ display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tour-tab{ border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 600; }
.tour-tab:hover{ color: #fff; border-color: var(--tour-2); }
.tour-tab.active{ color: #111; background: var(--tour-2); border-color: var(--tour-2); }
.tour-body .creation-card{ border-top: 3px solid color-mix(in srgb, var(--tour-1) 70%, transparent); }
.tour-test{ margin-top: 1.5rem; opacity: .85; }
@media (prefers-reduced-motion: reduce){ .navbar-tournament, .navbar-tournament-confetti, .tour-hero::after, #navbar-container nav.is-tournament{ animation: none !important; } }
/* (§21 12I) Travel: the trip planner (a pop-up like the favourite picker), trips and towns in the agenda,
   the shop's town picker for a home. */
.trip-box{ width: min(34rem, 100%); max-height: min(46rem, 92vh); }
.trip-body{ overflow-y: auto; padding-right: .25rem; }
.trip-step{ font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: .3rem; }
.trip-quick .fav-pick-row i.bi, .trip-modes .fav-pick-row i.bi, .trip-stays .fav-pick-row i.bi:first-child{ width: 1.3rem; flex: none; text-align: center; }
.trip-towns{ display: flex; flex-wrap: wrap; gap: .3rem; }
.trip-towns .btn{ font-size: .75rem; padding: .1rem .5rem; }
.trip-country{ max-width: 12rem; }
.fav-pick-row:disabled{ cursor: not-allowed; }
.tr-cell.is-trip{ background: repeating-linear-gradient(135deg, rgba(58,134,255,.16) 0 8px, rgba(58,134,255,.08) 8px 16px); font-size: .78rem; }
.ow-where-row th{ padding-top: 0; padding-bottom: .35rem; }
.ow-where{ font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 7rem; }
.sh-home-picker{ background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: .5rem; }
/* (User 2026-11-05) The admin's national team badges: a grid to pick one, the editor above it. */
.admin-badge-search{ max-width: 16rem; background-color: #2a2f3a; color: #fff; border-color: rgba(255,255,255,.2); }
/* The admin's dashboards (2026-11-10): dark inputs and dropdowns. */
.admin-select, .admin-input{ background-color: #2a2f3a; color: #fff; border-color: rgba(255,255,255,.2); }
.admin-select option{ background: #2a2f3a; color: #fff; }
.admin-input{ width: 5.5rem; }
.admin-input::placeholder{ color: rgba(255,255,255,.4); }
.admin-badge-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; max-height: 28rem; overflow-y: auto; padding-right: .25rem; }
.admin-badge{ display: flex; flex-direction: column; align-items: center; gap: .2rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: .4rem .25rem; color: #fff; min-width: 0; }
.admin-badge:hover{ border-color: rgba(255,255,255,.45); }
.admin-badge.is-changed{ border-color: #f4c20d; }
/* (A nation players come from, its kits not checked yet: a red "!" in the corner.) */
.admin-badge{ position: relative; }
.admin-badge-check{ position: absolute; top: .2rem; right: .2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #dc3545; color: #fff; font-weight: 800; font-size: .75rem; line-height: 1.15rem; text-align: center; }
.admin-badge small{ font-size: .68rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-badge-svg{ width: 2.8rem; height: 2.8rem; }
.admin-badge-svg svg, .admin-badge-big svg{ width: 100%; height: 100%; }
.admin-badge-big{ width: 7rem; height: 7rem; }
.admin-badge-editor{ background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: .75rem 1rem; }
/* A record list opened in full: it scrolls inside its card. */
.rc-full-list{ max-height: 26rem; overflow-y: auto; padding-right: .25rem; }
.club-link .live-team{ cursor: pointer; }
.mv-var{ display: inline-block; padding: 0 .3rem; border-radius: .2rem; background: #1e63d6; color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .05em; vertical-align: middle; }
.live-territory{ display: flex; height: 1.2rem; border-radius: 6px; overflow: hidden; margin-top: .5rem; font-size: .7rem; }
.live-territory span{ display: flex; align-items: center; justify-content: center; color: #fff; transition: width .8s; }
.live-territory span:nth-child(1){ background: #2c5f8a; } .live-territory span:nth-child(2){ background: #4f6f4f; } .live-territory span:nth-child(3){ background: #8a3b2c; }
/* (User 2026-10-22: everything on one screen — compact header and commentators, the pitch takes the rest of
   the height, the notebook a drawer over the pitch.) */
.live-page .live-header{ margin-bottom: .25rem; }
.live-page .live-team{ font-size: 1.1rem; }
.live-page .live-crest{ width: 2.2rem; height: 2.2rem; }
.live-page .live-score-text{ font-size: 1.7rem; }
.live-page .live-score-mid{ min-width: 7rem; }
.live-page .live-clock{ margin-top: .1rem; }
.live-page .live-sub{ font-size: .75rem; margin-top: 0; }
.live-page .live-commentary{ gap: .6rem; margin: .25rem 0 .5rem; }
.live-page .live-commentator{ width: 3.6rem; }
.live-page .live-commentator .avatar-svg, .live-page .live-commentator svg{ width: 3.2rem; height: 3.2rem; }
.live-page .live-commentator small{ font-size: .65rem; }
.live-page .live-balloon{ min-height: 2.8rem; padding: .4rem .8rem; font-size: .92rem; border: 3px solid transparent; }
.live-page .live-balloon small .live-crest{ width: 1rem; height: 1rem; }
.live-balloon.has-side{ border-color: var(--side-color); box-shadow: inset 0 0 0 2px var(--side-second); }
.live-balloon.has-side.from-left::before{ border-right-color: var(--side-color); }
.live-balloon.has-side.from-right::before{ border-left-color: var(--side-color); }
.live-field{ position: relative; }
/* The line-ups beside the pitch: home left (… rating next to the pitch), away right (mirrored). */
.live-board{ display: flex; gap: .6rem; align-items: flex-start; }
.live-center{ flex: 0 1 auto; min-width: 0; }
.live-board .live-pitch{ height: calc(100vh - 22.5rem); max-height: none; width: auto; max-width: 100%; }
.live-squad{ flex: 1 1 0; min-width: 0; margin-top: 1.6rem; max-height: calc(100vh - 21rem); overflow-y: auto; font-size: clamp(.62rem, 1.5vh, .82rem); }
.sq-row{ display: flex; align-items: center; gap: .35rem; padding: .08rem .25rem; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
.sq-row.is-dim{ opacity: .42; }
.sq-no{ width: 1.4rem; flex: none; text-align: center; color: rgba(255,255,255,.55); font-weight: 600; }
.sq-name{ flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sq-marks{ flex: none; display: flex; gap: .3rem; }
.sq-ev{ display: inline-flex; align-items: center; gap: .1rem; }
.sq-ev small{ color: rgba(255,255,255,.55); font-size: .85em; }
.sq-ev .mv-card{ margin: 0 .1rem 0 0; }
.sq-assist{ color: #ff5b5b; font-weight: 800; }
.sq-in{ color: #3fb950; font-weight: 700; } .sq-out{ color: #f0883e; font-weight: 700; }
.sq-injury{ color: #ff3b3b; font-weight: 900; font-size: 1.1em; line-height: 1; margin-right: .1rem; }
.sq-row.is-dim .sq-injury{ opacity: 1; filter: saturate(1.4); }
.sq-rt{ width: 2.2rem; flex: none; text-align: center; font-weight: 700; border-radius: 4px; background: rgba(255,255,255,.07); }
.sq-rt:empty{ background: none; }
.sq-rt.is-good{ background: #2e8b57; } .sq-rt.is-poor{ background: #a33a2c; }
.sq-split{ height: .5rem; border-bottom: 1px dashed rgba(255,255,255,.18); margin-bottom: .2rem; }
.live-squad.is-away .sq-row{ flex-direction: row-reverse; text-align: right; }
.live-squad.is-away .sq-marks{ flex-direction: row-reverse; }
@media (max-width: 1100px){ .live-squad{ display: none; } .live-board .live-pitch{ height: auto; width: 100%; max-height: calc(100vh - 22.5rem); } }
.live-page .live-pitch-wrap{ padding: .35rem .35rem .35rem .35rem; padding-right: 2.6rem; }
.live-page .live-pitch{ max-height: calc(100vh - 22.5rem); width: 100%; }
.live-page .live-territory{ height: 1rem; margin-top: .3rem; font-size: .65rem; }
.live-drawer-tabs{ position: absolute; top: .4rem; right: .35rem; display: flex; flex-direction: column; gap: .3rem; z-index: 6; }
.live-drawer-tabs .live-tab{ width: 2rem; height: 2rem; padding: 0; border-radius: 8px; justify-content: center; background: #f3ecd8; color: #6b5d43; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.live-drawer-tabs .live-tab.is-active{ background: #fffaf0; color: #2b2418; outline: 2px solid #2aba11; }
.live-drawer{ position: absolute; top: .4rem; right: 2.8rem; bottom: .4rem; width: min(26rem, calc(100% - 3.5rem)); z-index: 5; transform: translateX(12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; min-height: 0; }
.live-drawer.is-open{ transform: none; opacity: 1; pointer-events: auto; }
.live-drawer-head{ display: flex; align-items: center; justify-content: space-between; padding: .5rem .8rem .4rem 1.2rem; border-bottom: 1px solid #d8ccab; }
.live-drawer .live-notebook-page{ max-height: none; flex: 1; overflow: auto; }
@media (max-width: 767px){ .live-team{ font-size: 1rem; } .live-score-text{ font-size: 1.6rem; } .live-commentator{ width: 3.5rem; } .live-commentator svg{ width: 3.2rem; height: 3.2rem; } }
/* ── (2026-11-12, §23) The legacy score: the achievement pop-up, the monthly league, the achievements ── */
.ach-popup-backdrop{ position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: achFade .25s ease-out; }
.ach-popup{ position: relative; display: flex; flex-direction: column; max-height: calc(100vh - 32px); background: #1d2230; border: 1px solid rgba(244,194,13,.55); border-radius: 14px; padding: 1.2rem 1.3rem; width: 100%; max-width: 26rem; color: #fff; text-align: center; box-shadow: 0 0 40px rgba(244,194,13,.25); animation: achPop .35s cubic-bezier(.2,1.4,.4,1); }
/* (The list scrolls when there are many; the title and the buttons stay in view.) */
.ach-popup-list{ flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: .25rem; }
.ach-popup .flex-none{ flex: none; }
.ach-popup-close{ position: absolute; top: .7rem; right: .7rem; }
.ach-popup-title{ font-weight: 800; font-size: 1.15rem; color: #f4c20d; margin-bottom: .8rem; }
.ach-popup-item{ display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 10px; background: rgba(255,255,255,.05); margin-bottom: .45rem; }
.ach-popup-icon{ font-size: 1.6rem; flex: none; }
.ach-popup-points{ font-weight: 700; color: #7ee787; flex: none; }
@keyframes achFade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes achPop{ from{ transform: scale(.7); opacity: 0; } to{ transform: scale(1); opacity: 1; } }
/* Tier colours (pop-up and achievements). */
.is-starter .ach-popup-icon, .lg-ach.is-starter .lg-ach-icon{ color: #9ad1ff; }
.is-bronze .ach-popup-icon, .lg-ach.is-bronze .lg-ach-icon{ color: #cd7f32; }
.is-silver .ach-popup-icon, .lg-ach.is-silver .lg-ach-icon{ color: #c0c7d1; }
.is-gold .ach-popup-icon, .lg-ach.is-gold .lg-ach-icon{ color: #f4c20d; }
.is-platinum .ach-popup-icon, .lg-ach.is-platinum .lg-ach-icon{ color: #8fe3e0; }
.is-diamond .ach-popup-icon, .lg-ach.is-diamond .lg-ach-icon{ color: #b9a4ff; }
.lg-league{ display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 999px; font-size: .85rem; background: rgba(255,255,255,.08); }
.lg-league.is-bronze{ color: #e0a060; } .lg-league.is-silver{ color: #d4dae2; } .lg-league.is-gold{ color: #f4c20d; } .lg-league.is-platinum{ color: #8fe3e0; } .lg-league.is-diamond{ color: #b9a4ff; }
.lg-table{ table-layout: fixed; }
.lg-table .lg-pos{ width: 2.2rem; color: rgba(255,255,255,.6); }
.lg-table td:last-child{ width: 5.5rem; }
.lg-table tr.is-me td{ background: rgba(63,185,80,.16); }
.lg-table tr.is-up td.lg-pos{ color: #7ee787; }
.lg-table tr.is-down td.lg-pos{ color: #ff7b72; }
.lg-point{ display: flex; align-items: center; gap: .5rem; font-size: .85rem; padding: .15rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.lg-point-value{ color: #7ee787; font-weight: 600; flex: none; }
.lg-ach-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .6rem; }
.lg-ach{ display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .7rem; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); opacity: .6; }
.lg-ach.is-earned{ opacity: 1; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.lg-ach.is-hidden{ opacity: .45; cursor: help; }
.lg-ach-icon{ font-size: 1.5rem; flex: none; line-height: 1.2; }
.lg-ach-points{ font-weight: 700; font-size: .85rem; color: #f4c20d; flex: none; }
.lg-progress{ height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); margin: .3rem 0 .1rem; overflow: hidden; }
.lg-progress span{ display: block; height: 100%; background: #3fb950; }

/* ── (2026-11-12) The home page's header: the account's buttons · avatar, name, score, ranks · this month's league ── */
.home-side-buttons{ display: flex; flex-direction: column; gap: .5rem; }
.home-side-button{ display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; font-weight: 600; }
.home-side-button:hover{ background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.home-side-button i{ font-size: 1.2rem; }
.home-side-count{ margin-left: auto; font-weight: 400; color: rgba(255,255,255,.55); }
.home-avatar{ width: 96px; height: 96px; margin: 0 auto .4rem; }
.home-avatar a{ display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.18); }
.home-avatar svg{ width: 100%; height: 100%; }
.home-avatar-empty{ display: flex !important; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: 2rem; text-decoration: none; }
.home-avatar-empty:hover{ color: #fff; }
.lg-league-card .lg-rules{ font-size: .72rem; }
@media (max-width: 991.98px){ .home-side-buttons{ flex-direction: row; } .home-side-button{ flex: 1; justify-content: center; } }
/* The Account page. */
.account-input{ background-color: #2a2f3a; color: #fff; border-color: rgba(255,255,255,.2); }
.account-input:focus{ background-color: #2a2f3a; color: #fff; }
.account-input::placeholder{ color: rgba(255,255,255,.45); }
.account-page .avatar-preview{ width: 160px; height: 160px; }
/* (2026-11-12) The home page's boxes that open something: the achievements page, a ranking's pop-up. */
.dashboard-info-box.is-clickable{ cursor: pointer; transition: border-color .15s, background-color .15s; }
.dashboard-info-box.is-clickable:hover{ border-color: rgba(255,255,255,.4); background-color: rgba(255,255,255,.08); }
.lg-tier-bronze{ color: #e0a060; } .lg-tier-silver{ color: #d4dae2; } .lg-tier-gold{ color: #f4c20d; } .lg-tier-platinum{ color: #8fe3e0; } .lg-tier-diamond{ color: #b9a4ff; }
.navbar-account-link{ color: inherit; text-decoration: none; }
.navbar-account-link:hover{ text-decoration: underline; text-underline-offset: 2px; color: #fff; }
/* (2026-11-12) A little more room between the navbar and your name; the avatar between the name and the score. */
.home-top{ padding-top: 2.75rem !important; }
.home-top .home-avatar{ margin-bottom: .6rem; }
/* (2026-11-12) The Achievements and Account pages: more room under the navbar than Bootstrap's mt-5 (3rem) gives. */
.page-top-gap{ margin-top: 5rem; }
/* (2026-11-12) The Achievements page's filters and each achievement's tier · sport · career line. */
.lg-filter{ width: auto; min-width: 7.5rem; }
.lg-ach-tag{ display: inline-block; margin-top: .25rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.45); }
/* (2026-11-12) The home page's boxes a little lower, so the careers come up: less padding, smaller icons, each text
   on one line (a long one ends in "…" — the pop-up shows it all). Only on the home page. */
.home-top .dashboard-info-box{ padding: 5px 12px; gap: .75rem !important; }
.home-top .dashboard-globe-icon{ width: 36px; height: 30px; line-height: 30px; font-size: 1.3rem; }
.home-top .dashboard-flag-icon{ width: 30px; height: 22px; }
.home-top .dashboard-info-box .text-start{ min-width: 0; }
.home-top .dashboard-info-box small, .home-top .dashboard-info-box p{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-top .dashboard-info-box small{ font-size: .75rem; line-height: 1.15; }
.home-top .dashboard-info-box p{ font-size: .95rem; line-height: 1.25; }
/* (2026-11-12) The home page's boxes: icon and text centred in the box. */
.home-top .dashboard-info-box{ justify-content: center; }
/* (2026-11-12) The legacy score stands out a little on the home page. */
.home-score{ font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; }
