.h5-altadorcup-grid .ac-grid-item .ac-content.ac-grid {
	position: relative;
}
.ac-main-button {
	width: 100%;
    max-width: 200px;
	margin: auto;
	box-sizing: border-box;
}

/* Todays Match css */
.h5-altadorcup-today {
	display: flex;
	flex-direction: column;
}
.h5-altadorcup-today > * {
	margin: auto;
	text-align: center;
}

.h5-altadorcup-today .ac-today-team {
	width: 33%;
	max-width: 8em;
	padding-top: min(33%, 8em);
}

.h5-altadorcup-today .ac-today-team.ac-generic {
	width: 100px;
	padding-top: 100px;		
}

.h5-altadorcup-today .ac-today-name {
	font-size: 14pt;
	font-family: "MuseoSansRounded700", "Arial Bold", sans-serif;
}
.h5-altadorcup-today .ac-today-label {
	font-size: 12px;
	color: #9C6541;
}
.h5-altadorcup-today a {
	width: 60%;
}
.h5-altadorcup-today a.ac-main-button {
	max-width: 120px;
	margin-top: 1em;
}

@media screen and (max-width: 370px) {
	.h5-altadorcup-today .ac-today-team {
		width: 50%;
		padding-top: 50%;
	}
}

/* Yesterdays match result */
.h5-altadorcup-yesterday {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 1em;
}
.h5-altadorcup-yesterday .ac-yr-results {
	width: 90%;
	margin: auto;
    display: grid;
    grid-template-columns: 30% 70%;
	align-items: center;
    justify-content: center;
}
.h5-altadorcup-yesterday .ac-yr-team {
	width: 100%;
	/*height: 100%;*/
	display: flex;
	flex-direction: column;
}
.h5-altadorcup-yesterday .ac-yr-team > div {
    margin: auto;
}
/* VS matchup row */
.h5-altadorcup-yesterday .ac-yr-matchup {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.h5-altadorcup-yesterday .ac-yr-team-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 4px 8px;
}
.h5-altadorcup-yesterday .ac-yr-team-info .ac-logo {
	width: 60px;
	padding-top: 60px;
}
.h5-altadorcup-yesterday .ac-yr-name {
	font-size: 16px;
	font-family: "MuseoSansRounded700", "Arial Bold", sans-serif;
	text-align: center;
}
.h5-altadorcup-yesterday .ac-yr-label {
	font-size: 12px;
	font-family: "MuseoSansRounded500", "Arial", sans-serif;
}
.h5-altadorcup-yesterday .ac-yr-label-yours {
	color: #577c4b;
}
.h5-altadorcup-yesterday .ac-yr-label-enemy {
	color: #9c6541;
}
.h5-altadorcup-yesterday .ac-yr-vs {
	font-family: "SportsWorld", "Arial Bold", sans-serif;
	font-size: 32px;
	color: #9c6541;
	text-align: center;
}
/* Game columns */
.h5-altadorcup-yesterday .ac-yr-games {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}
.h5-altadorcup-yesterday .ac-yr-game-col {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: stretch;
	width: 80px;
}
.h5-altadorcup-yesterday .ac-yr-thumb.ac-game {
	width: 80px;
	height: 100px;
	padding-top: 0;
	background-color: #9b9494;
	border-radius: 11px;
	overflow: hidden;
	box-sizing: border-box;
}
.h5-altadorcup-yesterday .ac-yr-thumb.ac-yyb {
	background-position: 50% 10%;
	background-size: 300%;
}
.h5-altadorcup-yesterday .ac-yr-thumb.ac-slsl {
	background-position: 10% 30%;
	background-size: 250%;
}
.h5-altadorcup-yesterday .ac-yr-thumb.ac-msn {
	background-position: 90% 25%;
	background-size: 250%;
}
.h5-altadorcup-yesterday .ac-yr-thumb.ac-shsh {
	background-position: 10% 65%;
	background-size: 260%;
}
.h5-altadorcup-yesterday .ac-yr-thumb.ac-occ {
	background-position: 50% 50%;
	background-size: 250%;
}
/* W/L/D badges */
.h5-altadorcup-yesterday .ac-yr-badge {
	display: flex;
	justify-content: center;
	padding: 1px;
	border-radius: 4px;
	background-color: #ccc;
	position: relative;
	cursor: default;
}
.h5-altadorcup-yesterday .ac-yr-badge.badge-w { background-color: #a0f36f; }
.h5-altadorcup-yesterday .ac-yr-badge.badge-l { background-color: #f69f91; }
.h5-altadorcup-yesterday .ac-yr-badge.badge-d { background-color: #f6e250; }
.h5-altadorcup-yesterday .ac-yr-badge-inner {
	flex: 1;
	text-align: center;
	padding: 2px 0;
	border: 1px solid #fff;
	border-radius: 3px;
	background-color: #eee;
	font-family: "SportsWorld", "Arial Bold", sans-serif;
	font-size: 20px;
	color: #fff;
	text-shadow: 0.5px 1.5px 0 #3a3939;
}
.h5-altadorcup-yesterday .ac-yr-badge-inner.badge-inner-w { background-color: #dee8cd; }
.h5-altadorcup-yesterday .ac-yr-badge-inner.badge-inner-l { background-color: #fee7dd; }
.h5-altadorcup-yesterday .ac-yr-badge-inner.badge-inner-d { background-color: #f6f0c0; }
/* Score tooltip */
.h5-altadorcup-yesterday .ac-yr-badge .tooltip {
	display: none;
	position: absolute;
	bottom: calc(100% + .5em);
	min-width: max-content;
	padding: .4em .6em;
	background-color: #fff;
	border: 2px solid lightskyblue;
	border-radius: 10px;
	text-align: center;
	font-size: 12px;
	z-index: 1;
}
.h5-altadorcup-yesterday .ac-yr-badge:hover .tooltip,
.h5-altadorcup-yesterday .ac-yr-badge:focus .tooltip,
.h5-altadorcup-yesterday .ac-yr-badge .tooltip.show-tooltip {
	display: block;
}
.h5-altadorcup-yesterday .ac-yr-text {
	margin: auto;
	text-align: center;
}
/*.resultTip {
	position: fixed;
	display: none;
	z-index: 1000;
	border: 1px solid black;
	padding: 4px;
	background-color: white;
}*/

@media screen and (max-width: 500px) {
	.h5-altadorcup-yesterday .ac-yr-results {
		grid-template-columns: 1fr;
		gap: .5em;
	}
	.h5-altadorcup-yesterday .ac-yr-team .ac-logo {
		width: 50%;
		padding-top: 50%;
	}
}

/* Bracket Standings */
.h5-altadorcup-brackstand .ac-last-updated {
	position: absolute;
	right: 0;
	top: -1.5em;
	text-align: center;
	font-size: 14pt;
	font-weight: normal;
	font-family: "Cafeteria", 'Arial Bold', sans-serif;
}
.h5-altadorcup-brackstand .ac-bracket-title {
	color: #fff;
	text-shadow: 2px 1px 0 #000, -2px 1px 0 #000, 2px -1px 0 #000, -2px -1px 0 #000, 1px -2px 0 #000, -1px -2px 0 #000, 1px 2px 0 #000, -1px 2px 0 #000;
	text-transform: uppercase;
	font-size: 16pt;
	font-family: "Cafeteria", 'Arial Bold', sans-serif;
	letter-spacing: 1px;
}
.h5-altadorcup-brackstand .ac-bracket-stats {
	width: 90%;
	padding: 0 1em;
	margin: auto auto 1em;
    display: grid;
	grid-template-columns: repeat(6, 1fr);
	align-items: center;
	justify-content: center;
	gap: .5em;
	box-sizing: border-box;
}
.h5-altadorcup-brackstand .ac-bracket-stats .ac-stats-team {
	width: 100%;
	position: relative;
}
.h5-altadorcup-brackstand .ac-bracket-stats .ac-stats-team .ac-logo {
	width: 75%;
	padding-top: 75%;
	margin: auto;
}
.h5-altadorcup-brackstand .ac-bracket-stats .ac-stats-team.user-team .ac-logo {
	width: 95%;
	padding-top: 95%;
}
.h5-altadorcup-brackstand .ac-bracket-stats .ac-stats-team .ac-team-rank {
	position: absolute;
	bottom: .25em;
	left: .25em;
	color: #fff;
	text-shadow: 2px 1px 0 #000, -2px 1px 0 #000, 2px -1px 0 #000, -2px -1px 0 #000, 1px -2px 0 #000, -1px -2px 0 #000, 1px 2px 0 #000, -1px 2px 0 #000;
	text-transform: uppercase;
	font-size: 20pt;
	font-family: "SportsWorld", "Arial Bold", sans-serif;
}
.h5-altadorcup-brackstand .ac-bracket-stats .ac-stats-team.user-team .ac-team-rank {
	font-size: 24pt;
}

.h5-altadorcup-brackstand .ac-bracket-tie {
    margin: auto;
}

.h5-altadorcup-brackstand .tb-matches {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    align-content: center;
    flex-wrap: wrap;
}

.tb-match {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    padding: 1rem 2.5rem 1rem 1rem;
    margin: 1rem 0 2rem;
    background-color: #f2f1f1;
    border: 1px solid transparent;
}

.tb-match-single {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    margin: 10px 0;
}

.tb-cs {
    margin: auto;
    text-align: center;
}

@media screen and (min-width: 625px) and (max-width: 700px) {
	.h5-altadorcup-brackstand .ac-bracket-stats {
		width: 100%;
	}
	.h5-altadorcup-brackstand .ac-bracket-stats .ac-stats-team .ac-logo {
		width: 85%;
		padding-top: 85%;
	}
	.h5-altadorcup-brackstand .ac-bracket-stats .ac-stats-team.user-team .ac-logo {
		width: 100%;
		padding-top: 100%;
	}
}
@media screen and (max-width: 625px) {
	.ac-grid-item:nth-child(3) .ac-content.ac-grid {
		padding: 0 0 1em 0;
	}
    .h5-altadorcup-brackstand .ac-last-updated {
		position: relative;
	    top: unset;
	    right: unset;
		width: 100%;
		padding-bottom: .5em;
    }
	.h5-altadorcup-brackstand .ac-bracket-stats {
		width: 100%;
		max-width: 300px;
        grid-template-columns: 1fr 1fr;
		align-items: end;
    }
    .h5-altadorcup-brackstand .ac-bracket-stats :nth-child(1) { order: 1; }
    .h5-altadorcup-brackstand .ac-bracket-stats :nth-child(2) { order: 3; }
    .h5-altadorcup-brackstand .ac-bracket-stats :nth-child(3) { order: 5; }
    .h5-altadorcup-brackstand .ac-bracket-stats :nth-child(4) { order: 2; }
    .h5-altadorcup-brackstand .ac-bracket-stats :nth-child(5) { order: 4; }
    .h5-altadorcup-brackstand .ac-bracket-stats :nth-child(6) { order: 6; }

    .acRank-slick {
        max-width: 200px;
    }
    .carousel-wrapper {
        max-width: 200px;
    }
    .teamPennant div {
        margin-left: 89px;
    }

}


/* Your Stats */
.h5-altadorcup-stats .ac-your-stats {
	width: 100%;
	padding: 0 1em 1em;
	display: flex;
	align-items: stretch;
	gap: 1em;
	box-sizing: border-box;
}
.h5-altadorcup-stats .ac-stats-card-yyb {
	flex: 1;
	min-width: 0;
}
.h5-altadorcup-stats .ac-rank-scores {
	width: 100%;
	max-width: 350px;
	margin: auto;
	display: grid;
	grid-template: auto / auto 1fr;
	gap: .25em;
	align-items: center;
	justify-content: space-between;
}
.h5-altadorcup-stats .ac-rank-scores .ac-game-name {
	grid-column: span 2;
	width: 100%;
	margin: .5em auto;
	border-bottom: 1px solid #f60;
	font-weight: bold;
	color: #722700;
}
.h5-altadorcup-stats .ac-stats-label {
    width: 100%;
	text-align: left;
	padding: .2em;
	box-sizing: border-box;
}
.h5-altadorcup-stats .ac-rank-scores .ac-stats-label:not(.player) {
	background: #fece9a;
	color: #722700;
	border-radius: 15px;
	padding: .2em 1em .2em .5em;
}
.h5-altadorcup-stats .ac-stats-score {
    text-align: right;
	padding: .2em;
}
.h5-altadorcup-stats .ac-rank-scores .ac-stats-players {
	grid-column: span 2;
	width: 100%;
	display: grid;
	grid-template: auto / auto 1fr;
	gap: .25em;
	align-items: center;
}
.h5-altadorcup-stats .ac-rank-scores .ac-stats-label.player {
    padding-left: 1em;
}
.h5-altadorcup-stats .teamPennant {
	width: 380px;
	height: 105px;
	position: relative;
	background-repeat: no-repeat;
	display: table-cell;
	float: left;
	clear: both;
}
.h5-altadorcup-stats .teamPennant div {
	width: 200px;
	margin-left: 150px;
	margin-top: 38px;
	vertical-align: middle;
	text-align: center;
	font-weight: bold;
}
.h5-altadorcup-stats .shieldOuter {
	width: 110px;
	text-align: center;
	margin: auto;
}
.h5-altadorcup-stats .shieldLabel {
	width: 100%;
	border-bottom: 1px solid black;
}
.h5-altadorcup-stats .shieldRank {
	width: 100%;
	font-weight: bold;
}

/* Stats game cards */
.ac-stats-card {
	border: 1px solid #f60;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	background: white;
	padding: 10px;
}
.ac-stats-card .ac-stats-card-bg.ac-game {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding-top: 0;
	background-size: 200%;
	background-position: center center;
	pointer-events: none;
	z-index: 0;
}
.ac-stats-card .ac-stats-card-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(255,255,255,0.9);
	pointer-events: none;
	z-index: 0;
}
.ac-stats-card .ac-rank-scores {
	position: relative;
	z-index: 1;
}
.ac-stats-side-grid {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	align-items: stretch;
}

@media screen and (max-width: 625px) {
    .h5-altadorcup-stats .ac-your-stats {
        flex-direction: column;
	    padding: 0 0 1em 0;
    }
}
@media screen and (max-width: 370px) {
	.h5-altadorcup-stats .ac-your-stats {
		margin-top: 1.5em;
	}
}
@media screen and (max-width: 350px) {
	.h5-altadorcup-stats .ac-your-stats {
		justify-content: unset;
	}
}

/* === S7 Tournament Brackets === */
.ac-bracket-rounds {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Full orange/dark card — wraps title + body */
.ac-bracket-panel {
	border: 3px solid #722700;
	border-radius: 16px;
	padding: 10px 8px 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	user-select: none;
}

/* Header row: round label + arrow button */
.ac-br-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}
.ac-bracket-round-lbl {
	font-family: "SportsWorld", Arial, sans-serif;
	font-size: 18px;
	color: #fff;
	letter-spacing: 1px;
	text-shadow: 0.5px 1.5px 0px #3a3939;
}

/* Toggle button — uses pane-btn +/- style */
.ac-bracket-pane-btn {
	flex-shrink: 0;
	margin: 0;
}
.ac-bracket-panel.locked .ac-bracket-pane-btn {
	cursor: default;
}

/* White area below the round title */
.ac-bracket-white-inner {
	width: 100%;
	background: white;
	padding: 16px;
	border-radius: 0 0 12px 12px;
	box-sizing: border-box;
}

/* Panel body */
.ac-bracket-body.ac-bracket-collapsed {
	display: none;
}


/* R1: single bordered card */
.ac-br-inner {
	padding: 16px;
	background: rgba(255,255,255,0.85);
	border: 2px solid #9a9592;
	border-radius: 13px;
}

/* Vertical pair column: top logo → vs → bottom logo */
.ac-br-pair {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.ac-br-vs {
	font-family: "MuseoSansRounded500", Arial, sans-serif;
	font-size: 12px;
	color: #9c6541;
}

/* 48px team logo */
.ac-brl {
	width: 48px;
	height: 48px;
	border: 1px solid #909090;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: white;
}
.ac-brl .ac-logo {
	width: 48px;
	padding-top: 48px;
}
.ac-brl-nc {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 8px;
	text-align: center;
	color: #666;
}

/* Matches row: pairs side by side */
.ac-br-matches {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: center;
}
.ac-br-r1-matches {
	justify-content: center;
}
.ac-br-tbd {
	font-size: 12px;
	color: #9c6541;
	margin: 0;
}

/* R2: two group cards side by side */
.ac-br-r2-groups {
	display: flex;
	gap: 10px;
	width: 100%;
}
.ac-br-r2-groups .ac-br-group {
	flex: 1;
	min-width: 0;
}

/* R3: 2×2 grid of bracket cards */
.ac-br-r3-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	width: 100%;
}

/* Group card (R2 and R3) */
.ac-br-group {
	padding: 10px;
	border: 2px solid;
	border-radius: 10px;
	box-sizing: border-box;
}
.ac-br-group-title {
	font-family: "MuseoSansRounded700", "Arial Bold", sans-serif;
	font-size: 13px;
	text-align: center;
	font-weight: 700;
	margin-bottom: 4px;
}
.ac-br-group-sub {
	font-size: 11px;
	color: #6d6967;
	margin-bottom: 7px;
	text-align: center;
}
.ac-br-divider {
	border: none;
	border-top: 1px solid rgba(0,0,0,0.15);
	margin: 8px 0;
}
.ac-br-bye-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

/* R3 pairs are horizontal: [logo] VS [logo] */
.ac-br-r3-grid .ac-br-pair {
	flex-direction: row;
	align-items: center;
}
.ac-br-bye-label {
	font-size: 11px;
	color: #6d6967;
	white-space: nowrap;
}

@media screen and (max-width: 600px) {
	.ac-br-r2-groups {
		flex-direction: column;
	}
	.ac-br-r3-grid {
		grid-template-columns: 1fr;
	}
}

.ac-badge-user .ac-user-team {
	font-size: 20pt;
	font-weight: bold;
	font-family: "SportsWorld", "Arial", sans-serif;
	letter-spacing: 2px;
}
.ac-badge-user .ac-user-name {
	font-size: 15pt;
	font-weight: bold;
	font-family: "SportsWorld", "Arial", sans-serif;
	letter-spacing: 2px;
}
}