/* Testpagina's voor twee nieuwe opdrachtvormen: het 360°-zoekspel (/test-zoekspel) en de fotomissie (/test-foto).
 * Volledig scherm, huisstijlkleuren: marine #123a7a, blauw #0b4ea2, lucht #29a8e0, oranje #ee6c1d, geel #fbb82b. */
:root {
	--tg-navy: #123a7a; --tg-blue: #0b4ea2; --tg-sky: #29a8e0; --tg-orange: #ee6c1d; --tg-yellow: #fbb82b; --tg-green: #1f8a4c;
	--tg-top: env(safe-area-inset-top, 0px); --tg-bottom: env(safe-area-inset-bottom, 0px);
}
html, body.tg { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #0b2557; color: #fff;
	font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
.tg *, .tg *::before, .tg *::after { box-sizing: border-box; }
.tg-stage { position: fixed; inset: 0; overflow: hidden; background: #0b2557; touch-action: none; user-select: none; -webkit-user-select: none; }
.tg [hidden] { display: none !important; }

/* knoppen in spelstijl: witte rand, donkere onderkant */
.tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 54px; padding: .8rem 1.6rem; border: 4px solid #fff; border-radius: 999px;
	background: var(--tg-orange); color: #fff; font: 900 1rem/1 inherit; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	box-shadow: 0 6px 0 #a94509, 0 12px 22px rgba(0, 0, 0, .35); transition: transform .08s, box-shadow .08s; }
.tg-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #a94509, 0 6px 12px rgba(0, 0, 0, .35); }
.tg-btn--blue { background: var(--tg-blue); box-shadow: 0 6px 0 #082f66, 0 12px 22px rgba(0, 0, 0, .35); }
.tg-btn--blue:active { box-shadow: 0 2px 0 #082f66, 0 6px 12px rgba(0, 0, 0, .35); }
.tg-btn--green { background: var(--tg-green); box-shadow: 0 6px 0 #14663a, 0 12px 22px rgba(0, 0, 0, .35); }
.tg-btn--yellow { background: var(--tg-yellow); color: #5a3a00; box-shadow: 0 6px 0 #b9831a, 0 12px 22px rgba(0, 0, 0, .35); }
.tg-btn--small { min-height: 44px; padding: .55rem 1.1rem; font-size: .8rem; border-width: 3px; box-shadow: 0 4px 0 #a94509, 0 8px 14px rgba(0, 0, 0, .35); }
.tg-btn--small.tg-btn--yellow { box-shadow: 0 4px 0 #b9831a, 0 8px 14px rgba(0, 0, 0, .35); }
.tg-btn--small.tg-btn--blue { box-shadow: 0 4px 0 #082f66, 0 8px 14px rgba(0, 0, 0, .35); }
.tg-btn[disabled] { opacity: .55; }
.tg-link { color: #cfe6ff; font-size: .85rem; text-decoration: underline; background: none; border: 0; cursor: pointer; font-family: inherit; }

/* startscherm en eindscherm */
.tg-card { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
	padding: calc(var(--tg-top) + 1.25rem) 1.25rem calc(var(--tg-bottom) + 1.25rem); text-align: center; overflow-y: auto;
	background: radial-gradient(120% 90% at 50% 0%, #1b66c7 0%, #123a7a 55%, #0b2557 100%); touch-action: pan-y; }
.tg-card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 46px); pointer-events: none; }
.tg-card > * { position: relative; }
.tg-kicker { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: var(--tg-orange); border: 3px solid #fff; color: #fff; font: 900 .8rem/1 inherit; letter-spacing: .14em; text-transform: uppercase; }
.tg-title { margin: 0; font: 900 clamp(1.7rem, 7vw, 2.4rem)/1.05 inherit; letter-spacing: -.01em; text-wrap: balance; }
.tg-bubble { position: relative; max-width: 22rem; padding: .9rem 1.1rem; border-radius: 22px; background: #fff; color: #123a7a; font-weight: 700; line-height: 1.35; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.tg-bubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 22px; height: 22px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 6px 0; }
.tg-name { display: block; margin-bottom: .15rem; color: var(--tg-orange); font: 900 .75rem/1 inherit; letter-spacing: .14em; text-transform: uppercase; }
.tg-dock { width: min(42vw, 170px); height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); margin-top: .4rem; }
.tg-note { max-width: 22rem; margin: 0; font-size: .82rem; line-height: 1.4; color: #cfe6ff; }
.tg-coin { width: 120px; height: 120px; animation: tg-spin 3s linear infinite; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
@keyframes tg-spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.tg-badge { display: flex; align-items: center; gap: .8rem; width: min(100%, 22rem); padding: .8rem 1rem; border: 4px solid #fff; border-radius: 22px; background: var(--tg-green); box-shadow: 0 7px 0 #14663a; text-align: left; }
.tg-badge__ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--tg-green); }
.tg-badge__ic svg { width: 28px; height: 28px; }
.tg-badge strong { display: block; font: 900 1.15rem/1.1 inherit; letter-spacing: .04em; text-transform: uppercase; }
.tg-badge span { font-size: .85rem; font-weight: 700; opacity: .92; }
.tg-stats { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.tg-stats li { padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 800; font-size: .85rem; }
.tg-row { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ---- zoekspel ---- */
.zs-gl, .zs-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.zs-fx { pointer-events: none; }
.zs-top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: .6rem; padding: calc(var(--tg-top) + .6rem) .8rem .4rem;
	background: linear-gradient(#0b2557cc, #0b255700); pointer-events: none; }
.zs-top > * { pointer-events: auto; }
.zs-back { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--tg-navy); border: 0; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); text-decoration: none; }
.zs-back svg { width: 22px; height: 22px; }
.zs-h { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 900 .95rem/1.1 inherit; letter-spacing: .02em; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.zs-count { flex: none; padding: .4rem .8rem; border-radius: 999px; background: var(--tg-orange); border: 3px solid #fff; font: 900 .95rem/1 inherit; }
.zs-chips { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--tg-top) + 4.3rem); display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .8rem; pointer-events: none; }
.zs-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(11, 37, 87, .82); border: 2px solid rgba(255, 255, 255, .85); font: 800 .78rem/1 inherit; backdrop-filter: blur(4px); }
.zs-chip i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; font-style: normal; font-size: .62rem; }
.zs-chip.is-found { background: var(--tg-green); border-color: #fff; }
.zs-chip.is-found i { background: #fff; color: var(--tg-green); border-color: #fff; }
.zs-chip.is-found span { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .9; }
.zs-bottom { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; padding: .6rem .8rem calc(var(--tg-bottom) + .9rem);
	background: linear-gradient(#0b255700, #0b2557cc); pointer-events: none; }
.zs-bottom > * { pointer-events: auto; }
.zs-time { padding: .45rem .8rem; border-radius: 999px; background: rgba(11, 37, 87, .82); border: 2px solid rgba(255, 255, 255, .85); font: 900 .9rem/1 inherit; font-variant-numeric: tabular-nums; }
.zs-toast { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--tg-bottom) + 6.2rem); transform: translate(-50%, 10px); max-width: min(92vw, 24rem); padding: .7rem 1rem; font-size: .9rem; border-radius: 16px;
	background: #fff; color: var(--tg-navy); font-weight: 800; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.zs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.zs-toast--ok { background: var(--tg-green); color: #fff; border: 3px solid #fff; }
.zs-loading { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: #0b2557; font-weight: 800; }

/* hint-pijl in het zoekspel */
.zs-arrow { position: absolute; z-index: 6; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.zs-arrow svg { width: 100%; height: 100%; display: block; animation: zs-bob .6s ease-in-out infinite alternate; }
@keyframes zs-bob { from { transform: translateY(-8px); } to { transform: translateY(-20px); } }

/* ---- fotomissie ---- */
.tf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tf-guide { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, calc((100vh - 17rem) * .8)); aspect-ratio: 4 / 5; pointer-events: none;
	box-shadow: 0 0 0 100vmax rgba(5, 15, 40, .55); border-radius: 6px; }
.tf-guide i { position: absolute; width: 34px; height: 34px; border: 0 solid #fff; }
.tf-guide i:nth-child(1) { left: -3px; top: -3px; border-left-width: 5px; border-top-width: 5px; border-top-left-radius: 14px; }
.tf-guide i:nth-child(2) { right: -3px; top: -3px; border-right-width: 5px; border-top-width: 5px; border-top-right-radius: 14px; }
.tf-guide i:nth-child(3) { left: -3px; bottom: -3px; border-left-width: 5px; border-bottom-width: 5px; border-bottom-left-radius: 14px; }
.tf-guide i:nth-child(4) { right: -3px; bottom: -3px; border-right-width: 5px; border-bottom-width: 5px; border-bottom-right-radius: 14px; }
.tf-mission { position: absolute; z-index: 5; left: .8rem; right: .8rem; top: calc(var(--tg-top) + .6rem); display: flex; align-items: center; gap: .6rem; }
.tf-mission__box { flex: 1; padding: .6rem .9rem; border-radius: 16px; background: var(--tg-orange); border: 3px solid #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.tf-mission__box small { display: block; font: 900 .66rem/1 inherit; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.tf-mission__box b { display: block; margin-top: .25rem; font: 800 .95rem/1.2 inherit; }
.tf-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-around; padding: 1rem 1rem calc(var(--tg-bottom) + 1.2rem); background: linear-gradient(#0b255700, #0b2557dd); }
.tf-shutter { width: 84px; height: 84px; border-radius: 50%; border: 6px solid #fff; background: var(--tg-orange); box-shadow: 0 6px 0 #a94509, 0 12px 22px rgba(0, 0, 0, .4); cursor: pointer; padding: 0; }
.tf-shutter:active { transform: translateY(4px); box-shadow: 0 2px 0 #a94509; }
.tf-round { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--tg-navy); border: 0; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); cursor: pointer; }
.tf-round svg { width: 26px; height: 26px; }
.tf-flash { position: absolute; inset: 0; z-index: 30; background: #fff; opacity: 0; pointer-events: none; }
.tf-flash.is-on { animation: tf-flash .35s ease-out; }
@keyframes tf-flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.tf-review { position: absolute; inset: 0; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: calc(var(--tg-top) + 1rem) 1rem calc(var(--tg-bottom) + 1rem);
	background: radial-gradient(120% 90% at 50% 0%, #1b66c7 0%, #123a7a 55%, #0b2557 100%); overflow-y: auto; touch-action: pan-y; }
.tf-polaroid { margin: 0; max-height: 62vh; max-width: min(88vw, 22rem); transform: rotate(-2deg); border-radius: 4px; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); animation: tf-drop .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.tf-polaroid img { display: block; width: auto; height: auto; max-width: 100%; max-height: 62vh; border-radius: 4px; }
@keyframes tf-drop { from { transform: translateY(-40px) rotate(-8deg) scale(.9); opacity: 0; } to { transform: translateY(0) rotate(-2deg) scale(1); opacity: 1; } }
.tf-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .6); color: #fff; font: 800 .85rem/1 inherit; cursor: pointer; }
.tf-chip[aria-pressed="true"] { background: var(--tg-yellow); color: #5a3a00; border-color: #fff; }
.tf-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tf-err { margin: 0; padding: .6rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .14); font-size: .85rem; line-height: 1.35; max-width: 22rem; }

@media (prefers-reduced-motion: reduce) { .tg-coin, .tf-polaroid, .tf-flash.is-on { animation: none; } }
