/* ============================================================
   THE DRAG CAR RACER — Welcome / Setup Page
   Palette: deep navy, brass accent, cream canvas -- shared with
   The Boat Docker / The Trailer Parker / The Driver Tester, moved
   out of the inline <style> in welcome.html to match how the rest
   of the family serves this page's CSS.
   ============================================================ */

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

: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;
	text-decoration: none;
	border: none;
	outline: none;
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	line-height: 1.4em;
}

body {
	font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--ink);
}
body, html { height: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------------- WRAPPER / BACKDROP ---------------- */
#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 ---------------- */
#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 CARD ---------------- */
#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 ---------------- */
#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); }

p { color: var(--white); }

/* ---------------- BOTTOM CROSS-PROMO BANNER ----------------
   Narrow-screen fallback: Trailer Parker + Boat Docker split across
   one image via the two hotspot links below it. Hidden at the
   1200px breakpoint once the flanking .ad-side columns take over
   (see RESPONSIVE below) -- same show-one-hide-the-other relationship
   as The Boat Docker's own #ad-banner/.ad-side pair. */
#cross-promo {
	position: relative;
	margin-top: 44px;
	line-height: 0;
}
#cross-promo-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.promo-hotspot {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50%;
	display: block;
	text-decoration: none;
}
#promo-hotspot-left { left: 0; }
#promo-hotspot-right { right: 0; }

/* ---------------- GOOGLE ADSENSE UNIT ----------------
   AdSense's own sizing script needs an *explicit* width on this
   container to calculate the ad's size against -- max-width alone
   isn't enough for it and data-full-width-responsive="true" then
   falls back to the full page width instead of staying inside this
   box. width + max-width:100% keeps it narrow AND still responsive
   on viewports under 322px. Ported from The Trailer Parker / The
   Driver Tester's own welcome.html/style.css. */
.google-ad-unit {
	width: 322px;
	max-width: 100%;
	margin: 28px 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: rgba(255,255,255,.5);
	margin: 8px 0;
}

/* ---------------- FOOTER LINK CARDS ---------------- */
#footer-links {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 34px;
}
.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);
	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);
}

/* ---------------- CONFIG ROW / FLANKING SIDE ADS ----------------
   #config-row wraps #form-holder together with the three sibling-app
   ads (Trailer Parker + Driver Tester on the left, Boat Docker on the
   right). Only appears at the 1200px breakpoint below -- under that,
   #cross-promo (above) is what shows instead, so there's no gap in
   ad coverage at any width the way Trailer Parker/Driver Tester's
   pages have below 1200px. Ported from The Boat Docker's own
   welcome.html/style.css. */
#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);
}

/* ---------------- RESPONSIVE ---------------- */
@media screen and (max-width: 720px) {
	#footer-links { grid-template-columns: 1fr; }
}

@media screen and (max-width: 480px) {
	#wrapper { padding: 24px 12px 70px; }
	#form-holder { padding: 4px 22px 26px; }
}

@media screen and (min-width: 1200px) {
	#content { max-width: 1200px; }
	#hero, #footer-links, #cta-row, #cross-promo { 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; }
	#cross-promo { display: none; }
}
