/* 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;
}

/* Same close button as the Games/Books panels (copied from the template's
   article .close), here linking back home — one navigation pattern everywhere. */
.page-close {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 4rem;
	height: 4rem;
	cursor: pointer;
	overflow: hidden;
	white-space: nowrap;
	border-bottom: none;
}

.page-close:before {
	transition: background-color 0.2s ease-in-out;
	content: '';
	display: block;
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 100%;
	background-position: center;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %23ffffff%3B stroke-width: 1%3B %7D%3C/style%3E%3Cline x1='2' y1='2' x2='18' y2='18' /%3E%3Cline x1='18' y1='2' x2='2' y2='18' /%3E%3C/svg%3E");
	background-size: 20px 20px;
	background-repeat: no-repeat;
}

.page-close:hover:before {
	background-color: rgba(255, 255, 255, 0.075);
}

.page-close:active:before {
	background-color: rgba(255, 255, 255, 0.175);
}

.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;
	}
}

/* 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;
}
