:root {
	--bg: #fff;
	--card: #f6f6f6;
	--text: #111;
	--muted: #666;
	--line: #e3e3e3;
	--accent: #f5493e;
	--accent-dark: #f5493e;
	--accent-soft: #fcebed;
}


.preloader {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(2px);
	z-index: 9999;
	opacity: 1;
	transition: opacity .28s ease;
}

.preloader.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.preloader-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #d9dde3;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
	color: #374151;
	font-size: .92rem;
	font-weight: 700;
}

.preloader-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #d1d5db;
	border-top-color: #f5493e;
	animation: preloader-spin .8s linear infinite;
}

@keyframes preloader-spin {
	to {
		transform: rotate(360deg);
	}
}

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px;
}

.layout {
	display: block;
}

.sidebar,
.content-panel {
	min-width: 0;
}

.sidebar {
	position: sticky;
	top: 8px;
	align-self: start;
	z-index: 20;
	margin-bottom: 16px;
	z-index: 20;
}

.sidebar-guest-cta {
	margin: 18px auto 0;
	padding: 18px 0 10px;
	max-width: 640px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
}

.sidebar-guest-note {
	max-width: 560px;
	margin: 0 auto 16px;
	color: #222;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.45;
}

.sidebar-guest-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.landing-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	min-width: 160px;
	padding: 0 22px;
	border-radius: 8px;
	font-weight: 800;
	text-decoration: none;
	text-align: center;
}

.landing-action-neutral {
	border: 1px solid #e4dfd9;
	background: #f4f1ed;
	color: #2f3946;
}

.landing-action-primary {
background: #f5493e;
    color: #fff;
    box-shadow: 0 8px 18px rgba(245, 73, 62, .18);
}

.is-guest .sidebar-card{
	padding: 0 16px;
	margin-top: -16px;
}
.is-guest .sidebar-card>div>div.control-row,
.is-guest .sidebar-card>div>section.progress-card {
	display: none;
}

.sidebar-card {
	position: relative;
	padding: 16px;
	isolation: isolate;
	background: linear-gradient(160deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .56) 100%);
	border: 1px solid rgba(255, 255, 255, .62);
	border-radius: 10px;
	/* box-shadow: 0 12px 26px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .72); */
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	/* overflow: hidden; */
	z-index: 20;
}

.sidebar-card::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(120% 80% at 12% 0%, rgba(255, 255, 255, .46) 0%, rgba(255, 255, 255, 0) 58%), radial-gradient(90% 70% at 90% 100%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 60%);
}

.total-points-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 14px;
	border-radius: 999px;
	border: 1px solid #d9dde3;
	background: #fff;
    color: #374151;
    font-size: 1.02rem;
    font-weight: normal;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

.total-points-value {
	min-width: 2.3rem;
	height: 2.3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #16a34a;
	color: #ffff;
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1;
	padding: 0 10px;
}

.content-panel {
	width: 100%;
}

h1 {
	margin: 0 0 8px;
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	line-height: 1.05;
	letter-spacing: -.03em;
}

.subtitle {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: .98rem;
}

.controls {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 0;
	padding: 0;
	background: none;
	border: none;
	box-shadow: none;
}

.progress-card {
	margin: 20px 0 14px;
	padding: 12px 12px 10px;
	border: 1px solid #d7dce3;
	border-radius: 10px;
	background: #fff;
}

.progress-eyebrow {
	margin: 0;
	font-size: .78rem;
	letter-spacing: .05em;
	font-weight: 800;
	text-transform: uppercase;
	color: #6b7280;
}

.progress-count {
	margin: 4px 0 8px;
	font-size: 2.15rem;
	line-height: 1;
	font-weight: 900;
	color: #323232;
}

.progress-track {
	width: 100%;
	height: 10px;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
}

.progress-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #16a34a;
	/* background: linear-gradient(90deg, #f5493e 0%, #f5493e 100%);*/
	transition: width .25s ease;
	will-change: width;
}

.progress-remaining {
	margin: 10px 0 0;
	font-size: .95rem;
	color: #6b7280;
	font-weight: 600;
}

.controls label {
	font-weight: 600;
}

.control-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	justify-content: space-between;
	/* transition: transform 300ms linear; */
}
.control-row.fixed {
	background-color:rgba(255, 255, 255, 0.98);
	padding: 16px;
	margin: 0 -32px;
}

.control-row .groupSelect{
	padding:12px;
	border: 1px solid #d9dde3;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
	color: #555d6b;
	font-family: Sohne, Arial, Helvetica, sans-serif;	
	font-size: 1.02rem;
}

select:hover,
select:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

select option {
	font-family: Sohne, Arial, Helvetica, sans-serif;
	font-size: 1.02rem;	
	color: #555d6b;
}

.control-row label {
	min-width: 94px;	
	color: #374151;
	font-size: 1.02rem;
	font-weight: normal;
}


.controls select {
    border: none;
	background: #eef2f7;
	color: #374151;
	font-family: Sohne, Arial, Helvetica, sans-serif;
	font-weight: normal;	
	font-size: 1.02rem;
	align-items: center;
	text-align:center;
	border-radius: 25px;
}

.controls input[type=text] {
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	padding: 8px 10px;
    background: #eef2f7;
    color: #334155;
}

.controls input[type=text] {
	min-width: 0;
	flex: 1 1 180px;
}

.controls select {
	flex: 0 0 110px;
}

.secondary-btn {
	border: 1px solid #d4d4d4;
	border-radius: 10px;
	background: #f7f7f7;
	color: #333;
	padding: 9px 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}

.secondary-btn:hover {
	background: #efefef;
}

.save-status {
	display: none;
	margin-left: 0;
	font-size: .88rem;
	color: var(--muted);
	min-height: 1.2rem;
}

.error {
	background: #f7f7f7;
	color: #f5493e;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 16px;
}

.content-card {
	padding-bottom: 2px;
}

.is-guest .group-title,
.is-guest .matches-grid,
.is-guest .match-card,
.is-guest .score-display,
.is-guest .score-inputs {
	opacity: .5;
}

.is-guest .score-inputs input {
	pointer-events: none;
	cursor: not-allowed;
	background: #f3f4f6;
	color: #6b7280;
}

.group-card {
	/* background: var(--card); */
	border: 1px solid var(--line);
	border-radius: 10px;
	/* box-shadow: 0 6px 18px rgba(0, 0, 0, .05); */
	margin-bottom: 22px;
	overflow: hidden;
}

.group-title {
	position: relative;
	overflow: hidden;
	background: #F5493E;
	/* background: linear-gradient(105deg, #f5493e 0%, #f5493e 42%, #f5493e 100%); */
	color: #fdf2f4;
	padding: 11px 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
	/* box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -12px 24px rgba(0, 0, 0, .12); */
	/* transition: background .2s ease, box-shadow .2s ease, border-color .2s ease; */
}

.group-title::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	/* background: radial-gradient(140% 100% at -8% 50%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 56%), radial-gradient(110% 100% at 100% 10%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 52%); */
	opacity: 1;
	/* transition: opacity .2s ease; */
}

.group-title:hover,
.group-title:focus-within {
	background: #F5493E;
	border-bottom-color: rgba(255, 255, 255, .32);
	/* box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -12px 24px rgba(0, 0, 0, .16), 0 6px 14px rgba(245, 73, 62, .2); */
}

.group-title:hover::before,
.group-title:focus-within::before {
  /*	background: radial-gradient(140% 100% at -8% 50%, rgba(255, 255, 255, .36) 0%, rgba(255, 255, 255, 0) 58%), radial-gradient(110% 100% at 100% 10%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 54%); */
}

.group-title-toggle {
	all: unset;
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 0;
	margin: 0;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
	text-transform: inherit;
	letter-spacing: inherit;
	box-sizing: border-box;
}

.group-title-toggle:focus-visible {
	outline: 2px solid #94a3b8;
	outline-offset: 2px;
	border-radius: 6px;
}

#matches-container > section > div.group-title > button.group-title-toggle:hover,
#matches-container > section > div.group-title > button.group-title-toggle:active {
	background: none;
	color: inherit;
}

.group-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.group-toggle-icon {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .42);
	background: rgba(255, 255, 255, .12);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 900;
	line-height: 1;
	flex: 0 0 auto;
	backdrop-filter: blur(2px);
}

.group-progress-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .35);
	font-size: .76rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
	min-width: 168px;
	backdrop-filter: blur(2px);
}

.group-progress-label {
	line-height: 1;
}

.group-progress-track {
	width: 54px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .24);
	overflow: hidden;
	flex: 0 0 auto;
}

.group-progress-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #fff;
	transition: width .2s ease;
}

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

.matches-grid[hidden] {
	display: none !important;
}

.match-card {
	position: relative;
	background: radial-gradient(120% 90% at 12% -8%, rgba(198, 187, 189, .12) 0%, rgba(245, 73, 62, 0) 58%), radial-gradient(130% 100% at 100% 100%, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, 0) 60%), linear-gradient(170deg, #fff 0%, #f5f6f8 100%);
	border: 1px solid #d9dde3;
	border-radius: 16px;
	overflow: hidden;
	/* box-shadow: 0 10px 20px rgba(15, 23, 42, .08); */
	color: #111827;
}

.match-card.is-ended {
	opacity: .92;
  /*background: #d9dde3;*/
	border-color: #d9dde3;
}

.match-card.is-closed {
	border-color: #d9dde3;
	/*background: #d9dde3;*/
}

.saved-check {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 7px 12px;
	border-radius: 999px;
	color: #fff;
	font-size: .76rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .03em;
	text-transform: uppercase;
	background: rgba(34, 197, 94, .95);
	border: 1px solid rgba(143, 240, 183, .85);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 8px 14px rgba(10, 83, 36, .35);
	text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	opacity: 0;
	transform: scale(.72);
	transition: opacity .35s ease, transform .35s ease;
	z-index: 2;
	pointer-events: none;
}

.match-card.show-saved-check .saved-check {
	opacity: 1;
	transform: scale(1);
}

.match-card::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(-40deg, rgba(245, 73, 62, .045) 0, rgba(245, 73, 62, .045) 2px, transparent 2px, transparent 14px);
	opacity: .22;
}

.match-card-head {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 3px;
	padding: 10px 12px 8px;
	position: relative;
	z-index: 1;
}

.match-card-stadium,
.match-kickoff {
	font-size: .78rem;
	color: #374151;
	font-weight: 700;
	letter-spacing: .03em;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.match-group-chip {
	margin-top: 12px;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .4);
	color: #1d2432;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	border: 1px solid #888c90;
}

.match-card-body {
	position: relative;
	z-index: 1;
	padding: 2px 12px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.match-main {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 8px;
}

.team-side {
	display: flex;
	justify-content: center;
}

.score-col {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.score-inputs {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 0;
	flex-wrap: nowrap;
}

.score-inputs.is-locked {
	opacity: .95;
}

.score-inputs.is-locked input {
	background: #eef0f3;
	color: #6b7280;
}

.score-inputs input {
	width: 66px;
	height: 66px;
	border: 1px solid #888c90;
	border-radius: 15px;
	padding: 0;
	text-align: center;
	font-size: 2rem;
	font-weight: 800;
	color: #111827;
	background: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}

.score-inputs input::-webkit-outer-spin-button,
.score-inputs input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.score-inputs input[type=number] {
	appearance: textfield;
	-moz-appearance: textfield;
}

.score-inputs input:focus {
	outline: none;
	border-color: rgba(245, 73, 62, .65);
	box-shadow: 0 0 0 2px rgba(245, 73, 62, .2);
}

.score-display {
	display: flex;
	align-items: center;
	gap: 9px;
	user-select: none;
}

.score-display-box {
	width: 66px;
	height: 66px;
	border: 1px solid #888c90;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 800;
	color: #111827;
	background: rgba(255, 255, 255, .4);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
	user-select: none;
}

.score-dash {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: #6b7280;
}

.score-locked-badge {
	display: inline-block;
	margin-top: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fbf6b0;
	/* background: rgba(245, 193, 31, .18); */ 
	border: 1px solid rgba(180, 83, 9, .28);
	color: #323232;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.score-locked-badge.is-open {
	background: rgba(34, 197, 94, .15);
	border: 1px solid rgba(34, 197, 94, .35);
	color: #166534;
}

.score-locked-badge.is-finished {
	background: #9E2B2B;
	border: 1px solid #b18481;
	color: #ffffff;
}

.score-open-countdown {
	margin-top: 7px;
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.1;
	color: #64748b;
	text-align: center;
	white-space: nowrap;
	opacity: .95;
}

.final-result {
	margin-top: 10px;
	font-size: .8rem;
	font-weight: 700;
	color: #374151;	
}

.user-prediction {
	margin-top: 10px;
	font-size: .8rem;
	font-weight: 700;
	color: #374151;
}

.match-points {
	margin-top: 4px;
	font-size: 1.10rem;
	color: #374151;
	font-weight: 700;
}

.match-points.has-points-circle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.match-points.is-muted {
	color: #6b7280;
	font-weight: 600;
}

.points-badge {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	line-height: 1;
}

.points-badge.is-three {
	display:none;
	background: #16a34a;
}

.points-badge.is-one {
	display:none;
	background: #ca8a04;
}

.points-badge.is-zero {
	display:none;
	background: #dc2626;
}

.team-display {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
	text-align: center;
}

.team-flag {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px rgba(203, 213, 225, .9), 0 4px 10px rgba(15, 23, 42, .16);
	flex: 0 0 auto;
}

.team-name {
	font-weight: 800;
	min-width: 0;
	font-size: 1.02rem;
	letter-spacing: .04em;
	color: #111827;
}

button {
	border: none;
	border-radius: 10px;
	background: #F5493E;
	/* background: var(--accent); */
	color: #fff;
	padding: 10px 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}

button:hover {
	background: var(--accent-dark);
}

@media (max-width: 900px) {
	.sidebar {
		top: 0;
		margin-bottom: 12px;
	}

	.sidebar-card {
		padding: 14px;
	}

	.total-points-chip {
		top: 8px;
		right: 10px;
		font-size: .92rem;
		padding: 7px 10px;
		color: #374151;
		font-size: 1.02rem;
		font-weight: normal;		
		
	}

	.control-row {
		align-items: stretch;
	}

	.control-row label {
		min-width: 0;
		display: none;
	}

	.controls select,
	.controls input[type=text],
	.secondary-btn {
		width: 100%;
	}
	.controls select{
		background: transparent;
	}

	.save-status {
		width: 100%;
	}

	.matches-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		padding: 10px;
	}

	.score-inputs input,
	.score-display-box {
		width: 62px;
		height: 62px;
		font-size: 1.8rem;
	}

	.team-flag {
		width: 40px;
		height: 40px;
	}
}

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

	.group-title-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.group-progress-pill {
		min-width: 0;
	}

	.match-main {
		gap: 6px;
	}

	.score-inputs {
		gap: 6px;
	}

	.score-inputs input,
	.score-display-box {
		width: 56px;
		height: 56px;
		border-radius: 12px;
		font-size: 1.6rem;
	}

	.score-open-countdown {
		margin-top: 6px;
		font-size: .6rem;
	}

	.team-name {
		font-size: .92rem;
	}

	.match-card-stadium,
	.match-kickoff {
		font-size: .76rem;
	}

/* .control-row .groupSelect{
	padding:12px;
	border: 1px solid #d9dde3;
	border-radius: 999px;
	float:left;
	margin-top:-5px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
	color: #151920;
	font-size: 1.02rem;
	font-weight: 950;
	gap: 6px;
} */


.control-row label {
	min-width: 94px;	
	color: #151920;
	font-size: 1.02rem;
	font-weight: normal;	
}


/* .controls select {
    border: none;
	background: #eef2f7;
	border-radius: 25px;
	color: #151920;
	font-family: Sohne, Arial;
	font-weight: 900;	
	font-size: 1.02rem;
	align-items: center;
	text-align:center;	
} */

}
