/* Unreader — Review Day community boss (page-scoped) */

.unreader-page {
	max-width: 920px;
	margin: 0 auto 2.5rem;
	padding: 0 12px;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.unreader-hero,
.unreader-battle,
.unreader-sleep,
.unreader-section {
	padding: 1.25rem 1.35rem;
}

.unreader-hero__eyebrow,
.unreader-battle__kicker {
	margin: 0 0 0.35rem;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.85;
}

.unreader-hero__title,
.unreader-battle__title,
.unreader-sleep__title,
.unreader-section__title {
	margin: 0 0 0.4rem;
	font-size: 1.55rem;
	line-height: 1.25;
	color: #1a2433;
}

/* Sitewide h1 is white (banner chrome); force readable ink on this card. */
.unreader-page h1.unreader-hero__title {
	color: #1a2433;
}

.unreader-hero__date,
.unreader-hero__lede,
.unreader-battle__stage,
.unreader-flavor,
.unreader-sleep__lede,
.unreader-section__empty,
.unreader-battlefield__empty {
	margin: 0.35rem 0 0;
	font-size: 13px;
	line-height: 1.45;
}

.unreader-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.unreader-battle__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.unreader-hp {
	min-width: min(100%, 280px);
	flex: 1 1 240px;
}

.unreader-hp__meta {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 12px;
	margin-bottom: 0.35rem;
}

.unreader-hp__bar {
	height: 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.unreader-hp__fill {
	display: block;
	height: 100%;
	background: #1e4d7b;
	border-radius: inherit;
	transition: width 0.35s ease;
}

.unreader-hp__fill--defeated {
	background: #2f6b3a;
}

.unreader-battlefield {
	position: relative;
	min-height: 340px;
	padding: 0.85rem 0.5rem 5rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	overflow: hidden;
	transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

/* 1980s adventure CRT: dark when pristine, opens into light as damaged */
.unreader-battlefield--stage-0 {
	background: #0b0f14;
	border-color: #1a2430;
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.65);
}

.unreader-battlefield--stage-1 {
	background: #151c24;
	border-color: #2a3542;
	box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.45);
}

.unreader-battlefield--stage-2 {
	background: #2a3340;
	border-color: #4a5563;
	box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.25);
}

.unreader-battlefield--stage-3 {
	background: #e8e2d6;
	border-color: #c4b8a4;
	box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.35);
}

.unreader-battlefield--sleep {
	margin-top: 1rem;
	min-height: 280px;
	padding-bottom: 0.85rem;
}

.unreader-ascii {
	margin: 0 auto;
	max-width: 100%;
	overflow-x: auto;
	text-align: center;
	font-family: "Courier New", Courier, monospace;
	font-size: 11px;
	line-height: 1.12;
	white-space: pre;
	user-select: none;
	transition: color 0.45s ease, text-shadow 0.45s ease;
}

.unreader-battlefield--stage-0 .unreader-ascii {
	color: #3dff7a;
	text-shadow: 0 0 6px rgba(61, 255, 122, 0.35);
}

.unreader-battlefield--stage-1 .unreader-ascii {
	color: #7dff9f;
	text-shadow: 0 0 4px rgba(125, 255, 159, 0.25);
}

.unreader-battlefield--stage-2 .unreader-ascii {
	color: #d7e6c8;
	text-shadow: none;
}

.unreader-battlefield--stage-3 .unreader-ascii {
	color: #2c2418;
	text-shadow: none;
}

.unreader-battlefield--stage-0 .unreader-battlefield__empty,
.unreader-battlefield--stage-1 .unreader-battlefield__empty,
.unreader-battlefield--stage-2 .unreader-battlefield__empty {
	color: rgba(255, 255, 255, 0.7);
}

.unreader-battlefield--stage-3 .unreader-battlefield__empty {
	color: rgba(44, 36, 24, 0.75);
}

.unreader-frontline {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 46%;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 42%, transparent 100%);
}

.unreader-frontline::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 3.5%;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 20%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.28) 80%, transparent 100%);
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.unreader-battlefield--stage-3 .unreader-frontline {
	background: linear-gradient(to top, rgba(90, 70, 40, 0.22) 0%, transparent 70%);
}

.unreader-battlefield--stage-3 .unreader-frontline::before {
	background: linear-gradient(90deg, transparent 0%, rgba(80, 60, 35, 0.35) 50%, transparent 100%);
}

.unreader-fighter {
	position: absolute;
	transform: translateX(-50%);
	border-radius: 50%;
	overflow: visible;
	pointer-events: auto;
	line-height: 0;
	filter: drop-shadow(0 7px 6px rgba(0, 0, 0, 0.45));
	transition: transform 0.2s ease, filter 0.2s ease;
}

.unreader-fighter:hover {
	transform: translateX(-50%) translateY(-3px) scale(1.06);
	filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.5));
}

.unreader-fighter__avatar {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.9);
	background: #1b2430;
	box-sizing: border-box;
}

.unreader-fighter__avatar img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 50%;
}

.unreader-fighter__say {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	z-index: 5;
	min-width: 4.5rem;
	max-width: 7.5rem;
	padding: 0.28rem 0.45rem;
	border-radius: 8px;
	background: #fff8e8;
	color: #1d2733;
	border: 1px solid rgba(0, 0, 0, 0.18);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	letter-spacing: 0.01em;
	pointer-events: none;
	opacity: 0;
	transform: translateX(-50%) translateY(6px) scale(0.92);
	transition: opacity 0.2s ease, transform 0.2s ease;
	white-space: normal;
}

.unreader-fighter__say::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	background: #fff8e8;
	border-right: 1px solid rgba(0, 0, 0, 0.18);
	border-bottom: 1px solid rgba(0, 0, 0, 0.18);
	transform: rotate(45deg);
}

.unreader-fighter__say.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0) scale(1);
}

.unreader-fighter__say.is-victory {
	background: #e7f6ea;
	border-color: rgba(47, 107, 58, 0.35);
	color: #1f4d2a;
}

.unreader-fighter__say.is-victory::after {
	background: #e7f6ea;
	border-right-color: rgba(47, 107, 58, 0.35);
	border-bottom-color: rgba(47, 107, 58, 0.35);
}

.unreader-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.unreader-section__link {
	font-size: 12px;
}

.unreader-challenge-list,
.unreader-quest-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.unreader-challenge__link {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	background: rgba(255, 255, 255, 0.55);
}

.unreader-challenge__link:hover {
	border-color: rgba(30, 77, 123, 0.35);
}

.unreader-challenge__badge {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	padding: 0.2rem 0.45rem;
	border-radius: 4px;
	background: rgba(30, 77, 123, 0.1);
	color: #1e4d7b;
}

.unreader-challenge__copy,
.unreader-quest__copy {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.unreader-challenge__title,
.unreader-quest__name {
	font-size: 13px;
	font-weight: 600;
}

.unreader-challenge__meta,
.unreader-quest__desc {
	font-size: 12px;
	opacity: 0.8;
}

.unreader-quest {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.55);
}

.unreader-quest__mark {
	flex: 0 0 1.25rem;
	width: 1.25rem;
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0.55;
}

.unreader-quest--complete {
	border-color: rgba(47, 107, 58, 0.35);
	background: rgba(47, 107, 58, 0.08);
}

.unreader-quest--complete .unreader-quest__mark {
	color: #2f6b3a;
	opacity: 1;
	font-weight: 700;
}

.unreader-quest--complete .unreader-quest__name {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.unreader-quest__progress {
	margin-left: auto;
	flex: 0 0 auto;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	opacity: 0.75;
}

.unreader-live-pip {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin: 0 4px 0 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
	animation: unreader-pulse-pip 1.8s ease-out infinite;
	vertical-align: middle;
}

.unreader-live-label {
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #2f6b3a;
	vertical-align: middle;
}

@keyframes unreader-pulse-pip {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
	70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.unreader-battlefield.is-hit {
	animation: unreader-crt-hit 0.42s steps(2, end);
}

@keyframes unreader-crt-hit {
	0% { filter: brightness(1.35) contrast(1.15); transform: translateY(0); }
	25% { filter: brightness(0.85); transform: translateY(1px); }
	50% { filter: brightness(1.4) saturate(1.2); transform: translateY(-1px); }
	100% { filter: none; transform: none; }
}

.unreader-hit-toast {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%) translateY(-6px);
	z-index: 3;
	padding: 0.4rem 0.75rem;
	border-radius: 4px;
	background: rgba(8, 14, 20, 0.88);
	color: #3dff7a;
	font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	letter-spacing: 0.03em;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.unreader-hit-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.unreader-battlefield--stage-3 .unreader-hit-toast {
	background: rgba(44, 36, 24, 0.9);
	color: #f4efe4;
}

.unreader-chronicle {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.unreader-chronicle__title {
	margin: 0 0 0.55rem;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.unreader-chronicle__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.unreader-chronicle-item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	align-items: baseline;
	padding: 0.45rem 0.6rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 12px;
	line-height: 1.4;
}

.unreader-chronicle-item__label {
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #1e4d7b;
}

.unreader-chronicle-item--defeated {
	border-color: rgba(47, 107, 58, 0.35);
	background: rgba(47, 107, 58, 0.08);
}

.unreader-chronicle-item--defeated .unreader-chronicle-item__label {
	color: #2f6b3a;
}

.unreader-chronicle-item__line {
	flex: 1 1 12rem;
	min-width: 0;
}

.unreader-chronicle-item__line a {
	font-weight: 600;
}

@media (max-width: 640px) {
	.unreader-ascii {
		font-size: 10px;
	}

	.unreader-battlefield {
		min-height: 240px;
		padding-bottom: 3.75rem;
	}
}
