@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
	--gf-green: #083d2e;
	--gf-green-2: #0d5a44;
	--gf-green-deep: #052a20;
	--gf-lemon: #fff200;
	--gf-black: #0a0a0a;
	--gf-white: #f7fbf5;
	--gf-muted: #4c5b54;
	--gf-line: #d7e2db;
	--gf-radius: 16px;
	--gf-max: 1140px;
}

/* Take over the page: no Frappe navbar/footer/breadcrumbs */
body[data-path="fair"] .navbar,
body[data-path="fair"] .web-footer,
body[data-path="fair"] .page-header,
body[data-path="fair"] .breadcrumb,
body[data-path="activate"] .navbar,
body[data-path="activate"] .web-footer,
body[data-path="activate"] .page-header,
body[data-path="gate"] .navbar,
body[data-path="gate"] .web-footer,
body[data-path="gate"] .page-header {
	display: none !important;
}

body:has(.gf-site),
body:has(.gf-site) .main-section,
body:has(.gf-site) .page_content,
body:has(.gf-site) .page-content-wrapper,
body:has(.gf-site) .container,
body:has(.gf-site) .container.page-body {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body:has(.gf-site) {
	font-family: "Poppins", system-ui, sans-serif;
	color: var(--gf-black);
	background: var(--gf-white);
	scroll-behavior: smooth;
}

.gf-wrap {
	width: min(var(--gf-max), 100% - 2rem);
	margin: 0 auto;
}

.gf-site h1, .gf-site h2, .gf-site h3 { font-family: "Poppins", sans-serif; letter-spacing: -0.02em; margin: 0; color: inherit; }
.gf-site p { margin: 0; }
.gf-site a { color: inherit; }

/* ---------- Buttons ---------- */
.gf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	border: 2px solid var(--gf-lemon);
	background: var(--gf-lemon);
	color: var(--gf-black) !important;
	font: 600 1rem "Poppins", sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.gf-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
.gf-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, 0.55); }
.gf-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.gf-btn:focus-visible, .gf-input:focus-visible, .gf-link:focus-visible {
	outline: 3px solid var(--gf-lemon);
	outline-offset: 3px;
}

/* ---------- Nav ---------- */
.gf-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(5, 42, 32, 0.92);
	backdrop-filter: blur(10px);
	color: #fff;
	transition: box-shadow 0.2s ease;
}
.gf-nav.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
.gf-nav-inner { display: flex; align-items: center; gap: 1.25rem; padding: 0.7rem 0; }
.gf-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.15rem; text-decoration: none !important; }
.gf-brand svg { width: 34px; height: 34px; }
.gf-nav-links { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; font-size: 0.92rem; font-weight: 500; }
.gf-nav-links a { text-decoration: none !important; opacity: 0.85; }
.gf-nav-links a:hover { opacity: 1; }
.gf-nav .gf-btn { padding: 0.5rem 1.15rem; font-size: 0.9rem; opacity: 1; }

/* ---------- Hero ---------- */
.gf-hero {
	position: relative;
	color: #fff;
	background:
		radial-gradient(ellipse 60% 50% at 15% 0%, rgba(255, 242, 0, 0.14), transparent 60%),
		radial-gradient(ellipse 70% 60% at 100% 100%, var(--gf-green-2), transparent 62%),
		linear-gradient(160deg, #0a4a37 0%, var(--gf-green) 55%, var(--gf-green-deep) 100%);
	padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
	overflow: hidden;
}
.gf-hero-video {
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	background: #000;
	aspect-ratio: 16 / 9;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.gf-hero-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.gf-unmute {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	padding: 0.55rem 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--gf-lemon);
	color: var(--gf-black);
	font: 600 0.85rem "Poppins", sans-serif;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.gf-hero-copy { text-align: center; margin-top: clamp(1.75rem, 4vw, 3rem); }
.gf-eyebrow { letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.75rem; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.gf-hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.05; margin-top: 0.6rem; }
.gf-hero h1 span { color: var(--gf-lemon); }
.gf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.4rem; }
.gf-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 0.92rem;
	font-weight: 500;
}
.gf-hero .gf-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.8rem; }

.gf-countdown { display: flex; justify-content: center; gap: clamp(0.5rem, 2vw, 1rem); margin-top: 2rem; }
.gf-countdown div {
	min-width: 76px;
	padding: 0.7rem 0.4rem;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.14);
	text-align: center;
}
.gf-countdown strong { display: block; font-size: 1.7rem; font-weight: 700; color: var(--gf-lemon); font-variant-numeric: tabular-nums; }
.gf-countdown span { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }

/* ---------- Sections ---------- */
.gf-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.gf-section.is-dark { background: var(--gf-green); color: #fff; }
.gf-section.is-alt { background: #fff; }
.gf-kicker { color: var(--gf-green-2); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.75rem; font-weight: 600; }
.is-dark .gf-kicker { color: var(--gf-lemon); }
.gf-h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.1; margin-top: 0.6rem; }
.gf-h2::after { content: ""; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--gf-lemon); margin-top: 0.9rem; }
.is-alt .gf-h2::after, .gf-section:not(.is-dark) .gf-h2::after { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.gf-lead { margin-top: 1.2rem; max-width: 62ch; font-size: 1.05rem; line-height: 1.7; color: var(--gf-muted); }
.is-dark .gf-lead { color: rgba(255, 255, 255, 0.85); }
.gf-prose { margin-top: 1.2rem; max-width: 70ch; line-height: 1.75; color: var(--gf-muted); }
.gf-prose p + p { margin-top: 0.9rem; }
.is-dark .gf-prose { color: rgba(255, 255, 255, 0.88); }

.gf-grid { display: grid; gap: 1.25rem; margin-top: 2.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gf-card {
	background: #fff;
	border: 1px solid var(--gf-line);
	border-radius: var(--gf-radius);
	padding: 1.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gf-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(8, 61, 46, 0.12); }
.gf-card .gf-icon { font-size: 2rem; line-height: 1; }
.gf-card h3 { font-size: 1.15rem; font-weight: 600; margin-top: 0.8rem; }
.gf-card .gf-when { display: inline-block; margin-top: 0.5rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--gf-lemon); color: var(--gf-black); font-size: 0.75rem; font-weight: 600; }
.gf-card p { margin-top: 0.6rem; color: var(--gf-muted); font-size: 0.95rem; line-height: 1.6; }

/* prizes */
.gf-prize { position: relative; padding: 0; overflow: hidden; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.gf-prize .gf-prize-img {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, var(--gf-green-2), var(--gf-green-deep));
	display: flex;
	align-items: center;
	justify-content: center;
}
.gf-prize .gf-prize-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gf-prize .gf-prize-img svg { width: 84px; height: 84px; opacity: 0.9; }
.gf-prize .gf-prize-body { padding: 1.1rem 1.25rem 1.4rem; }
.gf-prize h3 { margin: 0; }
.gf-prize p { color: rgba(255, 255, 255, 0.8); }
.gf-prize.is-grand { border-color: var(--gf-lemon); box-shadow: 0 0 0 1px var(--gf-lemon), 0 20px 50px rgba(255, 242, 0, 0.12); }
.gf-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: var(--gf-lemon);
	color: var(--gf-black);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gf-empty {
	margin-top: 2rem;
	padding: 1.6rem;
	border: 2px dashed var(--gf-line);
	border-radius: var(--gf-radius);
	color: var(--gf-muted);
	text-align: center;
}
.is-dark .gf-empty { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.8); }

/* raffle */
.gf-raffle { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .gf-raffle { grid-template-columns: 1.1fr 0.9fr; } }
.gf-draw {
	margin-top: 1.4rem;
	padding: 1.1rem 1.3rem;
	border-radius: var(--gf-radius);
	background: var(--gf-lemon);
	color: var(--gf-black);
}
.gf-draw small { display: block; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.68rem; font-weight: 600; }
.gf-draw strong { display: block; font-size: 1.25rem; font-weight: 700; margin-top: 0.25rem; }
.gf-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0.9rem; }
.gf-steps li {
	counter-increment: s;
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	padding: 1rem 1.1rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	line-height: 1.5;
}
.gf-steps li::before {
	content: counter(s);
	flex: none;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--gf-lemon);
	color: var(--gf-black);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

/* sponsors */
.gf-sponsors { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.2rem; align-items: stretch; }
.gf-sponsor {
	flex: 1 1 180px;
	max-width: 260px;
	height: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.4rem;
	background: #fff;
	border: 1px solid var(--gf-line);
	border-radius: var(--gf-radius);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gf-sponsor:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(8, 61, 46, 0.12); }
.gf-sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* register */
.gf-register { display: grid; gap: 2.2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .gf-register { grid-template-columns: 1fr 1fr; } }
.gf-form {
	background: #fff;
	color: var(--gf-black);
	border-radius: 20px;
	padding: clamp(1.4rem, 3vw, 2.2rem);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}
.gf-form h3 { font-size: 1.4rem; font-weight: 700; }
.gf-field { margin-top: 1.1rem; }
.gf-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.gf-input {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--gf-line);
	border-radius: 12px;
	font: 400 1rem "Poppins", sans-serif;
	background: #fff;
	color: var(--gf-black);
}
.gf-input:focus { border-color: var(--gf-green); outline: none; box-shadow: 0 0 0 3px rgba(255, 242, 0, 0.6); }
.gf-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.gf-form .gf-btn { width: 100%; margin-top: 1.4rem; }
.gf-form .gf-btn[disabled] { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.gf-msg { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.92rem; display: none; line-height: 1.5; }
.gf-msg.is-err { display: block; background: #fdeaea; color: #8a1c1c; }
.gf-msg.is-ok { display: block; background: #e6f6ec; color: #0e5a2f; }
.gf-fineprint { margin-top: 0.9rem; font-size: 0.78rem; color: var(--gf-muted); text-align: center; }
.gf-success { display: none; text-align: center; padding: 1rem 0; }
.gf-success svg { width: 64px; height: 64px; }
.gf-success h3 { margin-top: 0.8rem; }
.gf-success p { margin-top: 0.6rem; color: var(--gf-muted); line-height: 1.6; }

/* footer */
.gf-footer { background: var(--gf-green-deep); color: rgba(255, 255, 255, 0.85); padding: 2.2rem 0; }
.gf-footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.88rem; }
.gf-footer a { text-decoration: underline !important; text-underline-offset: 3px; }

/* reveal on scroll */
.gf-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.gf-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.gf-reveal { opacity: 1; transform: none; transition: none; }
	body:has(.gf-site) { scroll-behavior: auto; }
	.gf-btn, .gf-card, .gf-sponsor { transition: none; }
}

@media (max-width: 720px) {
	.gf-nav-links a:not(.gf-btn) { display: none; }
	.gf-countdown div { min-width: 62px; }
	.gf-countdown strong { font-size: 1.35rem; }
}

/* ---------- activate + gate (focused single-card pages) ---------- */
.gf-focus {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background:
		radial-gradient(ellipse 60% 50% at 15% 0%, rgba(255, 242, 0, 0.14), transparent 60%),
		linear-gradient(160deg, #0a4a37 0%, var(--gf-green) 55%, var(--gf-green-deep) 100%);
}
.gf-focus-card { width: min(460px, 100%); }
.gf-focus-card .gf-brand { color: #fff; justify-content: center; margin-bottom: 1.2rem; }

.gf-gate-status { border-radius: 16px; padding: 1.2rem 1.3rem; margin-top: 1.2rem; text-align: center; display: none; }
.gf-gate-status.is-ok { display: block; background: #e6f6ec; color: #0e5a2f; }
.gf-gate-status.is-warn { display: block; background: #fff8cc; color: #6a5a00; }
.gf-gate-status.is-bad { display: block; background: #fdeaea; color: #8a1c1c; }
.gf-gate-status strong { display: block; font-size: 1.5rem; font-weight: 700; }
.gf-gate-status .gf-gate-name { font-size: 1.15rem; font-weight: 600; margin-top: 0.4rem; color: var(--gf-black); }
.gf-gate-status small { display: block; margin-top: 0.3rem; opacity: 0.85; }
#gf-scanner { width: 100%; margin-top: 1rem; border-radius: 14px; overflow: hidden; }

.gf-form-sub { margin: 1.3rem 0 0; font-size: 0.95rem; font-weight: 700; color: var(--gf-green); }
.gf-fieldset { border: 0; padding: 0; margin: 1.1rem 0 0; min-width: 0; }
.gf-fieldset legend { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; padding: 0; }
.gf-fieldset legend small { color: var(--gf-muted); font-weight: 400; }
.gf-check { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.4rem 0; font-size: 0.9rem; line-height: 1.4; cursor: pointer; }
.gf-check input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; flex: none; accent-color: var(--gf-green); }
.gf-consent { margin-top: 0.6rem; }
.gf-fieldset .gf-input { margin-top: 0.3rem; }
