/* GadgetFair football tournament — cinematic fight-card presentation */
:root {
	--gf-green: #013a24;
	--gf-green-2: #0d5a44;
	--gf-lemon: #e9f205;
}

.gft-page {
	min-height: 100vh;
	color: #eef3ee;
	background:
		radial-gradient(ellipse 60% 50% at 15% 0%, rgba(13, 90, 68, 0.55), transparent 60%),
		radial-gradient(ellipse 60% 50% at 100% 100%, rgba(233, 242, 5, 0.08), transparent 62%),
		linear-gradient(160deg, #06130d 0%, #04100b 60%, #020a07 100%);
	font-family: "Poppins", system-ui, sans-serif;
}
.gft-page h1, .gft-page h2, .gft-page h3, .gft-page h4 { color: #fff; margin: 0; font-family: "Poppins", sans-serif; }
.gft-wrap { width: min(1100px, 100% - 2rem); margin: 0 auto; }

/* top bar */
.gft-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.gft-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; font-weight: 600; }
.gft-brand img { width: 34px; height: 34px; }
.gft-top a { color: #cfe0d6; text-decoration: none; font-size: 0.9rem; }
.gft-top a:hover { color: #fff; }

/* hero */
.gft-hero { text-align: center; padding: 1.6rem 0 1.2rem; }
.gft-status { display: inline-block; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.72rem; font-weight: 700; color: var(--gf-lemon); border: 1px solid rgba(233, 242, 5, 0.4); border-radius: 999px; padding: 0.3rem 0.9rem; }
.gft-hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0.9rem 0 0.2rem; line-height: 1; text-transform: uppercase; color: #fff; }
.gft-hero .gft-sub { color: #c7d7cd; font-size: 1.05rem; }
.gft-meta { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; color: #cfe0d6; font-size: 0.92rem; }
.gft-meta span { display: inline-flex; gap: 0.4rem; align-items: center; }

/* ---------- photo frames ---------- */
.gft-ph { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #0c1d14; flex: none; border: 2px solid var(--edge, rgba(255,255,255,.14)); }
.gft-ph .gft-ph-img { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.gft-ph .gft-mono { font-weight: 800; color: #8fa89b; letter-spacing: 0.02em; }
.gft-ph-ava { width: 44px; height: 44px; border-radius: 50%; }
.gft-ph-ava .gft-mono { font-size: 0.85rem; }
.gft-ph-mug { width: 66px; height: 66px; border-radius: 12px; }
.gft-ph-mug .gft-mono { font-size: 1.1rem; }
.gft-ph-fighter { width: 100%; height: 230px; border-radius: 14px; }
.gft-ph-fighter .gft-mono { font-size: 3rem; }

/* ---------- MAIN EVENT ---------- */
.gft-main { margin: 1.4rem 0 0.4rem; padding: 1.3rem; border-radius: 20px;
	background: linear-gradient(180deg, rgba(1,58,36,.5), rgba(3,14,9,.85)); border: 1px solid rgba(233,242,5,.28);
	box-shadow: 0 20px 60px rgba(0,0,0,.45); position: relative; overflow: hidden; }
.gft-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(233,242,5,.1), transparent 60%); pointer-events: none; }
.gft-main-tag { text-align: center; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.74rem; font-weight: 800; color: var(--gf-lemon); margin-bottom: 1rem; }
.gft-live { color: #ff5a5a; margin-left: 0.4rem; animation: gftpulse 1.4s infinite; }
@keyframes gftpulse { 50% { opacity: 0.35; } }
.gft-bout { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.gft-fighter { text-align: center; }
.gft-fighter .gft-fname { font-weight: 800; font-size: clamp(1.1rem, 2.6vw, 1.7rem); text-transform: uppercase; margin-top: 0.7rem; line-height: 1.05; color: #fff; }
.gft-fighter .gft-ftag { color: #9fb6a8; font-size: 0.86rem; margin-top: 0.15rem; }
.gft-fighter.is-win .gft-ph { border-color: var(--gf-lemon); box-shadow: 0 0 26px rgba(233,242,5,.4); }
.gft-fighter.is-win .gft-fname { color: var(--gf-lemon); }
.gft-fighter.is-lose { opacity: 0.6; }
.gft-crown { font-size: 0.9em; }
.gft-vsbig { font-weight: 800; font-size: clamp(1.3rem, 3vw, 2.2rem); color: #fff; text-shadow: 0 0 20px rgba(233,242,5,.5); letter-spacing: 0.05em; }
.gft-main-foot { text-align: center; color: #cfe0d6; font-size: 0.9rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,.1); }

/* enter / upload CTA */
.gft-cta { max-width: 560px; margin: 1.4rem auto 0; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 1.3rem; text-align: center; }
.gft-cta h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.gft-cta p { color: #c7d7cd; font-size: 0.9rem; margin: 0 0 0.9rem; }
.gft-input { width: 100%; box-sizing: border-box; padding: 0.75rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.25); color: #fff; font: 500 1rem "Poppins", sans-serif; margin-bottom: 0.7rem; }
.gft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.6rem; border-radius: 999px; border: 2px solid var(--gf-lemon); background: var(--gf-lemon); color: #0a140f; font: 700 1rem "Poppins", sans-serif; cursor: pointer; text-decoration: none; }
.gft-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.gft-btn[disabled] { opacity: 0.6; cursor: wait; }
.gft-btn-sm { padding: 0.5rem 1rem; font-size: 0.86rem; }
.gft-pill { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: rgba(233, 242, 5, 0.14); color: var(--gf-lemon); }
.gft-upload { display: flex; align-items: center; gap: 0.9rem; justify-content: center; margin-top: 1rem; text-align: left; flex-wrap: wrap; }
.gft-up-prev { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; position: relative; background: #0c1d14; border: 2px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex: none; }
.gft-up-prev .gft-ph-img { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.gft-up-prev .gft-mono { font-weight: 800; color: #8fa89b; }

/* champion banner */
.gft-champ { text-align: center; margin: 1.5rem 0; padding: 1.6rem; border-radius: 18px; background: linear-gradient(135deg, rgba(233, 242, 5, 0.16), rgba(13, 90, 68, 0.2)); border: 1px solid rgba(233, 242, 5, 0.4); }
.gft-champ small { letter-spacing: 0.25em; text-transform: uppercase; font-size: 0.72rem; color: var(--gf-lemon); font-weight: 700; }
.gft-champ .gft-champ-name { font-size: 1.9rem; font-weight: 800; margin-top: 0.3rem; color: #fff; }

/* section titles */
.gft-sec { margin: 2.4rem 0 1rem; text-align: center; }
.gft-sec h2 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; }
.gft-sec .gft-kick { color: var(--gf-lemon); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.72rem; font-weight: 700; }
.gft-vsx { color: var(--gf-lemon); }

/* teams */
.gft-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 680px) { .gft-teams { grid-template-columns: 1fr; } }
.gft-team { border-radius: 16px; padding: 1.1rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-top: 4px solid var(--team, #888); }
.gft-team h3 { margin: 0 0 0.8rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; color: #fff; }
.gft-team h3 .gft-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--team, #888); }
.gft-player { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.gft-player:last-child { border-bottom: 0; }
.gft-player .gft-pn { flex: 1; font-weight: 600; font-size: 0.95rem; color: #eef3ee; }
.gft-player .gft-pg { display: block; color: #90a89a; font-size: 0.8rem; font-weight: 400; }
.gft-player .gft-wins { font-size: 0.78rem; color: var(--gf-lemon); font-weight: 700; }
.gft-player.is-out { opacity: 0.5; }
.gft-player.is-out .gft-pn { text-decoration: line-through; }

/* undercard / fight card */
.gft-round { margin-bottom: 1.4rem; }
.gft-round-name { text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; color: var(--gf-lemon); margin-bottom: 0.8rem; }
.gft-cards { display: flex; flex-direction: column; gap: 0.7rem; max-width: 800px; margin: 0 auto; }
.gft-uc { background: linear-gradient(90deg, rgba(1,58,36,.35), rgba(10,20,15,.65), rgba(1,58,36,.35)); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 0.7rem 0.9rem; }
.gft-uc-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.7rem; }
.gft-uc-side { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.gft-uc-side.b { flex-direction: row-reverse; text-align: right; }
.gft-uc-txt { min-width: 0; }
.gft-uc-nm { font-weight: 700; font-size: 0.98rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gft-uc-tg { font-size: 0.76rem; color: #90a89a; }
.gft-uc-side.is-win .gft-uc-nm { color: var(--gf-lemon); }
.gft-uc-side.is-win .gft-ph { border-color: var(--gf-lemon); box-shadow: 0 0 14px rgba(233,242,5,.4); }
.gft-uc-side.is-lose { opacity: 0.5; }
.gft-vs { font-weight: 800; color: #7f9488; font-size: 0.82rem; letter-spacing: 0.1em; }
.gft-badge-win { display: inline-block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; color: #0a140f; background: var(--gf-lemon); border-radius: 4px; padding: 0.05rem 0.3rem; margin-left: 0.35rem; vertical-align: middle; }
.gft-when { text-align: center; font-size: 0.72rem; color: #8aa093; margin-top: 0.5rem; padding-top: 0.4rem; border-top: 1px solid rgba(255,255,255,.07); }

.gft-empty { text-align: center; color: #90a89a; padding: 2rem 1rem; }
.gft-note { text-align: center; color: #90a89a; font-size: 0.86rem; margin: 0.6rem 0; }
.gft-foot { text-align: center; color: #6f8578; font-size: 0.8rem; padding: 2.5rem 0 2rem; }

.gft-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
@media (max-width: 680px) { .gft-twocol { grid-template-columns: 1fr; } }
.gft-panel { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 1.2rem 1.3rem; }
.gft-panel h3 { margin: 0 0 0.6rem; color: var(--gf-lemon); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.gft-prose { color: #c4d4c9; line-height: 1.7; white-space: pre-wrap; }

/* Force our text colours over the Frappe web base (which paints span/div #525252) */
.gft-page .gft-status { color: var(--gf-lemon) !important; }
.gft-page .gft-sub { color: #c7d7cd !important; }
.gft-page .gft-meta, .gft-page .gft-meta span { color: #cfe0d6 !important; }
.gft-page .gft-main-tag { color: var(--gf-lemon) !important; }
.gft-page .gft-live { color: #ff5a5a !important; }
.gft-page .gft-vsbig { color: #fff !important; }
.gft-page .gft-vs { color: #8aa093 !important; }
.gft-page .gft-badge-win { color: #0a140f !important; }
.gft-page .gft-uc-tg, .gft-page .gft-pg, .gft-page .gft-when,
.gft-page .gft-note, .gft-page .gft-empty, .gft-page .gft-foot,
.gft-page .gft-main-foot { color: #90a89a !important; }
.gft-page .gft-wins, .gft-page .gft-pill, .gft-page .gft-kick,
.gft-page .gft-champ small { color: var(--gf-lemon) !important; }
.gft-page .gft-prose { color: #c4d4c9 !important; }
.gft-page .gft-uc-nm, .gft-page .gft-pn, .gft-page .gft-fname { color: #eef3ee !important; }
.gft-page .gft-uc-side.is-win .gft-uc-nm,
.gft-page .gft-fighter.is-win .gft-fname { color: var(--gf-lemon) !important; }
.gft-page .gft-ftag { color: #9fb6a8 !important; }
.gft-page .gft-vsx { color: var(--gf-lemon) !important; }

/* ---------- scores ---------- */
.gft-score { font-weight: 800; letter-spacing: 0.04em; color: #fff !important; font-size: 1.15rem; white-space: nowrap; text-align: center; }
.gft-score small { display: block; font-size: 0.6rem; letter-spacing: 0.12em; color: #7f9488; font-weight: 700; }
.gft-vsbig.gft-score { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.gft-votebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.3rem; margin-top: 0.4rem; }

/* ---------- countdown strip on the tournament page ---------- */
.gft-countstrip { display: flex; align-items: center; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin: 1.2rem auto 0; padding: 0.7rem 1rem; max-width: 560px; border-radius: 999px; border: 1px solid rgba(233, 242, 5, 0.35); background: rgba(233, 242, 5, 0.07); text-decoration: none; color: #fff !important; font-weight: 600; font-size: 0.9rem; }
.gft-countstrip b { color: var(--gf-lemon); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.gft-countstrip:hover { background: rgba(233, 242, 5, 0.14); }

/* ---------- /final countdown page ---------- */
.gfc-hero h1 { font-size: clamp(1.8rem, 6vw, 3.2rem); }
.gfc-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.4rem, 2vw, 1rem); max-width: 720px; margin: 1.6rem auto 0.8rem; }
.gfc-clock[hidden] { display: none; }
.gfc-cell { text-align: center; padding: clamp(0.7rem, 3vw, 1.4rem) 0.2rem; border-radius: 16px; background: linear-gradient(180deg, rgba(1, 58, 36, 0.65), rgba(3, 14, 9, 0.9)); border: 1px solid rgba(233, 242, 5, 0.28); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
.gfc-cell b { display: block; font-size: clamp(2rem, 11vw, 4.6rem); font-weight: 800; line-height: 1; color: var(--gf-lemon); font-variant-numeric: tabular-nums; }
.gfc-cell small { display: block; margin-top: 0.4rem; font-size: clamp(0.6rem, 2.4vw, 0.8rem); letter-spacing: 0.16em; text-transform: uppercase; color: #9fb6a8; font-weight: 700; }
.gfc-live { text-align: center; margin: 1.6rem auto 0.8rem; padding: 1.2rem; max-width: 720px; border-radius: 16px; font-weight: 800; font-size: clamp(1.1rem, 4.5vw, 1.8rem); letter-spacing: 0.06em; color: #ff5a5a; border: 1px solid rgba(255, 90, 90, 0.5); background: rgba(255, 90, 90, 0.08); animation: gftpulse 1.4s infinite; }
.gfc-live[hidden] { display: none; }
.gfc-when { text-align: center; color: #cfe0d6; font-size: 1rem; line-height: 1.8; margin: 0.4rem 0 1.4rem; }
.gfc-pending { text-align: center; margin: 1.6rem auto; max-width: 560px; padding: 1.6rem 1rem; border-radius: 16px; border: 1px dashed rgba(233, 242, 5, 0.4); }
.gfc-pending-big { font-size: 1.4rem; font-weight: 800; color: var(--gf-lemon); }
.gfc-pending p { color: #9fb6a8; margin: 0.5rem 0 0; }
.gfc-vsrow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.8rem; align-items: start; max-width: 560px; margin: 1rem auto; }
.gfc-fin { text-align: center; min-width: 0; }
.gfc-fin .gfc-ph { width: 72px; height: 72px; }
.gfc-fn { font-weight: 800; margin-top: 0.5rem; text-transform: uppercase; font-size: 1rem; line-height: 1.1; overflow-wrap: anywhere; }
.gfc-ft { color: #9fb6a8; font-size: 0.8rem; }
.gfc-vs { align-self: center; font-size: 1.3rem; font-weight: 800; color: #fff !important; letter-spacing: 0.05em; text-shadow: 0 0 20px rgba(233,242,5,.5); }
.gfc-team { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff !important; font-weight: 700; }
.gfc-team i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(255,255,255,.35); }
.gfc-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin: 1.6rem 0 0; }
.gfc-ghost { background: transparent !important; color: var(--gf-lemon) !important; }
.gft-page .gfc-fn { color: #eef3ee !important; }
.gft-page .gfc-when { color: #cfe0d6 !important; }
.gft-page .gfc-cell b { color: var(--gf-lemon) !important; }

/* ---------- phones: fixtures, results and the Final read cleanly ---------- */
@media (max-width: 600px) {
	.gft-wrap { width: calc(100% - 1.4rem); }
	.gft-hero { padding: 1rem 0 0.8rem; }
	.gft-hero h1 { font-size: 1.9rem; }
	.gft-meta { gap: 0.5rem 1rem; font-size: 0.85rem; }
	.gft-sec { margin: 1.8rem 0 0.8rem; }
	.gft-sec h2 { font-size: 1.2rem; }

	/* Main Event: two fighters side by side with VS badge on the seam */
	.gft-main { padding: 1rem 0.7rem; border-radius: 16px; }
	.gft-bout { grid-template-columns: 1fr 1fr; gap: 0.6rem; position: relative; align-items: start; }
	.gft-vsbig { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); font-size: 0.95rem; padding: 0.3rem 0.55rem; border-radius: 999px; background: #04100b; border: 1px solid rgba(233, 242, 5, 0.5); z-index: 2; text-shadow: none; }
	.gft-vsbig.gft-score { font-size: 1.05rem; top: 56px; }
	.gft-ph-fighter { height: 150px; }
	.gft-ph-fighter .gft-mono { font-size: 2.2rem; }
	.gft-fighter .gft-fname { font-size: 0.98rem; overflow-wrap: anywhere; }
	.gft-main-foot { font-size: 0.82rem; }

	/* Undercard: one player per line, VS between, nothing cut off */
	.gft-uc { padding: 0.65rem 0.7rem; }
	.gft-uc-row { grid-template-columns: 1fr; gap: 0.25rem; }
	.gft-uc-side, .gft-uc-side.b { flex-direction: row; text-align: left; gap: 0.65rem; }
	.gft-uc-nm { white-space: normal; overflow: visible; font-size: 0.95rem; overflow-wrap: anywhere; }
	.gft-ph-mug { width: 52px; height: 52px; border-radius: 10px; }
	.gft-vs { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-size: 0.72rem; margin: 0; }
	.gft-vs::before, .gft-vs::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }
	.gft-vs.gft-score { font-size: 1.05rem; }
	.gft-vs.gft-score small { display: inline; margin-right: 0.4rem; }
	.gft-when { font-size: 0.72rem; }

	.gft-team { padding: 0.9rem; }
	.gft-countstrip { border-radius: 16px; font-size: 0.85rem; }
}
@media (max-width: 600px) { .gft-uc .gft-votebox { justify-content: flex-start; } }
