/*
 * FP Tipster: /play/ page (step 2).
 * Design: canvas "Tipster Competition Redesign", revision 2. Colours and sizes follow the theme
 * (Open Sans, #005291 bars, #dd3333 title bar, #bcc4cf inputs, orange CTA).
 * No horizontal scrolling at any width.
 */

.fpt-play {
	--fpt-blue: #005291;
	--fpt-navy: #1d3e66;
	--fpt-text: #303030;
	--fpt-muted: #555555;
	--fpt-line: #e5e5e5;
	--fpt-green: #1e7a4c;
	--fpt-orange: #fc7800; /* the site's CTA orange (theme .fp-offer__button, menu buttons) */
	padding: 0; /* the theme's .main-col gives 20px top and 10px sides, as on the category pages */
	color: var(--fpt-text);
	font-size: 14px;
	line-height: 1.45;
	box-sizing: border-box;
	overflow-wrap: anywhere;
}
.fpt-play *,
.fpt-play *::before,
.fpt-play *::after { box-sizing: border-box; }
.fpt-play button { font-family: inherit; }
.fpt-play a { color: var(--fpt-blue); }
.fpt-play a:hover { color: #003a68; }
.fpt-play h2 { font-family: inherit; }
.fpt-play img { max-width: 100%; }
.fpt-i { flex: 0 0 auto; vertical-align: middle; }
/* The theme's style.css (around line 513) positions every svg absolutely (open item 75). Undo it here;
   sizes come from inline styles on each svg. */
.fpt-play svg {
	position: static;
	display: inline-block;
	max-width: none;
	max-height: none;
	top: auto;
	left: auto;
	transform: none;
}

.fpt-preview {
	margin: 0 0 12px;
	padding: 8px 12px;
	border: 1px dashed #c9cfd6;
	border-radius: 6px;
	background: #fafbfc;
	font-size: 13px;
	color: var(--fpt-muted);
}

/* ------------------------------------------------------------- buttons */
.fpt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 44px;
	padding: 0 20px;
	border-radius: 5px;
	border: 1px solid transparent;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.fpt-play .fpt-btn--cta,
.fpt-play .fpt-btn--cta:hover { background: var(--fpt-orange); color: #ffffff; }
.fpt-play .fpt-btn--cta { transition: opacity 0.3s ease; }
.fpt-play .fpt-btn--cta:hover { opacity: 0.8; } /* as the theme's offer button */
.fpt-play .fpt-btn--ghost { background: transparent; color: #ffffff; border: 2px solid rgba(255, 255, 255, 0.6); }
.fpt-play .fpt-btn--ghost:hover { border-color: #ffffff; color: #ffffff; }
.fpt-play .fpt-btn--line { background: #ffffff; color: var(--fpt-blue); border-color: var(--fpt-blue); font-weight: 600; font-size: 14px; height: 40px; padding: 0 14px; }
.fpt-play .fpt-btn--line:hover { background: #f3f8fd; color: var(--fpt-blue); }
.fpt-btn--sm { height: 36px !important; font-size: 13px !important; }
.fpt-play .fpt-btn--more { width: 100%; background: #ffffff; border: 1px solid var(--fpt-text); border-radius: 6px; color: var(--fpt-text); font-size: 14px; font-weight: 600; }
.fpt-play .fpt-btn--more:hover { background: #f5f5f5; }
.fpt-play .fpt-btn[disabled] { opacity: 0.6; cursor: default; }
.fpt-play .fpt-btn:focus-visible,
.fpt-play .fpt-lg:focus-visible,
.fpt-play .fpt-step__btn:focus-visible,
.fpt-play .fpt-lockbtn:focus-visible { outline: 3px solid #7fb2e0; outline-offset: 2px; }

/* ---------------------------------------------------------------- hero */
.fpt-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	gap: 22px;
	align-items: center;
	padding: 24px;
	border-radius: 8px;
	background: linear-gradient(135deg, #2c5a8f 0%, #1d3e66 100%);
	color: #ffffff;
}
.fpt-play .fpt-hero__lines { position: absolute; top: 0; right: 0; width: 60%; height: 100%; opacity: 0.09; pointer-events: none; }
.fpt-hero__main { position: relative; flex: 1 1 auto; min-width: 0; }
.fpt-play .fpt-hero__title { margin: 0 0 8px; font-size: 25px; line-height: 1.2; font-weight: 800; color: #ffffff; }
.fpt-play .fpt-hero__lead { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: #dbe6f3; }
.fpt-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fpt-play .fpt-hero__link { color: #ffffff; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.7); padding-bottom: 1px; }
.fpt-play .fpt-hero__link:hover { color: #ffffff; border-bottom-color: #ffffff; border-bottom-width: 2px; }
.fpt-play .fpt-textlink { color: var(--fpt-blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.fpt-play .fpt-textlink:hover { color: #003a68; }
.fpt-hero__league { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; color: #dbe6f3; }
.fpt-hero__league .fpt-lg__logo { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }

.fpt-hero--compact { display: block; padding: 18px 20px; }
.fpt-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fpt-hero--compact .fpt-hero__title { font-size: 21px; margin: 0; }
.fpt-hero--compact .fpt-hero__lead { margin: 4px 0 0; font-size: 14px; }
.fpt-hero--compact .fpt-hero__link { flex: 0 0 auto; font-size: 13px; }
.fpt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fpt-stat { min-width: 0; padding: 8px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
.fpt-stat span { display: block; font-size: 12px; color: #dbe6f3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpt-stat strong { display: block; font-size: 20px; font-weight: 800; color: #ffffff; line-height: 1.2; }
.fpt-stat__move { font-size: 12px; font-weight: 700; }
.fpt-stat__move--up { color: #7fd3a6; }
.fpt-stat__move--down { color: #c9d4e0; }
.fpt-stat__note { font-size: 13px; font-weight: 700; color: #dbe6f3; }

/* "How you score" card */
.fpt-howcard {
	position: relative;
	flex: 0 0 224px;
	overflow: hidden;
	border-radius: 8px;
	background: #ffffff;
	color: var(--fpt-text);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.fpt-howcard__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--fpt-navy); color: #ffffff; font-size: 13px; font-weight: 700; }
.fpt-howcard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #ececec; }
.fpt-howcard__row:last-child { border-bottom: 0; }
.fpt-howcard__txt { font-size: 12px; line-height: 1.35; color: var(--fpt-muted); }
.fpt-howcard__txt span { display: block; color: var(--fpt-text); font-weight: 700; font-size: 13px; }
.fpt-chip { flex: 0 0 auto; border-radius: 20px; padding: 3px 10px; font-size: 13px; font-weight: 800; }
.fpt-chip--exact { background: var(--fpt-green); color: #ffffff; }
.fpt-chip--outcome { background: #e3f2ea; color: #17643e; }
.fpt-chip--wrong { background: #eeeeee; color: #4a4a4a; }

/* --------------------------------------------------- section headings */
.fpt-sec { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.fpt-num { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--fpt-blue); color: #ffffff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.fpt-play .fpt-sec h2,
.fpt-play .fpt-h2 { margin: 0; padding: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--fpt-text); text-transform: none; border: 0; background: none; }
.fpt-play .fpt-h2 { margin: 26px 0 10px; }
.fpt-play .fpt-small { margin: 8px 0 0; font-size: 13px; color: var(--fpt-muted); }
.fpt-play .fpt-small--muted { margin-top: 12px; }

/* ---------------------------------------------------------- league grid */
.fpt-lgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fpt-sec + .fpt-lgrid,
.fpt-h2 + .fpt-lgrid { margin-top: 0; }
.fpt-play .fpt-lg {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	padding: 12px 8px 10px;
	border: 1px solid #dfe3e8;
	border-radius: 8px;
	background: #ffffff;
	color: var(--fpt-text);
	text-align: center;
	text-decoration: none;
}
.fpt-play .fpt-lg:hover { border-color: #9db6d0; color: var(--fpt-text); }
.fpt-play .fpt-lg.is-on { border: 2px solid var(--fpt-blue); background: #f3f8fd; padding: 11px 7px 9px; }
.fpt-lg__logo {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #e3e8ee;
	color: var(--fpt-blue);
	font-weight: 800;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fpt-lg__logo img { width: 34px; height: 34px; object-fit: contain; display: block; }
.fpt-flag { position: absolute; right: -8px; bottom: -6px; display: inline-flex; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 2px #ffffff; line-height: 0; }
.fpt-lg__text { display: block; width: 100%; min-width: 0; }
.fpt-lg__name,
.fpt-lg__meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpt-lg__name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.fpt-lg__meta { font-size: 12px; line-height: 1.4; color: var(--fpt-muted); }
.fpt-lg__meta strong { color: var(--fpt-blue); }
.fpt-lg__tick { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--fpt-blue); color: #ffffff; display: flex; align-items: center; justify-content: center; }

/* -------------------------------------------------------------- notice */
.fpt-notice { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 12px; padding: 12px 14px; border: 1px solid #c9dcee; border-radius: 6px; background: #eef5fb; }
.fpt-sec + .fpt-notice { margin-top: 0; }
.fpt-notice__icon { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--fpt-blue); color: #ffffff; display: flex; align-items: center; justify-content: center; }
.fpt-notice__body { flex: 1 1 auto; min-width: 0; }
.fpt-notice__title { font-weight: 700; color: var(--fpt-navy); }
.fpt-notice__text { font-size: 13px; line-height: 1.5; color: #3d4650; }
.fpt-notice .fpt-btn { flex: 0 0 auto; }

/* --------------------------------------------------------------- panels */
.fpt-panel { margin-top: 16px; border: 1px solid var(--fpt-line); border-radius: 6px; overflow: hidden; background: #ffffff; }
.fpt-sec + .fpt-panel,
.fpt-notice + .fpt-panel,
.fpt-h2 + .fpt-panel { margin-top: 0; }
.fpt-panel--results { margin-top: 20px; }
.fpt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--fpt-blue); color: #ffffff; }
.fpt-bar__title { font-weight: 700; font-size: 15px; }
.fpt-bar__aside { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #dbe6f3; text-align: right; }
.fpt-bar__aside .fpt-i { color: #7fd3a6; }
.fpt-day { display: flex; justify-content: space-between; gap: 10px; padding: 6px 14px; border-top: 1px solid var(--fpt-line); background: #f5f5f5; font-size: 13px; font-weight: 700; }
.fpt-bar + .fpt-day { border-top: 0; }
.fpt-day__pts { color: var(--fpt-green); white-space: nowrap; }
.fpt-empty { padding: 16px 14px; color: var(--fpt-muted); font-size: 13px; }
.fpt-emptybox { margin-top: 18px; padding: 16px; border: 1px dashed #c9cfd6; border-radius: 6px; text-align: center; color: var(--fpt-muted); font-size: 13px; }
.fpt-more { padding: 12px 14px; border-top: 1px solid #ececec; }

/* ---------------------------------------------------- match row (member) */
.fpt-m { display: flex; flex-direction: column; padding: 12px 14px 10px; border-top: 1px solid #ececec; }
.fpt-m__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.fpt-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fpt-side--home { justify-content: flex-end; }
.fpt-side--away { flex-direction: row-reverse; justify-content: flex-end; }
.fpt-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 600; }
.fpt-side--home .fpt-team { flex-direction: row-reverse; text-align: right; }
.fpt-team__name { min-width: 0; overflow-wrap: anywhere; }
.fpt-crest { flex: 0 0 26px; width: 26px; height: 26px; object-fit: contain; }
.fpt-crest--empty { display: inline-block; border-radius: 50%; background: #e8eef5; }
.fpt-sep { color: #8a8a86; font-weight: 700; }

.fpt-step { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; flex: 0 0 auto; }
.fpt-play .fpt-step__btn { width: 44px; height: 20px; padding: 0; border: 0; background: transparent; color: #5b6b7c; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fpt-play .fpt-step__btn:hover { color: var(--fpt-blue); }
.fpt-play .fpt-step__btn[disabled] { display: none; }
.fpt-step__btn .fpt-i--plus,
.fpt-step__btn .fpt-i--minus { display: none; }
.fpt-play .fpt-box {
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #bcc4cf;
	border-radius: 5px;
	background: #ffffff;
	color: var(--fpt-navy);
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}
.fpt-play .fpt-box:focus { border-color: var(--fpt-blue); outline: 2px solid #7fb2e0; outline-offset: 0; }
.fpt-m.is-saved .fpt-box { border-color: var(--fpt-green); background: #f6fbf8; }
.fpt-m.is-locked .fpt-box { background: #f5f5f5; color: #6b6b6b; border-color: #d5d9de; }
.fpt-m.is-error .fpt-box { border-color: #b85e10; }

.fpt-m__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; }
.fpt-when { color: var(--fpt-muted); }
.fpt-when strong { color: var(--fpt-text); margin-right: 8px; }
.fpt-state { display: inline-flex; align-items: center; gap: 5px; }
.fpt-state--saved { color: var(--fpt-green); font-weight: 700; }
.fpt-state--todo { color: #8a5200; font-weight: 600; }
.fpt-state--saving { color: var(--fpt-muted); }
.fpt-state--error { color: #8a5200; font-weight: 700; }
.fpt-state--locked { color: #6b6b6b; }

/* ----------------------------------------------------- match row (guest) */
.fpt-g { display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px minmax(0, 1fr) 132px; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid #ececec; }
.fpt-g__time { font-weight: 700; }
.fpt-g__team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.fpt-g__team--home { justify-content: flex-end; text-align: right; }
.fpt-g__v { text-align: center; color: #8a8a86; font-weight: 700; }
.fpt-play .fpt-lockbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--fpt-orange); border-radius: 5px; background: #fff8f1; color: #b85e10; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.fpt-play .fpt-lockbtn:hover { background: #ffefe0; }
.fpt-g__locked { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; color: #6b6b6b; }

/* ------------------------------------------------------------- results */
.fpt-r { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #ececec; }
.fpt-r__teams { display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); align-items: center; gap: 8px; }
.fpt-r__home { text-align: right; font-weight: 600; }
.fpt-r__away { font-weight: 600; }
.fpt-r__score { text-align: center; font-weight: 800; font-size: 16px; color: var(--fpt-navy); white-space: nowrap; }
.fpt-r__pick { margin-top: 2px; text-align: center; font-size: 12px; color: var(--fpt-muted); }
.fpt-r__badge { display: flex; justify-content: flex-end; }
.fpt-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.fpt-badge--exact { background: var(--fpt-green); color: #ffffff; }
.fpt-badge--outcome { background: #e3f2ea; color: #17643e; }
.fpt-badge--wrong { background: #eeeeee; color: #4a4a4a; font-weight: 600; }
.fpt-badge--none { background: #ffffff; color: var(--fpt-muted); border: 1px dashed #b5b5b5; font-weight: 600; padding: 3px 10px; }

/* ------------------------------------------------- leaderboard teasers */
.fpt-climb { display: flex; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--fpt-line); border-radius: 6px; background: #fffdf7; }
.fpt-climb .fpt-trophy { flex: 0 0 64px; }
.fpt-climb__text { flex: 1 1 auto; min-width: 0; }
.fpt-climb__title { margin-bottom: 3px; font-weight: 700; font-size: 15px; }
.fpt-climb__body { font-size: 13px; line-height: 1.55; color: #4a4a4a; }
.fpt-climb .fpt-btn { flex: 0 0 auto; }

.fpt-play .fpt-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.fpt-play .fpt-top__item { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid #ecdfb4; border-radius: 8px; background: #fffcf2; }
.fpt-medal { flex: 0 0 34px; }
.fpt-top__text { min-width: 0; }
.fpt-top__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.fpt-top__pts { font-size: 12px; color: var(--fpt-muted); }

.fpt-joincard { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 16px 18px; border: 2px solid var(--fpt-orange); border-radius: 8px; background: #fff8f1; }
.fpt-joincard__title { font-weight: 800; font-size: 16px; }
.fpt-joincard__text { margin-top: 2px; font-size: 13px; color: #4a4a4a; }
.fpt-joincard__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.fpt-joincard .fpt-btn { height: 42px; }

.fpt-play--guest .fpt-btn.xoo-el-reg-tgr,
.fpt-play--guest .fpt-btn.xoo-el-login-tgr,
.fpt-play--guest .fpt-lockbtn.xoo-el-reg-tgr { display: inline-flex !important; }

/* Open podium places */
.fpt-play .fpt-top__item--open { background: #ffffff; border-style: dashed; border-color: #dccf9f; }
.fpt-top__item--open .fpt-medal { opacity: 0.55; }
.fpt-top__item--open .fpt-top__name { color: var(--fpt-muted); font-weight: 600; }

/* ---------------------------------------------------------------- toast */
.fpt-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100000;
	max-width: calc(100% - 32px);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 22px;
	background: var(--fpt-navy);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transform: translateX(-50%);
}
.fpt-toast[hidden] { display: none; }
.fpt-toast .fpt-i { color: #7fd3a6; }
.fpt-toast.is-error .fpt-i { color: #f6c48a; }

/* ----------------------------------------------------------------- mobile */
@media (max-width: 640px) {
	.fpt-hero { flex-direction: column; align-items: stretch; padding: 20px 16px; }
	.fpt-play .fpt-hero__title { font-size: 21px; }
	.fpt-play .fpt-hero__lead { font-size: 14px; }
	.fpt-howcard { flex: 0 0 auto; }
	.fpt-hero__top { flex-direction: column; gap: 8px; }
	.fpt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.fpt-lgrid { gap: 6px; }
	.fpt-lg__name { font-size: 13px; }

	.fpt-notice { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; }
	.fpt-notice .fpt-btn { grid-column: 2; justify-self: start; }
	.fpt-bar { flex-wrap: wrap; row-gap: 2px; }
	.fpt-bar__aside { white-space: nowrap; }

	.fpt-m { padding: 10px 12px; }
	.fpt-m__meta { order: -1; margin: 0 0 6px; font-size: 12px; }
	.fpt-m__teams { display: block; }
	.fpt-sep { display: none; }
	.fpt-side,
	.fpt-side--home,
	.fpt-side--away { flex-direction: row; justify-content: space-between; padding: 3px 0; }
	.fpt-side--home .fpt-team { flex-direction: row; text-align: left; }
	.fpt-team__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.fpt-step { flex-direction: row; gap: 0; }
	.fpt-play .fpt-step__btn { width: 40px; height: 44px; border: 1px solid #bcc4cf; background: #f9f9f9; color: var(--fpt-text); }
	.fpt-play .fpt-step__btn--minus { border-radius: 5px 0 0 5px; }
	.fpt-play .fpt-step__btn--plus { border-radius: 0 5px 5px 0; }
	.fpt-play .fpt-step__btn[disabled] { visibility: visible; opacity: 0.4; }
	.fpt-step__btn .fpt-i--plus,
	.fpt-step__btn .fpt-i--minus { display: inline; }
	.fpt-step__btn .fpt-i--up,
	.fpt-step__btn .fpt-i--down { display: none; }
	.fpt-play .fpt-box { border-left: 0; border-right: 0; border-radius: 0; }

	.fpt-g { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "time home" "time away" "btn btn"; row-gap: 4px; padding: 10px 12px; }
	.fpt-g__time { grid-area: time; align-self: start; }
	.fpt-g__team--home { grid-area: home; flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
	.fpt-g__team--away { grid-area: away; }
	.fpt-g__v { display: none; }
	.fpt-lockbtn,
	.fpt-g__locked { grid-area: btn; width: 100%; margin-top: 4px; }

	.fpt-r { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
	.fpt-r__badge { justify-content: center; }
	.fpt-r__teams { grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); font-size: 13px; }

	.fpt-climb { flex-direction: column; text-align: center; }
	.fpt-play .fpt-top { grid-template-columns: minmax(0, 1fr); }
	.fpt-joincard { flex-direction: column; align-items: stretch; text-align: center; }
	.fpt-joincard__actions { justify-content: center; }
	.fpt-bar { padding: 10px 12px; }
	.fpt-day { padding: 6px 12px; }
}

@media (max-width: 480px) {
	/* Two columns on phones, so "Champions League" and the status line stay on one row each. */
	.fpt-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
	.fpt-play .fpt-step__btn { width: 34px; }
	.fpt-play .fpt-box { width: 38px; }
	.fpt-stats { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
	.fpt-toast { transition: opacity 0.2s ease; }
}

/* ======================================================================
 * /leaderboard/ (step 3)
 * ==================================================================== */
.fpt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Podium hero */
.fpt-pod { position: relative; overflow: hidden; margin-top: 16px; padding: 22px 20px 0; border-radius: 8px; background: linear-gradient(160deg, #2c5a8f 0%, #1d3e66 70%); color: #ffffff; }
.fpt-play .fpt-pod__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.07; pointer-events: none; }
.fpt-pod__head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fpt-play .fpt-pod__title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; color: #ffffff; }
.fpt-play .fpt-pod__sub { margin: 2px 0 0; font-size: 13px; color: #dbe6f3; }
.fpt-play .fpt-pod__meta { margin: 0; font-size: 13px; line-height: 1.5; color: #dbe6f3; text-align: right; white-space: nowrap; }
.fpt-pod__cup { position: relative; display: flex; justify-content: center; margin-top: 4px; }
.fpt-pod__stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-top: 6px; }
.fpt-pod__p { display: flex; flex-direction: column; align-items: center; flex: 0 1 150px; min-width: 0; }
.fpt-pod__ava { position: relative; width: 58px; height: 58px; border-radius: 50%; background: #ffffff; color: #1d3e66; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.fpt-pod__p--1 .fpt-pod__ava { width: 70px; height: 70px; font-size: 21px; box-shadow: 0 0 0 4px #e8b630; }
.fpt-pod__medal { position: absolute; right: -10px; bottom: -8px; line-height: 0; }
.fpt-pod__name { max-width: 100%; margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 15px; color: #ffffff; }
.fpt-pod__p--1 .fpt-pod__name { font-size: 16px; }
.fpt-pod__pts { margin: 2px 0 8px; font-size: 13px; color: #dbe6f3; white-space: nowrap; }
.fpt-pod__pts strong { color: #ffffff; font-size: 18px; }
.fpt-pod__block { width: 100%; display: flex; justify-content: center; align-items: flex-start; padding-top: 10px; border-radius: 6px 6px 0 0; font-size: 34px; font-weight: 800; line-height: 1; }
.fpt-pod__p--1 .fpt-pod__block { background: #e8b630; color: #6b4c00; }
.fpt-pod__p--2 .fpt-pod__block { background: #cfd6dd; color: #5b6670; }
.fpt-pod__p--3 .fpt-pod__block { background: #d39a6a; color: #5e3414; }
.fpt-pod__p.is-open .fpt-pod__ava { background: rgba(255, 255, 255, 0.15); color: #dbe6f3; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.fpt-pod__p.is-open .fpt-pod__medal { opacity: 0.5; }
.fpt-pod__p.is-open .fpt-pod__name { color: #dbe6f3; font-weight: 600; }
.fpt-pod__p.is-open .fpt-pod__block { opacity: 0.45; }
.fpt-pod__p.is-me .fpt-pod__name { text-decoration: underline; text-underline-offset: 3px; }

/* Your position */
.fpt-you { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 14px 16px; border: 2px solid var(--fpt-blue); border-radius: 8px; background: #f3f8fd; }
.fpt-you__rank { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; font-size: 30px; font-weight: 800; line-height: 1; color: var(--fpt-blue); }
.fpt-you__shared { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--fpt-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fpt-you__move { margin-top: 4px; font-size: 12px; font-weight: 700; }
.fpt-you__move--up { color: var(--fpt-green); }
.fpt-you__move--down { color: #6b6b6b; }
.fpt-you__body { flex: 1 1 auto; min-width: 0; }
.fpt-you__title { font-weight: 700; font-size: 15px; }
.fpt-you__text { margin: 2px 0 0; font-size: 13px; color: #4a4a4a; }
.fpt-you__bar { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: #dbe5ef; }
.fpt-you__bar span { display: block; height: 100%; border-radius: 4px; background: var(--fpt-blue); }
.fpt-you .fpt-btn { flex: 0 0 auto; height: 42px; font-size: 14px; }
.fpt-you--plain { border-width: 1px; border-color: #c9dcee; }
.fpt-you--guest { border-color: var(--fpt-orange); background: #fff8f1; }
.fpt-you--guest .fpt-you__title { font-weight: 800; }
.fpt-you__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.fpt-play--guest .fpt-you .fpt-btn { display: inline-flex !important; }

/* Table */
.fpt-lb { margin-top: 16px; overflow: hidden; border: 1px solid var(--fpt-line); border-radius: 6px; background: #ffffff; }
.fpt-play .fpt-lb__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.fpt-play .fpt-lb__table th { padding: 10px 8px; border: 0; background: var(--fpt-blue); color: #ffffff; font-weight: 700; text-align: center; }
.fpt-play .fpt-lb__table td { padding: 11px 8px; border: 0; border-top: 1px solid #ececec; background: transparent; text-align: center; vertical-align: middle; }
.fpt-play .fpt-lb__table th.fpt-lb__name,
.fpt-play .fpt-lb__table td.fpt-lb__name { text-align: left; }
.fpt-lb__rank { width: 54px; font-weight: 800; }
.fpt-lb__mv { width: 44px; }
.fpt-lb__num { width: 64px; color: #4a4a4a; }
.fpt-lb__pts { width: 64px; font-weight: 800; color: var(--fpt-blue); }
.fpt-play .fpt-lb__table th.fpt-lb__pts { color: #ffffff; }
.fpt-lb__player { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpt-lb__sub { display: none; font-size: 12px; color: var(--fpt-muted); }
.fpt-play .fpt-lb__row.is-me td { background: #eaf2f9; }
.fpt-lb__row.is-me .fpt-lb__player { font-weight: 800; }
.fpt-lb__medal { display: inline-flex; line-height: 0; vertical-align: middle; }
.fpt-play .fpt-lb__row.is-top td { background: #fffcf2; }
.fpt-play .fpt-lb__row.is-top .fpt-lb__player { font-weight: 700; }
.fpt-play .fpt-lb__row.is-top.is-me td,
.fpt-play .fpt-lb__row.is-me td { background: #eaf2f9; }
.fpt-play .fpt-lb__gap td { padding: 6px; background: #fafafa; color: #777777; font-size: 12px; }
.fpt-mv { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; }
.fpt-mv--up { color: var(--fpt-green); }
.fpt-mv--down { color: #8a8a86; }
.fpt-mv--same { width: 8px; height: 2px; background: #c4c4c4; vertical-align: middle; }
.fpt-mv--new { color: #8a8a86; font-weight: 600; text-transform: lowercase; }
.fpt-play .fpt-lb__note { margin-top: 12px; line-height: 1.6; }

@media (max-width: 640px) {
	.fpt-pod { padding: 16px 12px 0; }
	.fpt-play .fpt-pod__title { font-size: 18px; }
	.fpt-pod__stage { gap: 8px; }
	.fpt-pod__p { flex: 1 1 0; }
	.fpt-pod__ava { width: 46px; height: 46px; font-size: 15px; }
	.fpt-pod__p--1 .fpt-pod__ava { width: 56px; height: 56px; font-size: 17px; }
	.fpt-pod__name { font-size: 13px; margin-top: 10px; }
	.fpt-pod__p--1 .fpt-pod__name { font-size: 14px; }
	.fpt-pod__pts { font-size: 12px; }
	.fpt-pod__pts strong { font-size: 15px; }
	.fpt-pod__block { font-size: 26px; padding-top: 8px; }
	.fpt-you { flex-wrap: wrap; gap: 12px; padding: 14px 12px; }
	.fpt-you .fpt-btn { flex: 1 1 100%; }
	.fpt-you__actions { flex: 1 1 100%; }
	.fpt-you__actions .fpt-btn { flex: 1 1 0; }
	/* Phones: two columns fewer; the automatic layout gives the player column the freed space. */
	.fpt-play .fpt-lb__table { table-layout: auto; }
	.fpt-play .fpt-lb__num { display: none; }
	.fpt-lb__rank,
	.fpt-lb__mv,
	.fpt-lb__pts { white-space: nowrap; }
	.fpt-lb__player { white-space: normal; overflow-wrap: anywhere; }
	.fpt-lb__sub { display: block; }
	.fpt-lb__rank { width: 44px; }
	.fpt-lb__mv { width: 34px; }
	.fpt-lb__pts { width: 48px; }
	.fpt-play .fpt-lb__table th,
	.fpt-play .fpt-lb__table td { padding-left: 6px; padding-right: 6px; }
}
