/* Unicorn Series customizations on top of Dimension (HTML5 UP).
   Brand: purple #7B2D8E, title fonts Gochi Hand + Caveat Brush. */

/* Purple gradient page background instead of the template photo. */
#bg:before {
	background-image: none;
	background: radial-gradient(120% 90% at 50% 18%, #a34ac4 0%, #7b2d8e 52%, #47145f 100%);
}

/* Panels in a deeper purple so they read as containers on the page. */
#main article {
	background-color: rgba(70, 20, 100, 0.95);
}

/* Unicorn image inside the header circle. */
#header .logo {
	width: 8rem;
	height: 8rem;
	overflow: hidden;
}

#header .logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

@media screen and (max-width: 736px) {
	#header .logo {
		width: 6rem;
		height: 6rem;
	}
}

/* Title treatment: "Professor Unicorn's" in Gochi Hand,
   "Unicorn Series" in Caveat Brush. */
#header h1 {
	letter-spacing: normal;
}

#header h1 .t1 {
	display: block;
	font-family: 'Gochi Hand', cursive;
	font-size: 2.4rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: none;
}

#header h1 .t2 {
	display: block;
	margin-top: 0.4rem;
	font-family: 'Gelasio', Georgia, 'Times New Roman', serif;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media screen and (max-width: 736px) {
	#header h1 .t1 {
		font-size: 1.85rem;
	}

	#header h1 .t2 {
		font-size: 1rem;
	}
}

/* Dimension draws a vertical line above every header child. The one above
   the Privacy/Contact line crossed the text, so it is removed there. */
#header > .mini-links:before {
	display: none;
}

/* Quiet footer credit (the free template license requires it to stay). */
.design-credit {
	opacity: 0.45;
	font-size: 0.85em;
}

/* Panel title banner, modeled on the Sight Words banner: purple bar,
   two-line title, big unicorn in a cream circle filling the right side.
   No red pill. Used on both the Games and Books panels. */
.panel-banner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 7.75rem;
	background: linear-gradient(135deg, #8a34a8 0%, #7b2d8e 60%, #6a2580 100%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 1rem;
	padding: 0.5rem 1.25rem;
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.pb-text {
	display: block;
	flex: 1;
	text-align: center;
}

/* Single-line panel title in Georgia (Gelasio), matching the header
   title's second line, sized to fill the bar next to the unicorn circle. */
.pb-one {
	font-family: 'Gelasio', Georgia, 'Times New Roman', serif;
	font-size: 2.4rem;
	line-height: 1.15;
	color: #ffffff;
}

.pb-unicorn {
	width: 7rem;
	height: 7rem;
	flex: 0 0 auto;
	margin-left: auto;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid #ffffff;
	background: #f9ebcb;
	box-shadow: 0 0 0 0.35rem rgba(255, 255, 255, 0.15);
}

@media screen and (max-width: 736px) {
	.panel-banner {
		min-height: 5.75rem;
		padding: 0.4rem 0.9rem;
	}

	.pb-one {
		font-size: 1.45rem;
	}

	.pb-unicorn {
		width: 4.5rem;
		height: 4.5rem;
		border-width: 3px;
	}
}

/* Privacy Policy page (privacy.html): a static panel in the site style. */
.policy-panel {
	position: relative;
	max-width: 46rem;
	margin: 2rem auto;
	background: rgba(70, 20, 100, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 0.5rem;
	padding: 2.5rem;
	text-align: left;
}

/* Fixed bottom bar (Home only): pinned to the bottom of the screen on
   every page and panel, always visible while scrolling. It replaces the
   corner close buttons, which are hidden. */
#main article .close {
	display: none;
}

#tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: calc(3.5rem + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: rgba(175, 115, 215, 0.32);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border-top: 1px solid rgba(255, 255, 255, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10001;
}

#tabbar a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #ffffff;
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.02em;
	border-bottom: none;
	padding: 0.75rem 1.5rem;
}

#tabbar a svg {
	display: block;
}

/* Clearance so the fixed bar never covers page content. */
#wrapper {
	padding-bottom: 5.5rem;
}

.policy-panel h1 {
	font-family: 'Gelasio', Georgia, 'Times New Roman', serif;
	font-size: 2.1rem;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	margin-bottom: 0.5rem;
}

.policy-panel h2 {
	font-family: 'Gelasio', Georgia, 'Times New Roman', serif;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	margin: 2rem 0 0.75rem 0;
}

.policy-updated {
	margin-bottom: 1.25rem;
}

.policy-panel ul {
	margin: 0 0 1.25rem 0;
	padding-left: 1.4rem;
}

.policy-panel ul li {
	margin-bottom: 0.55rem;
}

.policy-contact {
	list-style: none;
	padding-left: 0;
}

@media screen and (max-width: 736px) {
	.policy-panel {
		padding: 1.5rem 1.25rem;
		margin: 1rem auto;
	}
}

/* Header Games/Books buttons: Option B — book-cover yellow, purple words,
   two separate buttons with a gap between them (not one joined bar). */
#header nav ul {
	border: 0;
	gap: 1rem;
}

#header nav ul li {
	border-left: 0;
}

#header nav ul li a {
	background: #FFD23F;
	color: #461464;
	font-weight: 600;
	border: solid 1px #461464;
	border-radius: 4px;
	font-size: clamp(0.7rem, 3vw, 0.8rem);
}

#header nav ul li a:hover {
	background: #F2C230;
}

/* The template stacks the nav buttons vertically on phone-width screens;
   keep them side by side, as in the agreed mockup. */
@media screen and (max-width: 480px) {
	#header nav ul {
		-moz-flex-direction: row;
		-webkit-flex-direction: row;
		-ms-flex-direction: row;
		flex-direction: row;
		min-width: 0;
	}

	#header nav ul li {
		border-top: 0;
		border-left: 0;
		-moz-flex: 1;
		-webkit-flex: 1;
		-ms-flex: 1;
		flex: 1;
	}

	#header nav ul li a {
		letter-spacing: 0.12rem;
		padding: 0 0.75rem;
	}
}

/* Remove the template's dangling connector line above the nav buttons:
   with two separate buttons it just points at the gap between them. */
#header nav:before {
	display: none;
}

/* Games panel store-description list. */
.features-head {
	margin-bottom: 0.5rem;
	font-weight: 600;
}

ul.features {
	margin: 0 0 1.5rem 0;
	padding-left: 1.25rem;
}

ul.features li {
	margin-bottom: 0.4rem;
}

/* Section headings in Caveat Brush. */
h2.major {
	font-family: 'Caveat Brush', cursive;
	font-size: 2.1rem;
	letter-spacing: 0.04em;
}

/* Privacy / Contact line under the header buttons. */
#header .mini-links {
	margin: 1.5rem 0 0 0;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.9;
}

/* Games panel. */
.app-name {
	font-family: 'Caveat Brush', cursive;
	font-size: 1.7rem;
	letter-spacing: 0.03em;
	text-align: center;
	margin-bottom: 0.75rem;
}

.game-shot {
	text-align: center;
}

.game-shot img {
	display: inline-block;
	width: 62%;
	max-width: 230px;
	border-radius: 1rem;
}

#games ul.actions {
	justify-content: center;
}

.coming-soon {
	text-align: center;
	font-size: 0.85rem;
	opacity: 0.75;
}

/* Books tile grid (added — stock Dimension has no grid). */
.book-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.4rem 1rem;
	margin-top: 1.25rem;
}

@media screen and (min-width: 737px) {
	.book-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.book-tile {
	display: block;
	text-align: center;
	border-bottom: none;
}

.book-tile img {
	width: 100%;
	height: 10.5rem;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 0.5rem;
	padding: 0.45rem;
	transition: transform 0.2s ease;
}

@media screen and (max-width: 736px) {
	.book-tile img {
		height: 9rem;
	}
}

.book-tile:hover img {
	transform: scale(1.04);
}

.book-title {
	display: block;
	margin-top: 0.55rem;
	font-family: 'Caveat Brush', cursive;
	font-size: 1.2rem;
	line-height: 1.15;
	letter-spacing: 0.03em;
	color: #ffffff;
}
