/* Aeolus Surfgame – Surfrun */
.asg {
	--asg-teal: #0B7285;
	--asg-teal-donker: #075563;
	--asg-donker: #0C1E27;
	--asg-koraal: #FF6B4A;
	--asg-geel: #FFC93C;
	--asg-lijn: #DCE6EA;
	--asg-licht: #EAF3F5;
	font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--asg-donker);
	max-width: 960px;
	margin-inline: auto;
	display: grid;
	gap: 14px;
}
.asg *, .asg *::before, .asg *::after { box-sizing: border-box; }

.asg-podium {
	position: relative;
	width: 100%;
	aspect-ratio: 864 / 360;
	border-radius: 14px;
	overflow: hidden;
	background: #3D78A8;
	box-shadow: 0 10px 30px -12px rgba(12, 30, 39, .45);
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}
@media (max-width: 639px) { .asg-podium { aspect-ratio: 560 / 430; border-radius: 10px; } }
.asg-podium.asg-speelt { touch-action: none; cursor: pointer; }
.asg-doek { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }

/* Score */
.asg-hud {
	position: absolute; top: 10px; right: 14px;
	display: flex; gap: 14px; align-items: baseline;
	font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .06em;
	color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
	pointer-events: none;
}
.asg-hi { font-size: 13px; opacity: .75; }
.asg-hi b { font-weight: 700; }
.asg-score { font-size: 20px; }
.asg-score.asg-flits { animation: asg-flits .6s steps(2) 1; }
@keyframes asg-flits { 50% { opacity: 0; } }

.asg .asg-knop-geluid {
	position: absolute; top: 8px; left: 8px;
	width: 34px; height: 34px; padding: 6px;
	border: 0; border-radius: 50%;
	background: rgba(12, 30, 39, .28); color: #fff;
	cursor: pointer; line-height: 0;
}
.asg .asg-knop-geluid:hover { background: rgba(12, 30, 39, .45); }
.asg .asg-knop-geluid svg { width: 100%; height: 100%; }
.asg .asg-knop-geluid .asg-kruis { display: none; }
.asg .asg-knop-geluid.asg-stil .asg-kruis { display: inline; }
.asg .asg-knop-geluid.asg-stil .asg-golfjes { display: none; }

/* Aanraakzones (alleen even zichtbaar bij de start op een touchscherm) */
.asg-zones { position: absolute; inset: 0; display: none; pointer-events: none; opacity: 0; transition: opacity .5s; }
.asg-zones span {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
	padding-bottom: 14%; color: #fff; font-weight: 600; font-size: 15px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.asg-zones span:first-child { width: 40%; border-right: 2px dashed rgba(255, 255, 255, .45); background: rgba(12, 30, 39, .12); }
.asg-zones span:last-child { flex: 1; }
.asg-zones small { font-weight: 400; font-size: 12px; opacity: .9; }
.asg-zones.asg-toon { opacity: 1; }
@media (hover: none) and (pointer: coarse) { .asg-zones { display: flex; } }

/* Schermen over het spel */
.asg-scherm {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 10px; padding: 16px; text-align: center; color: #fff;
	background: radial-gradient(ellipse at center, rgba(12, 30, 39, .55) 0%, rgba(12, 30, 39, .25) 60%, rgba(12, 30, 39, 0) 100%);
	text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.asg-scherm[hidden] { display: none; }
.asg-scherm p { margin: 0; }
.asg-titel { font-size: clamp(26px, 5.5vw, 44px); font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.asg-sub { font-size: clamp(13px, 1.8vw, 16px); max-width: 32ch; text-wrap: balance; }
.asg-eind { font-size: 16px; }
.asg-eind b { font-size: 28px; font-variant-numeric: tabular-nums; }
.asg-record {
	display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
	background: var(--asg-geel); color: var(--asg-donker); font-size: 12px; font-weight: 700;
	text-shadow: none; vertical-align: middle;
}
.asg-record[hidden] { display: none; }
.asg-uitleg { font-size: 12px; opacity: .92; }
.asg-uitleg kbd {
	display: inline-block; padding: 1px 6px; border-radius: 4px;
	background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45);
	font: inherit; font-size: 11px;
}
.asg-aanraak { display: none; }
@media (hover: none) and (pointer: coarse) { .asg-aanraak { display: block; } .asg-toetsen { display: none; } }
@media (max-width: 639px) { .asg-sub, .asg-uitleg { font-size: 12px; } .asg-scherm { gap: 7px; } }

.asg .asg-knop {
	appearance: none; border: 0; cursor: pointer;
	padding: 10px 26px; border-radius: 999px;
	background: var(--asg-koraal); color: #fff;
	font: inherit; font-weight: 700; font-size: 16px; letter-spacing: .01em;
	box-shadow: 0 4px 0 #C94A30, 0 8px 18px -6px rgba(0, 0, 0, .4);
	transition: transform .08s, box-shadow .08s;
	text-shadow: none;
}
.asg .asg-knop:hover { filter: brightness(1.05); }
.asg .asg-knop:active { transform: translateY(3px); box-shadow: 0 1px 0 #C94A30, 0 4px 10px -6px rgba(0, 0, 0, .4); }
.asg .asg-knop:focus-visible, .asg .asg-knop-geluid:focus-visible { outline: 3px solid var(--asg-geel); outline-offset: 2px; }
.asg .asg-knop:disabled { opacity: .7; cursor: default; transform: none; }

/* Score opslaan */
.asg-bewaar {
	display: grid; gap: 8px; padding: 14px 16px;
	border: 1px solid var(--asg-lijn); border-radius: 12px; background: var(--asg-licht);
}
.asg-bewaar[hidden] { display: none; }
.asg-bewaar label { font-weight: 600; }
.asg-rij { display: flex; gap: 8px; flex-wrap: wrap; }
.asg-rij input {
	flex: 1 1 180px; min-width: 0; padding: 9px 12px;
	border: 1px solid var(--asg-lijn); border-radius: 999px; background: #fff;
	font: inherit; font-size: 16px; color: var(--asg-donker);
}
.asg-rij input:focus { outline: 2px solid var(--asg-teal); outline-offset: 1px; }
.asg .asg-bewaar .asg-knop { background: var(--asg-teal); box-shadow: 0 3px 0 var(--asg-teal-donker); font-size: 15px; padding: 9px 22px; }
.asg-melding { margin: 0; font-size: 14px; min-height: 1em; }
.asg-melding:empty { display: none; }

/* Ranglijst */
.asg-ranglijst h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.asg-ranglijst[hidden] { display: none; }
.asg-lijst {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 24px;
}
.asg-lijst li {
	display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
	padding: 7px 4px; border-bottom: 1px solid var(--asg-lijn);
}
.asg-lijst li.asg-leeg { display: block; color: #5A6B74; border: 0; }
.asg-plek { font-weight: 700; color: #5A6B74; font-variant-numeric: tabular-nums; }
.asg-lijst li:nth-child(1) .asg-plek { color: #C99400; }
.asg-lijst li:nth-child(2) .asg-plek { color: #8A97A0; }
.asg-lijst li:nth-child(3) .asg-plek { color: #B5703B; }
.asg-naam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asg-punten { font-weight: 700; font-variant-numeric: tabular-nums; }
.asg-lijst li.asg-jij { background: #FFF4D6; border-radius: 6px; }

/* Op het startscherm geen score in beeld */
.asg-podium:has(.asg-start:not([hidden])) .asg-hud { opacity: 0; }

/* Thema-knoppen (Hello Elementor) kleuren elke knop roze bij hover en focus: hier altijd de eigen kleuren */
.asg .asg-knop, .asg .asg-knop:hover, .asg .asg-knop:focus, .asg .asg-knop:active { background-color: var(--asg-koraal); color: #fff; border: 0; text-decoration: none; }
.asg .asg-bewaar .asg-knop, .asg .asg-bewaar .asg-knop:hover, .asg .asg-bewaar .asg-knop:focus, .asg .asg-bewaar .asg-knop:active { background-color: var(--asg-teal); color: #fff; }
.asg .asg-knop-geluid, .asg .asg-knop-geluid:focus { background-color: rgba(12, 30, 39, .28); color: #fff; border: 0; box-shadow: none; }
.asg .asg-knop-geluid:hover { background-color: rgba(12, 30, 39, .45); color: #fff; }

/* Pagina niet gevonden (404) */
.asg-404 { max-width: 1000px; margin: 0 auto; padding: 48px 16px 72px; display: grid; gap: 32px; }
.asg-404-kop { display: grid; gap: 12px; max-width: 62ch; }
.asg-404-kop > * { margin: 0; }
.asg-404 .asg-404-code { font: 800 14px/1 Poppins, system-ui, sans-serif; letter-spacing: .14em; color: #CF0000; }
.asg-404 h1.entry-title { margin: 0; font: 800 clamp(30px, 5vw, 48px)/1.05 Poppins, system-ui, sans-serif; color: #111; text-wrap: balance; }
.asg-404-kop p { font-size: 17px; line-height: 1.5; color: #33414b; }
.asg-404 .asg-404-knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.asg-404 .asg-404-knop, .asg-404 .asg-404-knop:hover, .asg-404 .asg-404-knop:focus { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 37px; background: #CF0000; color: #fff; font: 700 16px Poppins, system-ui, sans-serif; text-decoration: none; border: 2px solid #CF0000; }
.asg-404 .asg-404-knop:hover { background: #A80000; border-color: #A80000; }
.asg-404 .asg-404-knop--rand, .asg-404 .asg-404-knop--rand:focus { background: transparent; color: #CF0000; }
.asg-404 .asg-404-knop--rand:hover { background: #CF0000; color: #fff; }
