/* Asteia Status: dark theme. Values from designs/ (Αρχική · Desktop and Mobile). */

/* ---------- Fonts (self-hosted, Greek + Latin, variable weight) ---------- */

@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/commissioner-greek-wght-normal.woff2") format("woff2");
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/commissioner-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-greek-wght-normal.woff2") format("woff2");
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
	--bg: #0f0f11;
	--bg-hero: #141417;
	--surface: #18181b;
	--surface-raised: #1c1c20;
	--line: #232328;
	--line-card: #26262b;
	--line-control: #2a2a30;
	--line-strong: #34343c;
	--text: #f2f0eb;
	--muted: #a3a3ad;
	--faint: #8a8a94;
	--accent: #ffd84d;
	--accent-soft: #ffd84d22;
	--ink: #111113;

	--font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, monospace;

	--gutter: 24px;
	--radius-card: 20px;

	color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--muted);
	text-decoration: none;
}

a:hover {
	color: #fff;
}

button,
input {
	font: inherit;
}

button {
	cursor: pointer;
}

input::placeholder {
	color: var(--faint);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.icon {
	flex: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--accent);
	color: var(--ink);
	font-weight: 700;
}

.skip-link:focus {
	top: 12px;
	color: var(--ink);
}

.container {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.site-content {
	flex: 1 0 auto;
}

/* ---------- Shared pieces ---------- */

.card {
	background: var(--surface);
	border: 1px solid var(--line-card);
	border-radius: var(--radius-card);
}

.eyebrow {
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

.eyebrow--small {
	font-size: 12px;
}

.section-title {
	margin: 0;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}

.section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 600;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	border: 0;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.button--accent,
.button--accent:hover {
	background: var(--accent);
	color: var(--ink);
}

.button--accent:hover {
	filter: brightness(1.06);
}

.button--ghost {
	padding: 0 16px;
	border-radius: 12px;
	background: transparent;
	border: 1px solid var(--line-control);
	color: var(--text);
	font-weight: 600;
}

.button--ghost:hover {
	border-color: var(--line-strong);
	color: #fff;
}

.button--block {
	width: 100%;
}

.icon-button {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--line-control);
	color: var(--text);
}

.icon-button--accent,
.icon-button--accent:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ink);
}

.icon-button--outline {
	background: transparent;
	border-color: var(--line-strong);
}

.pill {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pill--ink {
	background: var(--ink);
	color: var(--accent);
}

.pill-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.icon-tile {
	width: 48px;
	height: 48px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent);
}

.icon-tile--large {
	width: 64px;
	height: 64px;
	border-radius: 18px;
}

/* ---------- Header ---------- */

.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--text);
}

.brand:hover {
	color: var(--text);
}

.brand__name {
	font-size: 24px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.brand__accent {
	color: var(--accent);
}

.brand--small .brand__name {
	font-size: 18px;
}

.site-nav {
	margin-left: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
}

.site-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	font-weight: 500;
}

.site-nav__link[aria-current="page"] {
	color: var(--text);
}

.site-header__actions {
	display: none;
	margin-left: auto;
	gap: 8px;
}

.menu-toggle__close {
	display: none;
}

/* ---------- Hero and search ---------- */

.hero {
	border-bottom: 1px solid var(--line);
	background: var(--bg-hero);
}

.hero__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 48px;
	padding-bottom: 44px;
}

.hero__title {
	margin: 0;
	font-size: 56px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
}

.hero__text {
	margin: 0;
	max-width: 640px;
	color: var(--muted);
	font-size: 18px;
}

.hero--page .hero__inner {
	padding-top: 40px;
	padding-bottom: 36px;
}

.hero--page .hero__title {
	font-size: 44px;
}

.search {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.search__box {
	max-width: 820px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-radius: 34px;
}

.search__box:focus-within {
	border-color: var(--faint);
}

.search__field {
	flex: 1 1 240px;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 12px 0 16px;
	color: var(--muted);
}

.search__field input {
	flex: 1;
	min-width: 0;
	height: 52px;
	background: transparent;
	border: 0;
	color: var(--text);
	font-size: 18px;
}

.search__field input:focus {
	outline: none;
}

.search__field input::-webkit-search-cancel-button {
	filter: invert(1);
}

.search__submit {
	flex: 0 0 auto;
	height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	border: 0;
	background: var(--accent);
	color: var(--ink);
	font-size: 16px;
	font-weight: 700;
}

.search__submit-icon {
	display: none;
}

.search__types {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.search__types-label {
	float: left;
	padding: 0 4px 0 0;
	font-size: 14px;
	color: var(--faint);
}

.toggle {
	position: relative;
	display: inline-flex;
}

.toggle input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.toggle span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
}

.toggle input:checked + span {
	border-color: var(--text);
	background: var(--text);
	color: var(--ink);
	font-weight: 700;
}

.toggle input:focus-visible + span {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.toggle:hover input:not(:checked) + span {
	color: #fff;
}

/* ---------- Listing layout ---------- */

.layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 280px;
	align-items: start;
	gap: 32px;
	padding-top: 36px;
	padding-bottom: 64px;
}

.category-nav__title {
	padding: 0 14px 12px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--faint);
}

.category-nav__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.category-nav__link {
	min-height: 44px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 500;
}

.category-nav__link:hover {
	background: var(--surface);
}

.category-nav__dot {
	display: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}

.category-nav__link[aria-current="page"] {
	background: var(--surface-raised);
	color: var(--text);
	font-weight: 700;
}

.category-nav__title--more {
	margin-top: 28px;
}

.category-nav__emoji {
	width: 18px;
	font-size: 15px;
	line-height: 1;
	text-align: center;
}

.category-nav__link[aria-current="page"] .category-nav__dot {
	display: block;
}

.listing {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.listing__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	padding: 0 4px;
}

.segmented {
	display: flex;
	background: var(--surface);
	border: 1px solid var(--line-card);
	border-radius: 999px;
}

.segmented__item {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
}

.segmented__item[aria-current="true"] {
	background: var(--line-strong);
	color: var(--text);
	font-weight: 700;
}

.date-line {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 4px 0;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--faint);
}

.date-line a {
	color: inherit;
}

.date-line a:hover {
	color: var(--text);
}

.date-line__rule {
	flex: 1;
	height: 1px;
	background: var(--line);
}

/* ---------- Status card ---------- */

.status-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 28px 24px;
	background: var(--surface);
	border: 1px solid var(--line-card);
	border-radius: 20px;
}

.status-card__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.status-card__text {
	display: block;
	margin: 0;
	color: var(--text);
	font-size: 24px;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.status-card__text:hover {
	color: var(--text);
}

.status-card__text p {
	margin: 0;
}

.status-card__text p + p {
	margin-top: 0.6em;
}

.status-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	/* Always at the bottom, also when the card is taller than its text (cards side by side). */
	margin-top: auto;
	padding-top: 8px;
}

.status-user {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	min-width: 0;
	font-size: 15px;
	font-weight: 600;
}

.status-user__avatar {
	flex: none;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--line-card);
	color: var(--text);
	font-family: var(--mono);
	font-size: 14px;
	font-weight: 700;
}

.status-user__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.status-actions {
	margin-left: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
}

.status-action {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 12px;
	background: transparent;
	border: 1px solid var(--line-control);
	color: var(--muted);
	font-size: 15px;
	font-weight: 600;
}

.status-action:hover {
	color: #fff;
	border-color: var(--line-strong);
}

.status-action.is-done {
	color: var(--accent);
}

/* The newest status: yellow card. */

.status-card--featured {
	gap: 14px;
	padding: 28px 36px 32px;
	background: var(--accent);
	border-color: var(--accent);
	border-radius: 24px;
	color: var(--ink);
}

.status-card--featured .status-card__text {
	color: var(--ink);
	font-size: 36px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.status-card--featured .pill-link {
	color: var(--ink);
}

.status-card--featured .pill-link .pill {
	background: transparent;
	border: 1.5px solid var(--ink);
	color: var(--ink);
}

.status-card--featured .status-card__footer {
	padding-top: 10px;
}

.status-card--featured .status-user {
	font-weight: 700;
}

/* Hover changes colour only, never the text size or weight. */
.status-card--featured .status-card__text:hover,
.status-card--featured .status-user,
.status-card--featured .status-user:hover {
	color: var(--ink);
}

.status-card--featured .status-user__avatar {
	background: var(--ink);
	color: var(--text);
}

.status-card--featured .status-action {
	width: auto;
	padding: 0 16px;
	border-radius: 999px;
}

.status-action--outline,
.status-action--outline:hover {
	border: 1.5px solid rgba(17, 17, 19, 0.4);
	color: var(--ink);
}

.status-action--outline:hover {
	border-color: var(--ink);
}

.status-action--solid,
.status-action--solid:hover {
	background: var(--ink);
	border: 1.5px solid var(--ink);
	color: var(--text);
}

.status-card--featured .status-action.is-done {
	color: inherit;
}

.status-card--single .status-card__text {
	font-size: 40px;
}

/* Image and video. */

.status-media {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	background: var(--bg);
}

.status-media img {
	width: 100%;
}

.status-media--video {
	position: relative;
	aspect-ratio: 16 / 9;
}

.status-media--video iframe,
.status-media__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.status-media__play {
	padding: 0;
	background: var(--bg);
}

.status-media__play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.status-media__play-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 68px;
	margin: -34px 0 0 -34px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 4px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--ink);
	transition: transform 0.15s ease;
}

.status-media__note {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.status-media__play:hover .status-media__play-icon {
	transform: scale(1.08);
}

/* Single status extras. */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 0 4px;
	font-size: 14px;
	color: var(--faint);
}

.breadcrumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}

.status-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	padding: 0 4px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--faint);
}

.status-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	color: var(--faint);
}

.more {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
}

.more__title {
	font-size: 22px;
}

.more__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.more-card {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 14px 18px;
	border-radius: 16px;
	color: var(--text);
}

.more-card:hover {
	border-color: var(--line-strong);
	color: var(--text);
}

.more-card__text {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.more-card__go {
	flex: none;
	align-self: flex-end;
	color: var(--faint);
	transition: color 0.15s ease, translate 0.15s ease;
}

.more-card:hover .more-card__go {
	color: var(--accent);
	translate: 3px 0;
}

@media (max-width: 759px) {
	.more__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.more__link {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 8px;
	padding: 8px 4px;
	color: var(--accent);
	font-weight: 700;
}

/* "Επόμενο τυχαίο": the main way on from a status. */
.pager__more--random,
.pager__more--random:hover,
.pager__links--single .pager__more--random {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ink);
}

.empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 28px;
	color: var(--muted);
}

.empty p {
	margin: 0;
	font-size: 18px;
}

/* ---------- Pagination ---------- */

.pager {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 16px;
}

.pager__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.pager__more {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 56px;
	padding: 0 20px;
	border-radius: 16px;
	background: var(--surface-raised);
	border: 1px solid var(--line-control);
	color: var(--text);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.pager__more:hover {
	color: #fff;
	border-color: var(--line-strong);
}

.pager__more--newer {
	flex: 0 0 auto;
}

.pager__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.pager__jump {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--muted);
}

.pager__input {
	width: 84px;
	height: 44px;
	padding: 0 12px;
	background: var(--surface);
	border: 1px solid var(--line-control);
	border-radius: 12px;
	color: var(--text);
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 700;
}

.pager__of {
	font-family: var(--mono);
	font-size: 14px;
}




.pager__links--single .pager__more {
	flex: 1 1 0;
}

/* ---------- Aside ---------- */

.aside {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aside-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
}

.aside-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.aside-card__text {
	margin: 0;
	font-size: 15px;
	color: var(--muted);
}

.aside-card .button--block {
	margin-top: 4px;
}

.social-link {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 16px;
	border-radius: 14px;
	border: 1px solid var(--line-strong);
	color: var(--text);
	font-size: 15px;
	font-weight: 600;
}

.social-link:hover {
	border-color: var(--faint);
}

/* ---------- Categories and newsletter ---------- */

.sections {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding-top: 0;
	padding-bottom: 72px;
}

.hero--page + .sections {
	padding-top: 40px;
}

.categories {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.categories__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.category-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	color: var(--text);
}

.category-card:hover {
	color: var(--text);
	border-color: var(--line-strong);
}

.category-card__name {
	font-size: 19px;
	font-weight: 700;
}

.category-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.category-card__count {
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}

.category-card__arrow {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	color: var(--text);
}

.category-card:hover .category-card__arrow {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ink);
}

.newsletter {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 36px 40px;
	border-radius: 24px;
}

.newsletter__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 40px;
}

.newsletter__intro {
	flex: 1 1 380px;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.newsletter__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.newsletter__text {
	margin: 0;
	max-width: 460px;
	font-size: 15px;
	color: var(--muted);
}

.newsletter__form {
	flex: 1 1 360px;
	min-width: 0;
	max-width: 520px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 6px;
	background: var(--bg);
	border: 1px solid var(--line-control);
	border-radius: 28px;
}

.newsletter__form input {
	flex: 1 1 180px;
	min-width: 0;
	height: 44px;
	padding: 0 16px;
	background: transparent;
	border: 0;
	color: var(--text);
	font-size: 15px;
}

.newsletter__form input:focus {
	outline: none;
}

.newsletter__form:focus-within {
	border-color: var(--line-strong);
}

.newsletter__form .button {
	padding: 0 22px;
}

.newsletter__perks {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line-card);
	font-size: 14px;
	color: var(--muted);
}

.newsletter__perks span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.newsletter__perks .icon {
	color: var(--accent);
}

/* ---------- Pages ---------- */

.page-body {
	max-width: 880px;
	padding-top: 36px;
	padding-bottom: 72px;
}

.prose {
	padding: 32px 36px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.prose > :first-child {
	margin-top: 0;
}

.prose > :last-child {
	margin-bottom: 0;
}

.prose h2,
.prose h3,
.prose h4,
.prose b,
.prose strong {
	color: var(--text);
}

.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose [style*="color"] {
	color: inherit !important;
}

.prose [style*="background"] {
	background: none !important;
}

/* ---------- Footer ---------- */

.site-footer {
	margin-top: auto;
	border-top: 1px solid var(--line);
}

/* Joke themes and name days: links on every page. */
.site-footer__topics {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 20px;
	padding-top: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
}

.site-footer__topics-title {
	color: var(--accent);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer__topics a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--muted);
}

.site-footer__topics a:hover {
	color: var(--text);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 48px;
	padding-top: 32px;
	padding-bottom: 40px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__social {
	display: none;
	gap: 8px;
}

.site-footer__copyright {
	margin: 0;
	font-size: 14px;
	color: var(--faint);
}

.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
}

.site-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	font-weight: 500;
}

/* ---------- Stories (circles and the full-screen viewer) ---------- */

/* A row above the feed, cut at the right edge (fading out) so it is clear it scrolls. */
.stories {
	position: relative;
	margin-bottom: 28px;
}

.stories__list {
	display: flex;
	gap: 12px;
	/* Room for the focus ring and the hover zoom, which the scrolling box would cut. */
	padding: 4px 0;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	--fade-left: 56px;
	--fade-right: 56px;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
	mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
}

.stories.is-start .stories__list {
	--fade-left: 0px;
}

.stories.is-end .stories__list {
	--fade-right: 0px;
}

/* Mouse users: a button to scroll the row (touch screens swipe it). */
.stories__more {
	position: absolute;
	top: 22px;
	right: 0;
	z-index: 1;
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--line-control);
	border-radius: 50%;
	background: var(--surface-raised);
	color: var(--text);
	cursor: pointer;
}

.stories__more:hover {
	border-color: var(--line-strong);
}

.stories__more--prev {
	right: auto;
	left: 0;
}

@media (hover: hover) and (pointer: fine) {
	.stories__more:not([hidden]) {
		display: inline-flex;
	}
}

.stories__list::-webkit-scrollbar {
	display: none;
}

.story-circle {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 76px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text);
	font: inherit;
	cursor: pointer;
}

.story-circle__ring {
	display: block;
	width: 68px;
	height: 68px;
	padding: 3px;
	border-radius: 50%;
	background: conic-gradient(from 210deg, #ffd84d, #ff8a3d, #ff4d8d, #a855f7, #ffd84d);
	transition: transform 0.15s ease;
}

.story-circle.is-seen .story-circle__ring {
	background: var(--line-strong);
}

.story-circle__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: 3px solid var(--bg);
	border-radius: 50%;
	background: var(--surface-raised);
	color: var(--accent);
}

/* Occasions: their own ring colour and an emoji. Today's one has a "Σήμερα" badge. */
.story-circle--occasion .story-circle__ring {
	background: conic-gradient(from 210deg, #34d399, #22d3ee, #6366f1, #34d399);
}

.story-circle__inner--emoji {
	font-size: 30px;
	line-height: 1;
}

.story-circle--today {
	position: relative;
}

.story-circle__badge {
	position: absolute;
	top: 56px;
	left: 50%;
	transform: translateX(-50%);
	padding: 2px 8px;
	border: 2px solid var(--bg);
	border-radius: 999px;
	background: #22d3ee;
	color: var(--ink);
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.story-viewer__icon {
	font-size: 18px;
	line-height: 1;
}

.story-circle:first-child .story-circle__inner {
	background: var(--accent);
	color: var(--ink);
}

.story-circle:hover .story-circle__ring {
	transform: scale(1.05);
}

.story-circle:focus-visible {
	outline: none;
}

.story-circle:focus-visible .story-circle__ring {
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.story-circle__label {
	max-width: 100%;
	overflow: hidden;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

html.has-story {
	overflow: hidden;
}

.story-viewer {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	background: rgba(8, 8, 10, 0.94);
}

.story-viewer[hidden] {
	display: none;
}

.story-viewer__frame {
	--story-bg: linear-gradient(160deg, #1c1c21, #3a3a44);
	position: relative;
	display: flex;
	flex-direction: column;
	height: min(92vh, 860px);
	aspect-ratio: 9 / 16;
	max-width: 100vw;
	overflow: hidden;
	border-radius: 18px;
	background: var(--story-bg);
	color: #fff;
	user-select: none;
	-webkit-user-select: none;
}

.story-viewer__frame[data-background="1"] { --story-bg: linear-gradient(160deg, #7c3aed, #db2777); }
.story-viewer__frame[data-background="2"] { --story-bg: linear-gradient(160deg, #1d4ed8, #0891b2); }
.story-viewer__frame[data-background="3"] { --story-bg: linear-gradient(160deg, #065f46, #059669); }
.story-viewer__frame[data-background="4"] { --story-bg: linear-gradient(160deg, #c2410c, #e11d48); }
.story-viewer__frame[data-background="5"] { --story-bg: linear-gradient(160deg, #1c1c21, #3a3a44); color: var(--accent); }
.story-viewer__frame[data-background="6"] { --story-bg: linear-gradient(160deg, #312e81, #0369a1); }
.story-viewer__frame[data-background="7"] { --story-bg: linear-gradient(160deg, #9d174d, #d97706); }

.story-viewer__bars {
	position: absolute;
	top: calc(12px + env(safe-area-inset-top));
	left: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	gap: 4px;
}

.story-viewer__bar {
	flex: 1;
	height: 3px;
	overflow: hidden;
	border-radius: 2px;
	background: color-mix(in srgb, currentColor 30%, transparent);
}

.story-viewer__bar > span {
	display: block;
	height: 100%;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
}

.story-viewer__head {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: calc(26px + env(safe-area-inset-top)) 10px 6px 16px;
}

.story-viewer__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.18);
}

.story-viewer__icon .icon {
	width: 18px;
	height: 18px;
}

.story-viewer__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.story-viewer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}

.story-viewer__button:hover,
.story-viewer__button.is-done {
	background: rgba(0, 0, 0, 0.16);
}

.story-viewer__pause .icon:not(.icon--pause),
.story-viewer.is-paused .story-viewer__pause .icon--pause {
	display: none;
}

.story-viewer.is-paused .story-viewer__pause .icon:not(.icon--pause) {
	display: block;
}

/* No padding here: the text is fitted to this box's own width and height. */
.story-viewer__body {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 12px 28px;
	overflow: hidden;
}

.story-viewer__text {
	width: 100%;
	margin: 0;
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.01em;
	text-align: center;
	text-wrap: balance;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

/* While loading or after an error there is no status to copy, share or open. */
.story-viewer__frame.is-loading .story-viewer__foot,
.story-viewer__frame.is-failed .story-viewer__foot {
	visibility: hidden;
}

.story-viewer__frame.is-loading .story-viewer__body::after {
	content: "";
	width: 36px;
	height: 36px;
	border: 3px solid color-mix(in srgb, currentColor 30%, transparent);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: story-spin 0.8s linear infinite;
}

@keyframes story-spin {
	to {
		transform: rotate(360deg);
	}
}

.story-viewer__foot {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px calc(16px + env(safe-area-inset-bottom)) 16px;
}

.story-viewer__user {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	color: inherit;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.story-viewer__user:hover {
	color: inherit;
	text-decoration: underline;
}

.story-viewer__user[hidden] {
	display: block;
	visibility: hidden;
}

.story-viewer__open:hover {
	color: inherit;
}

.story-viewer__open {
	display: inline-flex;
	align-items: center;
	height: 40px;
	margin-left: 4px;
	padding: 0 16px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.2);
	color: inherit;
	font-size: 14px;
	font-weight: 700;
}

/* Tap areas: left third back, the rest forward (between the head and the foot). */
.story-viewer__tap {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: none;
}

.story-viewer__tap--prev {
	left: 0;
	width: 33%;
}

.story-viewer__tap--next {
	right: 0;
	width: 67%;
}

.story-viewer__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
}

.story-viewer__arrow:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* One column: the row runs to the screen edges, like on Instagram. */
@media (max-width: 899px) {
	.stories {
		margin: 0 calc(-1 * var(--gutter)) 20px;
	}

	.stories__list {
		padding: 4px var(--gutter);
		scroll-padding: 0 var(--gutter);
	}
}

@media (max-width: 759px) {
	.stories__list {
		gap: 8px;
	}

	.story-circle {
		width: 72px;
	}

	.story-circle__ring {
		width: 66px;
		height: 66px;
	}

	.story-viewer {
		background: #000;
	}

	.story-viewer__frame {
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		border-radius: 0;
	}

	.story-viewer__arrow {
		display: none;
	}
}

/* ---------- Search window (phones) ---------- */

.search-window {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(8, 8, 10, 0.8);
}

.search-window[hidden] {
	display: none;
}

.search-window__panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 12px var(--gutter) 20px;
	border-bottom: 1px solid var(--line);
	border-radius: 0 0 20px 20px;
	background: var(--bg-hero);
}

.search-window__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.search-window__title {
	font-size: 20px;
	font-weight: 800;
}

.search-window .search {
	gap: 14px;
}

/* ---------- "Στείλε το δικό σου status" form ---------- */

.send-form {
	max-width: 760px;
	margin: 0 auto;
	padding: 32px;
}

.send-form__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.send-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.send-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.send-form__label {
	font-size: 15px;
	font-weight: 700;
}

.send-form__label em {
	color: var(--faint);
	font-style: normal;
	font-weight: 500;
}

.send-form textarea,
.send-form input,
.send-form select,
.meme textarea,
.meme input[type="text"] {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 14px;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 16px;
}

.send-form textarea,
.meme textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.5;
}

.send-form textarea:focus,
.send-form input:focus,
.send-form select:focus,
.meme textarea:focus,
.meme input[type="text"]:focus {
	border-color: var(--accent);
	outline: none;
}

.send-form__trap {
	position: absolute;
	left: -9999px;
}

.send-form__small {
	margin: 0;
	color: var(--faint);
	font-size: 13px;
}

.send-form__submit {
	align-self: flex-start;
	height: 52px;
	padding: 0 28px;
	font-size: 16px;
}

.send-form__notice {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 14px;
	font-weight: 600;
}

.send-form__notice--success {
	background: rgba(74, 222, 128, 0.12);
	color: #4ade80;
}

.send-form__notice--error {
	background: rgba(248, 113, 113, 0.12);
	color: #f87171;
}

@media (max-width: 759px) {
	.send-form {
		padding: 20px;
	}

	.send-form__row {
		grid-template-columns: 1fr;
	}

	.send-form__submit {
		align-self: stretch;
	}
}

/* ---------- Status page (designs/Status · Desktop) ---------- */

.status-page {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 20px;
	padding-bottom: 72px;
}

.status-page .breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	color: var(--faint);
	font-size: 14px;
}

.status-page .breadcrumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
	font-weight: 500;
}

.status-page .breadcrumbs a:hover {
	color: #fff;
}

.status-page .breadcrumbs [aria-current="page"] {
	color: var(--text);
	font-weight: 600;
}

.status-page__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
	gap: 32px;
}

.status-page__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Previous / random / next. */
.status-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.status-nav__link {
	flex: 1 1 200px;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 20px;
	border: 1px solid var(--line-card);
	border-radius: 16px;
	background: var(--surface);
	color: var(--text);
	font-size: 16px;
	font-weight: 600;
}

.status-nav__link:hover {
	border-color: var(--line-strong);
	color: var(--text);
}

.status-nav__link--next {
	justify-content: flex-end;
}

.status-nav__link--random,
.status-nav__link--random:hover {
	flex: 0 1 auto;
	justify-content: center;
	padding: 0 24px;
	color: var(--accent);
	font-weight: 700;
}

.status-nav__link--random:hover .icon {
	transform: rotate(180deg);
	transition: transform 0.35s ease;
}

/* "Περισσότερα από @…" and "Δες ακόμα". */
.status-more {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
}

.status-more__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 0 4px;
}

.status-more__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.status-more__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 600;
}

.status-more__link:hover {
	color: #fff;
}

.status-more__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.status-more__list--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-card--compact {
	padding: 20px 28px 24px;
}

.status-card--compact .status-card__text {
	font-size: 22px;
}

/* The home's further pages (home.php): same layout as the status page. */
.more-page__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.more-page__title {
	margin: 0;
	font-size: 40px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.more-page__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
}

.more-page__intro {
	margin: 4px 0 0;
	max-width: 640px;
	color: var(--muted);
	font-size: 17px;
}

.more-page__list .date-line {
	margin-top: 4px;
}

.more-page__text {
	margin: 0;
	color: var(--faint);
	font-family: var(--mono);
	font-size: 13px;
}

.more-page__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (max-width: 759px) {
	.more-page__title {
		font-size: 30px;
	}

	.more-page__list {
		gap: 12px;
	}
}

/* Side column: the author. */
.author-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.author-card__avatar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--mono);
	font-size: 20px;
	font-weight: 700;
}

.author-card__who {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.author-card__label {
	color: var(--faint);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.author-card__name {
	font-size: 20px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.author-card__count {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
}

.author-card__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.button--outline,
.button--outline:hover {
	border: 1px solid var(--line-strong);
	background: transparent;
	color: var(--text);
	font-weight: 600;
}

.button--outline:hover {
	border-color: var(--faint);
}

/* Side column: category chips. */
.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line-control);
	border-radius: 999px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
}

.chip:hover {
	border-color: var(--line-strong);
	color: #fff;
}

.chip--current,
.chip--current:hover {
	border-color: transparent;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 700;
}

.chip--all {
	color: var(--text);
	font-weight: 600;
}

@media (max-width: 899px) {
	.status-page__columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 759px) {
	.status-page {
		gap: 12px;
		padding-top: 8px;
		padding-bottom: 40px;
	}

	.status-nav__link {
		flex-basis: 140px;
		height: 52px;
		padding: 0 14px;
		font-size: 14px;
	}

	.status-nav__link--random {
		order: -1;
		flex-basis: 100%;
	}

	.status-more {
		padding-top: 12px;
	}

	.status-more__title {
		font-size: 22px;
	}

	.status-more__list--grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.status-card--compact {
		padding: 18px 20px 20px;
	}

	.status-card--compact .status-card__text {
		font-size: 19px;
	}
}

/* ---------- Laugh and favourite buttons ---------- */

.status-laugh {
	width: auto;
	min-width: 44px;
	padding: 0 12px;
	gap: 6px;
}

.status-laugh__emoji {
	font-size: 20px;
	line-height: 1;
	transition: transform 0.15s ease;
}

.status-laugh:hover .status-laugh__emoji {
	transform: scale(1.15);
}

.status-laugh__count {
	font-variant-numeric: tabular-nums;
}

.status-laugh__count:empty {
	display: none;
}

.status-laugh[aria-pressed="true"] {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
}

.status-laugh.is-popping .status-laugh__emoji {
	animation: laugh-pop 0.45s ease;
}

@keyframes laugh-pop {
	40% {
		transform: scale(1.5) rotate(-12deg);
	}
	70% {
		transform: scale(0.9) rotate(6deg);
	}
}

.status-favorite[aria-pressed="true"] {
	color: #ff4d6d;
	border-color: #ff4d6d;
}

.status-favorite[aria-pressed="true"] .icon {
	fill: currentColor;
}

.status-card--featured .status-laugh[aria-pressed="true"],
.status-card--featured .status-favorite[aria-pressed="true"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--accent);
}

.status-card--featured .status-favorite[aria-pressed="true"] {
	color: #ff4d6d;
}

/* ---------- The funniest of the week (full width, below the feed) ---------- */

.top-week__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-week__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 20px 18px 64px;
}

.top-week__rank {
	position: absolute;
	top: 16px;
	left: 18px;
	color: var(--accent);
	font-family: var(--mono);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

.top-week__text {
	flex: 1;
	color: var(--text);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	white-space: pre-line;
}

.top-week__text:hover {
	color: var(--accent);
}

.top-week__laughs {
	color: var(--faint);
	font-size: 14px;
	font-weight: 600;
}

@media (max-width: 1179px) {
	.top-week__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 759px) {
	.top-week__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
}

.aside-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	color: var(--accent);
	font-size: 15px;
	font-weight: 700;
}

/* ---------- Meme maker (/ftiaxe-meme) ---------- */

.meme {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.meme__tabs {
	align-self: flex-start;
}

.meme__tabs .segmented__item {
	border: 0;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
}

.meme__tabs .segmented__item[aria-current="true"] {
	background: var(--line-strong);
}

.meme__columns {
	display: grid;
	grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.meme__controls {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px;
}

.meme__controls--text {
	max-width: 640px;
}

.meme__pick {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 64px;
	border: 1.5px dashed var(--line-strong);
	border-radius: 16px;
	color: var(--text);
	font-weight: 700;
	cursor: pointer;
}

.meme__pick:hover,
.meme__pick:focus-within {
	border-color: var(--accent);
	color: var(--accent);
}

.meme__file {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.meme__colors {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	border: 0;
}

.meme__colors legend {
	width: 100%;
	margin-bottom: 8px;
}

.meme__colors label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 15px;
	cursor: pointer;
}

.meme__swatch {
	width: 18px;
	height: 18px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
}

.meme__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.meme__actions .button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.meme__preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--surface);
	overflow: hidden;
}

.meme__canvas {
	display: none;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 70vh;
}

.meme__canvas.is-ready {
	display: block;
}

.meme__empty {
	position: absolute;
	margin: 0;
	padding: 0 20px;
	color: var(--faint);
	text-align: center;
}

@media (max-width: 899px) {
	.meme__columns {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Phones: the preview above the fields, once there is a photo. */
	.meme__preview {
		order: -1;
		min-height: 200px;
	}

	.meme__preview:not(.has-photo) {
		display: none;
	}
}

/* ---------- The app (side card) ---------- */

.app-card__ios strong {
	color: var(--text);
}

/* ---------- Seasonal occasion on the home page ---------- */

.season-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	padding: 16px 20px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-card);
	background: var(--accent-soft);
	color: var(--text);
}

.season-banner__emoji {
	flex: none;
	font-size: 36px;
	line-height: 1;
}

.season-banner__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.season-banner__title {
	font-size: 18px;
	font-weight: 800;
}

.season-banner__text {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.4;
}

.season-banner__go {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--ink);
}

/* ---------- Name days (/giortes) ---------- */

.nameday-when {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.nameday-when--today {
	border-color: var(--accent);
	color: var(--accent);
}

.wishes {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wish {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
}

.wish__text {
	flex: 1;
	margin: 0;
	color: var(--text);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.45;
}

.wish__actions {
	display: flex;
	flex: none;
	gap: 8px;
}

.wish__share,
.wish__share:hover {
	width: auto;
	padding: 0 16px;
	border-color: var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: var(--ink);
	font-weight: 700;
	white-space: nowrap;
}

.nameday-today {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nameday-today__name {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-radius: 16px;
	background: var(--accent);
	color: var(--ink);
	font-size: 20px;
	font-weight: 800;
}

.nameday-today__name:hover {
	filter: brightness(1.05);
}

.nameday-today__emoji {
	font-size: 22px;
}

.nameday-days {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nameday-days__day {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.nameday-days__date {
	min-width: 160px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 700;
}

.nameday-card .chip-list {
	margin-bottom: 4px;
}

@media (max-width: 759px) {
	.wish {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px;
	}

	.wish__text {
		font-size: 17px;
	}

	.wish__actions {
		justify-content: flex-end;
	}
}

/* ---------- Joke themes (Ανέκδοτα category and theme pages) ---------- */

.joke-themes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.joke-themes .chip {
	gap: 6px;
}

/* Phones: one row that scrolls sideways. */
@media (max-width: 759px) {
	.joke-themes {
		flex-wrap: nowrap;
		margin-right: calc(var(--gutter) * -1);
		padding-right: var(--gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.joke-themes .chip,
	.joke-themes__label {
		flex: none;
	}
}

.joke-themes__label {
	margin-right: 4px;
	color: var(--faint);
	font-size: 14px;
	font-weight: 600;
}

/* ---------- What the picture says (OCR, single status) ---------- */

.image-text {
	margin-top: 16px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	color: var(--muted);
	font-size: 15px;
}

.image-text summary {
	color: var(--text);
	font-weight: 700;
	cursor: pointer;
}

.image-text p {
	margin: 10px 0 0;
	line-height: 1.5;
}

/* ---------- "Αστείες εικόνες" slider (full width, below the feed) ---------- */

.image-slider {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.image-slider__frame {
	position: relative;
}

.image-slider__track {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0 0 4px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}

.image-slider__track::-webkit-scrollbar {
	display: none;
}

.image-slider__item {
	flex: none;
	scroll-snap-align: start;
}

/* Same height for all, each picture keeps its shape (memes are not cropped). */
.image-slider__link {
	display: block;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
}

.image-slider__link img {
	display: block;
	width: auto;
	max-width: min(560px, 85vw);
	height: 320px;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.image-slider__link:hover img {
	transform: scale(1.03);
}

.image-slider__arrow {
	position: absolute;
	top: 50%;
	right: -18px;
	z-index: 1;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-control);
	border-radius: 50%;
	background: var(--surface-raised);
	box-shadow: 0 4px 14px rgb(0 0 0 / 0.12);
	color: var(--text);
	cursor: pointer;
	transform: translateY(-50%);
}

.image-slider__arrow:hover {
	border-color: var(--line-strong);
}

.image-slider__arrow--prev {
	right: auto;
	left: -18px;
}

@media (hover: hover) and (pointer: fine) {
	.image-slider__arrow:not([hidden]) {
		display: inline-flex;
	}
}

@media (max-width: 759px) {
	.image-slider__track {
		gap: 10px;
	}

	.image-slider__link img {
		height: 240px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.image-slider__link img {
		transition: none;
	}
}

/* ---------- Favourites page ---------- */

.favorites {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.favorites[hidden],
.favorites__empty[hidden] {
	display: none;
}

.favorites__loading {
	margin: 0;
	color: var(--muted);
}

/* ---------- Game "Αστείο ή όχι;" ---------- */

.aside-card--game {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-color: var(--accent);
	color: var(--text);
}

.aside-card--game:hover {
	color: var(--text);
	background: var(--surface-raised);
}

.aside-card__emoji {
	font-size: 28px;
	line-height: 1;
}

.game {
	flex: 1 0 auto;
	/* A card flying off the side must not widen the page: phones then jump back to the top. */
	overflow-x: clip;
}

.game__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 520px;
	padding-top: 32px;
	padding-bottom: 56px;
	text-align: center;
}

.game__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.game__title {
	margin: 0;
	font-size: 44px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.game__intro {
	margin: 0;
	color: var(--muted);
}

.game__progress {
	width: 100%;
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--line-card);
}

.game__progress-bar {
	display: block;
	height: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.game__count {
	min-height: 1.5em;
	margin: 8px 0 12px;
	color: var(--faint);
	font-family: var(--mono);
	font-size: 13px;
}

.game__deck {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	max-height: 62vh;
}

.game__deck[hidden],
.game__buttons[hidden],
.game__hint[hidden],
.game__result[hidden],
.game__liked-title[hidden] {
	display: none;
}

.game__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	height: 100%;
	margin: 0;
	color: var(--muted);
}

.game__retry {
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.game-card {
	--laugh: 0;
	--nope: 0;
	--card-bg: linear-gradient(160deg, #7c3aed, #db2777);
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 24px 22px;
	border-radius: 28px;
	background: var(--card-bg);
	color: #fff;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	cursor: grab;
	/* Up and down still scrolls the page; sideways is the swipe (game.js). */
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.game-card:active {
	cursor: grabbing;
}

/* The two cards under the top one peek out below it. */
.game-card:nth-last-child(2) {
	transform: translateY(14px) scale(0.95);
}

.game-card:nth-last-child(3) {
	transform: translateY(28px) scale(0.9);
}

.game-card:not(:last-child):not(.is-gone) {
	filter: brightness(0.7);
	transition: transform 0.3s ease, filter 0.3s ease;
}

.game-card[data-background="1"] { --card-bg: linear-gradient(160deg, #7c3aed, #db2777); }
.game-card[data-background="2"] { --card-bg: linear-gradient(160deg, #1d4ed8, #0891b2); }
.game-card[data-background="3"] { --card-bg: linear-gradient(160deg, #065f46, #059669); }
.game-card[data-background="4"] { --card-bg: linear-gradient(160deg, #c2410c, #e11d48); }
.game-card[data-background="5"] { --card-bg: linear-gradient(160deg, #1c1c21, #3a3a44); color: var(--accent); }
.game-card[data-background="6"] { --card-bg: linear-gradient(160deg, #312e81, #0369a1); }
.game-card[data-background="7"] { --card-bg: linear-gradient(160deg, #9d174d, #d97706); }

.game-card__category {
	align-self: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.2);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.game-card__body {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.game-card__text {
	width: 100%;
	margin: 0;
	font-weight: 800;
	line-height: 1.22;
	text-wrap: balance;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.game-card__user {
	min-height: 1.4em;
	font-size: 15px;
	font-weight: 700;
	opacity: 0.85;
}

/* "Αστείο" / "Όχι" stamps, shown while dragging to that side. */
.game-card__stamp {
	position: absolute;
	top: 26px;
	padding: 6px 14px;
	border: 3px solid currentColor;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.25);
	font-size: 22px;
	font-weight: 800;
	text-transform: uppercase;
	pointer-events: none;
}

.game-card__stamp--laugh {
	left: 20px;
	color: #4ade80;
	opacity: var(--laugh);
	transform: rotate(-14deg);
}

.game-card__stamp--nope {
	right: 20px;
	color: #f87171;
	opacity: var(--nope);
	transform: rotate(14deg);
}

.game-card.is-laugh .game-card__stamp--laugh,
.game-card.is-nope .game-card__stamp--nope {
	opacity: 1;
}

.game__buttons {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin-top: 48px;
}

.game__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid var(--line-strong);
	border-radius: 50%;
	background: var(--surface);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.game__button:hover {
	transform: scale(1.08);
}

.game__button--laugh:hover {
	border-color: #4ade80;
}

.game__button--nope:hover {
	border-color: #f87171;
}

.game__hint {
	margin: 14px 0 0;
	color: var(--faint);
	font-size: 13px;
}

.game__result {
	width: 100%;
	text-align: left;
}

.game__result-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 32px 24px;
	border-radius: 28px;
	background: var(--accent);
	color: var(--ink);
	text-align: center;
	outline: none;
}

.game__result-card .eyebrow {
	color: var(--ink);
}

.game__result-title {
	margin: 0;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
}

.game__result-text {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 600;
}

.game__result-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.game__result-card .button--accent {
	background: var(--ink);
	color: var(--accent);
}

.game__result-card .button--ghost {
	border: 1.5px solid var(--ink);
	background: transparent;
	color: var(--ink);
}

/* Challenge a friend (end of a round) and the banner when playing a friend's challenge. */
.game__challenge {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 14px;
	padding-top: 18px;
	border-top: 1.5px dashed rgb(17 17 19 / 0.25);
}

.game__challenge-title {
	width: 100%;
	margin: 0;
	font-size: 16px;
	font-weight: 800;
}

.game__challenge-name {
	flex: 1 1 180px;
	max-width: 240px;
	min-height: 44px;
	padding: 0 14px;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.55);
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

.game__challenge-name::placeholder {
	color: rgb(17 17 19 / 0.6);
}

.button--ink {
	background: var(--ink);
	color: var(--accent);
}

.game__challenge-banner {
	margin: 12px auto 0;
	padding: 12px 16px;
	border: 1px solid var(--accent);
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--text);
	font-size: 16px;
	font-weight: 700;
}

.game__liked-title {
	margin: 32px 0 12px;
	font-size: 22px;
	font-weight: 800;
}

.game__liked {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.game__liked a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--line-card);
	border-radius: 16px;
	background: var(--surface);
	color: var(--text);
	font-weight: 600;
	white-space: pre-line;
}

.game__liked a:hover {
	border-color: var(--line-strong);
}

@media (max-width: 759px) {
	.game__inner {
		padding-top: 20px;
	}

	.game__title {
		font-size: 34px;
	}

	.game__intro {
		font-size: 15px;
	}

	.game__deck {
		max-height: 56vh;
	}

	.game__buttons {
		margin-top: 40px;
	}

	/* While playing, the page is exactly one screen: header, title, cards and buttons, no footer
	   and no scrolling. The cards take whatever height is left. The result scrolls as usual. */
	body.is-game:has(.game__result[hidden]) {
		height: 100vh;
		height: 100dvh;
		min-height: 0;
		overflow: hidden;
	}

	body.is-game:has(.game__result[hidden]) .site-footer {
		display: none;
	}

	body.is-game:has(.game__result[hidden]) .site-content,
	body.is-game:has(.game__result[hidden]) .game {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
	}

	body.is-game:has(.game__result[hidden]) .game__inner {
		flex: 1 1 auto;
		min-height: 0;
		width: 100%;
		padding-top: 12px;
		padding-bottom: max(16px, env(safe-area-inset-bottom));
	}

	body.is-game:has(.game__result[hidden]) .game__head {
		gap: 4px;
		margin-bottom: 10px;
	}

	body.is-game:has(.game__result[hidden]) .game__head .eyebrow {
		display: none;
	}

	body.is-game:has(.game__result[hidden]) .game__title {
		font-size: 28px;
	}

	body.is-game:has(.game__result[hidden]) .game__intro {
		font-size: 14px;
		line-height: 1.4;
	}

	body.is-game:has(.game__result[hidden]) .game__count {
		margin: 4px 0 8px;
	}

	body.is-game:has(.game__result[hidden]) .game__deck {
		flex: 1 1 auto;
		min-height: 0;
		aspect-ratio: auto;
		max-height: none;
		/* Room for the two cards peeking out below the top one. */
		margin-bottom: 22px;
	}

	body.is-game:has(.game__result[hidden]) .game__buttons {
		margin-top: 14px;
	}

	body.is-game:has(.game__result[hidden]) .game__button {
		width: 62px;
		height: 62px;
		font-size: 30px;
	}

	/* The arrow keys: no keyboard on a phone. */
	body.is-game .game__hint {
		display: none;
	}
}

/* ---------- Report ---------- */

.status-more-button[aria-expanded="true"] {
	border-color: var(--line-strong);
	color: #fff;
}

.status-card--featured .status-more-button[aria-expanded="true"] {
	border-color: var(--ink);
	color: var(--ink);
}

/* The "⋯" menu (one per page, placed under its button by main.js). */
.more-menu {
	position: fixed;
	z-index: 55;
	min-width: 180px;
	padding: 6px;
	border: 1px solid var(--line-strong);
	border-radius: 14px;
	background: var(--surface-raised);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
	animation: fade-in 0.12s ease;
}

.more-menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--text);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.more-menu__item:hover,
.more-menu__item:focus-visible {
	background: rgba(248, 113, 113, 0.12);
	color: #f87171;
	outline: none;
}

.status-card.is-removed {
	opacity: 0;
	transform: scale(0.97);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.report-window {
	position: fixed;
	inset: 0;
	z-index: 66;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(8, 8, 10, 0.8);
	animation: fade-in 0.2s ease;
}

.report-window__panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 400px;
	padding: 28px 24px 18px;
	border: 1px solid var(--line-card);
	border-radius: 24px;
	background: var(--surface);
	animation: panel-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.report-window__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.report-window__text {
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 15px;
}

.report-window__reasons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.report-window__reason {
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--line-control);
	border-radius: 14px;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.report-window__reason:hover,
.report-window__reason:focus-visible {
	border-color: #f87171;
	color: #fff;
	outline: none;
}

.report-window__cancel {
	align-self: center;
	padding: 10px;
	border: 0;
	background: none;
	color: var(--faint);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.report-window__cancel:hover {
	color: var(--text);
}

/* ---------- First-visit invitation to the game ---------- */

.game-invite {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(8, 8, 10, 0.8);
	animation: fade-in 0.25s ease;
}

.game-invite__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 420px;
	padding: 36px 28px 24px;
	border: 1px solid var(--accent);
	border-radius: 28px;
	background: var(--surface);
	text-align: center;
	animation: panel-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-invite__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--muted);
	font-size: 18px;
	cursor: pointer;
}

.game-invite__close:hover {
	background: var(--surface-raised);
	color: var(--text);
}

/* Two cards, one swiped each way. */
.game-invite__emoji {
	display: flex;
	gap: 14px;
	margin-bottom: 4px;
	font-size: 44px;
	line-height: 1;
}

.game-invite__emoji span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 92px;
	border-radius: 16px;
	background: linear-gradient(160deg, #7c3aed, #db2777);
	animation: invite-left 2.4s ease-in-out infinite;
}

.game-invite__emoji span + span {
	background: linear-gradient(160deg, #065f46, #059669);
	animation-name: invite-right;
}

@keyframes invite-left {
	0%, 60%, 100% {
		transform: rotate(-6deg);
	}
	30% {
		transform: translateX(-10px) rotate(-14deg);
	}
}

@keyframes invite-right {
	0%, 30%, 100% {
		transform: rotate(6deg);
	}
	65% {
		transform: translateX(10px) rotate(14deg);
	}
}

.game-invite__title {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.game-invite__text {
	margin: 0;
	color: var(--muted);
}

.game-invite__play {
	width: 100%;
	height: 52px;
	margin-top: 6px;
	font-size: 16px;
}

.game-invite__later {
	padding: 10px;
	border: 0;
	background: none;
	color: var(--faint);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.game-invite__later:hover {
	color: var(--text);
}

/* ---------- Share as image ---------- */

.image-share {
	position: fixed;
	inset: 0;
	/* Above the stories: it can be opened from them. */
	z-index: 65;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(8, 8, 10, 0.88);
}

.image-share[hidden] {
	display: none;
}

.image-share__panel {
	display: grid;
	grid-template-columns: auto 300px;
	grid-template-rows: auto 1fr;
	gap: 20px 28px;
	max-height: calc(100vh - 48px);
	padding: 24px;
	border: 1px solid var(--line-card);
	border-radius: var(--radius-card);
	background: var(--surface);
}

.image-share__head {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.image-share__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.image-share__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--text);
	cursor: pointer;
}

.image-share__close:hover {
	background: var(--surface-raised);
}

.image-share__preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

.image-share__canvas {
	display: block;
	height: min(68vh, 640px);
	width: auto;
	max-width: 100%;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.image-share__preview[data-format="post"] .image-share__canvas {
	height: min(52vh, 450px);
}

.image-share__controls {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.image-share__formats {
	align-self: flex-start;
}

.image-share__formats .segmented__item {
	border: 0;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.image-share__formats .segmented__item:not([aria-current="true"]) {
	background: transparent;
}

.image-share__styles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.image-share__style {
	aspect-ratio: 1;
	padding: 0;
	border: 2px solid var(--line-control);
	border-radius: 14px;
	cursor: pointer;
}

.image-share__style[aria-pressed="true"] {
	border-color: var(--text);
	box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

.image-share__actions {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

.image-share__actions .button {
	flex: 1;
	justify-content: center;
}

.image-share__actions {
	flex-wrap: wrap;
}

.image-share__actions .image-share__link {
	flex-basis: 100%;
}

@media (max-width: 759px) {
	.image-share {
		align-items: flex-end;
		padding: 0;
	}

	.image-share__panel {
		grid-template-columns: 1fr;
		width: 100%;
		max-height: 100%;
		gap: 14px;
		padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
		overflow-y: auto;
		border-radius: 20px 20px 0 0;
	}

	.image-share__canvas {
		height: min(46vh, 420px);
	}

	.image-share__preview[data-format="post"] .image-share__canvas {
		height: min(40vh, 340px);
	}

	.image-share__styles {
		grid-template-columns: repeat(8, 1fr);
		gap: 8px;
	}

	.image-share__style {
		border-radius: 10px;
	}
}

/* ---------- Toast (copy / share feedback) ---------- */

.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 70;
	transform: translateX(-50%);
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--text);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ---------- Tablet: categories as a row of chips ---------- */

@media (max-width: 1179px) {
	.layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		padding-top: 0;
	}

	.category-nav {
		grid-column: 1 / -1;
		margin: 0 calc(-1 * var(--gutter));
		padding: 12px var(--gutter);
		border-bottom: 1px solid var(--line);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.category-nav::-webkit-scrollbar {
		display: none;
	}

	.category-nav__title {
		display: none;
	}

	/* Categories, then occasions, in one row. */
	.category-nav {
		display: flex;
		gap: 8px;
	}

	.category-nav__list {
		flex: none;
	}

	.category-nav__list {
		flex-direction: row;
		gap: 8px;
		width: max-content;
	}

	.category-nav__link {
		flex: none;
		height: 44px;
		padding: 0 18px;
		border-radius: 999px;
		border: 1px solid var(--line-control);
	}

	.category-nav__link:hover {
		background: transparent;
		border-color: var(--line-strong);
	}

	.category-nav__link[aria-current="page"] {
		background: var(--accent);
		border-color: var(--accent);
		color: var(--ink);
	}

	.category-nav__link[aria-current="page"] .category-nav__dot {
		display: none;
	}

	/* The stories above the feed show the categories already. */
	.layout--stories .category-nav {
		display: none;
	}

	.layout--stories {
		padding-top: 20px;
	}
}

@media (max-width: 899px) {
	.layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 759px) {
	:root {
		--gutter: 16px;
	}

	.site-header__inner {
		flex-wrap: nowrap;
		gap: 8px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.brand {
		gap: 8px;
	}

	.brand .logo-mark {
		width: 36px;
		height: 36px;
	}

	.brand__name {
		font-size: 20px;
	}

	.site-header__actions {
		display: flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		margin: 0;
		padding: 12px var(--gutter) 20px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
	}

	.site-header.is-open .site-nav {
		display: flex;
	}

	.site-header.is-open .menu-toggle__open {
		display: none;
	}

	.site-header.is-open .menu-toggle__close {
		display: inline-flex;
	}

	.site-nav__link {
		min-height: 48px;
		padding: 0 4px;
		font-size: 17px;
	}

	.site-nav__random {
		display: none;
	}

	.hero__inner {
		gap: 14px;
		padding-top: 28px;
		padding-bottom: 24px;
	}

	.hero__title {
		font-size: 36px;
	}

	.hero--page .hero__title {
		font-size: 32px;
	}

	.hero__text {
		font-size: 16px;
	}

	.search {
		gap: 14px;
	}

	.search__box {
		flex-wrap: nowrap;
		align-items: center;
		gap: 6px;
		padding: 6px 6px 6px 16px;
		border-radius: 30px;
	}

	.search__field {
		flex: 1;
		padding: 0;
	}

	.search__field .icon {
		display: none;
	}

	.search__field input {
		height: 44px;
		font-size: 16px;
	}

	.search__submit {
		flex: none;
		width: 44px;
		height: 44px;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
	}

	.search__submit-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.search__submit-icon {
		display: inline-flex;
	}

	.search__types-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.search__types {
		flex-wrap: nowrap;
	}

	/* The search is in the header's search window on phones. */
	.hero .search {
		display: none;
	}

	.toggle {
		flex: 1;
	}

	.toggle span {
		padding: 0 8px;
		font-size: 14px;
	}

	.layout {
		padding-bottom: 32px;
	}

	.listing {
		gap: 12px;
	}

	.section-title {
		font-size: 24px;
	}

	.segmented__item {
		padding: 0 16px;
		font-size: 14px;
	}

	.date-line {
		gap: 10px;
		font-size: 12px;
	}

	.status-card {
		gap: 8px;
		padding: 12px 20px 16px;
	}

	.status-card__text {
		font-size: 20px;
		line-height: 1.4;
	}

	.status-card--featured {
		gap: 10px;
		padding: 16px 24px 24px;
		border-radius: 22px;
	}

	.status-card--featured .status-card__text {
		font-size: 27px;
		line-height: 1.22;
	}

	.status-card--featured .status-card__footer {
		padding-top: 0;
	}

	.status-card--featured .status-user {
		flex: 1 0 100%;
	}

	/* The small buttons share one row; "Κοινοποίηση" gets its own row below them. */
	.status-card--featured .status-actions {
		flex: 1 0 100%;
		justify-content: stretch;
		margin-left: 0;
		padding-top: 4px;
	}

	.status-card--featured .status-action {
		flex: 1 1 0;
		min-width: 44px;
		padding: 0;
	}

	/* "Κοινοποίηση" last, in its own row; ⋮ stays with the small buttons. */
	.status-card--featured .status-action--solid {
		flex-basis: 100%;
		order: 1;
	}

	.status-card--single .status-card__text {
		font-size: 28px;
	}

	.pager {
		gap: 12px;
		padding-top: 12px;
	}

	.pager__tools {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.pager__jump {
		flex-wrap: nowrap;
	}

	.pager__input {
		flex: 1;
		min-width: 0;
	}


	.pager__more--newer {
		padding: 0 16px;
	}

	.pager__links--single {
		flex-wrap: wrap;
	}

	.aside {
		margin-top: 8px;
	}

	.aside-card--follow {
		display: none;
	}

	.sections {
		gap: 28px;
		padding-bottom: 32px;
	}

	.hero--page + .sections {
		padding-top: 24px;
	}

	.categories {
		gap: 12px;
	}

	.categories__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.category-card {
		gap: 10px;
		padding: 16px;
		border-radius: 18px;
	}

	.category-card .icon-tile {
		width: 44px;
		height: 44px;
		border-radius: 13px;
	}

	.category-card__name {
		font-size: 17px;
		line-height: 1.3;
	}

	.category-card__count {
		font-size: 12px;
	}

	.category-card__arrow {
		width: 28px;
		height: 28px;
	}

	.newsletter {
		gap: 16px;
		padding: 24px;
		border-radius: 22px;
	}

	.newsletter__top {
		gap: 16px;
	}

	.newsletter__intro {
		flex-direction: column;
		gap: 16px;
	}

	.icon-tile--large {
		width: 56px;
		height: 56px;
		border-radius: 16px;
	}

	.newsletter__form {
		flex: 1 1 100%;
		flex-direction: column;
		padding: 0;
		background: none;
		border: 0;
	}

	.newsletter__form input {
		flex: none;
		height: 48px;
		padding: 0 18px;
		background: var(--bg);
		border: 1px solid var(--line-control);
		border-radius: 999px;
	}

	.newsletter__form .button {
		height: 48px;
	}

	.newsletter__perks {
		flex-direction: column;
		gap: 10px;
		padding-top: 16px;
	}

	.page-body {
		padding-top: 24px;
		padding-bottom: 32px;
	}

	.prose {
		padding: 24px 20px;
		font-size: 16px;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 24px 20px 32px;
	}

	.site-footer__brand {
		display: contents;
	}

	.site-footer__social {
		display: flex;
	}

	.site-footer__nav {
		gap: 0 24px;
		order: 3;
	}

	.site-footer__copyright {
		order: 4;
		font-size: 13px;
	}
}

/* ---------- Small animations ---------- */

/* Cards slide in as they come into view (main.js adds .reveal, then .is-visible). */
.has-reveal .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.45s ease var(--reveal-delay, 0ms), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
}

.has-reveal .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Buttons give a little when pressed. */
.button,
.status-action,
.icon-button,
.segmented__item,
.pager__more,
.toggle span,
.social-link,
.story-viewer__button,
.game__button {
	transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:active,
.status-action:active,
.icon-button:active,
.pager__more:active,
.social-link:active,
.toggle:active span {
	transform: scale(0.95);
}

.button--accent:hover,
.pager__more--random:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(255, 216, 77, 0.25);
}

/* Cards and category tiles lift a little on hover. */
.status-card,
.category-card {
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* `translate`, not `transform`: the slide-in animation uses transform. */
.category-card,
.aside-card--game {
	transition: translate 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.45s ease, transform 0.45s ease;
}

.category-card:hover,
.aside-card--game:hover {
	translate: 0 -3px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.status-card:not(.status-card--featured):hover {
	border-color: var(--line-strong);
}

/* The logo winks on hover. */
.brand:hover .logo-mark {
	animation: logo-wiggle 0.5s ease;
}

@keyframes logo-wiggle {
	30% {
		transform: rotate(-10deg) scale(1.08);
	}
	60% {
		transform: rotate(6deg);
	}
}

/* The random buttons spin their arrows on hover. */
.site-nav__random:hover .icon,
.icon-button--accent:hover .icon,
.pager__more--random:hover .icon {
	transform: rotate(180deg);
	transition: transform 0.35s ease;
}

/* Today's occasion badge breathes. */
.story-circle__badge {
	animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
	50% {
		transform: translateX(-50%) scale(1.08);
	}
}

/* Story rings turn slowly on hover. */
.story-circle__ring {
	transition: transform 0.25s ease, filter 0.25s ease;
}

.story-circle:hover .story-circle__ring {
	filter: saturate(1.4);
}

/* The heart beats when a status goes to the favourites. */
.status-favorite[aria-pressed="true"] .icon {
	animation: heart-beat 0.4s ease;
}

@keyframes heart-beat {
	40% {
		transform: scale(1.35);
	}
}

/* The toast slides up. */
.toast:not([hidden]) {
	animation: toast-in 0.25s ease;
}

@keyframes toast-in {
	from {
		opacity: 0;
		transform: translate(-50%, 12px);
	}
}

/* Windows (stories, share as image, search) fade in. */
.story-viewer:not([hidden]),
.image-share:not([hidden]),
.search-window:not([hidden]) {
	animation: fade-in 0.2s ease;
}

.image-share:not([hidden]) .image-share__panel,
.search-window:not([hidden]) .search-window__panel {
	animation: panel-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
}

@keyframes panel-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
}

.search-window:not([hidden]) .search-window__panel {
	animation-name: panel-down;
}

@keyframes panel-down {
	from {
		opacity: 0;
		transform: translateY(-16px);
	}
}

/* The yellow card of the day says hello once. */
.status-card--featured.reveal.is-visible {
	animation: featured-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes featured-in {
	from {
		transform: translateY(18px) scale(0.97);
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}
