/**
 * Cube Cascade — front-end and editor styles.
 *
 * Colours and fonts come from theme.json (Appearance → Editor → Styles).
 * This file only reads them through the --cc-* variables below, so palette
 * and font changes made by the site owner flow through every component.
 *
 * 1. Tokens            6. Sections and panels   11. Footer
 * 2. Base              7. Hero                  12. Posts and pagination
 * 3. Cube field        8. Story gallery         13. Forms
 * 4. Header and menu   9. Contact               14. Scroll reveal
 * 5. Buttons          10. Dialog, chips and     15. Reduced motion
 *                         game identity
 */

/* -------------------------------------------------------------------------- */
/* 1. Tokens                                                                    */
/* -------------------------------------------------------------------------- */

:root {
	--cc-bg: var(--wp--preset--color--base, #050607);
	--cc-surface: var(--wp--preset--color--surface, #101417);
	--cc-text: var(--wp--preset--color--contrast, #f2f5f5);
	--cc-muted: var(--wp--preset--color--muted, #a9b1b3);
	--cc-cyan: var(--wp--preset--color--accent, #00e5f0);
	--cc-orange: var(--wp--preset--color--accent-alt, #ff8a00);
	--cc-font-display: var(--wp--preset--font-family--display, sans-serif);
	--cc-font-body: var(--wp--preset--font-family--body, sans-serif);
	/* Small labels, buttons and prices: always the readable body font. */
	--cc-font-ui: var(--cc-font-body);
	/* The supplied display font has a single, fine weight. These add an even
	   outline to its letters to give a medium and a bold cut. Both are switched
	   off automatically when a different heading font is chosen in Styles. */
	--cc-display-medium: 0.018em;
	--cc-display-bold: 0.045em;

	--cc-line: color-mix(in srgb, var(--cc-text) 13%, transparent);
	--cc-line-strong: color-mix(in srgb, var(--cc-text) 30%, transparent);
	--cc-panel: color-mix(in srgb, var(--cc-surface) 84%, transparent);
	--cc-scrim: color-mix(in srgb, var(--cc-bg) 80%, transparent);
	/* The section line: a line either side of a small cube (a mask, so it
	   takes any colour). */
	--cc-ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='16' viewBox='0 0 96 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='M0 8.5h38M58 8.5h38'/%3E%3Cpath d='M42 4.6 48 1.6l6 3v7l-6 3-6-3z M42 4.6l6 3 6-3 M48 7.6v7'/%3E%3C/g%3E%3C/svg%3E");
	--cc-glow-cyan: 0 0 0 1px var(--cc-cyan), 0 0 34px -10px var(--cc-cyan);
	--cc-glow-orange: 0 0 0 1px var(--cc-orange), 0 0 34px -10px var(--cc-orange);
	/* Motion: one easing curve and four durations, shared by every component.
	   1 colour and opacity feedback, 2 small moves (triangles, a die turning),
	   3 panels and images, 4 entrances and reveals. */
	--cc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--cc-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--cc-dur-1: 0.2s;
	--cc-dur-2: 0.35s;
	--cc-dur-3: 0.6s;
	--cc-dur-4: 1s;
	--cc-stagger: 70ms;
	--cc-gutter: var(--wp--style--root--padding-left, clamp(1.25rem, 5vw, 4.5rem));
	/* Slim (scrolled) header height, and the full height with the menu list. */
	--cc-header-h: 4.25rem;
	--cc-header-full: 15rem;
	/* Width of the central channel the cube column runs through. */
	--cc-channel: clamp(7rem, 17vw, 15rem);
	--cc-tri-right: polygon(0 0, 100% 50%, 0 100%);
	--cc-tri-left: polygon(100% 0, 0 50%, 100% 100%);
	--cc-tri-corner: polygon(0 0, 100% 0, 0 100%);
}

/* -------------------------------------------------------------------------- */
/* 2. Base                                                                      */
/* -------------------------------------------------------------------------- */

html {
	scroll-padding-top: calc(var(--cc-header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	background-color: var(--cc-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

.wp-site-blocks {
	position: relative;
	z-index: 1;
	/* Decorative glows may reach past the edge; they must never add a scrollbar.
	   "clip" (unlike "hidden") keeps the sticky header working. */
	overflow-x: clip;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

::selection {
	background: var(--cc-cyan);
	color: var(--cc-bg);
}

img,
video {
	height: auto;
	max-width: 100%;
}

:where(a, button, input, select, textarea, summary, [tabindex], [role="button"]):focus-visible {
	outline: 2px solid var(--cc-cyan);
	outline-offset: 3px;
}

:where(h1, h2, h3) {
	text-wrap: balance;
}

:where(h1, h2, h3, h4, h5, h6) {
	-webkit-text-stroke: var(--cc-display-medium) currentColor;
}

.wp-block-site-title {
	-webkit-text-stroke: var(--cc-display-bold) currentColor;
}

:where(p, li, figcaption) {
	text-wrap: pretty;
}

/* Whatever follows the header — the theme's own pages and WooCommerce's cart
   and checkout templates alike — starts clear of the logo and menu list that
   float in the top-left corner. The homepage runs underneath them instead. */
.wp-site-blocks > header.wp-block-template-part + * {
	padding-top: calc(var(--cc-header-full) + 1.5rem);
}

.cc-main {
	padding-bottom: var(--wp--preset--spacing--70);
	min-height: 60vh;
}

.wp-site-blocks > header.wp-block-template-part + .cc-main.cc-home {
	padding-block: 0;
}

/* Inner pages use a calmer page title than the homepage hero. */
.wp-site-blocks > main:not(.cc-home) h1 {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.08;
}

/* Anchored sections stop clear of the slim header. */
:where(.cc-main) [id] {
	scroll-margin-top: calc(var(--cc-header-h) + 1rem);
}

.cc-editor-notice {
	padding: 1.25rem 1.5rem;
	border: 1px dashed var(--cc-line-strong);
	background: var(--cc-panel);
	color: var(--cc-muted);
	font-size: 0.9375rem;
}

.cc-editor-notice p {
	margin: 0;
}

/* -------------------------------------------------------------------------- */
/* 3. Cube field                                                                */
/* -------------------------------------------------------------------------- */

.cc-field {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 0;
	height: 100vh;
	height: 100lvh;
	overflow: hidden;
	pointer-events: none;
}

.cc-field canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* Quieter variant for inner pages: sits at the top and scrolls away. */
.cc-field--calm {
	position: absolute;
	height: min(100vh, 52rem);
	-webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
	mask-image: linear-gradient(to bottom, #000 50%, transparent);
}

/* Still image when JavaScript or <canvas> is unavailable. */
html:not(.cc-js) .cc-field,
html.cc-field-fallback .cc-field {
	background: url(../images/cube-field-static.jpg) no-repeat center top / cover;
}

html.cc-field-fallback .cc-field canvas {
	display: none;
}

/* -------------------------------------------------------------------------- */
/* 4. Header and menu                                                           */
/* -------------------------------------------------------------------------- */

/* The header floats over the top of the page: logo in the top-left corner,
   the menu as a short list directly beneath it, account and cart top right.
   Once the page is scrolled it folds into a slim bar and the list moves
   behind a diamond menu button. Without JavaScript it simply scrolls away. */
.wp-site-blocks > header.wp-block-template-part {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 50;
	/* Clicks pass through the empty parts to the game panels underneath. */
	pointer-events: none;
	transition: transform var(--cc-dur-3) var(--cc-ease);
}

.cc-js .wp-site-blocks > header.wp-block-template-part {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
}

/* The frosted backing lives on a pseudo-element so the header itself never
   becomes a containing block for the cart drawer or the menu overlay. */
.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-bottom: 1px solid var(--cc-line);
	background: color-mix(in srgb, var(--cc-bg) 84%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	backdrop-filter: blur(16px) saturate(1.2);
	opacity: 0;
	transition: opacity var(--cc-dur-2) ease;
}

.cc-is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	opacity: 1;
}

.cc-header-hidden .wp-site-blocks > header.wp-block-template-part {
	transform: translateY(-102%);
}

@media (max-width: 600px) {
	.cc-js .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.cc-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem var(--cc-gutter) 0.75rem;
	transition: padding var(--cc-dur-2) var(--cc-ease);
}

/* Larger screens: the logo and menu sit as far from the left edge as the
   logo's letters sit from the top (and the cart as far from the right). */
@media (min-width: 48rem) {
	.cc-header {
		padding-inline: 2rem;
	}
}

.cc-header__brand,
.cc-header__tools {
	pointer-events: auto;
}

.cc-header__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.cc-header__brand > *,
.cc-header > * {
	margin-block: 0;
}

.cc-header__logo img {
	display: block;
	width: auto;
	max-height: 3.25rem;
}

/* Text wordmark: the placeholder logo until one is uploaded. */
.cc-wordmark a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

.wp-custom-logo .cc-header .cc-wordmark {
	display: none;
}

/* Menu list ----------------------------------------------------------------- */

/* A short accent rule between the logo and the list, and a quiet one after. */
.cc-nav .wp-block-navigation__responsive-container:not(.is-menu-open)::before,
.cc-nav .wp-block-navigation__responsive-container:not(.is-menu-open)::after {
	content: "";
	display: block;
	width: 6rem;
	height: 1rem;
	background: var(--cc-cyan);
	-webkit-mask: var(--cc-ornament) center / contain no-repeat;
	mask: var(--cc-ornament) center / contain no-repeat;
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cc-cyan) 60%, transparent));
	width: 4.5rem;
	margin: 0.5rem 0 0.9rem;
}

.cc-nav .wp-block-navigation__responsive-container:not(.is-menu-open)::after {
	margin: 0.9rem 0 0;
	background: var(--cc-line-strong);
	filter: none;
}

.cc-nav.wp-block-navigation .wp-block-navigation__container {
	gap: 0;
}

.cc-nav.wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 2.125rem;
	padding: 0;
	color: var(--cc-text);
	-webkit-text-stroke: var(--cc-display-medium) currentColor;
	transition: color var(--cc-dur-1) ease;
}

@media (pointer: coarse) {
	.cc-nav.wp-block-navigation .wp-block-navigation-item__content {
		min-height: 2.5rem;
	}
}

.cc-nav.wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0.3rem;
	left: 0;
	height: 1px;
	background: var(--cc-cyan);
	box-shadow: 0 0 10px var(--cc-cyan);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--cc-dur-2) var(--cc-ease);
}

.cc-nav.wp-block-navigation .wp-block-navigation-item__content:hover,
.cc-nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	color: var(--cc-cyan);
}

.cc-nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible::after,
.cc-nav.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.cc-nav.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"]::after {
	transform: scaleX(1);
}

/* "Shop": the highlighted item. Add the class is-highlighted to any menu
   link (Advanced → Additional CSS class) to give it this treatment. */
.cc-nav.wp-block-navigation .is-highlighted > .wp-block-navigation-item__content {
	color: var(--cc-orange);
}

/* A triangle after the label. It nudges along on hover and goes back when the pointer leaves. */
.cc-nav.wp-block-navigation .is-highlighted > .wp-block-navigation-item__content::before {
	content: "";
	order: 2;
	flex: none;
	width: 0.5rem;
	height: 0.6rem;
	margin-left: 0.7rem;
	background: var(--cc-orange);
	clip-path: var(--cc-tri-right);
	transition: transform var(--cc-dur-2) var(--cc-ease);
}

.cc-nav.wp-block-navigation .is-highlighted > .wp-block-navigation-item__content:hover::before {
	transform: translateX(0.3rem);
}

.cc-nav.wp-block-navigation .is-highlighted > .wp-block-navigation-item__content::after {
	background: var(--cc-orange);
	box-shadow: 0 0 10px var(--cc-orange);
}

.cc-nav.wp-block-navigation .is-highlighted > .wp-block-navigation-item__content:hover,
.cc-nav.wp-block-navigation .is-highlighted > .wp-block-navigation-item__content:focus-visible {
	color: var(--cc-orange);
}

/* The close button belongs to the opened menu only. */
.cc-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
	display: none;
}

/* Top of the page: the list is on show at every screen size, no menu button. */
html:not(.cc-is-scrolled) .cc-nav .wp-block-navigation__responsive-container-open {
	display: none;
}

html:not(.cc-is-scrolled) .cc-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
	position: relative;
	z-index: auto;
	display: block;
	width: 100%;
	background: none;
}

/* Every page but the landing page keeps the slim bar from the start: the menu sits behind the diamond button top right. */
html:not(.cc-is-scrolled) body:not(.home) .cc-nav .wp-block-navigation__responsive-container-open {
	display: flex;
}

html:not(.cc-is-scrolled) body:not(.home) .cc-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
	display: none;
}

/* The menu button sits top right, after the cart, as in the scrolled bar. */
html:not(.cc-is-scrolled) body:not(.home) .cc-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: start;
	gap: 0.25rem;
}

html:not(.cc-is-scrolled) body:not(.home) .cc-header__brand {
	display: contents;
}

/* The cube line stays under the name, centred with it. */
html:not(.cc-is-scrolled) body:not(.home) .cc-header__brand > :is(.cc-wordmark, .cc-header__logo) {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-self: start;
	width: max-content;
}

html:not(.cc-is-scrolled) body:not(.home) .cc-header__brand > :is(.cc-wordmark, .cc-header__logo)::after {
	content: "";
	display: block;
	width: 4.5rem;
	height: 1rem;
	margin: 0.25rem auto 0;
	background: var(--cc-cyan);
	-webkit-mask: var(--cc-ornament) center / contain no-repeat;
	mask: var(--cc-ornament) center / contain no-repeat;
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cc-cyan) 60%, transparent));
}

body.wp-custom-logo .cc-header .cc-wordmark {
	display: none !important;
}

html:not(.cc-is-scrolled) body:not(.home) .cc-header__tools {
	order: 2;
}

html:not(.cc-is-scrolled) body:not(.home) .cc-header .cc-nav {
	order: 3;
}

/* Scrolled: a slim bar — logo, account, cart and a diamond menu button. */
html.cc-is-scrolled .cc-nav .wp-block-navigation__responsive-container-open {
	display: flex;
}

html.cc-is-scrolled .cc-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
	display: none;
}

.cc-is-scrolled .cc-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0.25rem;
	padding-block: 0.6rem;
}

.cc-is-scrolled .cc-header__brand {
	display: contents;
}

.cc-is-scrolled .cc-header__tools {
	order: 2;
}

.cc-is-scrolled .cc-header .cc-nav {
	order: 3;
}

/* Diamond open / close buttons for the menu. */
.cc-nav .wp-block-navigation__responsive-container-open,
.cc-nav .wp-block-navigation__responsive-container-close {
	position: relative;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	color: var(--cc-text);
}

.cc-nav .wp-block-navigation__responsive-container-open::before,
.cc-nav .wp-block-navigation__responsive-container-close::before {
	content: "";
	position: absolute;
	inset: 0.5rem;
	border: 1.5px solid var(--cc-cyan);
	background: color-mix(in srgb, var(--cc-bg) 70%, transparent);
	box-shadow: 0 0 18px -6px var(--cc-cyan);
	transform: rotate(45deg);
	transition: background-color var(--cc-dur-1) ease;
}

.cc-nav .wp-block-navigation__responsive-container-open svg,
.cc-nav .wp-block-navigation__responsive-container-close svg {
	position: relative;
	width: 1.125rem;
	height: 1.125rem;
}

.cc-nav .wp-block-navigation__responsive-container-open:hover::before,
.cc-nav .wp-block-navigation__responsive-container-close:hover::before {
	background: color-mix(in srgb, var(--cc-cyan) 22%, var(--cc-bg));
}

/* Full-screen menu, opened from the diamond button. */
.cc-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem var(--cc-gutter) 2rem;
	background-color: var(--cc-bg);
	background-image:
		radial-gradient(60% 40% at 100% 0%, color-mix(in srgb, var(--cc-cyan) 14%, transparent), transparent),
		radial-gradient(50% 35% at 0% 100%, color-mix(in srgb, var(--cc-orange) 12%, transparent), transparent);
}

.cc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 5rem;
	align-items: flex-start;
}

.cc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.25rem;
	align-items: flex-start;
}

.cc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	min-height: 3.75rem;
	font-size: clamp(2rem, 5vw, 3rem);
	letter-spacing: 0.16em;
}

.cc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	bottom: 0.6rem;
}

.cc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: -0.25rem;
	right: 0;
	left: auto;
	display: flex;
}

/* Account and cart ---------------------------------------------------------- */

.cc-header__tools {
	gap: 0.25rem;
}

.cc-header__tools .wc-block-mini-cart__button,
.cc-header__tools .wp-block-woocommerce-customer-account a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.5rem;
	color: var(--cc-text);
	font-family: var(--cc-font-ui);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-decoration: none;
	transition: color var(--cc-dur-1) ease;
}

.cc-header__tools .wc-block-mini-cart__button:hover,
.cc-header__tools .wp-block-woocommerce-customer-account a:hover {
	color: var(--cc-cyan);
	opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* 5. Buttons                                                                   */
/* -------------------------------------------------------------------------- */

/* Standard button: a rectangle with one corner cut away. Used for every
   functional action (add to cart, checkout, forms) so targets stay large. */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.75rem), calc(100% - 0.75rem) 100%, 0 100%);
	cursor: pointer;
	transition: background-color var(--cc-dur-1) ease, color var(--cc-dur-1) ease;
}

/* The cut corner clips an outer outline, so focus is drawn inside the shape. */
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--cc-bg);
	outline-offset: -6px;
}

/* Outline: a hairline frame with a small triangle in place of an arrow. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	border: 0;
	background: color-mix(in srgb, var(--cc-bg) 60%, transparent);
	color: var(--cc-orange);
	box-shadow: inset 0 0 0 1px var(--cc-orange);
	clip-path: none;
}

.wp-block-button.is-style-outline > .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 0.5rem;
	height: 0.6rem;
	background: currentColor;
	clip-path: var(--cc-tri-right);
	transition: transform var(--cc-dur-2) var(--cc-ease);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--cc-orange);
	color: var(--cc-bg);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover::after,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible::after {
	transform: translateX(0.25rem);
}

.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	outline: 2px solid var(--cc-orange);
	outline-offset: 3px;
}

/* Triangle call to action: right angle in the top-left corner ---------------- */

.wp-block-button.is-style-triangle {
	--cc-tri-size: clamp(10.35rem, 15.3vw, 12.6rem);
	position: relative;
	width: var(--cc-tri-size);
	height: var(--cc-tri-size);
	filter: drop-shadow(0 0 18px color-mix(in srgb, var(--cc-cyan) 42%, transparent));
	transition: filter var(--cc-dur-2) ease;
}

.wp-block-button.is-style-triangle::before,
.wp-block-button.is-style-triangle::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Edge. */
.wp-block-button.is-style-triangle::before {
	background: linear-gradient(135deg, var(--cc-cyan) 30%, color-mix(in srgb, var(--cc-cyan) 55%, var(--cc-orange)));
	clip-path: var(--cc-tri-corner);
}

/* Glass fill, inset by the edge width (the long side needs 1 + √2 times it). */
.wp-block-button.is-style-triangle::after {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--cc-cyan) 16%, transparent), transparent 62%),
		var(--cc-bg);
	clip-path: polygon(2px 2px, calc(100% - 4.83px) 2px, 2px calc(100% - 4.83px));
	transition: opacity var(--cc-dur-2) ease;
}

.wp-block-button.is-style-triangle .wp-block-button__link {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	align-content: start;
	/* The label keeps the width it had before the triangle was made 10%
	   smaller, so it wraps the same way. */
	padding: 1.6rem 33.3% 0 1.5rem;
	background: none;
	color: var(--cc-text);
	font-size: 0.9375rem;
	line-height: 1.35;
	text-align: left;
	clip-path: var(--cc-tri-corner);
}

/* The small triangle that stands in for an arrow. */
.wp-block-button.is-style-triangle .wp-block-button__link::after {
	content: "";
	display: block;
	width: 0.7rem;
	height: 0.8rem;
	margin-top: 0.9rem;
	background: var(--cc-cyan);
	clip-path: var(--cc-tri-right);
	transition: transform var(--cc-dur-2) var(--cc-ease), background-color var(--cc-dur-1) ease;
}

.wp-block-button.is-style-triangle:hover,
.wp-block-button.is-style-triangle:focus-within {
	filter: drop-shadow(0 0 26px color-mix(in srgb, var(--cc-cyan) 70%, transparent));
}

.wp-block-button.is-style-triangle:hover::after,
.wp-block-button.is-style-triangle:focus-within::after {
	opacity: 0;
}

.wp-block-button.is-style-triangle .wp-block-button__link:hover,
.wp-block-button.is-style-triangle .wp-block-button__link:focus-visible {
	background: none;
	color: var(--cc-bg);
}

.wp-block-button.is-style-triangle .wp-block-button__link:hover::after,
.wp-block-button.is-style-triangle .wp-block-button__link:focus-visible::after {
	background: var(--cc-bg);
	transform: translateX(0.4rem);
}

/* The link is clipped to the triangle, so the focus ring goes on the wrapper. */
.wp-block-button.is-style-triangle .wp-block-button__link:focus-visible {
	outline: none;
}

.wp-block-button.is-style-triangle:has(:focus-visible) {
	outline: 2px solid var(--cc-text);
	outline-offset: 6px;
}

/* Diamond: a square turned 45°, label kept upright ---------------------------- */

.wp-block-button.is-style-diamond .wp-block-button__link {
	position: relative;
	isolation: isolate;
	width: 8.5rem;
	height: 8.5rem;
	min-height: 0;
	padding: 0 2rem;
	background: none;
	color: var(--cc-text);
	font-size: 0.75rem;
	line-height: 1.3;
	text-align: center;
	clip-path: none;
}

.wp-block-button.is-style-diamond .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 14.645%;
	z-index: -1;
	border: 1.5px solid var(--cc-cyan);
	background: color-mix(in srgb, var(--cc-cyan) 9%, var(--cc-bg));
	box-shadow: 0 0 26px -8px var(--cc-cyan);
	transform: rotate(45deg);
	transition: background-color var(--cc-dur-2) ease, box-shadow var(--cc-dur-2) ease;
}

.wp-block-button.is-style-diamond .wp-block-button__link:hover,
.wp-block-button.is-style-diamond .wp-block-button__link:focus-visible {
	background: none;
	color: var(--cc-bg);
}

.wp-block-button.is-style-diamond .wp-block-button__link:hover::before,
.wp-block-button.is-style-diamond .wp-block-button__link:focus-visible::before {
	background: var(--cc-cyan);
	box-shadow: 0 0 34px -4px var(--cc-cyan);
}

.wp-block-button.is-style-diamond .wp-block-button__link:focus-visible {
	outline: 2px solid var(--cc-text);
	outline-offset: 2px;
}

/* Diamond + label: a diamond holding a triangle, with the text beside it ------ */

.wp-block-button.is-style-diamond-link .wp-block-button__link,
.cc-link-diamond {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0.5rem 0 0.5rem 3.6rem;
	background: none;
	color: var(--cc-text);
	font-family: var(--cc-font-ui);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	text-transform: uppercase;
	clip-path: none;
	transition: color var(--cc-dur-1) ease;
}

.wp-block-button.is-style-diamond-link .wp-block-button__link::before,
.cc-link-diamond::before {
	content: "";
	position: absolute;
	/* The border counts inside the size, so the diamond's centre is exactly
	   at mid-height, level with the tip of the triangle inside it. */
	box-sizing: border-box;
	top: 50%;
	left: 0.55rem;
	width: 1.9rem;
	height: 1.9rem;
	margin-top: -0.95rem;
	border: 1.5px solid var(--cc-cyan);
	box-shadow: 0 0 18px -6px var(--cc-cyan);
	transform: rotate(45deg);
	transition: background-color var(--cc-dur-2) ease, box-shadow var(--cc-dur-2) ease;
}

.wp-block-button.is-style-diamond-link .wp-block-button__link::after,
.cc-link-diamond::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 1.32rem;
	width: 0.5rem;
	height: 0.6rem;
	margin-top: -0.3rem;
	background: var(--cc-cyan);
	clip-path: var(--cc-tri-right);
	transition: background-color var(--cc-dur-2) ease, transform var(--cc-dur-2) var(--cc-ease);
}

.wp-block-button.is-style-diamond-link .wp-block-button__link:hover,
.wp-block-button.is-style-diamond-link .wp-block-button__link:focus-visible,
.cc-link-diamond:hover,
.cc-link-diamond:focus-visible {
	background: none;
	color: var(--cc-cyan);
}

.wp-block-button.is-style-diamond-link .wp-block-button__link:hover::before,
.wp-block-button.is-style-diamond-link .wp-block-button__link:focus-visible::before,
.cc-link-diamond:hover::before,
.cc-link-diamond:focus-visible::before {
	background: var(--cc-cyan);
	box-shadow: 0 0 26px -4px var(--cc-cyan);
}

.wp-block-button.is-style-diamond-link .wp-block-button__link:hover::after,
.wp-block-button.is-style-diamond-link .wp-block-button__link:focus-visible::after,
.cc-link-diamond:hover::after,
.cc-link-diamond:focus-visible::after {
	background: var(--cc-bg);
	transform: translateX(1px);
}

.wp-block-button.is-style-diamond-link .wp-block-button__link:focus-visible,
.cc-link-diamond:focus-visible {
	outline: 2px solid var(--cc-cyan);
	outline-offset: 4px;
}

/* Diamond icon button (dialog close and similar). */
.cc-diamond-button {
	position: relative;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cc-text);
	cursor: pointer;
}

.cc-diamond-button::before {
	content: "";
	position: absolute;
	inset: 0.5rem;
	border: 1.5px solid var(--cc-cyan);
	background: color-mix(in srgb, var(--cc-bg) 82%, transparent);
	transform: rotate(45deg);
	transition: background-color var(--cc-dur-1) ease;
}

/* A cross drawn from two strokes. */
.cc-diamond-button::after {
	content: "";
	position: relative;
	width: 0.95rem;
	height: 0.95rem;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
	transform: rotate(45deg);
}

.cc-diamond-button:hover::before,
.cc-diamond-button:focus-visible::before {
	background: var(--cc-cyan);
}

.cc-diamond-button:hover,
.cc-diamond-button:focus-visible {
	color: var(--cc-bg);
}

/* -------------------------------------------------------------------------- */
/* 6. Sections and panels                                                       */
/* -------------------------------------------------------------------------- */

.cc-section {
	padding-block: var(--wp--preset--spacing--70);
}

/* Phones: less empty space between the homepage sections. */
@media (max-width: 47.99rem) {
	.cc-section {
		padding-block: 3rem;
	}
}

/* The homepage is built around a central channel that the cube column runs
   through; content sits to one side of it or the other.

   .cc-side   a group kept to the left of the channel
              (add cc-side--right to place it on the right);
   .cc-split  a Columns block whose two columns sit either side of it. */
.cc-side {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--cc-channel) minmax(0, 1fr);
}

.cc-side > * {
	grid-column: 1;
	min-width: 0;
}

.cc-side.cc-side--right > * {
	grid-column: 3;
}

.cc-split.wp-block-columns {
	gap: var(--wp--preset--spacing--50) var(--cc-channel);
	margin-bottom: 0;
}

.cc-section__head {
	gap: 1.5rem 2rem;
	margin-bottom: var(--wp--preset--spacing--50);
}

.cc-section__head > * {
	margin: 0;
}

/* The shop heading is centred, so its rule is centred too. */
.cc-featured h2.wp-block-heading::before {
	margin-inline: auto;
}

/* A short rule above each homepage heading. */
.cc-home :is(h1, h2).wp-block-heading:not(.is-style-label)::before,
.cc-shop .wp-block-query-title::before {
	content: "";
	display: block;
	width: 6rem;
	height: 1rem;
	background: var(--cc-cyan);
	-webkit-mask: var(--cc-ornament) center / contain no-repeat;
	mask: var(--cc-ornament) center / contain no-repeat;
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cc-cyan) 60%, transparent));
	margin-bottom: 1.25rem;
}

@media (max-width: 781.98px) {
	.cc-side {
		position: relative;
		display: block;
		isolation: isolate;
	}

	/* On small screens the cube column runs behind the copy: a soft scrim
	   keeps the words in front. */
	.cc-side::before {
		content: "";
		position: absolute;
		inset: -2.5rem calc(-1 * min(2rem, var(--cc-gutter)));
		z-index: -1;
		background: radial-gradient(closest-side, var(--cc-scrim), transparent);
		pointer-events: none;
	}
}

/* Small label heading: keeps the heading structure, drops the visual weight. */
.wp-block-heading.is-style-label {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	color: var(--cc-muted);
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	line-height: 1.4;
	-webkit-text-stroke: 0;
}

.wp-block-heading.is-style-label::before {
	content: "";
	flex: none;
	width: 0.45rem;
	height: 0.45rem;
	border: 1px solid var(--cc-cyan);
	transform: rotate(45deg);
}

/* Glass panel: gives copy a calm surface when cubes pass behind it. */
.wp-block-group.is-style-panel {
	position: relative;
	padding: clamp(1.5rem, 3.2vw, 2.75rem);
	border: 1px solid var(--cc-line);
	background: var(--cc-panel);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.wp-block-group.is-style-panel::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--cc-cyan);
	clip-path: var(--cc-tri-corner);
}

.wp-block-group.is-style-panel > :first-child {
	margin-top: 0;
}

.wp-block-group.is-style-panel > :last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* 7. Hero                                                                      */
/* -------------------------------------------------------------------------- */

/* The diagonal game panels run edge to edge across the very top of the page,
   under the logo and menu. The cubes gather beneath them, then the message. */
.cc-hero__games {
	margin: 0;
}

/* The message follows the panels closely, with just enough room for the
   cubes to spill out between them. */
.cc-hero__intro {
	padding-top: clamp(2.5rem, 6vw, 5.5rem);
	padding-bottom: var(--wp--preset--spacing--50);
}

.cc-hero__intro h1 {
	margin: 0 0 1.5rem;
}

.cc-hero__intro .cc-lede {
	max-width: 30rem;
	margin: 0 0 2.5rem;
	color: var(--cc-muted);
}

/* -------------------------------------------------------------------------- */
/* 8. Story gallery                                                             */
/* -------------------------------------------------------------------------- */

.cc-story .cc-side > p {
	max-width: 32rem;
}

/* "Cascade": the story photos as glass cubes ---------------------------------

   Each photo is the front face of a cube as deep as it is wide, in the same
   material as the cubes in the background: dark glass faces with hairline
   edges and faint hidden edges. The cubes step down the page in one even
   rhythm, alternating right and left, each starting about three-quarters of
   the way down the one before. Each sits in its own half of the page and turns
   the side nearest the centre towards you, so the middle stays clear for the
   cube stream and no cube ever covers another's photo.

   The six kinds (repeating) differ in size, angle and how far they sit from
   the edge. At rest the photo is black and white; on hover or focus (on touch
   screens, while it is in the middle of the screen) the cube turns a little
   towards you, the photo takes its own colours and the caption appears.

   The faces are added by the theme (cubecascade_cascade_gallery_cubes). */
.wp-block-gallery.has-nested-images.is-style-cascade {
	/* As wide as the text: the outer cubes line up with its edges. */
	--cc-gallery-w: min(100vw - 2 * var(--cc-gutter), 84rem);
	--cc-col: calc((var(--cc-gallery-w) - var(--cc-channel)) / 2);
	/* One even step from the centre of one cube to the centre of the next. */
	--cc-step: calc(var(--cc-col) * 0.5);
	--cc-w1: min(calc(var(--cc-col) * 0.6), 30rem);
	--cc-w2: min(calc(var(--cc-col) * 0.52), 30rem);
	--cc-w3: min(calc(var(--cc-col) * 0.5), 30rem);
	--cc-w4: min(calc(var(--cc-col) * 0.62), 30rem);
	--cc-w5: min(calc(var(--cc-col) * 0.56), 30rem);
	--cc-w6: min(calc(var(--cc-col) * 0.54), 30rem);
	--cc-cube-edge: rgb(255 255 255 / 0.42);
	--cc-cube-edge-lit: rgb(255 255 255 / 0.62);
	--cc-cube-hidden: rgb(255 255 255 / 0.04);
	position: relative;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 0;
	box-sizing: border-box;
	width: var(--cc-gallery-w);
	max-width: none;
	/* Only the photos take clicks: the gallery overlaps the text's box. */
	pointer-events: none;
}

.cc-story .wp-block-gallery.has-nested-images.is-style-cascade {
	/* The first right-hand cube rises beside the text; the first left-hand
	   one starts below it, top face included, however long the text is. */
	margin-top: calc(1.5rem + var(--cc-w2) - var(--cc-step) - var(--cc-w1) / 2);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image) {
	--cc-cube-dir: 1;
	--cc-cube-accent: var(--cc-cyan);
	--cc-cube-ry: calc(var(--cc-cube-yaw) * var(--cc-cube-dir));
	/* The viewpoint: a little above the cube, five widths away, so every top
	   face shows. (Moved down, seen in perspective, moved back up.) */
	--cc-cube-cam: translateY(calc(var(--cc-cube-w) * -0.4)) perspective(calc(var(--cc-cube-w) * 5)) translateY(calc(var(--cc-cube-w) * 0.4));
	position: relative;
	flex: none;
	box-sizing: border-box;
	/* An exact square, whatever the photo's own shape. */
	width: var(--cc-cube-w);
	height: var(--cc-cube-w);
	min-height: 0;
	aspect-ratio: auto;
	/* The centres of the cubes are one even step apart. */
	margin: calc(var(--cc-step) - var(--cc-cube-w) / 2 - var(--cc-cube-prev) / 2) var(--cc-cube-inset) 0;
	border: 0;
	background: var(--cc-bg);
	box-shadow: inset 0 0 0 1px var(--cc-cube-edge);
	overflow: visible;
	pointer-events: auto;
	transform-style: preserve-3d;
	transform: var(--cc-cube-cam) rotateX(var(--cc-cube-rx)) rotateY(var(--cc-cube-ry)) rotateZ(var(--cc-cube-rz));
	transition: box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):first-child {
	margin-top: 0;
}

/* Right-hand cubes (odd) sit in the right half and show their left side;
   left-hand cubes (even) the reverse. */
.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(odd) {
	align-self: flex-end;
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(even) {
	--cc-cube-dir: -1;
	--cc-cube-accent: var(--cc-orange);
	align-self: flex-start;
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 1) {
	--cc-cube-w: var(--cc-w1);
	--cc-cube-prev: var(--cc-w6);
	--cc-cube-rx: -12deg;
	--cc-cube-yaw: 28deg;
	--cc-cube-rz: 1.5deg;
	--cc-cube-inset: calc(var(--cc-col) * 0.0);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 2) {
	--cc-cube-w: var(--cc-w2);
	--cc-cube-prev: var(--cc-w1);
	--cc-cube-rx: -18deg;
	--cc-cube-yaw: 18deg;
	--cc-cube-rz: -2.0deg;
	--cc-cube-inset: calc(var(--cc-col) * 0.06);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 3) {
	--cc-cube-w: var(--cc-w3);
	--cc-cube-prev: var(--cc-w2);
	--cc-cube-rx: -12deg;
	--cc-cube-yaw: 36deg;
	--cc-cube-rz: 0.0deg;
	--cc-cube-inset: calc(var(--cc-col) * 0.12);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 4) {
	--cc-cube-w: var(--cc-w4);
	--cc-cube-prev: var(--cc-w3);
	--cc-cube-rx: -22deg;
	--cc-cube-yaw: 24deg;
	--cc-cube-rz: 2.5deg;
	--cc-cube-inset: calc(var(--cc-col) * 0.02);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 5) {
	--cc-cube-w: var(--cc-w5);
	--cc-cube-prev: var(--cc-w4);
	--cc-cube-rx: -14deg;
	--cc-cube-yaw: 16deg;
	--cc-cube-rz: 0.0deg;
	--cc-cube-inset: calc(var(--cc-col) * 0.1);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 6) {
	--cc-cube-w: var(--cc-w6);
	--cc-cube-prev: var(--cc-w5);
	--cc-cube-rx: -15deg;
	--cc-cube-yaw: 30deg;
	--cc-cube-rz: -1.0deg;
	--cc-cube-inset: calc(var(--cc-col) * 0.05);
}

/* The figure's own corner nodes and caption backdrop are not used. */
.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image)::before,
.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image)::after {
	content: none;
	display: none;
}

/* Faces ---------------------------------------------------------------------- */

.wp-block-gallery.has-nested-images.is-style-cascade .cc-cube__top,
.wp-block-gallery.has-nested-images.is-style-cascade .cc-cube__side,
.wp-block-gallery.has-nested-images.is-style-cascade .cc-cube__bottom,
.wp-block-gallery.has-nested-images.is-style-cascade .cc-cube__back {
	position: absolute;
	box-sizing: border-box;
	/* No outline here: Chrome stops drawing a 3D face that has one once the
	   cube is partly above the top of the window. */
	pointer-events: none;
}

/* Top: dark glass, lit from above, brightest along the front edge. */
.wp-block-gallery.has-nested-images.is-style-cascade .cc-cube__top {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 1.5px solid var(--cc-cube-edge);
	border-top-color: var(--cc-cube-edge-lit);
	background:
		linear-gradient(180deg, rgb(255 255 255 / 0.31), rgb(255 255 255 / 0.11)),
		rgb(28 32 36 / 0.5);
	transform: rotateX(-90deg);
	transform-origin: 50% 0;
}

/* Inner side: darker glass. */
.wp-block-gallery.has-nested-images.is-style-cascade .cc-cube__side {
	top: 0;
	width: 100%;
	height: 100%;
	border: 1.5px solid var(--cc-cube-edge);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(odd) .cc-cube__side {
	left: 0;
	background:
		linear-gradient(90deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.04)),
		rgb(22 26 30 / 0.5);
	transform: rotateY(90deg);
	transform-origin: 0 50%;
}

/* The right-hand side face is hinged from just outside the photo (not from
   inside it, mirrored): Chrome stops drawing the mirrored version once the
   cube is partly above the top of the window. */
.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(even) .cc-cube__side {
	left: 100%;
	background:
		linear-gradient(90deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.04)),
		rgb(22 26 30 / 0.5);
	transform: rotateY(90deg);
	transform-origin: 0 50%;
}

/* Hidden edges, barely there through the glass. */
.wp-block-gallery.has-nested-images.is-style-cascade .cc-cube__bottom {
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 1px solid var(--cc-cube-hidden);
	transform: rotateX(90deg);
	transform-origin: 50% 100%;
}

.wp-block-gallery.has-nested-images.is-style-cascade .cc-cube__back {
	/* Kept for themes that style it; no line of its own, so no seams cross
	   the glass. */
	display: none;
	inset: 0;
	transform: translateZ(calc(-1 * var(--cc-cube-w)));
}

/* The edge nearest the centre carries a hint of the cube's accent. */
.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(odd) {
	box-shadow: inset 1px 0 0 color-mix(in srgb, var(--cc-cube-accent) 45%, var(--cc-cube-edge)), inset 0 0 0 1px var(--cc-cube-edge);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(even) {
	box-shadow: inset -1px 0 0 color-mix(in srgb, var(--cc-cube-accent) 45%, var(--cc-cube-edge)), inset 0 0 0 1px var(--cc-cube-edge);
}

/* The photo: black and white at rest. */
/* The photo is laid out at twice the face size and scaled back down. Chrome
   draws a layer seen through a perspective at its own size, so a face-sized
   photo came out soft and pixelated on sharp screens; at twice the size it
   is drawn with enough detail. */
.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image img {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: block;
	width: 200% !important;
	max-width: none !important;
	height: 200% !important;
	max-height: none !important;
	border: 0;
	transform: scale(0.5);
	transform-origin: 0 0;
	object-fit: cover;
	filter: grayscale(1) contrast(1.12) brightness(0.92);
	transition: filter 0.5s ease;
}

/* Hover, focus, or the middle of a touch screen ----------------------------- */

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(n):is(:hover, :focus-within, .is-active) {
	--cc-cube-edge: color-mix(in srgb, var(--cc-cube-accent) 70%, transparent);
	--cc-cube-edge-lit: var(--cc-cube-accent);
	box-shadow: inset 0 0 0 1px var(--cc-cube-accent), 0 0 3rem -1rem var(--cc-cube-accent);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:is(:hover, :focus-within, .is-active) img {
	filter: none;
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image) {
		transition: box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	/* A slight turn towards you: 5° less yaw, 3° less pitch, a little nearer. */
	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(n):is(:hover, :focus-within, .is-active) {
		transform: var(--cc-cube-cam) translateZ(10px) rotateX(calc(var(--cc-cube-rx) + 3deg)) rotateY(calc(var(--cc-cube-ry) - var(--cc-cube-dir) * 5deg)) rotateZ(var(--cc-cube-rz));
	}

	/* Before it scrolls into view the cube is turned further and a little
	   higher, and settles into place as it arrives (see theme.js). */
	.cc-js .wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image).cc-cube-wait {
		transform: var(--cc-cube-cam) translateY(-1.5rem) rotateX(calc(var(--cc-cube-rx) - 10deg)) rotateY(calc(var(--cc-cube-ry) + var(--cc-cube-dir) * 14deg)) rotateZ(var(--cc-cube-rz));
		transition: none;
	}

	.cc-js .wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image).cc-cube-settle {
		transition: box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
	}
}

/* Caption: on hover or focus, in the display face, over a soft shade. */
.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.6rem;
	height: 38%;
	max-height: none;
	margin: 0;
	padding: 0 12% 0.95rem 1rem;
	background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.72));
	color: var(--cc-text);
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-align: left;
	text-shadow: none;
	text-transform: uppercase;
	text-wrap: balance;
	overflow: visible;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* A short accent rule above the words. */
.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image figcaption::before {
	content: "";
	display: block;
	width: 24px;
	height: 1px;
	background: var(--cc-cube-accent);
}

.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:is(:hover, :focus-within, .is-active) figcaption {
	opacity: 1;
	transform: none;
	transition-delay: 80ms;
}

/* Our story: rows of text and photo cube -------------------------------------

   Text and cube side by side; the middle row swaps them. On phones each row
   is the text, then its cube. */
.cc-story__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
	margin-top: clamp(2.5rem, 6vw, 5rem);
}

.cc-story__text > p {
	max-width: 32rem;
}

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

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

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

	.cc-story__row > .cc-story__text {
		order: -1;
	}
}

/* "Turning cube" gallery: one glass cube that shows one photo at a time and
   turns to the next when clicked. The theme script builds the cube; without
   it, the first photo shows on its own. */
.wp-block-gallery.has-nested-images.is-style-turn {
	--cc-turn-s: clamp(12rem, 22vw, 20rem);
	--cc-turn-dir: 1;
	--cc-turn-accent: var(--cc-cyan);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin: 0;
}

.cc-story__row > .wp-block-gallery.is-style-turn:first-child {
	--cc-turn-dir: -1;
	--cc-turn-accent: var(--cc-orange);
}

.wp-block-gallery.has-nested-images.is-style-turn:not(.is-ready) figure.wp-block-image:not(:first-child) {
	display: none;
}

.wp-block-gallery.has-nested-images.is-style-turn:not(.is-ready) figure.wp-block-image:first-child {
	width: var(--cc-turn-s);
	height: var(--cc-turn-s);
	flex: none;
}

.wp-block-gallery.has-nested-images.is-style-turn figure.wp-block-image:not(#individual-image) {
	width: 100%;
	height: 100%;
	margin: 0;
}

.wp-block-gallery.has-nested-images.is-style-turn figure.wp-block-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.wp-block-gallery.has-nested-images.is-style-turn figure.wp-block-image figcaption {
	display: none;
}

.cc-turn {
	position: relative;
	display: block;
	width: var(--cc-turn-s);
	height: var(--cc-turn-s);
	margin: calc(var(--cc-turn-s) * 0.14) 0 calc(var(--cc-turn-s) * 0.3);
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	perspective: calc(var(--cc-turn-s) * 7);
	-webkit-tap-highlight-color: transparent;
}

.cc-turn:focus-visible {
	outline: none;
}

.cc-turn__cube {
	position: absolute;
	inset: 0;
	display: block;
	transform-style: preserve-3d;
	transform: rotateX(-14deg) rotateY(calc(var(--cc-turn-dir) * 22deg));
}

.cc-turn__cube {
	will-change: transform;
}

/* Three ways of turning, taken in turn down the page: the next photo rolls
   in from above, from the side, then diagonally across the cube. */
.cc-turn--down.is-turning .cc-turn__cube {
	transform: rotateX(-104deg) rotateY(calc(var(--cc-turn-dir) * 22deg));
}

.cc-turn--right.is-turning .cc-turn__cube {
	transform: rotateX(-14deg) rotateY(calc(var(--cc-turn-dir) * 22deg + 90deg));
}

/* A half turn about the diagonal brings the back face round to the front. */
.cc-turn--diagonal.is-turning .cc-turn__cube {
	transform: rotateX(-14deg) rotateY(calc(var(--cc-turn-dir) * 22deg)) rotate3d(1, 1, 0, -180deg);
}

.cc-turn.is-turning .cc-turn__cube {
	transition: transform 0.8s cubic-bezier(0.55, 0, 0.25, 1);
}

.cc-turn--diagonal.is-turning .cc-turn__cube {
	transition-duration: 1.05s;
}

.cc-turn__face img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-user-select: none;
	user-select: none;
}

/* The next photo waits unseen on its side until the turn starts. */
.cc-turn:not(.is-turning) .cc-turn__face:not(.cc-turn__face--front) img {
	opacity: 0;
}

/* The side about to turn to the front carries the next photo; the other
   sides stay glass. */
.cc-turn.is-turning .cc-turn__face.is-incoming {
	background: var(--cc-bg);
}

.cc-turn__face {
	position: absolute;
	inset: 0;
	display: block;
	box-sizing: border-box;
	border: 1.5px solid rgb(255 255 255 / 0.42);
	overflow: hidden;
	backface-visibility: hidden;
}

.cc-turn__face--front {
	background: var(--cc-bg);
	transform: translateZ(calc(var(--cc-turn-s) / 2));
}

.cc-turn__face--left {
	transform: rotateY(-90deg) translateZ(calc(var(--cc-turn-s) / 2));
}

.cc-turn__face--right {
	transform: rotateY(90deg) translateZ(calc(var(--cc-turn-s) / 2));
}

.cc-turn__face--left,
.cc-turn__face--right {
	background:
		linear-gradient(90deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.04)),
		rgb(22 26 30 / 0.6);
}

.cc-turn__face--back {
	background: var(--cc-bg);
	transform: rotate3d(1, 1, 0, 180deg) translateZ(calc(var(--cc-turn-s) / 2));
}

.cc-turn__face--top {
	border-top-color: rgb(255 255 255 / 0.62);
	background:
		linear-gradient(180deg, rgb(255 255 255 / 0.31), rgb(255 255 255 / 0.11)),
		rgb(28 32 36 / 0.5);
	transform: rotateX(90deg) translateZ(calc(var(--cc-turn-s) / 2));
}

/* The edge nearest the text carries the cube's accent. */
.cc-turn__face--front {
	box-shadow: inset calc(var(--cc-turn-dir) * 2px) 0 0 color-mix(in srgb, var(--cc-turn-accent) 55%, transparent);
}

/* Black and white at rest; the photo's own colours on hover or focus, and
   always on touch screens. */
.cc-turn img {
	filter: grayscale(1) contrast(1.12) brightness(0.92);
	transition: filter 0.5s ease;
}

.cc-turn:is(:hover, :focus-visible) img {
	filter: none;
}

@media (hover: none) {
	.cc-turn img {
		filter: none;
	}
}

.cc-turn:is(:hover, :focus-visible) .cc-turn__face {
	border-color: color-mix(in srgb, var(--cc-turn-accent) 70%, transparent);
}

.cc-turn:is(:hover, :focus-visible) .cc-turn__face--front {
	box-shadow: 0 0 3rem -1rem var(--cc-turn-accent);
}

.cc-turn:focus-visible .cc-turn__face--front {
	outline: 2px solid var(--cc-turn-accent);
	outline-offset: 4px;
}

/* Split cubes: the face breaks into small cubes that turn one after another
   (built and moved by the theme script) and close up again as one cube. */
.cc-turn.is-splitting .cc-turn__face {
	visibility: hidden;
}

.cc-turn__shards {
	position: absolute;
	inset: 0;
	display: block;
	transform-style: preserve-3d;
	pointer-events: none;
}

.cc-turn__shards[hidden] {
	display: none;
}

.cc-shard {
	position: absolute;
	display: block;
	width: calc(var(--cc-turn-s) / var(--cc-grid));
	height: calc(var(--cc-turn-s) / var(--cc-grid));
	transform-style: preserve-3d;
	will-change: transform;
}

.cc-shard__face {
	position: absolute;
	inset: 0;
	display: block;
	box-sizing: border-box;
	border: 1px solid rgb(255 255 255 / 0.34);
	background:
		linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.03)),
		rgb(22 26 30 / 0.92);
	backface-visibility: hidden;
	transform: translateZ(calc(var(--cc-turn-s) / var(--cc-grid) / 2));
}

.cc-shard__face.has-photo {
	border-color: rgb(255 255 255 / 0.2);
	background-color: var(--cc-bg);
	background-repeat: no-repeat;
	background-size: calc(var(--cc-grid) * 100%) calc(var(--cc-grid) * 100%);
	filter: grayscale(1) contrast(1.12) brightness(0.92);
}

.cc-turn:is(:hover, :focus-visible) .cc-shard__face {
	filter: none;
}

@media (hover: none) {
	.cc-shard__face {
		filter: none !important;
	}
}

/* The back of each small cube carries its piece of the next photo (front
   layer), the right way round once the small cube has made its half turn. */
.cc-turn--down .cc-shard__face--back {
	transform: rotateX(180deg) translateZ(calc(var(--cc-turn-s) / var(--cc-grid) / 2));
}

.cc-turn--right .cc-shard__face--back {
	transform: rotateY(180deg) translateZ(calc(var(--cc-turn-s) / var(--cc-grid) / 2));
}

.cc-turn--diagonal .cc-shard__face--back {
	transform: rotate3d(1, 1, 0, 180deg) translateZ(calc(var(--cc-turn-s) / var(--cc-grid) / 2));
}

.cc-shard__face--left {
	transform: rotateY(-90deg) translateZ(calc(var(--cc-turn-s) / var(--cc-grid) / 2));
}

.cc-shard__face--right {
	transform: rotateY(90deg) translateZ(calc(var(--cc-turn-s) / var(--cc-grid) / 2));
}

.cc-shard__face--top {
	border-top-color: rgb(255 255 255 / 0.55);
	transform: rotateX(90deg) translateZ(calc(var(--cc-turn-s) / var(--cc-grid) / 2));
}

.cc-shard__face--bottom {
	transform: rotateX(-90deg) translateZ(calc(var(--cc-turn-s) / var(--cc-grid) / 2));
}

/* Under the cube: which photo this is, and a hint that it turns. */
.cc-turn-count {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--cc-muted);
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
}

.cc-turn-count__dot {
	width: 0.45rem;
	height: 0.45rem;
	border: 1px solid var(--cc-line-strong);
	transform: rotate(45deg);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cc-turn-count__dot.is-current {
	border-color: var(--cc-turn-accent);
	background: var(--cc-turn-accent);
}

.cc-turn-count__hint {
	margin-left: 0.4rem;
	text-transform: uppercase;
}

/* Reduced motion: the photo changes with a short fade instead of a turn. */
@media (prefers-reduced-motion: reduce) {
	.cc-turn.is-turning .cc-turn__cube {
		transform: rotateX(-14deg) rotateY(calc(var(--cc-turn-dir) * 22deg)) !important;
		transition: none;
	}

	.cc-turn__face--front img {
		animation: cc-fade-in 0.4s ease;
	}
}

@media (max-width: 781.98px) {
	.wp-block-gallery.has-nested-images.is-style-turn {
		--cc-turn-s: min(60vw, 18rem);
	}
}

/* Pictures in other content that open larger keep the theme's dark backdrop. */
.wp-lightbox-overlay .scrim {
	background-color: var(--cc-bg) !important;
}

.wp-lightbox-overlay .close-button {
	color: var(--cc-text);
}

/* Small screens: one column, the cubes stepping left and right with the side
   nearest the middle of the screen turned towards you. */
@media (max-width: 781.98px) {
	.wp-block-gallery.has-nested-images.is-style-cascade {
		--cc-gallery-w: calc(100vw - 2 * var(--cc-gutter));
		--cc-col: var(--cc-gallery-w);
	}

	.cc-story .wp-block-gallery.has-nested-images.is-style-cascade {
		margin-top: var(--wp--preset--spacing--50);
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 1) {
		--cc-cube-w: min(calc(var(--cc-col) * 0.64), 22rem);
		--cc-cube-yaw: 22deg;
		--cc-cube-inset: 0px;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 2) {
		--cc-cube-w: min(calc(var(--cc-col) * 0.56), 22rem);
		--cc-cube-yaw: 18deg;
		--cc-cube-inset: 0px;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 3) {
		--cc-cube-w: min(calc(var(--cc-col) * 0.6), 22rem);
		--cc-cube-yaw: 24deg;
		--cc-cube-inset: 0px;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 4) {
		--cc-cube-w: min(calc(var(--cc-col) * 0.68), 22rem);
		--cc-cube-yaw: 16deg;
		--cc-cube-inset: 0px;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 5) {
		--cc-cube-w: min(calc(var(--cc-col) * 0.58), 22rem);
		--cc-cube-yaw: 20deg;
		--cc-cube-inset: 0px;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(6n + 6) {
		--cc-cube-w: min(calc(var(--cc-col) * 0.62), 22rem);
		--cc-cube-yaw: 22deg;
		--cc-cube-inset: 0px;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(n) {
		margin: calc(var(--cc-cube-w) * 0.42 + 1.25rem) 0 0;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(odd) {
		--cc-cube-dir: -1;
		align-self: flex-start;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(even) {
		--cc-cube-dir: 1;
		align-self: flex-end;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(odd) .cc-cube__side {
		left: 100%;
		background:
			linear-gradient(90deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.04)),
			rgb(22 26 30 / 0.5);
		transform: rotateY(90deg);
		transform-origin: 0 50%;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(even) .cc-cube__side {
		left: 0;
		background:
			linear-gradient(90deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.04)),
			rgb(22 26 30 / 0.5);
		transform: rotateY(90deg);
		transform-origin: 0 50%;
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(odd) {
		box-shadow: inset -1px 0 0 color-mix(in srgb, var(--cc-cube-accent) 45%, var(--cc-cube-edge)), inset 0 0 0 1px var(--cc-cube-edge);
	}

	.wp-block-gallery.has-nested-images.is-style-cascade figure.wp-block-image:not(#individual-image):nth-child(even) {
		box-shadow: inset 1px 0 0 color-mix(in srgb, var(--cc-cube-accent) 45%, var(--cc-cube-edge)), inset 0 0 0 1px var(--cc-cube-edge);
	}
}

/* Any other image in content: same gentle edge treatment. */
.cc-main :where(.wp-block-image, .wp-block-post-featured-image) img {
	border: 1px solid var(--cc-line);
}

/* -------------------------------------------------------------------------- */
/* 9. Contact                                                                   */
/* -------------------------------------------------------------------------- */

.cc-details {
	margin-top: var(--wp--preset--spacing--50);
}

.cc-details > .wp-block-heading {
	margin: 2rem 0 0.5rem;
}

.cc-details > .wp-block-heading:first-child {
	margin-top: 0;
}

.cc-details > p {
	margin: 0;
}

.cc-details a {
	color: var(--cc-text);
	text-decoration-color: var(--cc-cyan);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.cc-details a:hover {
	color: var(--cc-cyan);
}

/* -------------------------------------------------------------------------- */
/* 10. Dialog and chips                                                         */
/* -------------------------------------------------------------------------- */

/* Stop the page scrolling behind an open pop-up. */
html:has(dialog.cc-dialog[open]) {
	overflow: hidden;
}

.cc-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.25rem 1.1rem;
	border: 1px solid var(--cc-line-strong);
	background: var(--cc-panel);
	color: var(--cc-text);
	font-family: var(--cc-font-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color var(--cc-dur-1) ease, color var(--cc-dur-1) ease, box-shadow var(--cc-dur-1) ease, background-color var(--cc-dur-1) ease;
}

.cc-chip:hover,
.cc-chip:focus-visible {
	border-color: var(--cc-cyan);
	color: var(--cc-cyan);
	box-shadow: 0 0 22px -8px var(--cc-cyan);
}

.cc-chip[aria-current="page"] {
	border-color: var(--cc-cyan);
	background: var(--cc-cyan);
	color: var(--cc-bg);
}

.cc-chip__count {
	color: inherit;
	font-size: 0.75rem;
	opacity: 0.75;
}

/* Game identity --------------------------------------------------------------

   Every game has an accent (cyan or orange) and a die face: a die turned 45°
   into the theme's diamond, showing one to six pips. The die and the game's
   name always appear together, so a game is never identified by colour alone.
   Set both per game under Products → Categories. */

.cc-accent--cyan {
	--cc-accent: var(--cc-cyan);
}

.cc-accent--orange {
	--cc-accent: var(--cc-orange);
}

.cc-die {
	display: inline-block;
	flex: none;
	width: 1em;
	height: 1em;
	overflow: visible;
	vertical-align: -0.15em;
	transition: transform var(--cc-dur-3) var(--cc-ease);
}

/* The die turns a quarter, like one being rolled, when its owner is hovered. */
:is(a, li.wc-block-product):hover .cc-die,
:is(a, li.wc-block-product):focus-visible .cc-die,
li.wc-block-product:focus-within .cc-die {
	transform: rotate(90deg);
}

.cc-game-tag {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	color: var(--cc-muted);
	font-family: var(--cc-font-ui);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
	-webkit-text-stroke: 0;
}

span.cc-game-tag {
	display: inline-flex;
}

.cc-game-tag .cc-die {
	width: 1.2rem;
	height: 1.2rem;
	margin-block: -0.1rem;
	color: var(--cc-accent, var(--cc-cyan));
}

/* Shop filter chips for games: the die in front, the game's accent on hover. */
.cc-chip--game {
	gap: 0.55rem;
	padding-left: 0.8rem;
}

.cc-chip--game .cc-die {
	width: 1.15rem;
	height: 1.15rem;
	color: var(--cc-accent);
}

.cc-chip--game:hover,
.cc-chip--game:focus-visible {
	border-color: var(--cc-accent);
	color: var(--cc-text);
	box-shadow: 0 0 22px -8px var(--cc-accent);
}

.cc-chip--game[aria-current="page"] {
	border-color: var(--cc-accent);
	background: var(--cc-accent);
	color: var(--cc-bg);
}

.cc-chip--game[aria-current="page"] .cc-die {
	color: var(--cc-bg);
}

/* A game's own shop page: its die in front of the title. */
.wp-block-query-title.cc-has-die {
	display: flex;
	align-items: center;
	gap: 0.45em;
}

.cc-die--title {
	width: 0.62em;
	height: 0.62em;
	color: var(--cc-accent);
	filter: drop-shadow(0 0 0.35rem color-mix(in srgb, var(--cc-accent) 60%, transparent));
}

/* -------------------------------------------------------------------------- */
/* 11. Footer                                                                   */
/* -------------------------------------------------------------------------- */

/* Centred, standing on the cubes that gather at the foot of the page. */
.wp-site-blocks > footer.wp-block-template-part {
	position: relative;
}

.cc-footer {
	position: relative;
	isolation: isolate;
	padding-top: clamp(9rem, 22vw, 18rem);
	padding-bottom: var(--wp--preset--spacing--50);
	text-align: center;
}

.cc-main:not(.cc-home) + footer .cc-footer {
	padding-top: var(--wp--preset--spacing--70);
	border-top: 1px solid var(--cc-line);
}

/* Keeps the words legible over the cubes behind them. */
.cc-footer::before {
	content: "";
	position: absolute;
	inset: 12% 0 0;
	z-index: -1;
	background: radial-gradient(34rem 62% at 50% 52%, color-mix(in srgb, var(--cc-bg) 88%, transparent), transparent 78%);
	pointer-events: none;
}

.cc-footer > * {
	margin-block: 0;
}

.cc-footer .wp-block-site-title {
	font-size: 2rem;
}

.cc-footer .wp-block-site-title::after {
	content: "";
	display: block;
	width: 6rem;
	height: 1rem;
	background: var(--cc-cyan);
	-webkit-mask: var(--cc-ornament) center / contain no-repeat;
	mask: var(--cc-ornament) center / contain no-repeat;
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cc-cyan) 60%, transparent));
	margin: 1.1rem auto 0;
}

.cc-footer .cc-footer__tagline {
	margin-top: 1.1rem;
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	letter-spacing: 0.28em;
	line-height: 1.7;
	text-transform: uppercase;
}

.cc-footer > .wp-block-buttons {
	margin-top: 2rem;
}

.cc-footer__nav.wp-block-navigation {
	margin-top: 1.5rem;
}

.cc-footer__nav.wp-block-navigation .wp-block-navigation__container {
	gap: 0 1.75rem;
	justify-content: center;
}

.cc-footer__nav.wp-block-navigation .wp-block-navigation-item__content {
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0;
	color: var(--cc-text);
}

.cc-footer__nav.wp-block-navigation .wp-block-navigation-item__content:hover,
.cc-footer__nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	color: var(--cc-cyan);
}

/* Social icons: bare glyphs, lit cyan (orange on every other one) on hover. */
.wp-block-social-links.cc-social {
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.cc-footer .wp-block-social-links.cc-social {
	justify-content: center;
	margin-top: 3rem;
}

.wp-block-social-links.cc-social .wp-social-link {
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	border-radius: 0;
	background: none !important;
	color: var(--cc-text);
	transition: color var(--cc-dur-1) ease, filter var(--cc-dur-1) ease;
}

.wp-block-social-links.cc-social .wp-social-link::before {
	display: none;
}

.wp-block-social-links.cc-social .wp-social-link a {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0;
}

.wp-block-social-links.cc-social .wp-social-link svg {
	width: 1.25rem;
	height: 1.25rem;
}

.wp-block-social-links.cc-social .wp-social-link:hover,
.wp-block-social-links.cc-social .wp-social-link:focus-within {
	color: var(--cc-cyan);
	filter: drop-shadow(0 0 8px color-mix(in srgb, var(--cc-cyan) 70%, transparent));
	transform: none;
}

.wp-block-social-links.cc-social .wp-social-link:nth-child(even):hover,
.wp-block-social-links.cc-social .wp-social-link:nth-child(even):focus-within {
	color: var(--cc-orange);
	filter: drop-shadow(0 0 8px color-mix(in srgb, var(--cc-orange) 70%, transparent));
}

/* The studio logo, above the wordmark. */
.cc-footer .cc-footer__logo {
	margin: 0 auto 1.5rem;
}

.cc-footer .cc-footer__logo img {
	display: block;
	width: min(8.5rem, 40vw);
	height: auto;
	margin: 0 auto;
}

.cc-footer .cc-footer__legal {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--cc-line);
}

/* "Enter the shop" and "Support us" side by side. */
.cc-footer .cc-footer__actions {
	gap: 1rem;
	margin-top: 1.75rem;
}

.cc-footer__actions > .wp-block-buttons {
	margin: 0;
}

.cc-footer__sep {
	margin: 0 0.35rem;
}

/* "Cookie settings": always there, but as quiet as the line it sits in. */
.cc-footer .cc-footer__cookies {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: 0.2em;
}

.cc-footer .cc-footer__cookies:hover,
.cc-footer .cc-footer__cookies:focus-visible {
	color: var(--cc-cyan);
}

/* -------------------------------------------------------------------------- */
/* 12. Posts and pagination                                                     */
/* -------------------------------------------------------------------------- */

.cc-post-card {
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--cc-line);
	background: var(--cc-panel);
}

.cc-post-card > * {
	margin-block: 0 0.75rem;
}

.cc-post-meta,
.wp-block-post-date {
	color: var(--cc-muted);
	font-size: 0.875rem;
}

.cc-comment {
	padding: 1.25rem 0;
	border-top: 1px solid var(--cc-line);
}

.wp-block-query-pagination,
.woocommerce-pagination {
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--50);
	font-family: var(--cc-font-ui);
	font-size: 0.875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.6rem;
	border: 1px solid transparent;
	color: var(--cc-text);
	text-decoration: none;
}

.wp-block-query-pagination a:hover,
.wp-block-query-pagination a:focus-visible {
	border-color: var(--cc-cyan);
	color: var(--cc-cyan);
}

.wp-block-query-pagination .page-numbers.current {
	border-color: var(--cc-line-strong);
	color: var(--cc-cyan);
}

/* Triangles in place of arrows. */
.wp-block-query-pagination-previous::before,
.wp-block-query-pagination-next::after,
.wp-block-comments-pagination-previous::before,
.wp-block-comments-pagination-next::after {
	content: "";
	width: 0.5rem;
	height: 0.6rem;
	background: currentColor;
}

.wp-block-query-pagination-previous::before,
.wp-block-comments-pagination-previous::before {
	clip-path: var(--cc-tri-left);
}

.wp-block-query-pagination-next::after,
.wp-block-comments-pagination-next::after {
	clip-path: var(--cc-tri-right);
}

.wp-block-query-pagination .wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination .wp-block-query-pagination-next-arrow {
	display: none;
}

/* -------------------------------------------------------------------------- */
/* 13. Forms                                                                    */
/* -------------------------------------------------------------------------- */

:where(.cc-theme) :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], input[type="date"], textarea, select) {
	box-sizing: border-box;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--cc-line-strong);
	border-radius: 0;
	background-color: color-mix(in srgb, var(--cc-surface) 92%, transparent);
	color: var(--cc-text);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color var(--cc-dur-1) ease, box-shadow var(--cc-dur-1) ease;
}

:where(.cc-theme) :is(input, textarea)::placeholder {
	color: var(--cc-muted);
	opacity: 1;
}

:where(.cc-theme) :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], input[type="date"], textarea, select):focus {
	border-color: var(--cc-cyan);
	outline: 2px solid var(--cc-cyan);
	outline-offset: 1px;
}

/* Triangle in place of the select chevron. */
:where(.cc-theme) select {
	padding-right: 2.75rem;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--cc-cyan) 50%),
		linear-gradient(135deg, var(--cc-cyan) 50%, transparent 50%);
	background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%;
	background-size: 0.35rem 0.35rem;
	background-repeat: no-repeat;
	-webkit-appearance: none;
	appearance: none;
}

:where(.cc-theme) select option {
	background: var(--cc-surface);
	color: var(--cc-text);
}

/* The theme's own open list for drop-downs (assets/js/select.js, computers only). */
:where(.cc-theme) select.is-open {
	border-color: var(--cc-cyan);
	background-image:
		linear-gradient(135deg, transparent 50%, var(--cc-cyan) 50%),
		linear-gradient(45deg, var(--cc-cyan) 50%, transparent 50%);
}

.cc-select-list {
	position: fixed;
	z-index: 100000;
	box-sizing: border-box;
	max-width: min(28rem, calc(100vw - 1rem));
	margin: 0;
	padding: 0.4rem 0 0.9rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid color-mix(in srgb, var(--cc-cyan) 55%, transparent);
	background: var(--cc-surface);
	color: var(--cc-text);
	box-shadow: 0 0 60px -26px var(--cc-cyan), 0 22px 48px -18px #000;
	font-family: var(--cc-font-ui);
	font-size: 0.9375rem;
	line-height: 1.35;
	/* The cut corner of the game panels, on the bottom right. */
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.9rem), calc(100% - 0.9rem) 100%, 0 100%);
	/* The cut takes the border with it, so draw that edge back in. */
	background-image: linear-gradient(to top left, transparent calc(50% - 1px), color-mix(in srgb, var(--cc-cyan) 55%, transparent) calc(50% - 1px), color-mix(in srgb, var(--cc-cyan) 55%, transparent) calc(50% + 0.5px), transparent calc(50% + 0.5px));
	background-position: 100% 100%;
	background-size: 0.9rem 0.9rem;
	background-repeat: no-repeat;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--cc-cyan) 40%, transparent) transparent;
}

.cc-select-list:focus {
	outline: none;
}

@media (prefers-reduced-motion: no-preference) {
	.cc-select-list {
		animation: cc-select-in var(--cc-dur-1) var(--cc-ease);
	}

	.cc-select-list--up {
		animation-name: cc-select-in-up;
	}
}

@keyframes cc-select-in {
	from {
		opacity: 0;
		transform: translateY(-0.35rem);
	}
}

@keyframes cc-select-in-up {
	from {
		opacity: 0;
		transform: translateY(0.35rem);
	}
}

.cc-select-list__heading {
	padding: 0.7rem 1.1rem 0.3rem;
	color: var(--cc-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cc-select-list__option {
	position: relative;
	padding: 0.55rem 1.4rem 0.55rem 2.1rem;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cc-select-list__option.is-active {
	background: color-mix(in srgb, var(--cc-cyan) 14%, transparent);
	color: var(--cc-text);
}

.cc-select-list__option[aria-selected="true"] {
	color: var(--cc-cyan);
	font-weight: 600;
}

/* The theme's triangle marks the chosen option. */
.cc-select-list__option[aria-selected="true"]::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0.95rem;
	width: 0;
	height: 0;
	border-top: 0.3rem solid transparent;
	border-bottom: 0.3rem solid transparent;
	border-left: 0.45rem solid currentColor;
	transform: translateY(-50%);
}

.cc-select-list__option[aria-disabled="true"] {
	color: var(--cc-muted);
	opacity: 0.55;
	cursor: default;
}

@media (forced-colors: active) {
	.cc-select-list {
		border-color: CanvasText;
	}

	.cc-select-list__option.is-active {
		outline: 2px solid Highlight;
		outline-offset: -2px;
	}
}

:where(.cc-theme) :is(input[type="checkbox"], input[type="radio"]) {
	accent-color: var(--cc-cyan);
}

.wp-block-search__inside-wrapper {
	gap: 0.5rem;
}

.wp-block-search .wp-block-search__input {
	border-radius: 0;
}

.wp-block-search .wp-block-search__button {
	margin: 0;
}

.wp-block-search .wp-block-search__button.has-icon {
	min-width: 3rem;
	padding: 0 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* 14. Scroll reveal                                                            */
/* -------------------------------------------------------------------------- */

/* Only when JavaScript is running and motion is welcome; otherwise everything
   is simply visible. */
@media (prefers-reduced-motion: no-preference) {
	.cc-js .cc-reveal {
		opacity: 0;
		transform: translateY(1.25rem);
		transition: opacity var(--cc-dur-4) ease, transform var(--cc-dur-4) var(--cc-ease), border-color var(--cc-dur-2) ease, box-shadow var(--cc-dur-2) ease, translate var(--cc-dur-2) var(--cc-ease);
		transition-delay: var(--cc-reveal-delay, 0ms), var(--cc-reveal-delay, 0ms), 0s, 0s, 0s;
	}

	.cc-js .cc-reveal.is-inview {
		opacity: 1;
		transform: none;
	}
}

/* Entrances --------------------------------------------------------------------

   One choreography for the top of every page: the menu list steps in item by
   item, and on the homepage the game panels drop into place from above one
   after another, then their dice and names appear. Only transform and opacity
   are animated; the panels themselves only move (never fade), so the first
   picture counts as painted straight away. Nothing runs for anyone who prefers
   reduced motion.

   Fill mode is "backwards", never "both": a transform kept after the end would
   turn the header into the containing block for the menu overlay and the cart
   drawer, trapping them inside it. */
@media (prefers-reduced-motion: no-preference) {
	.cc-js .cc-header__brand > .wp-block-site-title,
	.cc-js .cc-header__brand > .wp-block-site-logo,
	.cc-js .cc-header__tools {
		animation: cc-enter-down var(--cc-dur-3) var(--cc-ease) backwards;
	}

	.cc-js .cc-header__tools {
		animation-delay: calc(var(--cc-stagger) * 3);
	}

	/* The list re-enters whenever the page returns to the top. */
	html.cc-js:not(.cc-is-scrolled) .cc-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item {
		animation: cc-enter-side var(--cc-dur-3) var(--cc-ease) backwards;
	}

	html.cc-js:not(.cc-is-scrolled) .cc-nav .wp-block-navigation-item:nth-child(2) {
		animation-delay: calc(var(--cc-stagger) * 1);
	}

	html.cc-js:not(.cc-is-scrolled) .cc-nav .wp-block-navigation-item:nth-child(3) {
		animation-delay: calc(var(--cc-stagger) * 2);
	}

	html.cc-js:not(.cc-is-scrolled) .cc-nav .wp-block-navigation-item:nth-child(4) {
		animation-delay: calc(var(--cc-stagger) * 3);
	}

	html.cc-js:not(.cc-is-scrolled) .cc-nav .wp-block-navigation-item:nth-child(n + 5) {
		animation-delay: calc(var(--cc-stagger) * 4);
	}

	/* The slim bar slides in when the page is scrolled. */
	html.cc-js.cc-is-scrolled .cc-header {
		animation: cc-enter-down var(--cc-dur-2) var(--cc-ease) backwards;
	}

	.cc-js .cc-game {
		animation: cc-panel-drop var(--cc-dur-4) var(--cc-ease) backwards;
		animation-delay: calc(var(--cc-i, 1) * var(--cc-stagger) + 80ms);
	}

	.cc-js .cc-game__die,
	.cc-js .cc-game__name {
		animation: cc-enter-up var(--cc-dur-3) var(--cc-ease) backwards;
		animation-delay: calc(var(--cc-i, 1) * var(--cc-stagger) + 420ms);
	}

	/* Opened menu: the overlay fades in and its links follow one by one. */
	.cc-nav .wp-block-navigation__responsive-container.is-menu-open {
		animation: cc-fade var(--cc-dur-2) ease backwards;
	}

	.cc-nav .is-menu-open .wp-block-navigation-item {
		animation: cc-enter-up var(--cc-dur-3) var(--cc-ease) backwards;
		animation-delay: calc(var(--cc-stagger) + 40ms);
	}

	.cc-nav .is-menu-open .wp-block-navigation-item:nth-child(2) {
		animation-delay: calc(var(--cc-stagger) * 2 + 40ms);
	}

	.cc-nav .is-menu-open .wp-block-navigation-item:nth-child(3) {
		animation-delay: calc(var(--cc-stagger) * 3 + 40ms);
	}

	.cc-nav .is-menu-open .wp-block-navigation-item:nth-child(n + 4) {
		animation-delay: calc(var(--cc-stagger) * 4 + 40ms);
	}
}

@keyframes cc-enter-down {
	from {
		opacity: 0;
		transform: translateY(-0.6rem);
	}
}

@keyframes cc-enter-up {
	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}
}

@keyframes cc-enter-side {
	from {
		opacity: 0;
		transform: translateX(-0.75rem);
	}
}

@keyframes cc-panel-drop {
	from {
		transform: translateY(-14%);
	}
}

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

/* Blur behind panels is the costliest effect to composite over a moving
   canvas, and the least noticeable. Drop it on small screens and for anyone
   who asks for reduced transparency; the header keeps its frosted backing. */
@media (max-width: 781.98px), (prefers-reduced-transparency: reduce) {
	.wp-block-group.is-style-panel,
	.cc-map__consent {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* -------------------------------------------------------------------------- */
/* 15. Reduced motion                                                           */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-delay: 0s !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.cc-header-hidden .wp-site-blocks > header.wp-block-template-part {
		transform: none;
	}
}

/* -------------------------------------------------------------------------- */
/* 16. Cookie consent                                                           */
/* -------------------------------------------------------------------------- */

/* A small card in the bottom corner. "Accept all" and "Necessary only" look
   exactly alike, so neither choice is pushed. */
.cc-consent {
	position: fixed;
	right: var(--cc-gutter);
	bottom: 1rem;
	z-index: 100000;
	box-sizing: border-box;
	width: min(27rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 1.25rem 1.35rem 1.35rem;
	overflow: auto;
	border: 1px solid color-mix(in srgb, var(--cc-cyan) 45%, transparent);
	background: var(--cc-surface);
	color: var(--cc-text);
	box-shadow: 0 0 60px -24px var(--cc-cyan), 0 20px 50px -20px #000;
	font-family: var(--cc-font-body);
	font-size: 0.875rem;
	line-height: 1.5;
}

.cc-consent[hidden] {
	display: none;
}

@media (max-width: 600px) {
	.cc-consent {
		right: 1rem;
		left: 1rem;
		width: auto;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.cc-consent {
		animation: cc-enter-up var(--cc-dur-3) var(--cc-ease) backwards;
	}
}

.cc-consent__title {
	margin: 0 0 0.5rem;
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	-webkit-text-stroke: 0;
}

.cc-consent__body {
	margin: 0 0 1rem;
	color: var(--cc-muted);
}

.cc-consent__body a {
	color: var(--cc-text);
	text-decoration-color: var(--cc-cyan);
	text-underline-offset: 0.25em;
}

.cc-consent__options {
	display: grid;
	gap: 0.6rem;
	margin: 0 0 1rem;
	padding: 0.9rem 0 0;
	border: 0;
	border-top: 1px solid var(--cc-line);
}

.cc-consent__options[hidden] {
	display: none;
}

.cc-consent__option {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
}

.cc-consent__option input {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.15rem 0 0;
}

/* The two main choices side by side at exactly the same size; "Choose" and
   "Save choices" take the row beneath. */
.cc-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
}

.cc-consent__actions > .cc-consent__link,
.cc-consent__actions > .cc-consent__button:last-child {
	grid-column: 1 / -1;
}

.cc-consent__link {
	justify-self: start;
}

.cc-consent__button {
	min-height: 2.75rem;
	white-space: nowrap;
	padding: 0.5rem 1rem;
	border: 1px solid var(--cc-cyan);
	border-radius: 0;
	background: color-mix(in srgb, var(--cc-cyan) 10%, var(--cc-bg));
	color: var(--cc-text);
	font-family: var(--cc-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--cc-dur-1) ease, color var(--cc-dur-1) ease;
}

.cc-consent__button:hover,
.cc-consent__button:focus-visible {
	background: var(--cc-cyan);
	color: var(--cc-bg);
}

.cc-consent__button[hidden],
.cc-consent__link[hidden] {
	display: none;
}

.cc-consent__link {
	min-height: 2.75rem;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: var(--cc-muted);
	font: inherit;
	font-size: 0.8125rem;
	text-decoration: underline;
	text-underline-offset: 0.25em;
	cursor: pointer;
}

.cc-consent__link:hover,
.cc-consent__link:focus-visible {
	color: var(--cc-cyan);
}

/* Footer: legal pages and the cookie settings link, in a quieter row. */
.cc-footer__legal-nav.wp-block-navigation {
	margin-top: 0.25rem;
}

.cc-footer__legal-nav.wp-block-navigation .wp-block-navigation__container {
	gap: 0 1.5rem;
	justify-content: center;
}

/* Legal links: small, plain and lower-case, so they read as fine print and
   not as a second copy of the menu. */
.cc-footer__legal-nav.wp-block-navigation .wp-block-navigation__container {
	gap: 0 1.5rem;
}

.cc-footer__legal-nav.wp-block-navigation .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0;
	color: color-mix(in srgb, var(--cc-muted) 85%, transparent);
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: none;
}

.cc-footer__legal-nav.wp-block-navigation .wp-block-navigation-item__content:hover,
.cc-footer__legal-nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	color: var(--cc-cyan);
}

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

/* Inner pages: a compact footer in one slim row — name, legal links, social
   icons and the © line. The full footer stays on the landing page. */
body:not(.home) .cc-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	max-width: var(--wp--style--global--wide-size, 80rem);
	margin-inline: auto;
	padding: 1.5rem var(--cc-gutter, 1.5rem) !important;
	border-top: 1px solid var(--cc-line);
	text-align: left;
}

body:not(.home) .cc-footer > * {
	max-width: none !important;
	margin: 0 !important;
}

body:not(.home) .cc-footer::before,
body:not(.home) .cc-footer .cc-footer__logo,
body:not(.home) .cc-footer .cc-footer__tagline,
body:not(.home) .cc-footer .cc-footer__actions,
body:not(.home) .cc-footer .cc-footer__nav {
	display: none !important;
}

body:not(.home) .cc-footer .wp-block-site-title {
	font-size: 1.1rem;
}

body:not(.home) .cc-footer .wp-block-site-title::after {
	width: 3.5rem;
	margin-top: 0.3rem;
	margin-inline: 0;
}

body:not(.home) .cc-footer .cc-footer__legal-nav.wp-block-navigation .wp-block-navigation__container,
body:not(.home) .cc-footer .wp-block-social-links.cc-social {
	justify-content: center;
}

body:not(.home) .cc-footer .cc-footer__legal {
	text-align: right;
}

@media (max-width: 47.98rem) {
	body:not(.home) .cc-footer {
		flex-direction: column;
		text-align: center;
	}

	body:not(.home) .cc-footer .wp-block-site-title::after {
		margin-inline: auto;
	}

	body:not(.home) .cc-footer .cc-footer__legal {
		text-align: center;
	}
}

/* A game's title keeps its cube line on a row of its own, above the name. */
.cc-shop .wp-block-query-title.cc-has-die {
	flex-wrap: wrap;
	row-gap: 0;
}

.cc-shop .wp-block-query-title.cc-has-die::before {
	flex-basis: 100%;
	background-position: left center;
	-webkit-mask-position: left center;
	mask-position: left center;
}

/* Compact footer: legal links on the left, the name in the middle with its
   cube line centred under it, social icons on the right; the © line under. */
@media (min-width: 48rem) {
	body:not(.home) .cc-footer {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}

	body:not(.home) .cc-footer .cc-footer__legal-nav {
		order: 1;
		justify-self: start;
	}

	body:not(.home) .cc-footer .wp-block-site-title {
		order: 2;
		justify-self: center;
		text-align: center;
	}

	body:not(.home) .cc-footer .wp-block-site-title::after {
		margin-inline: auto;
	}

	body:not(.home) .cc-footer .wp-block-social-links.cc-social {
		order: 3;
		justify-self: end;
	}

	body:not(.home) .cc-footer .cc-footer__legal-nav.wp-block-navigation .wp-block-navigation__container {
		justify-content: flex-start;
	}

	body:not(.home) .cc-footer .cc-footer__legal {
		order: 4;
		grid-column: 1 / -1;
	}
}

/* Compact footer: the © line runs full width under the row. */
body:not(.home) .cc-footer .cc-footer__legal {
	flex-basis: 100%;
	padding-top: 0.75rem;
	border-top: 0;
	font-size: 0.75rem;
	text-align: center !important;
}

/* Compact footer: the cube line sits above the name. */
body:not(.home) .cc-footer .wp-block-site-title {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
}

body:not(.home) .cc-footer .wp-block-site-title::after {
	margin: 0 auto 0.35rem !important;
}
