/* GAC Oktoberfest Quiz: Bavarian blue, cream and beer gold. */
.gacq-stage {
	--navy: #0A2342;
	--navy-2: #0F2F5A;
	--blue: #1C5BA8;
	--cream: #FBF7EC;
	--ink: #0A2342;
	--gold: #F5B700;
	--gold-deep: #B98A00;
	--gold-ink: #3B2A00;
	--mute: #A9BDDA;
	--err: #B3261E;
	margin: 0;
	min-height: 100vh;
	color: var(--cream);
	font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	background-color: var(--navy);
	background-image:
		linear-gradient(135deg, #0D2B52 25%, transparent 25%),
		linear-gradient(225deg, #0D2B52 25%, transparent 25%),
		linear-gradient(315deg, #0D2B52 25%, transparent 25%),
		linear-gradient(45deg, #0D2B52 25%, transparent 25%);
	background-size: 96px 96px;
	background-position: -48px 0, -48px 0, 0 0, 0 0;
}
.gacq-stage *, .gacq-stage *::before, .gacq-stage *::after { box-sizing: border-box; }
.gacq-stage h1, .gacq-stage h2, .gacq-stage h3, .gacq-stage p { margin: 0; }
.gacq-stage button, .gacq-stage input { font-family: inherit; }

/* ---------- Shared pieces ---------- */
.gacq-brandbar { display: flex; align-items: center; gap: 14px; }
.gacq-logo {
	width: 68px; height: 68px; flex: none;
	background: #fff; border-radius: 16px; padding: 6px; object-fit: contain;
	box-shadow: 0 8px 20px rgba(2, 10, 24, .35);
}
.gacq-brand {
	font-family: 'UnifrakturCook', 'Germania One', serif;
	color: var(--gold); font-size: 40px; line-height: 1; font-weight: 700;
}
.gacq-brandsub {
	font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; font-size: 15px; color: var(--mute);
	margin-top: 4px;
}
.gacq-title {
	font-family: 'Germania One', serif; font-weight: 400;
	font-size: clamp(36px, 10vw, 54px); line-height: 1.04; letter-spacing: .005em;
}
.gacq-title em { font-style: normal; color: var(--gold); }
.gacq-lead { font-size: 19px; line-height: 1.45; color: #D9E5F6; }
.gacq-muted { color: var(--mute); font-size: 16px; line-height: 1.4; }
.gacq-fine { color: var(--mute); font-size: 15px; line-height: 1.4; }

.gacq-btn {
	display: block; width: 100%; min-height: 62px; border: 0; border-radius: 16px; cursor: pointer;
	background: var(--gold); color: var(--gold-ink);
	font-family: 'Germania One', serif; font-size: 26px; letter-spacing: .01em;
	box-shadow: 0 6px 0 var(--gold-deep), 0 16px 28px rgba(2, 10, 24, .35);
	transition: transform .08s ease, box-shadow .08s ease;
}
.gacq-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-deep), 0 8px 16px rgba(2, 10, 24, .35); }
.gacq-btn:disabled { opacity: .6; cursor: wait; }
.gacq-btn:focus-visible, .gacq-opt:focus-visible, .gacq-input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gacq-btn.is-ghost {
	background: transparent; color: var(--cream); border: 2px solid rgba(251, 247, 236, .4); box-shadow: none;
	font-size: 22px; min-height: 56px;
}

/* ---------- Quiz ---------- */
.gacq-shell {
	max-width: 560px; margin: 0 auto; padding: 22px 18px 44px; min-height: 100vh;
	display: flex; flex-direction: column; gap: 20px;
}
.gacq-card {
	background: var(--cream); color: var(--ink); border-radius: 22px; padding: 22px 20px;
	box-shadow: 0 18px 40px rgba(2, 10, 24, .45);
	display: flex; flex-direction: column; gap: 14px;
}
.gacq-field { display: flex; flex-direction: column; gap: 6px; }
.gacq-label { font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.gacq-input {
	width: 100%; height: 56px; padding: 0 16px; font-size: 19px; font-weight: 500;
	border: 2px solid #C5D3E8; border-radius: 14px; background: #fff; color: var(--ink);
}
.gacq-input:focus { border-color: var(--blue); }
.gacq-input.is-bad { border-color: var(--err); }
.gacq-error { color: var(--err); font-size: 15px; font-weight: 600; line-height: 1.35; min-height: 0; }
.gacq-alert {
	background: #FDECEA; color: var(--err); border-radius: 12px; padding: 12px 14px;
	font-weight: 600; font-size: 16px; line-height: 1.4;
}
.gacq-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: #29415F; }
.gacq-consent input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--blue); }
.gacq-consent a { color: var(--blue); }
.gacq-note { text-align: center; }
.gacq-safe {
	display: inline-block; align-self: flex-start;
	font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	font-size: 15px; color: var(--gold-ink); background: var(--gold); border-radius: 99px; padding: 6px 14px;
}

.gacq-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gacq-steps { display: flex; gap: 6px; flex: 1; }
.gacq-step { height: 8px; flex: 1; border-radius: 99px; background: rgba(251, 247, 236, .22); }
.gacq-step.is-done { background: var(--gold); }
.gacq-step.is-now { background: var(--cream); }
.gacq-timer {
	font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 46px; line-height: 1;
	color: var(--gold); font-variant-numeric: tabular-nums; min-width: 4.4ch; text-align: right;
}
.gacq-tag {
	align-self: flex-start; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase;
	letter-spacing: .14em; font-size: 15px; color: var(--gold); border: 2px solid rgba(245, 183, 0, .55);
	border-radius: 99px; padding: 4px 12px;
}
.gacq-qtext {
	font-family: 'Germania One', serif; font-weight: 400; font-size: clamp(28px, 7.4vw, 38px); line-height: 1.14;
}
.gacq-opts { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.gacq-opt {
	display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; padding: 12px 16px; cursor: pointer;
	text-align: left; color: var(--cream); font-size: 21px; font-weight: 600; line-height: 1.2;
	border: 2px solid rgba(251, 247, 236, .3); border-radius: 18px; background: rgba(251, 247, 236, .07);
	transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
.gacq-opt:active { transform: scale(.985); }
.gacq-opt .l {
	display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
	background: rgba(251, 247, 236, .14); font-family: 'Germania One', serif; font-size: 22px; color: var(--gold);
}
.gacq-opt.is-picked { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.gacq-opt.is-picked .l { background: var(--gold-ink); color: var(--gold); }

.gacq-score {
	font-family: 'Germania One', serif; font-size: clamp(96px, 30vw, 150px); line-height: 1; color: var(--gold);
}
.gacq-score small { font-size: .4em; color: var(--cream); }
.gacq-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gacq-tile {
	background: rgba(251, 247, 236, .08); border: 2px solid rgba(251, 247, 236, .16); border-radius: 18px;
	padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.gacq-tile b { font-family: 'Barlow Condensed', sans-serif; font-size: 44px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.gacq-tile span { font-size: 15px; color: var(--mute); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.gacq-dots { display: flex; gap: 8px; }
.gacq-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.gacq-dot.ok { background: var(--gold); color: var(--gold-ink); }
.gacq-dot.no { background: rgba(251, 247, 236, .14); color: var(--mute); }
.gacq-testbadge {
	display: inline-block; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: .1em;
	border-radius: 8px; padding: 3px 8px; vertical-align: middle;
}
.gacq-timer-wrap { display: flex; flex-direction: column; gap: 4px; }
.gacq-pulse { animation: gacq-pulse 1.4s ease-in-out infinite; }
@keyframes gacq-pulse { 50% { opacity: .55; } }

/* ---------- Leaderboard (built for a big LED screen) ---------- */
.gacq-board {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.6vw, 52px);
	min-height: 100vh; padding: clamp(18px, 3vw, 60px); align-content: start;
}
.gacq-board.has-qr { grid-template-columns: minmax(0, 1fr) clamp(280px, 25vw, 520px); }
.gacq-bhead { grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 48px); }
.gacq-bhead .gacq-logo { width: clamp(72px, 8vw, 168px); height: clamp(72px, 8vw, 168px); border-radius: clamp(14px, 1.6vw, 30px); padding: clamp(6px, .7vw, 14px); }
.gacq-bhead .gacq-brand { font-size: clamp(54px, 7.6vw, 150px); }
.gacq-bhead .gacq-bsub {
	font-family: 'Germania One', serif; color: var(--cream); font-size: clamp(24px, 3.2vw, 64px); line-height: 1.05; margin-top: .15em;
}
.gacq-bhead .gacq-bmeta { margin-left: auto; text-align: right; }
.gacq-bmeta b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(40px, 5vw, 100px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.gacq-bmeta span { font-size: clamp(16px, 1.6vw, 32px); color: var(--mute); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.gacq-list { display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 22px); margin: 0; padding: 0; list-style: none; }
.gacq-row {
	display: grid; grid-template-columns: clamp(64px, 8vw, 170px) minmax(0, 1fr) auto auto; align-items: center;
	gap: clamp(10px, 1.8vw, 36px); padding: clamp(10px, 1.3vw, 26px) clamp(16px, 2.2vw, 44px);
	border-radius: clamp(14px, 1.7vw, 32px); background: rgba(251, 247, 236, .08); border: 2px solid rgba(251, 247, 236, .14);
}
.gacq-row .rk { font-family: 'Germania One', serif; font-size: clamp(44px, 6.2vw, 130px); line-height: 1; color: var(--gold); text-align: center; }
.gacq-row .nm { font-weight: 700; font-size: clamp(30px, 4.4vw, 92px); line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: .3em; }
.gacq-row .sc {
	font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 70px); line-height: 1;
	border: 2px solid rgba(251, 247, 236, .35); border-radius: 99px; padding: .12em .5em; color: var(--cream);
}
.gacq-row .tm {
	font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: clamp(38px, 5.4vw, 112px); line-height: 1;
	color: var(--gold); font-variant-numeric: tabular-nums; text-align: right; min-width: 4.6ch;
}
.gacq-row.r1 { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 14px 40px rgba(245, 183, 0, .28); }
.gacq-row.r1 .rk, .gacq-row.r1 .tm { color: var(--gold-ink); }
.gacq-row.r1 .sc { color: var(--gold-ink); border-color: rgba(59, 42, 0, .5); }
.gacq-row.r2 { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.gacq-row.r2 .rk { color: var(--blue); }
.gacq-row.r2 .tm { color: var(--ink); }
.gacq-row.r2 .sc { color: var(--ink); border-color: rgba(10, 35, 66, .4); }
.gacq-row.r3 { border-color: var(--gold); border-width: 3px; }
.gacq-crown { width: .95em; height: .95em; flex: none; }
.gacq-row .gacq-testbadge { font-size: clamp(12px, 1vw, 20px); flex: none; white-space: nowrap; }
.gacq-row .nm > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gacq-row.is-new { animation: gacq-in .55s ease both; }
@keyframes gacq-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.gacq-empty { font-family: 'Germania One', serif; font-size: clamp(34px, 4.6vw, 96px); line-height: 1.1; padding: clamp(24px, 4vw, 90px) 0; color: var(--cream); }
.gacq-empty span { color: var(--gold); }

.gacq-side {
	align-self: start; background: var(--cream); color: var(--ink); border-radius: clamp(20px, 2.2vw, 44px);
	padding: clamp(18px, 2.2vw, 44px); display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.4vw, 26px);
	text-align: center; box-shadow: 0 24px 60px rgba(2, 10, 24, .5);
}
.gacq-side h2 { font-family: 'Germania One', serif; font-weight: 400; font-size: clamp(30px, 3vw, 62px); line-height: 1.05; }
.gacq-side p { font-size: clamp(18px, 1.7vw, 34px); line-height: 1.3; color: #29415F; font-weight: 500; }
.gacq-qr { background: #fff; border-radius: clamp(12px, 1.2vw, 24px); padding: clamp(10px, 1.2vw, 24px); line-height: 0; }
.gacq-qr img, .gacq-qr canvas { width: 100% !important; height: auto !important; max-width: clamp(220px, 20vw, 420px); }
.gacq-side .gacq-safe { align-self: center; font-size: clamp(14px, 1.3vw, 26px); }

@media (max-width: 900px) {
	.gacq-board.has-qr { grid-template-columns: minmax(0, 1fr); }
	.gacq-side { order: 3; }
	.gacq-bhead { flex-wrap: wrap; }
	.gacq-bhead .gacq-bmeta { margin-left: 0; text-align: left; width: 100%; }
	.gacq-row { grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 10px; padding: 12px 14px; }
	.gacq-row .sc { font-size: 22px; }
	.gacq-row .nm { font-size: 26px; }
	.gacq-row .tm { font-size: 32px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.gacq-row.is-new, .gacq-pulse { animation: none; }
	.gacq-btn, .gacq-opt { transition: none; }
}
