/* Shared look for guide.html and privacy.html -- copied from welcome.html's inline styles. */
	:root{
		--navy-deep:   #0B3D62;
		--navy-darker: #082C47;
		--brass:       #C8935B;
		--brass-dark:  #A8703C;
		--teal:        #1C7293;
		--cream:       #F6F3EC;
		--ink:         #1F2A33;
		--ink-dim:     #5B6B76;
		--white:       #FFFFFF;
	}
	* {
		margin: 0; padding: 0; box-sizing: border-box;
		-webkit-text-size-adjust: 100%;
	}
	body {
		font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
		color: var(--ink);
	}
	body, html { height: 100%; }

	#wrapper {
		position: relative;
		min-height: 100%;
		background:
			radial-gradient(ellipse 900px 500px at 80% -10%, rgba(200,147,91,.14), transparent 60%),
			linear-gradient(180deg, var(--navy-darker) 0%, var(--navy-deep) 45%, #0E4870 100%);
		background-attachment: fixed;
		padding: 40px 20px 90px;
	}
	#wrapper::before{
		content:'';
		position:absolute; top:0; left:0; right:0; height:220px;
		background-image: repeating-linear-gradient(115deg, rgba(200,147,91,.10) 0 2px, transparent 2px 34px);
		pointer-events:none;
	}

	#content { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

	#hero { text-align: center; padding: 18px 10px 30px; }
	/* Room for a logo -- swap the src below for the game's own mark
	   whenever one exists; falls back to a text wordmark if the image
	   is missing so this doesn't render broken in the meantime. */
	#brand-logo {
		max-width: 220px;
		width: 100%;
		display: block;
		margin: 0 auto 18px;
		padding: 18px 22px;
		background: var(--cream);
		border-radius: 12px;
		box-shadow: 0 10px 28px rgba(0,0,0,.35);
	}
	#brand-logo-fallback {
		max-width: 220px;
		width: 100%;
		margin: 0 auto 18px;
		padding: 22px;
		background: var(--cream);
		border-radius: 12px;
		box-shadow: 0 10px 28px rgba(0,0,0,.35);
		font-family: 'Oswald', sans-serif;
		font-weight: 700;
		letter-spacing: .03em;
		text-transform: uppercase;
		color: var(--navy-deep);
		display: none;
	}
	#hero-title {
		font-family: 'Oswald', sans-serif;
		font-weight: 700;
		font-size: 26px;
		letter-spacing: .02em;
		text-transform: uppercase;
		color: var(--cream);
		margin-bottom: 6px;
	}
	#hero-tag {
		font-family: 'Oswald', sans-serif;
		font-size: 15px;
		letter-spacing: .06em;
		text-transform: uppercase;
		color: var(--brass);
	}

	#form-holder {
		background: var(--cream);
		border-radius: 14px;
		padding: 8px 34px 34px;
		box-shadow: 0 18px 50px rgba(0,0,0,.35);
	}

	.settings-group { padding: 26px 0 22px; border-bottom: 1px solid rgba(11,61,98,.12); }
	.settings-group:last-of-type { border-bottom: none; }
	.settings-group legend {
		display: flex; align-items: center; gap: 10px;
		font-family: 'Oswald', sans-serif;
		font-size: 18px; color: var(--navy-deep); letter-spacing: .01em;
		margin-bottom: 4px;
	}
	.group-index {
		font-family: 'Oswald', sans-serif;
		font-size: 12px; color: var(--white); background: var(--navy-deep);
		border-radius: 50%; width: 24px; height: 24px;
		display: inline-flex; align-items: center; justify-content: center;
	}
	.group-hint { color: var(--ink-dim); font-size: 13px; margin-bottom: 16px; }

	.field { margin-bottom: 14px; }
	.field:last-child { margin-bottom: 0; }

	label {
		color: var(--navy-deep); font-size: 13px; font-weight: 600;
		letter-spacing: .02em; margin-bottom: 6px; display: block;
	}

	select {
		width: 100%; height: 46px; padding: 0 14px;
		color: var(--ink); font-size: 14px; font-family: 'Inter', sans-serif;
		background: var(--white); border: 1.5px solid #D8CFC0; border-radius: 7px;
		appearance: none; -webkit-appearance: none;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B3D62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 14px center;
		padding-right: 36px;
		transition: border-color .15s, box-shadow .15s;
	}
	select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,114,147,.18); }

	#cta-row { margin-top: 28px; text-align: center; }
	#run-btn {
		width: 100%; height: 58px;
		background: linear-gradient(180deg, var(--brass), var(--brass-dark));
		color: var(--navy-darker);
		font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 600;
		letter-spacing: .04em; text-transform: uppercase;
		border: none; border-radius: 8px; cursor: pointer;
		box-shadow: 0 6px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35);
		transition: transform .12s, box-shadow .12s;
	}
	#run-btn:hover { transform: translateY(-2px); }
	#run-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35); }

	/* ---------------- FOOTER LINK CARDS (same look as The Trailer Parker) ---------------- */
	#footer-links {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		margin-top: 20px;
	}
	.footer-card {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 18px 20px;
		background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
		border: 1px solid rgba(200,147,91,.35);
		border-radius: 10px;
		color: var(--white);
		text-decoration: none;
		transition: transform .15s, border-color .15s, background .15s;
	}
	.footer-card:hover {
		transform: translateY(-2px);
		border-color: var(--brass);
		background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
	}
	.footer-card-icon {
		flex: 0 0 auto;
		width: 40px;
		height: 40px;
		color: var(--brass);
	}
	.footer-card-icon svg { width: 100%; height: 100%; }
	.footer-card-body {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		gap: 2px;
	}
	.footer-card-title {
		font-family: 'Oswald', sans-serif;
		font-size: 14px;
		letter-spacing: .02em;
		color: var(--white);
	}
	.footer-card-sub {
		font-size: 12.5px;
		color: rgba(255,255,255,.65);
	}
	.footer-card-arrow {
		flex: 0 0 auto;
		font-size: 18px;
		color: var(--brass);
		transition: transform .15s;
	}
	.footer-card:hover .footer-card-arrow {
		transform: translateX(3px);
	}

	@media screen and (max-width: 480px) {
		#wrapper { padding: 24px 12px 70px; }
		#form-holder { padding: 4px 22px 26px; }
		#footer-links { grid-template-columns: 1fr; }
	}

	/* ---------------- Sister-game ads ----------------
	   Same layout as The Trailer Parker / Driver Tester / Boat Docker
	   welcome pages: a column of ads on each side of the settings form,
	   only on wide screens (1200px+). Narrower screens hide them and keep
	   the form exactly as before. */
	#config-row {
		display: flex;
		align-items: flex-start;
		justify-content: center;
		gap: 24px;
	}
	#config-row #form-holder { flex: 1 1 720px; max-width: 720px; min-width: 0; }
	.ad-side { display: none; }
	.ad-side img {
		display: block;
		width: 100%;
		height: auto;
		border-radius: 10px;
		box-shadow: 0 6px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
		transition: transform .12s, box-shadow .12s;
	}
	.ad-side a:hover img {
		transform: translateY(-2px);
		box-shadow: 0 8px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
	}
	/* ---------------- PHONE AD BANNER ----------------
	   Narrow screens only; hidden at 1200px+ where the side ads show. */
	#ad-banner {
		margin: 28px auto 0;
		max-width: 720px;
		display: flex;
		gap: 16px;
	}
	#ad-banner a { flex: 1 1 0; min-width: 0; }
	#ad-banner img {
		display: block;
		width: 100%;
		height: auto;
		border-radius: 10px;
		box-shadow: 0 6px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
		transition: transform .12s, box-shadow .12s;
	}
	#ad-banner a:hover img {
		transform: translateY(-2px);
		box-shadow: 0 8px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
	}

	/* ---------------- GOOGLE ADSENSE UNIT ----------------
	   Same setup as The Boat Docker: a responsive unit under the Stage Up
	   button, capped near the width of the custom side ads. min-height
	   reserves space before the ad script fills the slot in. */
	.google-ad-unit {
		/* AdSense sizes against an explicit width; max-width alone can let
		   a responsive ad fall back to the full page width. */
		width: 322px;
		max-width: 100%;
		margin: 20px auto 0;
		text-align: center;
	}
	.google-ad-unit .adsbygoogle {
		min-height: 250px;
	}
	.ad-label {
		font-family: 'Oswald', sans-serif;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--ink-dim);
		margin: 8px 0;
	}
	@media screen and (min-width: 1200px) {
		#content { max-width: 1200px; }
		#hero, #footer-links, #cta-row { max-width: 720px; margin-left: auto; margin-right: auto; }
		.ad-side { display: flex; flex-direction: column; gap: 16px; flex: 1 1 200px; max-width: 240px; min-width: 0; align-self: stretch; }
		#ad-banner { display: none; }
	}
