/*
Theme Name: IN101 Game
Theme URI: https://in101gamei.com
Author: IN101 Game
Description: Mobile-friendly guide theme for the IN101 Android entertainment app, written for readers in India.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Text Domain: in101-game
*/

/* ------------------------------------------------------------------
   Base
   White page, black text, dark-gray headings, blue actions.
   System sans-serif only, so phones in India do not wait on webfonts.
------------------------------------------------------------------ */

:root {
	--bg: #ffffff;
	--text: #111111;
	--heading: #333333;
	--muted: #3f3f3f;
	--line: #d0d0d0;
	--blue: #0b5ed7;
	--blue-hover: #084298;
	--focus: #0b5ed7;
	--max: 760px;
	--wrap: 1040px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.7;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--blue);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--blue-hover);
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 0.75rem;
	top: -4rem;
	background: var(--blue);
	color: #fff;
	padding: 0.6rem 1rem;
	z-index: 10;
}

.skip-link:focus {
	top: 0.75rem;
	color: #fff;
}

.screen-reader {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------
   Header and navigation
------------------------------------------------------------------ */

.site-header {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 46% 140% at 0% -10%, rgba(150, 90, 255, 0.55), transparent 58%),
		radial-gradient(ellipse 40% 120% at 100% 110%, rgba(48, 110, 230, 0.42), transparent 56%),
		radial-gradient(ellipse 30% 80% at 68% 120%, rgba(220, 120, 40, 0.4), transparent 60%),
		linear-gradient(180deg, #167048 0%, #0b3d28 46%, #062418 100%);
	box-shadow:
		inset 0 4px 0 #f6d7a4,
		inset 0 8px 0 #8a5320,
		inset 0 -4px 0 #f6d7a4,
		inset 0 -8px 0 #7a4518,
		0 14px 26px rgba(0, 0, 0, 0.32);
	padding: 8px 0;
}

.site-header::before,
.site-header::after {
	content: "";
	position: absolute;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	pointer-events: none;
}

.site-header::before {
	left: -28px;
	top: 22px;
	background: repeating-conic-gradient(#f7f4ee 0 14deg, #5b3fd6 14deg 28deg);
	box-shadow: inset 0 0 0 12px #3d27a8, inset 0 0 0 15px #f3d7a1;
}

.site-header::after {
	right: -26px;
	bottom: 10px;
	background: repeating-conic-gradient(#f7f4ee 0 14deg, #2d6adf 14deg 28deg);
	box-shadow: inset 0 0 0 12px #1c4eae, inset 0 0 0 15px #f3d7a1;
}

.header-inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0.7rem 1.25rem 0.85rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.brand img {
	display: block;
	height: 96px;
	width: auto;
	border: 3px solid #f6d7a4;
	box-shadow: 0 0 0 2px #7a4014, 0 0 0 5px #d4893a, 0 0 16px rgba(220, 130, 40, 0.55);
}

.nav-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nav-toggle-label {
	display: none;
	margin-left: auto;
	min-height: 48px;
	min-width: 48px;
	padding: 0.55rem 1.15rem;
	border: 3px dashed #f7f4ee;
	border-radius: 999px;
	background: radial-gradient(circle at 50% 35%, #8a6cff 0%, #4a2ec4 58%, #2c1888 100%);
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 0 0 3px #e8b15a, inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-nav {
	margin-left: auto;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav li,
.footer-nav li {
	margin: 0;
}

.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.35rem 0.7rem;
	color: #f8edd6;
	text-decoration: none;
	font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: #e8b15a;
	text-underline-offset: 0.28em;
}

/* ------------------------------------------------------------------
   Layout
------------------------------------------------------------------ */

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 1.5rem 1.25rem 1.25rem;
}

.hero {
	margin: 0.5rem 0 1.75rem;
	text-align: center;
}

.shot-row {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0 0 0.4rem;
	list-style: none;
	overflow-x: auto;
}

.shot-row li,
.shot-row li + li {
	margin: 0;
	flex: 0 0 auto;
}

.shot-row img {
	display: block;
	width: 180px;
	height: auto;
	border: 2px solid #e8b15a;
	border-radius: 16px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero-mark {
	display: block;
	width: min(240px, 72%);
	height: auto;
	margin: 0 auto;
}

.hero h1 {
	margin: 0 auto 0.75rem;
	max-width: 100%;
	padding: 0 0.25rem;
	color: #2a2a2a;
	font-size: clamp(1.05rem, 2.4vw + 0.55rem, 1.35rem);
	line-height: 1.35;
	letter-spacing: 0.01em;
	font-weight: 700;
	text-wrap: balance;
}

/* ------------------------------------------------------------------
   Type scale: H1 > H2 > H3 > body
------------------------------------------------------------------ */

h1,
h2,
h3 {
	color: var(--heading);
	line-height: 1.25;
	font-weight: 700;
}

h1 {
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	margin: 0 0 0.8rem;
}

h2 {
	font-size: 1.45rem;
	margin: 2.2rem 0 0.7rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--line);
}

h3 {
	font-size: 1.12rem;
	margin: 1.4rem 0 0.4rem;
}

p,
ul,
ol,
table {
	margin: 0 0 1rem;
}

.wrap > section:last-child > :last-child {
	margin-bottom: 0;
}

ul,
ol {
	padding-left: 1.25rem;
}

.wrap li + li {
	margin-top: 0.35rem;
}

/* ------------------------------------------------------------------
   Table and buttons
------------------------------------------------------------------ */

.info-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 0.5rem;
}

.info-table th,
.info-table td {
	border: 1px solid var(--line);
	padding: 0.75rem 0.9rem;
	text-align: left;
	vertical-align: middle;
}

.info-table th {
	width: 38%;
	font-weight: 700;
	color: var(--heading);
	background: #fff;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.55rem 1.15rem;
	background: var(--blue);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.btn:hover,
.btn:focus {
	background: var(--blue-hover);
	color: #fff;
}

/* ------------------------------------------------------------------
   FAQ, forms, posts, footer
------------------------------------------------------------------ */

.faq-item {
	margin: 0 0 1.1rem;
}

.faq-item h3 {
	margin-bottom: 0.25rem;
}

.note {
	padding-top: 0.25rem;
}

.form-row {
	margin: 0 0 1rem;
}

.form-row label {
	display: block;
	font-weight: 700;
	color: var(--heading);
	margin-bottom: 0.3rem;
}

.form-row input,
.form-row textarea {
	width: 100%;
	padding: 0.7rem 0.75rem;
	border: 1px solid #b9b9b9;
	font: inherit;
	color: var(--text);
	background: #fff;
}

.form-row textarea {
	min-height: 9rem;
	resize: vertical;
}

.hp-field {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.notice {
	padding: 0.8rem 1rem;
	border: 1px solid var(--line);
	margin: 0 0 1rem;
}

.post-list {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
}

.post-list li {
	margin: 0;
	padding: 1rem 0;
	border-top: 1px solid var(--line);
}

.post-list h2 {
	margin: 0 0 0.3rem;
	padding: 0;
	border: 0;
	font-size: 1.25rem;
}

.post-list time {
	display: block;
	color: var(--muted);
	font-size: 0.92rem;
	margin-bottom: 0.35rem;
}

.crumbs {
	font-size: 0.92rem;
	color: var(--muted);
	margin: 0 0 1rem;
}

.crumbs a {
	font-weight: 700;
}

.site-footer {
	position: relative;
	background:
		radial-gradient(ellipse 40% 140% at 100% 0%, rgba(150, 90, 255, 0.35), transparent 58%),
		radial-gradient(ellipse 36% 120% at 0% 100%, rgba(48, 110, 230, 0.28), transparent 56%),
		linear-gradient(180deg, #0b3d28 0%, #062418 100%);
	box-shadow: inset 0 4px 0 #f6d7a4, inset 0 8px 0 #8a5320;
	color: #f8edd6;
}

.footer-inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 1.5rem 1.25rem 2rem;
	text-align: center;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem 0.2rem;
	list-style: none;
	margin: 0 0 0.9rem;
	padding: 0;
}

.footer-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.25rem 0.65rem;
	color: #f8edd6;
	text-decoration: none;
}

.footer-nav a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: #e8b15a;
}

.fine-print {
	margin: 0;
	color: #e7d7b4;
	font-size: 0.95rem;
}

.download-bar {
	display: none;
}

/* ------------------------------------------------------------------
   Small screens
------------------------------------------------------------------ */

@media (max-width: 860px) {
	.nav-toggle-label {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.brand img {
		height: 84px;
	}

	.shot-row {
		justify-content: flex-start;
	}

	.site-nav {
		display: none;
		width: 100%;
		margin-left: 0;
	}

	.nav-toggle:checked ~ .site-nav {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		gap: 0;
		padding-top: 0.35rem;
	}

	.site-nav a {
		width: 100%;
	}

	.info-table th {
		width: 34%;
	}

	.btn {
		width: 100%;
	}

	.footer-inner {
		padding: 1.15rem 0.9rem 1rem;
	}

	.footer-nav ul {
		gap: 0.1rem 0.05rem;
	}

	.footer-nav a {
		min-height: 40px;
		padding: 0.2rem 0.45rem;
		font-size: 0.9rem;
	}

	.fine-print {
		font-size: 0.82rem;
		line-height: 1.45;
		max-width: 36rem;
		margin: 0 auto;
	}

	.site-footer {
		padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
	}

	.download-bar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		align-items: center;
		gap: 0.5rem;
		max-width: 100%;
		padding: 0.5rem 0.7rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
		background:
			linear-gradient(#e8b15a, #e8b15a) 0 0 / 100% 3px no-repeat,
			linear-gradient(180deg, #0b3d28 0%, #062418 100%);
		color: #f8edd6;
	}

	.download-bar img {
		width: clamp(36px, 10vw, 44px);
		height: clamp(36px, 10vw, 44px);
		object-fit: cover;
		flex: 0 0 auto;
	}

	.download-bar-copy {
		flex: 1 1 auto;
		min-width: 0;
		margin: 0;
	}

	.download-bar-copy strong,
	.download-bar-copy span {
		display: block;
		line-height: 1.25;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.download-bar-copy strong {
		font-size: clamp(0.82rem, 3.4vw, 0.95rem);
	}

	.download-bar-copy span {
		font-size: clamp(0.68rem, 2.8vw, 0.78rem);
		color: #d5d5d5;
	}

	.download-bar .btn {
		width: auto;
		flex: 0 0 auto;
		min-height: 40px;
		padding: 0.4rem clamp(0.7rem, 3vw, 0.95rem);
		white-space: nowrap;
	}
}

@media (max-width: 360px) {
	.download-bar {
		gap: 0.4rem;
		padding-left: 0.55rem;
		padding-right: 0.55rem;
	}

	.download-bar .btn {
		min-height: 38px;
		padding: 0.35rem 0.7rem;
		font-size: 0.92rem;
	}
}
