/* Daily Upgrade: the games' surfaces, results screen and profile. Every
   live box keeps its size before REST fills it, so nothing shifts. */
.umdu-enabled.umdu-game,
.umdu-enabled.umdu-todays,
.umdu-enabled.umdu-board,
.umdu-enabled.umdu-gamecard {
	box-sizing: border-box;
	color: var(--umdu-text);
}

.umdu-game-page .entry-content,
.umdu-game-page .wp-block-post-content {
	max-width: 860px;
	margin-inline: auto;
}

.umdu-crumbs {
	margin: 0 0 0.75rem;
	color: var(--umdu-muted);
	font-size: 0.85rem;
}

.umdu-crumbs a {
	color: inherit;
}

.umdu-eyebrow {
	margin: 0 0 0.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--umdu-accent);
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.umdu-kids-privacy {
	color: var(--umdu-accent);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.umdu-eyebrow .umdu-kids-privacy {
	margin-inline-start: 0.5rem;
	font-size: 0.8rem;
	text-transform: none;
	letter-spacing: 0;
}

.umdu-results__privacy,
.umdu-name-form__privacy {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
}

.umdu-button {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.6rem 1.1rem;
	border: 0;
	border-radius: 10px;
	background: var(--umdu-accent);
	color: #fff !important;
	font: inherit;
	font-weight: 800;
	text-decoration: none !important;
	cursor: pointer;
	touch-action: manipulation;
}

/* Themes restyle every button:hover and :focus (GeneratePress: white on dark grey); a button here keeps its own colours. */
.umdu-button:hover,
.umdu-button:focus {
	background: var(--umdu-accent);
	color: #fff !important;
}

.umdu-button--big {
	min-height: 56px;
	padding: 0.8rem 1.5rem;
	font-size: 1.1rem;
}

.umdu-button--ghost {
	border: 2px solid var(--umdu-border);
	background: transparent;
	color: var(--umdu-accent) !important;
}

.umdu-button--ghost:hover,
.umdu-button--ghost:focus {
	background: color-mix(in srgb, var(--umdu-accent) 8%, transparent);
	color: var(--umdu-accent) !important;
}

.umdu-button--danger {
	background: #a12622;
}

.umdu-button--danger:hover,
.umdu-button--danger:focus {
	background: #a12622;
}

.umdu-link {
	min-height: 44px;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: var(--umdu-accent);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
	touch-action: manipulation;
}

/* Themes restyle every button:hover and :focus (GeneratePress: white on dark grey); a button here keeps its own colours. */
.umdu-link:hover,
.umdu-link:focus {
	background: none;
	color: var(--umdu-accent);
}

.umdu-link--danger {
	color: #a12622;
}

.umdu-link--danger:hover,
.umdu-link--danger:focus {
	color: #a12622;
}

.umdu-section-title,
.umdu-box__title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1.2;
}

.umdu-game__frame {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	margin: 1rem 0 1.25rem;
	overflow: hidden;
	border: 2px solid var(--umdu-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* The start card: the game's art, then its name, hook, today's number and Play. */
.umdu-game__poster {
	position: relative;
	display: block;
	min-height: 260px;
	background: var(--umdu-accent);
}

.umdu-game__poster img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.umdu-game__poster[data-glyph]::after {
	content: attr(data-glyph);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 4rem;
	font-weight: 900;
}

.umdu-game__cta {
	display: grid;
	align-content: center;
	gap: 0.55rem;
	justify-items: start;
	padding: 1.5rem;
	text-align: left;
}

.umdu-game__hook {
	margin: 0;
	font-size: clamp(1.15rem, 3vw, 1.4rem);
	font-weight: 800;
	line-height: 1.25;
}

.umdu-game__number {
	min-height: 1.5em;
	margin: 0;
	overflow: hidden;
	color: var(--umdu-accent);
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Play and the "no daily today" notice share one place: one shows. */
.umdu-game__action {
	display: grid;
	justify-self: stretch;
	margin-top: 0.4rem;
}

.umdu-game__action > * {
	grid-area: 1 / 1;
}

.umdu-game__notice {
	align-self: center;
	margin: 0;
	font-weight: 700;
	visibility: hidden;
}

.umdu-game.is-sitting-out .umdu-game__notice {
	visibility: visible;
}

.umdu-game.is-sitting-out .umdu-game__play {
	visibility: hidden;
}

@media (max-width: 700px) {
	.umdu-game__frame {
		grid-template-columns: 1fr;
	}

	.umdu-game__poster {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.umdu-game__cta {
		padding: 1.1rem 1.1rem 1.25rem;
	}
}

.umdu-game__below {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 0 0 1.25rem;
}

@media (max-width: 700px) {
	.umdu-game__below {
		grid-template-columns: 1fr;
	}
}

/* Every games card: one radius and shadow, and the colours the board and
   champion share. */
.umdu-enabled {
	--umdu-card-radius: 16px;
	--umdu-card-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 6px 18px rgba(17, 24, 39, 0.06);
	--umdu-lift-shadow: 0 2px 6px rgba(17, 24, 39, 0.08), 0 16px 32px rgba(17, 24, 39, 0.14);
	--umdu-ghost: rgba(17, 24, 39, 0.08);
	--umdu-done: #2e6b45;
	--umdu-gold: #d9a514;
}

.umdu-box {
	padding: 1rem 1.1rem 1.1rem;
	border: 1px solid var(--umdu-border);
	border-radius: var(--umdu-card-radius);
	background: #fff;
	box-shadow: var(--umdu-card-shadow);
}

/* Your games: three lines, whatever fills them. */
.umdu-yours__body {
	height: calc(4.5em + 0.25rem);
	overflow: hidden;
	font-size: 0.95rem;
	line-height: 1.5;
}

.umdu-yours__body p {
	margin: 0;
}

.umdu-yours__line {
	display: -webkit-box;
	overflow: hidden;
	font-weight: 700;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.umdu-yours__todo {
	display: -webkit-box;
	margin-top: 0.25rem !important;
	overflow: hidden;
	color: var(--umdu-muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.umdu-yours__profile {
	margin-top: 0.4rem;
	padding: 0;
	font-weight: 700;
}

/* A board: a title row with the live player count, then exactly `limit`
   places of one fixed height, drawn as a skeleton before the data. */
.umdu-board {
	--umdu-row: 44px;
}

.umdu-board__top {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 0.6rem;
}

.umdu-board__top .umdu-box__title {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.umdu-board__top .umdu-box__title::before {
	content: "";
	display: inline-block;
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.4em;
	vertical-align: -0.12em;
	background: var(--umdu-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0V4z'/%3E%3Cpath d='M17 5h2a2 2 0 0 1 2 2v1a3 3 0 0 1-3 3h-1M7 5H5a2 2 0 0 0-2 2v1a3 3 0 0 0 3 3h1'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0V4z'/%3E%3Cpath d='M17 5h2a2 2 0 0 1 2 2v1a3 3 0 0 1-3 3h-1M7 5H5a2 2 0 0 0-2 2v1a3 3 0 0 0 3 3h1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.umdu-board__rows {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: calc(var(--umdu-rows, 5) * var(--umdu-row));
	margin: 0;
	padding: 0;
	list-style: none;
}

.umdu-board__row {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(26px, max-content) 28px minmax(0, 1fr) auto 28px;
	gap: 0.6rem;
	align-items: center;
	min-height: var(--umdu-row);
	padding: 0 0.35rem;
	border-bottom: 1px solid rgba(17, 24, 39, 0.06);
	font-size: 0.95rem;
}

.umdu-board__row:last-child {
	border-bottom-color: transparent;
}

.umdu-board__row.is-me {
	border-radius: 10px;
	background: color-mix(in srgb, var(--umdu-accent) 11%, #fff);
	box-shadow: inset 3px 0 0 var(--umdu-accent);
}

.umdu-board__row.is-below {
	border-top: 1px dashed var(--umdu-border);
}

.umdu-board__rank {
	display: grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	border-radius: 999px;
	color: var(--umdu-muted);
	font-size: 0.8rem;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.umdu-board__rank[data-rank="1"],
.umdu-hall__rank[data-rank="1"] {
	background: linear-gradient(135deg, #f8dc6b, #d9a514);
	color: #4d3800;
}

.umdu-board__rank[data-rank="2"],
.umdu-hall__rank[data-rank="2"] {
	background: linear-gradient(135deg, #eef1f5, #aab4bf);
	color: #2f3a45;
}

.umdu-board__rank[data-rank="3"],
.umdu-hall__rank[data-rank="3"] {
	background: linear-gradient(135deg, #f0bf98, #c27a46);
	color: #4a250b;
}

.umdu-board__avatar {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--umdu-ghost);
	box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.2);
	object-fit: cover;
}

.umdu-board__name {
	min-width: 0;
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.umdu-board__row.is-me .umdu-board__name {
	font-weight: 900;
}

.umdu-board__name small {
	margin-left: 0.3em;
	color: var(--umdu-muted);
	font-size: 0.8em;
	font-weight: 600;
}

.umdu-board__score {
	grid-column: -3 / -2;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
	font-weight: 900;
	text-align: right;
}

.umdu-board__report {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--umdu-muted);
	font-size: 0.8rem;
	opacity: 0.45;
	cursor: pointer;
}

/* Themes restyle every button:hover and :focus (GeneratePress: white on dark grey); a button here keeps its own colours. */
.umdu-board__report:hover,
.umdu-board__report:focus {
	background: none;
	color: var(--umdu-muted);
	opacity: 1;
}

.umdu-board__reasons {
	grid-column: 1 / -1;
	padding-bottom: 0.4rem;
	font-size: 0.85rem;
}

/* A place no one holds: its number and grey bars, pulsing while the
   board loads. */
.umdu-board__row.is-ghost .umdu-board__rank {
	opacity: 0.55;
}

.umdu-board__row.is-ghost .umdu-board__name,
.umdu-board__row.is-ghost .umdu-board__score {
	height: 0.7em;
	border-radius: 999px;
	background: var(--umdu-ghost);
}

.umdu-board__row.is-ghost .umdu-board__name {
	width: 62%;
}

.umdu-board__row.is-ghost:nth-child(3n + 2) .umdu-board__name {
	width: 46%;
}

.umdu-board__row.is-ghost:nth-child(3n) .umdu-board__name {
	width: 74%;
}

.umdu-board__row.is-ghost .umdu-board__score {
	width: 2em;
}

.umdu-board__rows.is-loading .umdu-board__row.is-ghost > * {
	animation: umdu-shimmer 1.4s ease-in-out infinite;
}

.umdu-board__rows.is-empty .umdu-board__row.is-ghost {
	opacity: 0.6;
}

/* No one on the board yet: said over its empty places. */
.umdu-board__empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 0.5rem;
}

.umdu-board__empty span {
	max-width: 20em;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--umdu-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--umdu-card-shadow);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

/* The foot: the live player count grows from the left, the reset time
   keeps the right. */
.umdu-board__foot {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin: 0.6rem 0 0;
	overflow: hidden;
	color: var(--umdu-muted);
	font-size: 0.8rem;
	white-space: nowrap;
}

.umdu-board__players {
	color: var(--umdu-text);
	font-weight: 800;
}

.umdu-board__players::before {
	content: "";
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-right: 0.35rem;
	border-radius: 50%;
	background: #2fb36d;
	vertical-align: 0.05em;
	animation: umdu-live 2s ease-in-out infinite;
}

.umdu-board__players:empty {
	visibility: hidden;
}

.umdu-board__resets {
	min-width: 0;
	margin-left: auto;
	overflow: hidden;
	text-overflow: ellipsis;
}

.umdu-board__play {
	width: 100%;
	margin-top: 0.85rem;
}

.umdu-board__hall {
	display: block;
	margin-top: 0.6rem;
	color: var(--umdu-accent) !important;
	font-size: 0.95rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none !important;
}

.umdu-board__hall:hover {
	text-decoration: underline !important;
}

.umdu-board--full {
	margin-top: 1.5rem;
}

@keyframes umdu-shimmer {
	50% {
		opacity: 0.45;
	}
}

@keyframes umdu-live {
	50% {
		opacity: 0.35;
	}
}

@media (min-width: 1041px) {
	.umdu-todays .umdu-champion {
		display: none;
	}
}

/* Today's games */
.umdu-enabled.umdu-todays[data-umdu-todays="strip"] {
	margin-bottom: 2rem;
}

.umdu-strip__head {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	justify-content: space-between;
}

.umdu-strip__head .umdu-section-title {
	margin-bottom: 0.5rem;
}

.umdu-strip__all {
	flex: none;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
}

/* One line, always: pills on the left fill in, the countdown keeps the
   right, and nothing wraps. */
.umdu-progress {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.45rem;
	align-items: center;
	height: 1.9rem;
	margin: 0 0 0.9rem;
	overflow: hidden;
	font-size: 0.8rem;
	font-weight: 800;
	white-space: nowrap;
}

.umdu-pill {
	flex: none;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--umdu-accent) 12%, #fff);
	color: var(--umdu-accent);
	line-height: 1.2;
}

.umdu-pill:empty {
	display: none;
}

.umdu-progress__streak {
	background: #fff0e3;
	color: #b4470b;
}

.umdu-progress__short {
	display: none;
}

.umdu-progress__next {
	min-width: 0;
	margin-left: auto;
	overflow: hidden;
	color: var(--umdu-muted);
	font-weight: 700;
	text-overflow: ellipsis;
}

/* The time keeps one width, so its line never moves as it ticks. */
.umdu-progress__time {
	display: inline-block;
	min-width: 8ch;
	font-variant-numeric: tabular-nums;
	text-align: left;
}

@media (max-width: 480px) {
	.umdu-progress__short {
		display: inline;
	}

	.umdu-progress__long {
		display: none;
	}
}

.umdu-todays__share {
	margin: 1rem 0 0;
	text-align: center;
}

.umdu-todays__share [role="status"] {
	margin-left: 0.4rem;
	color: var(--umdu-muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.umdu-todays__share [disabled] {
	opacity: 0.55;
	cursor: default;
}

/* Tiles: art-forward cards, two across on phones and tablets; on desktop
   up to four, as many as there are games. */
.umdu-todays__tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 900px) {
	.umdu-todays__tiles {
		gap: 1rem;
	}

	.umdu-todays__tiles:has(> :nth-child(3)) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.umdu-todays__tiles:has(> :nth-child(4)) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.umdu-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--umdu-border);
	border-radius: var(--umdu-card-radius);
	background: #fff;
	box-shadow: var(--umdu-card-shadow);
	color: var(--umdu-text) !important;
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
	.umdu-tile:hover {
		border-color: color-mix(in srgb, var(--umdu-accent) 45%, transparent);
		box-shadow: var(--umdu-lift-shadow);
		transform: translateY(-3px);
	}

	.umdu-tile:hover .umdu-tile__art img {
		transform: scale(1.05);
	}
}

.umdu-tile:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--umdu-accent) 50%, transparent);
	outline-offset: 2px;
}

.umdu-tile__art,
.umdu-gamecard__art {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--umdu-accent);
}

.umdu-tile__art {
	aspect-ratio: 16 / 10;
}

.umdu-gamecard__art {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
}

/* Out of the line box, so no gap under the image shows the colour behind. */
.umdu-tile__art img,
.umdu-gamecard__art img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.umdu-tile__art[data-glyph]::after,
.umdu-gamecard__art[data-glyph]::after {
	content: attr(data-glyph);
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 2rem;
	font-weight: 900;
}

.umdu-tile__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
	padding: 0.75rem 0.9rem 0.9rem;
}

.umdu-tile__name {
	overflow: hidden;
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.umdu-tile__hook {
	display: -webkit-box;
	min-height: 2.7em;
	margin-bottom: 0.55rem;
	overflow: hidden;
	color: var(--umdu-muted);
	font-size: 0.85rem;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* The status pill: filled in after load, one line, never wider than the tile. */
.umdu-tile__status {
	align-self: flex-start;
	display: inline-block;
	max-width: 100%;
	height: 1.9rem;
	margin-top: auto;
	padding: 0 0.8rem;
	overflow: hidden;
	border-radius: 999px;
	background: var(--umdu-accent);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1.9rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.umdu-tile__status.is-done {
	background: #e2f1e7;
	color: var(--umdu-done);
}

.umdu-tile__status.is-continue {
	background: color-mix(in srgb, var(--umdu-accent) 14%, #fff);
	color: var(--umdu-accent);
}

.umdu-tile__status.is-off {
	background: #f0f0f0;
	color: var(--umdu-muted);
}

/* Chips: the strip above articles, one compact row. A scroller on phones,
   a grid wider up. */
.umdu-todays--chips .umdu-todays__tiles {
	display: flex;
	gap: 0.6rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.umdu-todays--chips .umdu-todays__tiles::-webkit-scrollbar {
	display: none;
}

.umdu-todays--chips .umdu-tile {
	flex: none;
	flex-direction: row;
	gap: 0.65rem;
	align-items: center;
	width: 210px;
	padding: 0.45rem 0.7rem 0.45rem 0.45rem;
	border-radius: 14px;
	scroll-snap-align: start;
}

.umdu-todays--chips .umdu-tile__art {
	flex: none;
	width: 52px;
	aspect-ratio: 1;
	border-radius: 10px;
}

.umdu-todays--chips .umdu-tile__body {
	gap: 0.3rem;
	padding: 0;
}

.umdu-todays--chips .umdu-tile__name {
	font-size: 0.95rem;
}

.umdu-todays--chips .umdu-tile__hook {
	display: none;
}

.umdu-todays--chips .umdu-tile__status {
	height: 1.55rem;
	margin-top: 0;
	padding: 0 0.6rem;
	font-size: 0.72rem;
	line-height: 1.55rem;
}

/* A chip wide enough: the hook under the name, the pill at the end. */
.umdu-todays--chips .umdu-tile {
	container-type: inline-size;
}

@container (min-width: 300px) {
	.umdu-todays--chips .umdu-tile__body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.1rem 0.75rem;
		align-items: center;
	}

	.umdu-todays--chips .umdu-tile__hook {
		display: block;
		grid-column: 1;
		min-height: 0;
		margin: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.umdu-todays--chips .umdu-tile__status {
		grid-row: 1 / span 2;
		grid-column: 2;
		height: 2rem;
		padding: 0 0.85rem;
		font-size: 0.8rem;
		line-height: 2rem;
	}
}

@media (min-width: 700px) {
	.umdu-todays--chips .umdu-todays__tiles {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
		overflow: visible;
	}

	.umdu-todays--chips .umdu-tile {
		width: auto;
	}
}

.umdu-todays--feature .umdu-todays__tiles {
	grid-template-columns: 1fr;
}

.umdu-todays--feature .umdu-tile:not(.umdu-tile--feature) {
	flex-direction: row;
	align-items: center;
}

.umdu-todays--feature .umdu-tile:not(.umdu-tile--feature) .umdu-tile__art {
	flex: none;
	width: 96px;
	aspect-ratio: 1;
}

.umdu-todays__empty {
	padding: 1rem;
	border: 2px dashed var(--umdu-border);
	border-radius: 12px;
	text-align: center;
}

/* The in-article card */
.umdu-gamecard {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
	margin: 1.5rem 0;
	padding: 0.9rem;
	border: 1px solid var(--umdu-border);
	border-radius: var(--umdu-card-radius);
	background: #fff;
	box-shadow: var(--umdu-card-shadow);
}

.umdu-gamecard__body p {
	margin: 0 0 0.3rem;
}

.umdu-gamecard__eyebrow {
	overflow: hidden;
	color: var(--umdu-accent);
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.umdu-gamecard__name {
	font-size: 1.2rem;
	font-weight: 900;
}

.umdu-gamecard__proof {
	min-height: 1.4em;
	overflow: hidden;
	color: var(--umdu-muted);
	font-size: 0.9rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.umdu-gamecard {
		grid-template-columns: 84px minmax(0, 1fr);
	}
}

/* Past games: a pill per day in even columns, each keeping room for its tick. */
.umdu-past-list__days {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
}

.umdu-past-list__day {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	min-width: 0;
	padding: 0.35rem 0.4rem 0.35rem 0.8rem;
	border: 1px solid var(--umdu-border);
	border-radius: 999px;
	background: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.umdu-past-list__day a {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	color: var(--umdu-text) !important;
	text-decoration: none !important;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.umdu-past-list__day:hover {
	border-color: var(--umdu-accent);
}

.umdu-past-list__done {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	box-sizing: border-box;
	border: 1.5px solid rgba(17, 24, 39, 0.14);
	border-radius: 50%;
	color: transparent;
	font-size: 0.7rem;
	font-weight: 900;
}

.umdu-past-list__day.is-played .umdu-past-list__done {
	border-color: transparent;
	background: var(--umdu-done);
	color: #fff;
}

.umdu-from-past__day ul {
	margin: 0.25rem 0 0.75rem;
}

/* The results screen and profile, inside play mode */
.umdu-results,
.umdu-profile {
	max-width: 640px;
	margin: 0 auto;
	padding-bottom: 2rem;
}

.umdu-results__hero {
	margin: 0.75rem 0 1.25rem;
	padding: 1.25rem 1.25rem 1rem;
	border: 2px solid var(--umdu-border);
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

.umdu-results__heading {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1.2;
}

.umdu-results__heading:focus,
.umdu-results__heading:focus-visible {
	/* Focus moves here so the result is announced; it is not a control. */
	outline: none;
	box-shadow: none;
}

.umdu-results__score {
	margin: 0 0 0.5rem;
	color: var(--umdu-muted);
	font-size: 1.25rem;
}

.umdu-results__score strong {
	color: var(--umdu-accent);
	font-size: 3.5rem;
	font-weight: 900;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.umdu-results__note {
	margin: 0.25rem 0;
	color: var(--umdu-muted);
}

.umdu-results__summary {
	margin: 0.75rem 0;
	text-align: left;
}

.umdu-results__share {
	margin: 0.75rem 0 0;
}

.umdu-results__practice {
	margin: 0.5rem 0 0;
}

.umdu-results__progress,
.umdu-results__board,
.umdu-results__missed {
	margin: 1rem 0;
}

.umdu-results__progress:not(:empty) {
	padding: 1rem;
	border-radius: 14px;
	background: color-mix(in srgb, var(--umdu-accent) 8%, #fff);
}

.umdu-results__progress p {
	margin: 0 0 0.5rem;
}

.umdu-results__tally {
	font-weight: 800;
}

.umdu-results__slate {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
}

.umdu-results__slate li {
	padding: 0.25rem 0.65rem;
	border: 1px solid var(--umdu-border);
	border-radius: 999px;
	background: #fff;
	font-size: 0.9rem;
	font-weight: 700;
}

.umdu-results__slate li.is-done {
	border-color: transparent;
	background: var(--umdu-accent);
	color: #fff;
}

.umdu-results__progress [data-umdu-next] {
	display: block;
	text-align: center;
}

.umdu-results__subhead {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 900;
}

.umdu-results .umdu-results__answers {
	display: grid;
	gap: 0.6rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.umdu-results__answers .umdu-answer {
	margin: 0;
	padding: 0.8rem 0.9rem;
	border: 2px solid var(--umdu-border);
	border-radius: 12px;
	background: #fff;
}

.umdu-results__answers .umdu-answer.is-right {
	border-color: color-mix(in srgb, #20844d 45%, var(--umdu-border));
}

.umdu-results__answers .umdu-answer.is-wrong {
	border-color: color-mix(in srgb, #9a2e2e 45%, var(--umdu-border));
}

.umdu-results__answers .umdu-answer p {
	margin: 0 0 0.2rem;
}

.umdu-answer__prompt {
	font-weight: 800;
}

.umdu-results__answers .umdu-answer__source {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	min-height: 44px;
	margin-top: 0.5rem;
	padding: 0.35rem;
	border-radius: 8px;
	background: color-mix(in srgb, var(--umdu-accent) 7%, #fff);
	color: var(--umdu-text) !important;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none !important;
}

.umdu-results__answers .umdu-answer__source img {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
}

.umdu-name-form h3 {
	margin: 0 0 0.5rem;
}

.umdu-name-form__field span,
.umdu-profile label span {
	display: block;
	font-weight: 700;
}

.umdu-name-form input[type="text"],
.umdu-profile input[type="email"],
.umdu-profile input[type="text"] {
	width: 100%;
	max-width: 20rem;
	min-height: 44px;
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--umdu-border);
	border-radius: 8px;
	font: inherit;
}

.umdu-name-form__names label {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	min-height: 44px;
}

.umdu-name-form__error {
	min-height: 1.2em;
	color: #a12622;
}

.umdu-avatars {
	display: grid;
	grid-template-columns: repeat(6, 48px);
	gap: 0.4rem;
	margin: 0.75rem 0;
	padding: 0;
	border: 0;
}

.umdu-avatars legend {
	margin-bottom: 0.4rem;
	font-weight: 700;
}

.umdu-avatars__item {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
}

.umdu-avatars__item input {
	position: absolute;
	opacity: 0;
}

.umdu-avatars__item input:checked + img {
	outline: 3px solid var(--umdu-accent);
	outline-offset: 2px;
}

.umdu-avatars__item input:focus-visible + img {
	outline: 3px dashed var(--umdu-accent);
	outline-offset: 2px;
}

.umdu-avatars__item img {
	border-radius: 50%;
}

.umdu-profile__who {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.umdu-profile__who img {
	border-radius: 50%;
}

.umdu-profile__sign-in,
.umdu-profile__delete,
.umdu-profile__out {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--umdu-border);
}

@media (prefers-reduced-motion: reduce) {
	.umdu-game *,
	.umdu-play * {
		transition: none !important;
		animation: none !important;
	}
}

/* Yesterday's champion: one gold card everywhere its slot appears, of one
   fixed height, drawn as a skeleton before the data. */
.umdu-champion {
	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 0.8rem;
	align-items: center;
	height: 5.25rem;
	margin: 0.9rem 0 0;
	padding: 0.55rem 0.8rem;
	overflow: hidden;
	border: 1px solid #f0d98c;
	border-radius: 14px;
	background: linear-gradient(135deg, #fffaea, #fdf0c6);
}

.umdu-champion__avatar {
	position: relative;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f8dc6b, var(--umdu-gold));
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ecc955;
}

.umdu-champion__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

/* The crown: over the avatar, or the whole avatar when there is no champion. */
.umdu-champion__avatar::after {
	content: "";
	position: absolute;
	top: -13px;
	left: 50%;
	width: 22px;
	height: 18px;
	background: var(--umdu-gold);
	transform: translateX(-50%) rotate(-10deg);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 6l5.5 4.5L12 2l4.5 8.5L22 6l-2.2 11H4.2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 6l5.5 4.5L12 2l4.5 8.5L22 6l-2.2 11H4.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.umdu-champion.is-none .umdu-champion__avatar,
.umdu-champion.is-loading .umdu-champion__avatar {
	background: #fff;
}

.umdu-champion.is-none .umdu-champion__avatar::after {
	top: 50%;
	width: 26px;
	height: 22px;
	transform: translate(-50%, -50%);
}

.umdu-champion.is-loading .umdu-champion__avatar::after {
	opacity: 0.35;
}

.umdu-champion__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
}

.umdu-champion__title {
	overflow: hidden;
	color: #8a6400;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

/* The whole card links the Hall of Fame, with a chevron at its edge. */
.umdu-champion__hall {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.umdu-champion[data-umdu-champion-hall] {
	padding-right: 2rem;
	transition: box-shadow 0.18s ease;
}

.umdu-champion:has(.umdu-champion__hall):hover {
	box-shadow: 0 6px 18px rgba(138, 100, 0, 0.18);
}

.umdu-champion__hall::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.9rem;
	width: 0.5rem;
	height: 0.5rem;
	border-top: 2px solid #8a6400;
	border-right: 2px solid #8a6400;
	transform: translateY(-50%) rotate(45deg);
}

.umdu-champion__hall:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--umdu-accent) 50%, transparent);
	outline-offset: 2px;
}

.umdu-champion__who {
	display: flex;
	gap: 0.5rem;
	align-items: baseline;
	justify-content: space-between;
	min-height: 1.35em;
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1.35;
	white-space: nowrap;
}

.umdu-champion__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.umdu-champion__score {
	flex: none;
	color: #8a6400;
	font-size: 0.8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.umdu-champion__score b {
	color: var(--umdu-text);
	font-size: 1.05rem;
	font-weight: 900;
}

.umdu-champion__meta {
	min-height: 1.3em;
	overflow: hidden;
	color: var(--umdu-muted);
	font-size: 0.8rem;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.umdu-champion.is-none .umdu-champion__who {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.umdu-champion.is-loading .umdu-champion__who::before,
.umdu-champion.is-loading .umdu-champion__meta::before {
	content: "";
	display: block;
	width: 55%;
	height: 0.75em;
	margin-top: 0.3em;
	border-radius: 999px;
	background: rgba(138, 100, 0, 0.14);
	animation: umdu-shimmer 1.4s ease-in-out infinite;
}

.umdu-champion.is-loading .umdu-champion__meta::before {
	width: 78%;
}

/* The Hall of Fame: four all-time lists, kept out of snippets. */
.umdu-hall {
	margin: 1.5rem 0;
}

.umdu-hall__list {
	margin: 1.5rem 0;
	padding: 1rem 1.1rem;
	border: 1px solid var(--umdu-border);
	border-radius: var(--umdu-card-radius);
	background: #fff;
	box-shadow: var(--umdu-card-shadow);
}

.umdu-hall__note,
.umdu-hall__message {
	min-height: 1.4em;
	margin: 0.25rem 0 0.5rem;
	color: var(--umdu-muted);
	font-size: 0.9rem;
}

.umdu-hall__note:empty {
	display: none;
}

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

.umdu-hall__row {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(26px, max-content) 28px minmax(6em, 1fr) auto;
	gap: 0.6rem;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.umdu-hall__row:last-child {
	border-bottom: 0;
}

.umdu-hall__row:has(.umdu-hall__date) {
	grid-template-columns: 6.5em 28px minmax(6em, 1fr) auto;
}

.umdu-hall__date {
	color: var(--umdu-muted);
	font-size: 0.85rem;
	font-weight: 800;
}

.umdu-hall__rank {
	display: grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	border-radius: 999px;
	color: var(--umdu-muted);
	font-size: 0.8rem;
	font-weight: 900;
}

.umdu-hall__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.2);
}

.umdu-hall__name {
	min-width: 0;
	overflow: hidden;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.umdu-hall__value {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	text-align: right;
}

/* A guest's own figures: room for two lines, so filling them moves nothing. */
.umdu-hall__me {
	min-height: 3em;
	margin-top: 1.5rem;
	color: var(--umdu-muted);
	line-height: 1.5;
}

/* The hub's daily-total board: a column per slate game on desktop only.
   Its heading row is in the page from the start, so it takes its height
   before the names fill it. */
.umdu-board__game,
.umdu-board__cols {
	display: none;
}

@media (min-width: 782px) {
	.umdu-board--full .umdu-board__rows.has-columns > .umdu-board__row,
	.umdu-board--full .umdu-board__rows.has-columns > .umdu-board__cols {
		grid-template-columns: minmax(26px, max-content) 28px minmax(6em, 1fr) repeat(var(--umdu-games, 1), 4.5em) auto 28px;
	}

	.umdu-board--full .umdu-board__cols {
		box-sizing: border-box;
		display: grid;
		gap: 0.6rem;
		align-items: end;
		height: 28px;
		padding: 0 0.35rem 0.25rem;
		color: var(--umdu-muted);
		font-size: 0.7rem;
		font-weight: 800;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.umdu-board--full .umdu-board__game {
		display: block;
		overflow: hidden;
		color: var(--umdu-muted);
		font-size: 0.85rem;
		font-variant-numeric: tabular-nums;
		text-align: right;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.umdu-board--full .umdu-board__cols .umdu-board__game {
		font-size: 0.72rem;
		letter-spacing: 0;
		text-transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.umdu-tile,
	.umdu-tile *,
	.umdu-board *,
	.umdu-board *::before,
	.umdu-champion *,
	.umdu-champion *::before {
		transition: none !important;
		animation: none !important;
	}
}

/* A game page's own sections after the game: the FAQ, From past games,
   the latest articles and More games, in the theme's headings. */
.umdu-from-past,
.umdu-related,
.umdu-more-games {
	margin-top: 2.5rem;
}

.umdu-game-page .wp-block-details,
.umdu-games-hub .wp-block-details {
	margin: 0 0 0.5rem;
	border: 2px solid var(--umdu-border);
	border-radius: 10px;
	background: #fff;
}

.umdu-game-page .wp-block-details > summary,
.umdu-games-hub .wp-block-details > summary {
	position: relative;
	padding: 0.8rem 2.75rem 0.8rem 1rem;
	font-weight: 800;
	list-style: none;
	cursor: pointer;
}

.umdu-game-page .wp-block-details > summary::-webkit-details-marker,
.umdu-games-hub .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.umdu-game-page .wp-block-details > summary::after,
.umdu-games-hub .wp-block-details > summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 1rem;
	color: var(--umdu-accent);
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-50%);
}

.umdu-game-page .wp-block-details[open] > summary::after,
.umdu-games-hub .wp-block-details[open] > summary::after {
	content: "\2212";
}

.umdu-game-page .wp-block-details > :not(summary),
.umdu-games-hub .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 1rem 0.9rem;
}

/* Specific enough to beat the theme's indent on lists in article content. */
.umdu-related ul.umdu-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 600px) {
	.umdu-related ul.umdu-related__grid {
		grid-template-columns: 1fr;
	}
}

.umdu-read {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	height: 100%;
	padding: 0.5rem;
	border: 2px solid var(--umdu-border);
	border-radius: 10px;
	background: #fff;
	color: var(--umdu-text) !important;
	text-decoration: none !important;
}

.umdu-read:hover,
.umdu-read:focus-visible {
	border-color: var(--umdu-accent);
}

.umdu-read__img {
	flex: none;
	width: 88px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: var(--umdu-border);
}

.umdu-read__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.umdu-read__title {
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.3;
}

.umdu-more-games__head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	align-items: baseline;
	justify-content: space-between;
}

.umdu-more-games__all {
	font-weight: 700;
}
