/*
Theme Name: Raja7
Theme URI: http://rjaj7.local/
Author: Raja7
Description: Original rummy listing guide with a narrow landing layout, directory, FAQ, and age check.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: rjaj7
*/

:root {
	--navy: #003a92;
	--ink: #0f172a;
	--muted: #64748b;
	--paper: #f3f4f6;
	--line: #e5e7eb;
	--red: #dc2626;
	--red-deep: #b91c1c;
	--green: #16a34a;
	--sheet: 430px;
	--header: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Segoe UI", "Noto Sans", sans-serif;
	line-height: 1.45;
}

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

button, input, textarea { font: inherit; }

.skip {
	position: absolute;
	left: 12px;
	top: -40px;
	background: #fff;
	padding: 8px 12px;
	z-index: 20;
}

.skip:focus { top: 8px; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.admin-bar .site-header { top: 32px; }

.topbar {
	background: var(--navy);
	color: #fff;
	min-height: 56px;
	display: flex;
	justify-content: center;
	padding: 8px 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	text-align: left;
}

.brand-logo,
.sticky-logo {
	display: block;
	object-fit: cover;
	border-radius: 12px;
}

.brand-logo { width: 48px; height: 48px; }

.sticky-logo { width: 40px; height: 40px; border-radius: 10px; }

.brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.brand-copy strong { font-size: 15px; font-weight: 700; }

.brand-copy span { font-size: 12px; opacity: 0.92; }

.subbar {
	background: #fff;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--line);
}

.subbar a {
	text-decoration: none;
	color: var(--ink);
	padding: 8px 14px;
	font-size: 15px;
}

.subbar a:hover,
.subbar a.is-active {
	color: var(--navy);
	box-shadow: inset 0 -2px 0 var(--navy);
}

.sheet {
	width: min(var(--sheet), calc(100% - 20px));
	margin: 18px auto 110px;
}

.sheet-prose { width: min(680px, calc(100% - 28px)); }

.view-app .sheet-prose { width: min(var(--sheet), calc(100% - 20px)); }

.page-kicker {
	margin: 0 0 10px;
	text-align: center;
	color: #475569;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.4;
}

.page-kicker a { color: var(--navy); }

.hero {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(63, 13, 18, 0.25);
}

.hero img {
	width: 100%;
	height: auto;
	border-radius: 18px;
}

.badges {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 14px 0;
	padding: 0;
}

.badges li {
	background: linear-gradient(#2b1247, #120a24);
	color: #fff;
	border-radius: 12px;
	padding: 10px 8px;
	text-align: center;
}

.badges span {
	display: block;
	font-size: 12px;
	opacity: 0.8;
}

.badges strong { font-size: 16px; }

.btn-claim {
	width: 100%;
	border: 0;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(45deg, #ff4c4c, #ff9c3c);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	box-shadow: 0 8px 16px rgba(255, 76, 76, 0.28);
}

.btn-claim:hover { filter: brightness(1.05); }

.btn-claim:active { transform: translateY(1px); }

.fine {
	margin: 8px 0 0;
	text-align: center;
	color: var(--muted);
	font-size: 12px;
}

.block { margin-top: 18px; }

.bar {
	margin: 0;
	background: var(--red-deep);
	color: #fff;
	font-size: 14px;
	font-weight: 650;
	text-align: center;
	padding: 6px 10px;
}

.bar-soft {
	background: linear-gradient(90deg, #d84b4b, #ef6a6a);
	border-radius: 2px;
	font-weight: 700;
}

.picks {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	text-align: center;
}

.pick {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
}

.text-dl {
	border: 0;
	background: transparent;
	color: var(--green);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	padding: 0;
}

.app-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.app-row {
	display: grid;
	grid-template-columns: 22px 46px 1fr auto;
	gap: 8px;
	align-items: center;
	padding: 10px 2px;
	border-bottom: 1px solid #e2e8f0;
}

.rank {
	color: #94a3b8;
	font-weight: 700;
	text-align: center;
}

.app-copy h3 {
	margin: 0;
	font-size: 15px;
}

.app-copy p {
	margin: 0;
	color: var(--green);
	font-size: 12px;
}

.btn-details {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--red);
	color: #fff;
	text-decoration: none;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.btn-details:hover { background: #b91c1c; }

.mark {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.mark-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 16px; }

.mark-xl { width: 84px; height: 84px; border-radius: 20px; font-size: 22px; }

.mark-sm { width: 40px; height: 40px; border-radius: 10px; }

.intro h2,
.faq h2,
.download h2 {
	text-align: center;
	font-size: 22px;
	margin: 8px 0 14px;
}

.intro p {
	margin: 0 0 12px;
	color: #1e293b;
	text-align: left;
}

.faq-item {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
}

.faq-q {
	margin: 0;
	padding: 14px 16px 6px;
	font-size: 16px;
	font-weight: 700;
}

.faq-a { padding: 0 16px 14px; color: #334155; }

.faq-a p { margin: 0; }

.download {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 16px 16px 6px;
}

.download ol {
	margin: 0 0 12px;
	padding-left: 22px;
	color: #1e293b;
}

.download li { margin: 0 0 8px; }

.download p {
	margin: 0 0 12px;
	color: #1e293b;
}

.sheet-prose h1 { font-size: 32px; margin: 0 0 12px; }

.sheet-prose h2 { font-size: 20px; margin: 22px 0 8px; }

.sheet-prose p,
.sheet-prose li { color: #1e293b; }

.detail-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.detail-head h1 { margin: 0; text-align: center; }

.contact-form {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.contact-form label {
	display: grid;
	gap: 6px;
	font-weight: 700;
}

.contact-form input,
.contact-form textarea {
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 10px 12px;
	background: #fff;
}

.form-error { color: var(--red); font-size: 14px; }

.form-ok { color: var(--green); font-weight: 700; }

.site-footer {
	background: var(--navy);
	color: #fff;
	padding: 28px 16px 108px;
}

.footer-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 18px;
}

.footer-pills a {
	background: #1d4ed8;
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 14px;
}

.footer-notes,
.copyright {
	width: min(860px, 100%);
	margin: 0 auto;
}

.footer-notes p,
.copyright {
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.95;
}

.copyright { text-align: center; margin-top: 14px; }

.sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	background: rgba(15, 23, 42, 0.96);
	color: #fff;
	padding: 10px 14px;
}

.sticky-inner {
	width: min(860px, 100%);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sticky-id {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.sticky-id strong,
.sticky-id span { display: block; }

.sticky-id span {
	font-size: 12px;
	color: #cbd5e1;
}

.btn-green {
	display: inline-block;
	border: 0;
	cursor: pointer;
	background: #22c55e;
	color: #fff;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 800;
	white-space: nowrap;
	text-decoration: none;
}

.btn-green:hover { background: #16a34a; }

.modal {
	position: relative;
	width: min(420px, calc(100% - 28px));
	border: 0;
	border-radius: 18px;
	padding: 28px 22px 22px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal .btn-green,
.modal .btn-claim { margin-top: 4px; }

.modal::backdrop { background: rgba(15, 23, 42, 0.62); }

.modal h2 { margin: 0 0 8px; font-size: 24px; }

.modal p { margin: 0 0 12px; color: #334155; }

.eyebrow {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	font-weight: 800;
	color: var(--red-deep);
}

.modal-figure {
	margin: 4px 0;
	font-size: 56px;
	font-weight: 800;
	color: var(--navy);
	line-height: 1;
}

.modal-x {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 8px 0 14px;
	font-size: 14px;
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 520px) {
	.subbar a { padding: 8px 10px; font-size: 14px; }
	.app-row { grid-template-columns: 16px 40px 1fr; }
	.btn-details { grid-column: 2 / -1; justify-self: start; }
	.picks { gap: 6px; }
	.mark-lg { width: 54px; height: 54px; }
}
