/**
 * Leaf Match.
 */

.plm-page {
	--plm-cream: #fff6e0;
	--plm-cream-2: #fdecc4;
	--plm-edge: #e3cf9c;
	--plm-wood: #8a5a2b;
	--plm-wood-dark: #5e3a17;
	--plm-green: #4e9a2c;
	--plm-green-dark: #2f6f14;
	--plm-gold: #f4c542;
	--plm-ink: #3b2a14;
	--plm-pink: #ef5f8e;
	color: var(--plm-ink);
}

.plm-page button {
	font-family: inherit;
}

/* --------------------------------------------------------------- Scene --- */

.plm-scene {
	position: relative;
	overflow: hidden;
	margin-top: 16px;
	padding: 20px 28px 34px;
	border-radius: 28px;
	background-color: #6fb97a;
	background-image:
		radial-gradient(circle at 14% 12%, rgba(255, 244, 176, .85) 0 2.2%, rgba(255, 244, 176, 0) 7%),
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35) 0 3%, rgba(255, 255, 255, 0) 8%),
		radial-gradient(circle at 70% 18%, rgba(255, 244, 176, .6) 0 2%, rgba(255, 244, 176, 0) 6%),
		radial-gradient(circle at 88% 38%, rgba(255, 255, 255, .3) 0 3%, rgba(255, 255, 255, 0) 8%),
		radial-gradient(circle at 56% 70%, rgba(255, 244, 176, .35) 0 2%, rgba(255, 244, 176, 0) 6%),
		radial-gradient(ellipse 60% 55% at 50% 0%, #eaf7c9 0, rgba(234, 247, 201, 0) 70%),
		linear-gradient(180deg, #b6e0b0 0%, #7cc487 38%, #4a9a58 100%);
	box-shadow: 0 10px 30px rgba(20, 55, 42, .18);
}

.plm-scene[style],
.plm-page[style] .plm-scene {
	background-image: var(--plm-bg);
	background-size: cover;
	background-position: center;
}

/* Corner foliage, drawn in CSS so the page needs no picture to look lived in. */
.plm-scene::before,
.plm-scene::after {
	content: "";
	position: absolute;
	width: 300px;
	height: 300px;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: .9;
}

.plm-scene::before {
	left: -70px;
	top: -60px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%233a9a1e'%3E%3Cpath d='M20 10C60 0 110 30 100 80 70 90 20 70 20 10z'/%3E%3Cpath d='M0 70C30 50 80 70 90 120 50 130 0 120 0 70z' fill='%234aa52a'/%3E%3Cpath d='M70 0C110 -10 150 20 140 60 110 70 70 50 70 0z' fill='%232f8217'/%3E%3C/g%3E%3Cg stroke='%231d5f0c' stroke-width='2' fill='none'%3E%3Cpath d='M22 12C50 30 80 55 100 80M2 72C30 90 60 105 88 120M72 2C95 20 120 40 140 60'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='128' cy='92' r='11' fill='%23f2658f'/%3E%3Ccircle cx='128' cy='92' r='4' fill='%23ffd34d'/%3E%3C/g%3E%3C/svg%3E");
}

.plm-scene::after {
	right: -70px;
	bottom: -80px;
	transform: rotate(180deg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%233a9a1e'%3E%3Cpath d='M20 10C60 0 110 30 100 80 70 90 20 70 20 10z'/%3E%3Cpath d='M0 70C30 50 80 70 90 120 50 130 0 120 0 70z' fill='%234aa52a'/%3E%3Cpath d='M70 0C110 -10 150 20 140 60 110 70 70 50 70 0z' fill='%232f8217'/%3E%3C/g%3E%3Cg stroke='%231d5f0c' stroke-width='2' fill='none'%3E%3Cpath d='M22 12C50 30 80 55 100 80M2 72C30 90 60 105 88 120M72 2C95 20 120 40 140 60'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='128' cy='92' r='11' fill='%23f2658f'/%3E%3Ccircle cx='128' cy='92' r='4' fill='%23ffd34d'/%3E%3C/g%3E%3C/svg%3E");
}

.plm-scene > * {
	position: relative;
	z-index: 1;
}

/* --------------------------------------------------------------- Title --- */

.plm-head {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}

.plm-title {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	text-align: center;
}

.plm-title--img img {
	display: block;
	max-width: min(100%, 640px);
	height: auto;
}

.plm-sign {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 8px 44px 16px;
	border-radius: 26px 26px 34px 34px;
	background: linear-gradient(180deg, #a66b32 0%, #86521f 100%);
	border: 4px solid #5e3a17;
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 6px 14px rgba(40, 20, 0, .3);
}

.plm-sign > span {
	font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	font-style: italic;
	font-weight: 800;
	font-size: clamp(2.4rem, 6.5vw, 4.4rem);
	line-height: 1.05;
	letter-spacing: .01em;
	color: #fff3cf;
	-webkit-text-stroke: 2px #4a2a0c;
	paint-order: stroke fill;
	text-shadow: 0 3px 0 #4a2a0c, 0 5px 8px rgba(0, 0, 0, .35);
}

.plm-bloom {
	flex: 0 0 auto;
	width: clamp(34px, 5vw, 54px);
	height: clamp(34px, 5vw, 54px);
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}

.plm-ribbon {
	position: relative;
	margin-top: -16px;
	padding: 7px 40px 8px;
	font-size: clamp(.95rem, 2.2vw, 1.35rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: .01em;
	background: linear-gradient(180deg, #7c4cc0, #5f349c);
	clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
	filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3));
}

/* -------------------------------------------------------------- Layout --- */

.plm-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr) 320px;
	gap: 26px;
	align-items: start;
}

.plm-left,
.plm-stage,
.plm-right {
	min-width: 0;
}

.plm-menu,
.plm-panel {
	background: linear-gradient(180deg, #fffaf0, #fff3d6);
	border: 2px solid var(--plm-edge);
	border-radius: 22px;
	box-shadow: 0 6px 16px rgba(60, 40, 10, .18), inset 0 2px 0 rgba(255, 255, 255, .8);
}

.plm-menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 14px;
}

.plm-menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 14px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--plm-ink);
	font-size: 1.05rem;
	font-weight: 700;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s;
}

.plm-menu-item + .plm-menu-item {
	border-top: 1px solid rgba(139, 105, 40, .12);
	border-radius: 0 0 14px 14px;
}

.plm-menu-item:hover {
	background: rgba(78, 154, 44, .1);
	color: var(--plm-ink);
}

.plm-menu-item.is-current,
.plm-menu-item.is-current:hover {
	background: linear-gradient(180deg, #5ea834, #3f8a22);
	color: #fff;
	border-radius: 14px;
	box-shadow: 0 3px 0 #2c6a16;
}

.plm-menu-icon {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	color: #5e3a17;
}

.plm-mascot {
	display: flex;
	justify-content: center;
	margin-top: 18px;
}

.plm-mascot svg,
.plm-mascot img {
	width: 210px;
	height: auto;
	filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25));
}

/* --------------------------------------------------------------- Board --- */

.plm-board-wrap {
	max-width: 760px;
	margin: 0 auto;
}

.plm-board {
	display: grid;
	grid-template-columns: repeat(var(--plm-cols, 4), minmax(0, 1fr));
	gap: 14px;
}

.plm-board--hard {
	gap: 10px;
}

.plm-card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	perspective: 900px;
	-webkit-tap-highlight-color: transparent;
}

.plm-card:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	border-radius: 16px;
}

.plm-card-inner {
	position: absolute;
	inset: 0;
	display: block;
	transform-style: preserve-3d;
	transition: transform .42s cubic-bezier(.4, .1, .2, 1.1);
}

.plm-card:hover .plm-card-inner {
	transform: translateY(-3px);
}

.plm-card.is-pending .plm-card-inner {
	transform: rotateY(22deg) scale(1.03);
	transition-duration: .12s;
}

.plm-card.is-flipped .plm-card-inner,
.plm-card.is-flipped:hover .plm-card-inner {
	transform: rotateY(180deg);
}

.plm-face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 16px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	box-shadow: 0 4px 8px rgba(30, 50, 20, .3), 0 0 0 2px rgba(255, 255, 255, .35);
}

.plm-face--back svg {
	display: block;
	width: 100%;
	height: 100%;
}

.plm-face--front {
	transform: rotateY(180deg);
	background: radial-gradient(circle at 50% 35%, #ffffff, #fff7de);
	box-shadow: 0 0 0 3px var(--plm-gold), 0 0 18px 4px rgba(244, 197, 66, .65);
}

.plm-face--front img {
	display: block;
	width: 78%;
	height: 78%;
	margin-top: 4%;
	object-fit: contain;
}

.plm-name {
	display: block;
	width: 100%;
	padding: 0 4px 5px;
	font-size: clamp(.58rem, 1.25vw, .8rem);
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	color: var(--plm-green-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.plm-board--hard .plm-name {
	font-size: clamp(.5rem, .85vw, .66rem);
	padding-bottom: 3px;
}

.plm-card.is-matched .plm-face--front {
	box-shadow: 0 0 0 3px #7ac943, 0 0 16px 3px rgba(122, 201, 67, .6);
}

.plm-card.is-matched .plm-face--front::after {
	content: "";
	position: absolute;
	top: 5px;
	right: 5px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #4e9a2c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat;
}

.plm-card.is-matched {
	cursor: default;
}

.plm-card.is-matched:hover .plm-card-inner {
	transform: rotateY(180deg);
}

.plm-card.is-miss .plm-face--front {
	box-shadow: 0 0 0 3px #ec8a8a, 0 0 14px 3px rgba(236, 138, 138, .55);
	animation: plm-shake .35s;
}

@keyframes plm-shake {
	0%, 100% { transform: rotateY(180deg) translateX(0); }
	25% { transform: rotateY(180deg) translateX(-5px); }
	75% { transform: rotateY(180deg) translateX(5px); }
}

.plm-status {
	min-height: 1.6em;
	margin: 12px 0 0;
	text-align: center;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 40, 10, .6);
}

/* --------------------------------------------------------------- Stats --- */

.plm-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 0;
	max-width: 680px;
	margin: 14px auto 0;
	padding: 8px 14px;
	border: 4px solid #c08a3e;
	border-radius: 999px;
	background: linear-gradient(180deg, #fff6df, #ffe9b6);
	box-shadow: 0 6px 14px rgba(60, 40, 10, .28), inset 0 2px 0 rgba(255, 255, 255, .8);
}

.plm-stat {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 2px 14px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--plm-ink);
}

.plm-stat + .plm-stat {
	border-left: 2px solid rgba(139, 105, 40, .25);
}

.plm-stat svg,
.plm-stat-bloom {
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
}

.plm-stat strong {
	font-variant-numeric: tabular-nums;
}

.plm-restart {
	margin-left: 10px;
	padding: 7px 16px;
	border: 2px solid #c08a3e;
	border-radius: 999px;
	background: #fff;
	color: var(--plm-wood-dark);
	font-size: .85rem;
	font-weight: 800;
	cursor: pointer;
}

.plm-restart:hover {
	background: #fff3d6;
}

/* -------------------------------------------------------------- Panels --- */

.plm-right {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.plm-panel {
	padding: 18px 18px 16px;
}

.plm-panel-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--plm-ink);
	text-align: center;
}

.plm-leaf-ico {
	width: 26px;
	height: 26px;
}

.plm-levels {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.plm-level {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 12px;
	border: 0;
	border-radius: 14px;
	background: rgba(255, 255, 255, .55);
	color: var(--plm-ink);
	text-align: left;
	cursor: pointer;
	transition: background .15s, transform .1s;
}

.plm-level:hover {
	background: #fff;
}

.plm-radio {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border: 2px solid #bda776;
	border-radius: 50%;
	background: #fff;
}

.plm-level-bloom {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
}

.plm-level-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.plm-level-text strong {
	font-size: 1.05rem;
}

.plm-level-text em {
	font-style: normal;
	font-size: .9rem;
	opacity: .8;
}

.plm-level.is-on {
	background: linear-gradient(180deg, #5ea834, #3f8a22);
	color: #fff;
	box-shadow: 0 3px 0 #2c6a16;
}

.plm-level.is-on .plm-radio {
	border-color: #fff;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f14' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/78% no-repeat;
}

.plm-level.is-locked {
	opacity: .65;
}

.plm-lock {
	margin-left: auto;
	display: inline-flex;
	color: var(--plm-wood-dark);
}

.plm-lock svg {
	width: 20px;
	height: 20px;
}

.plm-reward-line {
	margin: 12px 4px 0;
	font-size: .88rem;
	text-align: center;
	color: #6a5330;
}

/* Deck carousel */

.plm-decks {
	padding-top: 22px;
}

.plm-ribbon-title {
	position: relative;
	margin: -34px auto 12px;
	width: fit-content;
	padding: 6px 34px;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--plm-ink);
	background: linear-gradient(180deg, #f9e2a3, #edc873);
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
}

.plm-carousel {
	display: flex;
	align-items: center;
	gap: 6px;
}

.plm-arrow {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 3px solid #e8f5d6;
	border-radius: 50%;
	background: linear-gradient(180deg, #5ea834, #3f8a22);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
}

.plm-arrow svg {
	width: 20px;
	height: 20px;
}

.plm-arrow:hover {
	filter: brightness(1.08);
}

.plm-deck-view {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
	min-height: 168px;
}

.plm-peek {
	position: absolute;
	top: 14px;
	width: 56px;
	height: 120px;
	overflow: hidden;
	border-radius: 14px;
	background: #e8dff0;
	opacity: .55;
}

.plm-peek--l { left: -12px; }
.plm-peek--r { right: -12px; }

.plm-peek img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.plm-deck-tile {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 148px;
	overflow: hidden;
	border: 4px solid #e8d6a8;
	border-radius: 16px;
	background: #fffdf4;
	box-shadow: 0 4px 10px rgba(60, 40, 10, .25);
}

.plm-deck-tile.is-selected {
	border-color: var(--plm-gold);
	box-shadow: 0 0 0 2px #fff, 0 0 16px 2px rgba(244, 197, 66, .7);
}

.plm-deck-art {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
	background: #f1f6e4;
	height: 118px;
	overflow: hidden;
}

.plm-deck-art img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: contain;
	padding: 3px;
}

.plm-deck-tile.is-locked .plm-deck-art {
	filter: grayscale(.7) brightness(.8);
}

.plm-deck-lock {
	position: absolute;
	top: 36px;
	left: 50%;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: -22px;
	border-radius: 50%;
	background: rgba(60, 40, 10, .85);
	color: #fff;
}

.plm-deck-lock svg {
	width: 24px;
	height: 24px;
}

.plm-deck-name {
	padding: 5px 4px 6px;
	font-size: .92rem;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	color: var(--plm-ink);
}

.plm-dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 10px;
}

.plm-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cdbf9d;
	cursor: pointer;
}

.plm-dot.is-on {
	background: var(--plm-green);
	transform: scale(1.2);
}

.plm-deck-note {
	min-height: 2.6em;
	margin: 10px 4px 0;
	font-size: .88rem;
	line-height: 1.35;
	text-align: center;
	color: #6a5330;
}

.plm-deck-note a {
	color: var(--plm-green-dark);
	font-weight: 800;
}

/* ---------------------------------------------------------- Leaderboard --- */

.plm-leader,
.plm-invite {
	max-width: 760px;
	margin: 26px auto 0;
}

.plm-leader-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.plm-leader-head .plm-panel-title {
	margin: 0;
}

.plm-tabs {
	display: flex;
	gap: 6px;
}

.plm-tab {
	padding: 6px 14px;
	border: 2px solid var(--plm-edge);
	border-radius: 999px;
	background: #fff;
	color: var(--plm-ink);
	font-weight: 700;
	cursor: pointer;
}

.plm-tab.is-on {
	background: var(--plm-green);
	border-color: var(--plm-green-dark);
	color: #fff;
}

.plm-rows {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.plm-rows li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 12px;
}

.plm-rows li:nth-child(odd) {
	background: rgba(255, 255, 255, .55);
}

.plm-rows li.is-me {
	background: #e5f4d6;
	font-weight: 800;
}

.plm-rank {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--plm-gold);
	font-size: .85rem;
	font-weight: 800;
}

.plm-rname {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.plm-rtime {
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

.plm-empty {
	color: #6a5330;
	background: none !important;
}

.plm-mybest {
	margin: 10px 0 0;
	text-align: right;
	font-weight: 800;
	color: var(--plm-green-dark);
}

.plm-invite {
	text-align: center;
}

.plm-invite p {
	margin: 0 0 12px;
}

/* -------------------------------------------------------------- Buttons --- */

.plm-btn {
	display: inline-block;
	padding: 11px 24px;
	border: 2px solid var(--plm-green-dark);
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s;
}

.plm-btn--primary {
	background: linear-gradient(180deg, #5ea834, #3f8a22);
	color: #fff;
	box-shadow: 0 3px 0 #2c6a16;
}

.plm-btn--ghost {
	background: #fff;
	color: var(--plm-green-dark);
}

.plm-btn:hover {
	filter: brightness(1.06);
	color: inherit;
}

.plm-btn--primary:hover {
	color: #fff;
}

/* --------------------------------------------------------------- Modals --- */

.plm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(30, 20, 5, .55);
}

.plm-modal[hidden] {
	display: none;
}

.plm-modal-box {
	width: min(480px, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 26px 26px 24px;
	border: 3px solid var(--plm-edge);
	border-radius: 26px;
	background: linear-gradient(180deg, #fffaf0, #fff0cf);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
	text-align: center;
	animation: plm-pop .3s cubic-bezier(.3, 1.4, .5, 1);
}

@keyframes plm-pop {
	from { transform: scale(.85); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.plm-modal-box h2 {
	margin: 0 0 12px;
	font-size: 1.7rem;
	color: var(--plm-ink);
}

.plm-steps {
	margin: 0 0 18px;
	padding-left: 22px;
	text-align: left;
}

.plm-steps li {
	margin-bottom: 8px;
}

.plm-stars {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-bottom: 4px;
}

.plm-star {
	width: 54px;
	height: 54px;
	fill: #e5dcc3;
	stroke: #cdbf9d;
	stroke-width: 1;
	stroke-linejoin: round;
}

.plm-star.is-on {
	fill: #f6b92b;
	stroke: #c8861a;
	animation: plm-star .5s cubic-bezier(.3, 1.6, .5, 1) both;
}

@keyframes plm-star {
	from { transform: scale(0) rotate(-40deg); }
	to { transform: scale(1) rotate(0); }
}

.plm-win-sub {
	margin: 0 0 14px;
	color: #6a5330;
}

.plm-win-list {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0 0 14px;
}

.plm-win-list div {
	flex: 1 1 0;
	padding: 8px 6px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .7);
}

.plm-win-list dt {
	font-size: .8rem;
	font-weight: 700;
	color: #6a5330;
}

.plm-win-list dd {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.plm-win-award {
	display: inline-block;
	margin: 0 0 12px;
	padding: 8px 20px;
	border-radius: 999px;
	background: #fde7f0;
	color: #b02b61;
	font-size: 1.25rem;
	font-weight: 800;
}

.plm-win-note {
	margin: 0 0 12px;
	font-size: .92rem;
	color: #6a5330;
}

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

/* ---------------------------------------------------------- Responsive --- */

@media (max-width: 1100px) {
	.plm-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.plm-left {
		grid-column: 1 / -1;
	}

	.plm-menu {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		padding: 8px;
	}

	.plm-menu-item {
		width: auto;
		padding: 8px 14px;
	}

	.plm-menu-item + .plm-menu-item {
		border-top: 0;
		border-radius: 14px;
	}

	.plm-mascot {
		display: none;
	}
}

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

	.plm-right {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}
}

@media (max-width: 640px) {
	.plm-scene {
		padding: 14px 12px 22px;
		border-radius: 20px;
	}

	.plm-sign {
		padding: 6px 22px 12px;
	}

	.plm-ribbon {
		padding-left: 28px;
		padding-right: 28px;
	}

	.plm-layout {
		gap: 18px;
	}

	.plm-menu-item span {
		font-size: .9rem;
	}

	.plm-menu-icon {
		width: 20px;
		height: 20px;
	}

	.plm-menu-item {
		padding: 7px 10px;
		gap: 6px;
	}

	.plm-board {
		grid-template-columns: repeat(var(--plm-cols-m, 3), minmax(0, 1fr));
		gap: 8px;
	}

	.plm-board--hard {
		gap: 6px;
	}

	.plm-face {
		border-radius: 11px;
	}

	.plm-board--medium .plm-name,
	.plm-board--hard .plm-name {
		display: none;
	}

	.plm-board--medium .plm-face--front img,
	.plm-board--hard .plm-face--front img {
		width: 86%;
		height: 86%;
		margin-top: 0;
	}

	.plm-stat {
		padding: 2px 10px;
		font-size: .95rem;
	}

	.plm-stat svg,
	.plm-stat-bloom {
		width: 22px;
		height: 22px;
	}

	.plm-stats {
		border-radius: 26px;
	}

	.plm-restart {
		margin: 4px 0 0;
	}

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

	.plm-peek--l { left: -8px; }
	.plm-peek--r { right: -8px; }
}

@media (prefers-reduced-motion: reduce) {
	.plm-card-inner,
	.plm-card.is-pending .plm-card-inner {
		transition: none;
	}

	.plm-card:hover .plm-card-inner {
		transform: none;
	}

	.plm-card.is-miss .plm-face--front,
	.plm-modal-box,
	.plm-star.is-on {
		animation: none;
	}
}

/* The hidden attribute must win over the display rules above. */
.plm-page [hidden] {
	display: none !important;
}
