/* ==========================================================================
   Epileptic Daily — built from the "Epileptic Daily" screen of
   design/Epileptic Sections.dc.html.
   ========================================================================== */

:root {
	/*
	 * The two answer colours, taken from the design's own option tiles. They
	 * are the token's 🟥🟩 read as RED / GREEN, not the logo tier — nothing
	 * here flashes.
	 */
	--daily-red:   #FF3131;
	--daily-red-t: #FF4D5E;
	--daily-green: #00D26A;
}

.epi-daily {
	max-width: 1620px;
	margin: 0 auto;
	padding: 34px var(--gutter) 90px;
}

.epi-daily__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.epi-daily__eyebrow {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 2.2px;
	color: var(--fg-faint);
	text-transform: uppercase;
	margin-bottom: 10px;
}

.epi-daily__title {
	font-size: 46px;
	font-weight: 800;
	letter-spacing: -1.4px;
}

.epi-daily__rules {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 1.4px;
	color: var(--fg-faint);
	text-align: right;
	line-height: 1.7;
	text-transform: uppercase;
}

.epi-daily__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 22px;
	align-items: start;
}

/* --- the question card ----------------------------------------------------- */

.epi-call-card {
	border: 1px solid var(--line-strong);
	border-radius: var(--r-hero);
	background: linear-gradient(180deg, #11141B, #0A0C10);
	padding: 34px 36px;
	margin-bottom: 18px;
}

.epi-call-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.epi-call-card__ident {
	display: flex;
	align-items: center;
	gap: 12px;
}

.epi-call-card__no {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	color: var(--ui-accent-soft);
	text-transform: uppercase;
}

.epi-call-card__sep {
	width: 1px;
	height: 12px;
	background: rgba(255, 255, 255, 0.14);
}

.epi-call-card__date {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 1.6px;
	color: var(--fg-label);
	text-transform: uppercase;
}

.epi-call-card__playing {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 12px;
	border-radius: var(--r-chip);
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: var(--bg-soft);
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 1.4px;
	color: var(--fg-body);
}

.epi-call-card__playing .epi-dot {
	width: 6px;
	height: 6px;
	background: var(--daily-green);
}

/* The 22ch cap that used to be here broke a question into a narrow stack in a
   card twice that wide — the same defect the article headline had. The card is
   the constraint. */
.epi-call-card__q {
	font-size: 40px;
	line-height: 1.12;
	font-stretch: var(--stretch-head);
	letter-spacing: -1.1px;
	font-weight: 800;
	margin-bottom: 12px;
}

.epi-call-card__ref {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 1.3px;
	color: var(--fg-faint);
	margin-bottom: 30px;
	text-transform: uppercase;
}

.epi-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 22px;
}

.epi-option {
	height: 128px;
	border-radius: var(--r-rail);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	border: 1px solid;
	transition: transform 160ms var(--ease-lift), border-color 160ms ease, opacity 160ms ease;
	background: transparent;
	padding: 0;
	text-align: center;
}

.epi-option:hover:not([disabled]) { transform: translateY(-3px); }

.epi-option[disabled] { cursor: default; }

.epi-option--a {
	border-color: rgba(255, 49, 49, 0.45);
	background: linear-gradient(180deg, rgba(255, 49, 49, 0.13), rgba(255, 49, 49, 0.04));
}

.epi-option--a:hover:not([disabled]) { border-color: rgba(255, 49, 49, 0.9); }

.epi-option--b {
	border-color: rgba(0, 210, 106, 0.45);
	background: linear-gradient(180deg, rgba(0, 210, 106, 0.14), rgba(0, 210, 106, 0.04));
}

.epi-option--b:hover:not([disabled]) { border-color: rgba(0, 210, 106, 0.9); }

.epi-option.is-picked { border-width: 2px; }
.epi-option--a.is-picked { border-color: var(--daily-red); }
.epi-option--b.is-picked { border-color: var(--daily-green); }

.epi-option.is-notpicked { opacity: 0.45; }

.epi-option__glyph { font-size: 34px; line-height: 1; }

.epi-option__label {
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.epi-option--a .epi-option__label { color: var(--daily-red-t); }
.epi-option--b .epi-option__label { color: var(--daily-green); }

.epi-option__share {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 1.4px;
}

.epi-option--a .epi-option__share { color: #8A4A52; }
.epi-option--b .epi-option__share { color: #4E7C63; }

.epi-call-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 1.4px;
	color: var(--fg-ghost);
	text-transform: uppercase;
}

.epi-call-card__msg {
	margin-top: 14px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--ui-bear);
	min-height: 1em;
}

/* --- the three numbers ----------------------------------------------------- */

.epi-daily__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.epi-numbox {
	border: 1px solid var(--line);
	border-radius: var(--r-rail);
	background: var(--bg-soft);
	padding: 18px 20px;
}

.epi-numbox__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.epi-numbox__glyph { font-size: 13px; }

.epi-numbox__key {
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: 1.7px;
	color: var(--fg-faint);
	text-transform: uppercase;
}

.epi-numbox__value {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-family: var(--font-mono);
}

.epi-numbox__num {
	font-size: 27px;
	font-weight: 600;
	letter-spacing: -1.1px;
}

.epi-numbox__sub {
	font-size: 10px;
	color: var(--fg-ghost);
	letter-spacing: 1px;
}

/* --- last 7 days ----------------------------------------------------------- */

.epi-history {
	border: 1px solid var(--line);
	border-radius: var(--r-rail);
	background: var(--bg-soft);
	padding: 20px 22px;
}

.epi-history__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.epi-history__label,
.epi-history__shieldlabel {
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: 1.8px;
	color: var(--fg-label);
	text-transform: uppercase;
}

.epi-history__shields {
	display: flex;
	align-items: center;
	gap: 10px;
}

.epi-shields { display: flex; gap: 5px; }

.epi-shield {
	width: 15px;
	height: 18px;
	background: #22262F;
	clip-path: polygon(50% 0, 100% 22%, 100% 62%, 50% 100%, 0 62%, 0 22%);
}

.epi-shield.is-held { background: var(--ui-accent); }

.epi-history__row { display: flex; gap: 10px; }

.epi-history__cell {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.epi-history__mark {
	width: 100%;
	height: 52px;
	border-radius: var(--r-chip);
	border: 1px solid var(--line-strong);
	background: #0E1117;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 600;
	color: var(--fg-ghost);
}

.epi-history__mark--correct { background: rgba(0, 210, 106, 0.12); border-color: rgba(0, 210, 106, 0.4); }
.epi-history__mark--wrong   { background: rgba(255, 49, 49, 0.10); border-color: rgba(255, 49, 49, 0.35); }
.epi-history__mark--pending { border-color: rgba(47, 125, 255, 0.35); color: var(--ui-accent-soft); }

.epi-history__day {
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: 1.2px;
	color: var(--fg-ghost);
}

/* --- leaderboard rail ------------------------------------------------------ */

.epi-daily__rail {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 96px;
}

.epi-board {
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	background: var(--bg-card);
	overflow: hidden;
}

.epi-board__tabs {
	display: flex;
	padding: 4px;
	margin: 14px 14px 0;
	border-radius: var(--r-ctrl);
	background: var(--bg-footer);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.epi-board__tab {
	flex: 1;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 1.3px;
	padding: 9px 0;
	border-radius: 7px;
	color: var(--fg-faint);
	text-transform: uppercase;
	transition: color 160ms ease, background 160ms ease;
}

.epi-board__tab:hover { color: var(--fg); }

.epi-board__tab[aria-current] {
	color: var(--fg);
	background: rgba(255, 255, 255, 0.07);
}

.epi-board__rows { padding: 14px 0 0; }

.epi-board__row {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 74px 56px;
	gap: 10px;
	align-items: center;
	padding: 11px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.epi-board__row.is-you { background: rgba(47, 125, 255, 0.09); }

.epi-board__rank {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	color: var(--fg-faint);
}

.epi-board__row:nth-child(1) .epi-board__rank { color: #FFD166; }
.epi-board__row:nth-child(2) .epi-board__rank { color: #C9CEDA; }
.epi-board__row:nth-child(3) .epi-board__rank { color: #C08457; }

.epi-board__who {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.epi-board__avatar {
	width: 22px;
	height: 22px;
	border-radius: 5px;
	flex-shrink: 0;
}

.epi-board__handle {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: #DDE2EC;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.epi-board__acc {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--fg-mute);
	text-align: right;
}

.epi-board__points {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	color: var(--ui-accent-soft);
	text-align: right;
}

.epi-board__foot {
	padding: 13px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 9.5px;
	color: var(--fg-ghost);
}

.epi-board__empty {
	padding: 22px 18px;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.6;
	color: var(--fg-faint);
}

/* --- share ----------------------------------------------------------------- */

.epi-share {
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	background: var(--bg-card);
	padding: 20px;
}

.epi-share__grid {
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 12px;
	background: var(--bg);
	padding: 18px;
	margin-bottom: 14px;
	font-family: var(--font-mono);
	font-size: 13.5px;
	line-height: 1.9;
	color: var(--fg-soft);
	white-space: pre-wrap;
	word-break: break-word;
}

.epi-share__actions { display: flex; gap: 10px; }

.epi-share__btn {
	flex: 1;
	height: 44px;
	border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 1.5px;
	color: var(--fg-soft);
	text-transform: uppercase;
}

.epi-share__btn--primary {
	background: var(--ui-accent);
	border-color: var(--ui-accent);
	color: #fff;
	font-weight: 600;
}

/* --- narrow ---------------------------------------------------------------- */

@media (max-width: 1180px) {
	.epi-daily__grid { grid-template-columns: minmax(0, 1fr); }
	.epi-daily__rail { position: static; }
}

@media (max-width: 860px) {
	.epi-daily__stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.epi-daily { padding: 22px var(--gutter) 60px; }
	.epi-daily__title { font-size: 32px; letter-spacing: -1.3px; }
	.epi-daily__rules { text-align: left; }
	.epi-call-card { padding: 22px 18px; }
	.epi-call-card__q { font-size: 26px; letter-spacing: -0.6px; font-stretch: 100%; }
	.epi-options { grid-template-columns: 1fr; }
	.epi-option { height: 78px; flex-direction: row; gap: 12px; }
	.epi-history__row { gap: 6px; }
	.epi-history__mark { height: 40px; font-size: 13px; }
}
