/*
 * Exhibition-715 Mexica skin.
 * Layout, typography, sizing, interaction states and responsive behavior are
 * deliberately inherited from the unchanged homepage Maya calendar CSS.
 */
body.single-exhibition .sunnys-exhibition-mexica-calendar {
	width: 100%;
	margin: 0;
	padding: clamp(8px, 3vw, 34px);
	color: #e5e3de;
	background:
		radial-gradient(circle at 50% -10%, #3a1715, transparent 42rem),
		#130b0a;
}

body.single-exhibition .sunnys-exhibition-mexica-calendar > .sunnys-mexica-calendar {
	margin: 0 auto;
}

.sunnys-maya-calendar.sunnys-mexica-calendar {
	--maya-ink: #e5e3de;
	--maya-ink-muted: #c4aea0;
	--maya-night: #2a110f;
	--maya-night-deep: #160706;
	--maya-jade: #5d2322;
	--maya-jade-bright: #7e2c2a;
	--maya-gold: #a78a73;
	--maya-gold-bright: #e5e3de;
	--mexica-active-fill: rgba(255, 203, 92, 0.23);
	--mexica-active-line: rgba(255, 232, 167, 0.9);
	--maya-active-line: var(--mexica-active-line);
	--maya-cinnabar: #7e2c2a;
	--maya-line: rgba(196, 174, 160, 0.28);
	--maya-panel: rgba(42, 17, 15, 0.82);
	--mexica-progress-track: #745044;
	--mexica-progress-value: #d8a34b;
	--mexica-progress-head: #f4d58a;
	--mexica-progress-glow: rgba(216, 163, 75, 0.68);
	--mexica-progress-reset: #e46f4a;
	--mexica-input-surface: #0e0504;
	--mexica-input-surface-focus: #170b0a;
	background:
		radial-gradient(circle at 18% 16%, rgba(126, 44, 42, 0.48), transparent 34%),
		radial-gradient(circle at 82% 78%, rgba(60, 92, 74, 0.12), transparent 30%),
		linear-gradient(145deg, #5d2322 0%, #2a110f 48%, #160706 100%);
	border-color: rgba(196, 174, 160, 0.38);
}

/* Replace the inherited Maya green on all four retained date controls while
 * keeping the shared gold borders, focus ring and verified input sizing. */
.sunnys-mexica-calendar .sunnys-maya-calendar__date-grid :is(input, select) {
	background: var(--mexica-input-surface);
}

/* Keep the touch and keyboard focus response identical across Safari and
 * Chromium; the inherited Maya focus shorthand otherwise restores green. */
.sunnys-maya-calendar.sunnys-mexica-calendar .sunnys-maya-calendar__date-grid input:focus,
.sunnys-maya-calendar.sunnys-mexica-calendar .sunnys-maya-calendar__date-grid input:focus-visible,
.sunnys-maya-calendar.sunnys-mexica-calendar .sunnys-maya-calendar__date-grid select:focus,
.sunnys-maya-calendar.sunnys-mexica-calendar .sunnys-maya-calendar__date-grid select:focus-visible {
	background: var(--mexica-input-surface-focus) !important;
}

/* Production Maya radial-drag mechanics, isolated to the Mexica module. */
.sunnys-maya-calendar.sunnys-mexica-calendar .sunnys-maya-calendar__dial-wrap,
.sunnys-maya-calendar.sunnys-mexica-calendar .sunnys-maya-calendar__dial,
.sunnys-maya-calendar.sunnys-mexica-calendar .sunnys-maya-calendar__dial-touch-layer,
.sunnys-maya-calendar.sunnys-mexica-calendar .maya-wheel__touch-zone {
	touch-action: auto;
}

.sunnys-maya-calendar.sunnys-mexica-calendar .sunnys-maya-calendar__dial-touch-layer,
.sunnys-maya-calendar.sunnys-mexica-calendar .maya-wheel__touch-zone {
	pointer-events: none;
}

.sunnys-maya-calendar.sunnys-mexica-calendar .maya-wheel__rotor {
	--maya-drag-turn: 0deg;
	transition: transform 220ms cubic-bezier(.2, .82, .2, 1);
}

.sunnys-maya-calendar.sunnys-mexica-calendar .maya-wheel__rotor:active,
.sunnys-maya-calendar.sunnys-mexica-calendar .maya-wheel__rotor.is-dragging,
.sunnys-maya-calendar.sunnys-mexica-calendar.is-dragging .maya-wheel__rotor {
	transition: none;
}

.sunnys-maya-calendar.sunnys-mexica-calendar.is-dragging .maya-wheel__item :is(.maya-wheel__glyph, .maya-wheel__label, .maya-wheel__meaning, .maya-wheel__number-glyph) {
	transition: none;
}

/* Use the inner selected sector's warm gold for both sectors and the center mesh. */
.sunnys-mexica-calendar .maya-wheel__active-sector {
	fill: var(--mexica-active-fill);
	stroke: var(--mexica-active-line);
}

/* The Mexica title is one character longer; keep the homepage one-line rhythm. */
.sunnys-mexica-calendar .sunnys-maya-calendar__header h2 {
	font-size: clamp(34px, 4.6vw, 62px);
}

.sunnys-mexica-calendar .sunnys-maya-calendar__dial-core {
	background:
		radial-gradient(circle at 36% 28%, rgba(229, 227, 222, 0.18), transparent 20%),
		radial-gradient(circle, #7e2c2a 0%, #5d2322 58%, #2a110f 100%);
	border-color: rgba(229, 227, 222, 0.48);
}

/* A cycle's first day keeps only its own center breathing. The halo animates
 * opacity and transform so it stays compositor-friendly on mobile WebKit. */
.sunnys-mexica-calendar .sunnys-maya-calendar__dial-core.is-cycle-start::before {
	position: absolute;
	z-index: 0;
	inset: -8px;
	content: "";
	border: 2px solid rgba(244, 213, 138, 0.86);
	border-radius: 50%;
	box-shadow: 0 0 16px rgba(216, 163, 75, 0.58);
	pointer-events: none;
	transform: translateZ(0) scale(0.96);
	opacity: 0.34;
	will-change: transform, opacity;
	animation: mexica-cycle-start-core-breathe 1.8s ease-in-out infinite;
}

@keyframes mexica-cycle-start-core-breathe {
	0%, 100% {
		transform: translateZ(0) scale(0.96);
		opacity: 0.34;
	}
	50% {
		transform: translateZ(0) scale(1.065);
		opacity: 0.94;
	}
}

/* Keep the original separator line intact and let progress travel on its exact radius. */
.sunnys-mexica-calendar .mexica-wheel__progress-value,
.sunnys-mexica-calendar .mexica-wheel__progress-mask,
.sunnys-mexica-calendar .mexica-wheel__progress-flow,
.sunnys-mexica-calendar .mexica-wheel__progress-flow-trail,
.sunnys-mexica-calendar .mexica-wheel__progress-flow-head-halo,
.sunnys-mexica-calendar .mexica-wheel__progress-flow-head-core,
.sunnys-mexica-calendar .mexica-wheel__progress-end {
	pointer-events: none;
}

.sunnys-mexica-calendar .mexica-wheel__progress-track {
	stroke: var(--mexica-progress-track);
}

.sunnys-mexica-calendar .mexica-wheel__progress-value {
	vector-effect: non-scaling-stroke;
	stroke: var(--mexica-progress-value);
	stroke-width: 3.25;
	stroke-linecap: round;
	stroke-dasharray: none;
	filter: drop-shadow(0 0 3px var(--mexica-progress-glow));
}

.sunnys-mexica-calendar .mexica-wheel__progress-mask {
	fill: none;
	stroke: #fff;
	stroke-width: 24;
	stroke-linecap: round;
}

.sunnys-mexica-calendar .mexica-wheel__progress-flow-orbit {
	transform-box: view-box;
	transform-origin: 300px 300px;
	animation: mexica-progress-flow 6s linear infinite;
}

.sunnys-mexica-calendar [data-mexica-progress-flow="haab"] .mexica-wheel__progress-flow-orbit {
	animation-direction: reverse;
}

/* Keep decorative orbit paint out of the direct-manipulation frame budget. */
.sunnys-mexica-calendar.is-dragging .mexica-wheel__progress-flow-orbit {
	animation-play-state: paused;
}

.sunnys-mexica-calendar.is-dragging .mexica-wheel__progress-value,
.sunnys-mexica-calendar.is-dragging .mexica-wheel__progress-end-core {
	animation: none !important;
}

/* WebKit repeatedly repaints nested SVG images while an SVG child animates. */
.sunnys-mexica-calendar.is-ios-webkit .mexica-wheel__progress-flow-orbit {
	animation: none;
}

/* The raster renderer removes the expensive live glyph tree, so iOS can keep
 * the two lightweight progress-flow orbits moving without repainting it. */
.sunnys-mexica-calendar.is-ios-webkit.is-raster-renderer .mexica-wheel__progress-flow-orbit {
	animation: mexica-progress-flow 6s linear infinite;
}

.sunnys-mexica-calendar.is-ios-webkit.is-raster-renderer [data-mexica-progress-flow="haab"] .mexica-wheel__progress-flow-orbit {
	animation-direction: reverse;
}

.sunnys-mexica-calendar.is-raster-renderer.is-dragging .mexica-wheel__progress-flow-orbit,
.sunnys-mexica-calendar.is-ios-webkit.is-raster-renderer.is-dragging .mexica-wheel__progress-flow-orbit {
	animation-play-state: running;
}

.sunnys-mexica-calendar .mexica-wheel__progress-trail-stop {
	stop-color: var(--mexica-progress-head);
}

.sunnys-mexica-calendar .mexica-wheel__progress-flow-trail {
	fill: none;
	vector-effect: non-scaling-stroke;
	stroke-width: 4.25;
	stroke-linecap: round;
	filter: drop-shadow(0 0 2px var(--mexica-progress-head)) drop-shadow(0 0 4px var(--mexica-progress-glow));
}

.sunnys-mexica-calendar .mexica-wheel__progress-flow-trail--mobile {
	display: none;
}

.sunnys-mexica-calendar .mexica-wheel__progress-flow-head-halo {
	fill: var(--mexica-progress-value);
	opacity: .38;
	filter: drop-shadow(0 0 4px var(--mexica-progress-glow));
}

.sunnys-mexica-calendar .mexica-wheel__progress-flow-head-core {
	fill: var(--mexica-progress-head);
	stroke: var(--mexica-progress-value);
	stroke-width: .8;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 0 3px var(--mexica-progress-glow));
}

.sunnys-mexica-calendar .mexica-wheel__progress-end-halo {
	fill: var(--mexica-progress-head);
	opacity: .28;
	filter: drop-shadow(0 0 5px rgba(244, 213, 138, .62));
}

.sunnys-mexica-calendar .mexica-wheel__progress-end-core {
	fill: var(--mexica-progress-head);
	stroke: var(--mexica-progress-value);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 0 3px rgba(244, 213, 138, .7));
}

.sunnys-mexica-calendar .mexica-wheel__progress-value[data-progress-reset="true"] {
	animation: mexica-progress-reset-flash 360ms ease-out;
}

.sunnys-mexica-calendar .mexica-wheel__progress-value[data-progress-reset="true"] ~ .mexica-wheel__progress-end .mexica-wheel__progress-end-core {
	animation: mexica-progress-head-reset-flash 360ms ease-out;
}

@keyframes mexica-progress-flow {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes mexica-progress-reset-flash {
	0%, 34% {
		stroke: var(--mexica-progress-reset);
		filter: drop-shadow(0 0 7px rgba(228, 111, 74, .88));
	}
}

@keyframes mexica-progress-head-reset-flash {
	0%, 34% {
		fill: var(--mexica-progress-reset);
		stroke: var(--mexica-progress-head);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sunnys-mexica-calendar .sunnys-maya-calendar__dial-core.is-cycle-start::before {
		animation: none;
		transform: none;
		opacity: 0.72;
	}

	.sunnys-mexica-calendar .mexica-wheel__progress-flow {
		display: none;
	}

	.sunnys-mexica-calendar .mexica-wheel__progress-value,
	.sunnys-mexica-calendar .mexica-wheel__progress-end-core {
		animation: none !important;
	}
}

.sunnys-mexica-calendar .mexica-wheel__year-bearer-marker {
	opacity: 0.54;
	pointer-events: none;
}

.sunnys-mexica-calendar .mexica-wheel__year-coefficient-marker {
	opacity: 0.54;
	pointer-events: none;
}

.sunnys-mexica-calendar .mexica-wheel__year-bearer-marker circle,
.sunnys-mexica-calendar .mexica-wheel__year-coefficient-marker circle {
	fill: #2a110f;
	stroke: rgba(229, 227, 222, 0.72);
	stroke-width: 1.5;
}

.sunnys-mexica-calendar .mexica-wheel__year-bearer-marker text,
.sunnys-mexica-calendar .mexica-wheel__year-coefficient-marker text {
	fill: #e5e3de;
	font-family: "Noto Serif SC", serif;
	font-size: 12.5px;
	font-weight: 700;
	text-anchor: middle;
}

.sunnys-mexica-calendar .maya-wheel__item.is-current-year-bearer .mexica-wheel__year-bearer-marker,
.sunnys-mexica-calendar .maya-wheel__item.is-current-year-bearer .mexica-wheel__year-coefficient-marker {
	opacity: 1;
	filter: drop-shadow(0 0 2.5px rgba(244, 213, 138, 0.58));
}

.sunnys-mexica-calendar .maya-wheel__item.is-current-year-bearer .mexica-wheel__year-bearer-marker circle,
.sunnys-mexica-calendar .maya-wheel__item.is-current-year-bearer .mexica-wheel__year-coefficient-marker circle {
	fill: #e0d4b8;
	stroke: #5d2322;
	stroke-width: 2.5;
}

.sunnys-mexica-calendar .maya-wheel__item.is-current-year-bearer .mexica-wheel__year-bearer-marker text,
.sunnys-mexica-calendar .maya-wheel__item.is-current-year-bearer .mexica-wheel__year-coefficient-marker text {
	fill: #5d2322;
}

.sunnys-mexica-calendar.is-raster-renderer .maya-wheel__item.is-year-bearer-candidate:not(.is-current-year-bearer) .mexica-wheel__year-bearer-marker {
	opacity: 0;
}

.sunnys-mexica-calendar .mexica-wheel__raster-year-overlay-item {
	pointer-events: none;
}

.sunnys-mexica-calendar .mexica-wheel__year-sector-highlight {
	fill: var(--mexica-active-fill);
	stroke: var(--mexica-active-line);
	stroke-width: 1.8;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	opacity: 0;
	filter: none;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.sunnys-mexica-calendar .maya-wheel__item.is-current-year-bearer .mexica-wheel__year-sector-highlight {
	opacity: 0.92;
}

.sunnys-mexica-calendar.is-raster-renderer .mexica-wheel__raster-year-overlay-item :is(.maya-wheel__label, .maya-wheel__meaning) {
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.sunnys-mexica-calendar.is-raster-renderer .mexica-wheel__raster-year-overlay-item.is-current-year-bearer :is(.maya-wheel__label, .maya-wheel__meaning) {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.sunnys-mexica-calendar .mexica-wheel__year-sector-highlight,
	.sunnys-mexica-calendar.is-raster-renderer .mexica-wheel__raster-year-overlay-item :is(.maya-wheel__label, .maya-wheel__meaning) {
		transition: none;
	}
}

.sunnys-mexica-calendar .sunnys-mexica-calendar__year-seal {
	grid-column: 1 / -1;
	margin-top: 8px;
	padding: 9px 0 0;
	border-top: 1px solid rgba(229, 227, 222, 0.18);
}

.sunnys-mexica-calendar .sunnys-mexica-calendar__locator-input {
	display: flex;
	grid-row: 2;
	grid-column: 1;
	min-width: 0;
	flex-direction: column;
	padding: clamp(20px, 2.4vw, 30px);
	border-right: 1px solid var(--maya-line);
}

.sunnys-mexica-calendar .sunnys-mexica-calendar__locator-input > .sunnys-maya-calendar__date-form {
	display: block;
	grid-row: auto;
	grid-column: auto;
	padding: 0;
	border-right: 0;
}

.sunnys-mexica-calendar .sunnys-mexica-calendar__year-note {
	margin: auto 0 0;
	padding: clamp(28px, 3vw, 42px) 0 0;
	color: var(--maya-ink-muted);
	font-size: 12px;
	line-height: 1.6;
}

.sunnys-mexica-calendar .sunnys-mexica-calendar__year-note h4 {
	max-width: 100%;
	margin: 0;
	color: var(--maya-gold-bright);
	font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.sunnys-mexica-calendar .sunnys-mexica-calendar__year-note p {
	margin: 8px 0 0;
}

@media (max-width: 760px) {
	.sunnys-mexica-calendar .sunnys-mexica-calendar__locator-input {
		display: contents;
	}

	.sunnys-mexica-calendar .sunnys-mexica-calendar__locator-input > .sunnys-maya-calendar__date-form {
		order: 2;
		padding: clamp(20px, 2.4vw, 30px);
	}

	.sunnys-mexica-calendar .sunnys-maya-calendar__result {
		order: 3;
		padding-bottom: 12px;
	}

	.sunnys-mexica-calendar .sunnys-mexica-calendar__year-note {
		order: 4;
		margin: 0;
		padding: 0 clamp(20px, 2.4vw, 30px) clamp(24px, 4vw, 32px);
	}

	.sunnys-mexica-calendar .sunnys-maya-calendar__console-footer {
		order: 6;
	}

	.sunnys-mexica-calendar .mexica-wheel__progress-flow-trail--desktop {
		display: none;
	}

	.sunnys-mexica-calendar .mexica-wheel__progress-flow-trail--mobile {
		display: block;
	}

	.sunnys-mexica-calendar .mexica-wheel__progress-flow-trail--mobile-glow {
		stroke-width: 10;
		opacity: .28;
		filter: drop-shadow(0 0 5px var(--mexica-progress-head)) drop-shadow(0 0 9px var(--mexica-progress-glow));
	}

	.sunnys-mexica-calendar .mexica-wheel__progress-flow-trail--mobile-core {
		stroke-width: 5.75;
		opacity: 1;
		filter: drop-shadow(0 0 3px var(--mexica-progress-head)) drop-shadow(0 0 6px var(--mexica-progress-glow));
	}

	.sunnys-mexica-calendar .mexica-wheel__progress-flow-head-halo {
		r: 10px;
		opacity: .52;
		filter: drop-shadow(0 0 6px var(--mexica-progress-glow));
	}

	.sunnys-mexica-calendar .mexica-wheel__progress-flow-head-core {
		r: 4.5px;
		stroke-width: 1.1;
		filter: drop-shadow(0 0 4px var(--mexica-progress-head)) drop-shadow(0 0 7px var(--mexica-progress-glow));
	}

	body.single-exhibition .sunnys-exhibition-mexica-calendar {
		padding: 8px;
	}

	.sunnys-mexica-calendar .sunnys-mexica-calendar__year-seal {
		grid-column: 1 / -1;
	}
}

/* Interactive Sun Stone replacement for the former naming area. The artifact
 * image, lighting, selection masks and progress ring are drawn by WebGL; DOM
 * styling below is limited to controls, readings and fallback presentation. */
.sunnys-mexica-calendar .sunnys-mexica-calendar__console {
	grid-template-rows: auto auto auto auto;
}

.sunnys-mexica-calendar .sunnys-maya-calendar__console-footer {
	grid-row: 4;
}

.sunnys-mexica-sun-stone {
	--sun-stone-ink: #f0e5d4;
	--sun-stone-ink-strong: #fff0c8;
	--sun-stone-ink-muted: #cbb9a7;
	--sun-stone-caption: #bba999;
	--sun-stone-gold: #f4d58a;
	--sun-stone-gold-deep: #d8a34b;
	--sun-stone-surface: #1a0807;
	--sun-stone-surface-selected: #35110f;
	--sun-stone-vermilion: #a44837;
	display: block;
	grid-row: 3;
	grid-column: 1 / -1;
	min-width: 0;
	padding: clamp(22px, 3vw, 36px);
	background:
		linear-gradient(155deg, rgba(255, 230, 173, .035), transparent 38%),
		rgba(12, 4, 3, .58);
	border-top: 1px solid var(--maya-line);
}

.sunnys-mexica-sun-stone,
.sunnys-mexica-sun-stone * {
	box-sizing: border-box;
}

.sunnys-mexica-sun-stone__heading {
	max-width: 830px;
	margin: 0 0 clamp(20px, 2.8vw, 30px);
}

.sunnys-mexica-sun-stone__heading > p:first-child,
.sunnys-mexica-sun-stone__detail > p:first-child {
	margin: 0;
	color: #caa25f;
	font-family: Georgia, "Noto Serif SC", serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	line-height: 1.5;
	text-transform: uppercase;
}

.sunnys-mexica-sun-stone__heading > p:first-child span {
	margin-right: 7px;
	color: var(--sun-stone-gold);
	font-variant-numeric: tabular-nums;
}

.sunnys-mexica-sun-stone__heading h3 {
	margin: 5px 0 0;
	color: var(--sun-stone-ink);
	font-family: Georgia, "Noto Serif SC", serif;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 650;
	line-height: 1.2;
}

.sunnys-mexica-sun-stone__heading > p:last-child {
	margin: 11px 0 0;
	color: var(--sun-stone-ink-muted);
	font-size: 14px;
	line-height: 1.75;
}

.sunnys-mexica-sun-stone__experience {
	display: grid;
	grid-template-columns: minmax(300px, 1.18fr) minmax(270px, .82fr);
	gap: clamp(18px, 3vw, 34px);
	align-items: center;
}

.sunnys-mexica-sun-stone__stage {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
	overflow: hidden;
	background: #090201;
	border: 1px solid rgba(216, 163, 75, .34);
	border-radius: 18px;
	box-shadow:
		0 28px 54px rgba(0, 0, 0, .42),
		inset 0 0 0 1px rgba(255, 225, 164, .035);
	touch-action: pan-y pinch-zoom;
}

.sunnys-mexica-sun-stone__stage::before {
	position: absolute;
	z-index: 4;
	top: 14px;
	left: 14px;
	width: 26px;
	height: 1px;
	content: "";
	background: var(--sun-stone-gold-deep);
	box-shadow: 0 0 8px rgba(216, 163, 75, .46);
	pointer-events: none;
}

.sunnys-mexica-sun-stone__stage canvas,
.sunnys-mexica-sun-stone__fallback {
	display: block;
	width: 100%;
	aspect-ratio: 1;
}

.sunnys-mexica-sun-stone__glyph-overlay {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease-in;
}

.sunnys-mexica-sun-stone__stage[data-sun-stone-view]:not([data-sun-stone-view="full"]) .sunnys-mexica-sun-stone__glyph-overlay {
	opacity: 1;
	transition-timing-function: ease-out;
}

.sunnys-mexica-sun-stone__glyph-layer {
	opacity: 0;
	transition: opacity 160ms ease-in;
}

.sunnys-mexica-sun-stone__glyph-overlay[data-active-layer="fifth"] [data-sun-stone-glyph-layer="fifth"],
.sunnys-mexica-sun-stone__glyph-overlay[data-active-layer="previous"] [data-sun-stone-glyph-layer="previous"],
.sunnys-mexica-sun-stone__glyph-overlay[data-active-layer="days"] [data-sun-stone-glyph-layer="days"] {
	opacity: 1;
	transition-delay: 110ms;
	transition-timing-function: ease-out;
}

.sunnys-mexica-sun-stone__glyph-layer use {
	filter: drop-shadow(0 3px 5px rgba(6, 1, 0, .94)) drop-shadow(0 0 5px rgba(246, 204, 105, .32));
}

.sunnys-mexica-sun-stone__glyph-diagram {
	opacity: .98;
	mix-blend-mode: normal;
	filter: drop-shadow(0 2px 2px rgba(7, 2, 0, .9)) drop-shadow(0 0 4px rgba(246, 204, 105, .22));
}

.sunnys-mexica-sun-stone__stage canvas {
	background: #090201;
	cursor: crosshair;
	touch-action: pan-y pinch-zoom;
}

.sunnys-mexica-sun-stone__stage canvas:focus-visible {
	outline: 3px solid var(--sun-stone-gold);
	outline-offset: -5px;
}

.sunnys-mexica-sun-stone__stage[data-sun-stone-state="loading"]::after {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	content: "正在载入太阳石…";
	color: var(--sun-stone-caption);
	font-size: 13px;
	letter-spacing: .08em;
	transform: translate(-50%, -50%);
}

.sunnys-mexica-sun-stone__fallback {
	display: none;
	object-fit: cover;
	filter: brightness(.66) contrast(1.06);
	transform: translateX(-4.5%);
}

.sunnys-mexica-sun-stone__fallback.is-visible {
	display: block;
}

.sunnys-mexica-sun-stone__panel {
	min-width: 0;
}

.sunnys-mexica-sun-stone__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
	gap: 10px;
}

.sunnys-mexica-sun-stone__actions button,
.sunnys-mexica-sun-stone__layers button {
	position: relative;
	display: inline-flex;
	min-width: 0;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	color: #e9dccb;
	font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	background: var(--sun-stone-surface);
	border: 1px solid rgba(216, 163, 75, .34);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sunnys-mexica-sun-stone__actions button:first-child {
	color: #25100c;
	background: linear-gradient(135deg, #f4d58a, #d8a34b);
	border-color: var(--sun-stone-gold);
}

.sunnys-mexica-sun-stone__actions button:hover,
.sunnys-mexica-sun-stone__layers button:hover {
	border-color: #f4d58a;
	box-shadow: 0 0 0 1px rgba(244, 213, 138, .16), 0 8px 16px rgba(0, 0, 0, .18);
	transform: translateY(-1px);
}

.sunnys-mexica-sun-stone__actions button:focus-visible,
.sunnys-mexica-sun-stone__layers button:focus-visible,
.sunnys-mexica-sun-stone__credit a:focus-visible {
	outline: 3px solid var(--sun-stone-gold);
	outline-offset: 3px;
}

.sunnys-mexica-sun-stone__actions svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sunnys-mexica-sun-stone__layers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.sunnys-mexica-sun-stone__layers button {
	justify-content: flex-start;
	min-height: 48px;
	padding-inline: 13px;
	text-align: left;
}

.sunnys-mexica-sun-stone__layers button span {
	color: #c39a59;
	font-family: Georgia, serif;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
}

.sunnys-mexica-sun-stone__actions button:active,
.sunnys-mexica-sun-stone__layers button:active {
	filter: brightness(.88);
	transform: translateY(0);
}

.sunnys-mexica-sun-stone__layers button[aria-pressed="true"] {
	padding-left: 17px;
	color: var(--sun-stone-ink-strong);
	background: var(--sun-stone-surface-selected);
	border-width: 2px;
	border-color: #e1b862;
	box-shadow: inset 4px 0 var(--sun-stone-gold);
}

.sunnys-mexica-sun-stone__detail {
	min-height: 168px;
	margin-top: 14px;
	padding: 18px;
	background: linear-gradient(145deg, rgba(93, 35, 34, .34), rgba(20, 6, 5, .82));
	border: 1px solid rgba(196, 174, 160, .2);
	border-radius: 10px;
}

.sunnys-mexica-sun-stone__detail h4 {
	margin: 5px 0 0;
	color: var(--sun-stone-ink);
	font-family: Georgia, "Noto Serif SC", serif;
	font-size: 21px;
	line-height: 1.3;
}

.sunnys-mexica-sun-stone__detail > p:last-child {
	margin: 10px 0 0;
	color: var(--sun-stone-ink-muted);
	font-size: 13px;
	line-height: 1.75;
}

.sunnys-mexica-sun-stone__help,
.sunnys-mexica-sun-stone__status,
.sunnys-mexica-sun-stone__boundary,
.sunnys-mexica-sun-stone__credit {
	color: var(--sun-stone-caption);
	font-size: 11px;
	line-height: 1.7;
}

.sunnys-mexica-sun-stone__help {
	margin: 15px 0 0;
}

.sunnys-mexica-sun-stone__status {
	min-height: 2.9em;
	margin: 8px 0 0;
	padding-top: 8px;
	color: #dec79f;
	border-top: 1px solid rgba(196, 174, 160, .16);
}

.sunnys-mexica-sun-stone__boundary {
	margin: 24px 0 0;
	padding: 13px 15px;
	background: rgba(78, 23, 19, .24);
	border-left: 3px solid var(--sun-stone-vermilion);
}

.sunnys-mexica-sun-stone__boundary strong {
	color: #e9d9c2;
}

.sunnys-mexica-sun-stone__credit {
	margin: 12px 0 0;
}

.sunnys-mexica-sun-stone__credit a {
	color: var(--sun-stone-gold);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

@media (max-width: 900px) {
	.sunnys-mexica-sun-stone__experience {
		grid-template-columns: 1fr;
	}

	.sunnys-mexica-sun-stone__panel {
		max-width: 720px;
		margin-inline: auto;
	}

	.sunnys-mexica-sun-stone__detail {
		min-height: 0;
	}
}

@media (max-width: 760px) {
	.sunnys-mexica-calendar .sunnys-mexica-sun-stone {
		order: 5;
		padding: 24px clamp(16px, 5vw, 24px);
	}

	.sunnys-mexica-sun-stone__heading h3 {
		font-size: clamp(25px, 8vw, 34px);
	}

	.sunnys-mexica-sun-stone__actions button,
	.sunnys-mexica-sun-stone__layers button {
		min-height: 48px;
		font-size: 14px;
	}

	.sunnys-mexica-sun-stone__heading > p:last-child,
	.sunnys-mexica-sun-stone__detail > p:last-child {
		font-size: 15px;
	}

	.sunnys-mexica-sun-stone__help,
	.sunnys-mexica-sun-stone__status,
	.sunnys-mexica-sun-stone__boundary,
	.sunnys-mexica-sun-stone__credit {
		font-size: 14px;
	}
}

@media (max-width: 430px) {
	.sunnys-mexica-sun-stone__actions,
	.sunnys-mexica-sun-stone__layers {
		grid-template-columns: 1fr;
	}

}

@media (prefers-reduced-motion: reduce) {
	.sunnys-mexica-sun-stone *,
	.sunnys-mexica-sun-stone *::before,
	.sunnys-mexica-sun-stone *::after {
		scroll-behavior: auto !important;
		animation: none !important;
		transition-duration: .001ms !important;
	}

	.sunnys-mexica-sun-stone__actions button:hover,
	.sunnys-mexica-sun-stone__layers button:hover {
		transform: none;
	}
}


/* Enlarge only the three calendar-seal pictures; numerals and wheel glyphs retain their sizing. */
.sunnys-mexica-calendar .sunnys-maya-calendar__result-glyphs .sunnys-maya-calendar__result-glyph {
  width: clamp(56px, 5.667vw, 69.333px);
  height: clamp(56px, 5.667vw, 69.333px);
}

@media (max-width: 420px) {
  .sunnys-mexica-calendar .sunnys-maya-calendar__result-glyphs .sunnys-maya-calendar__result-glyph {
    width: 50.667px;
    height: 50.667px;
  }

  .sunnys-mexica-calendar .sunnys-maya-calendar__result-glyphs .sunnys-maya-calendar__result-symbols {
    grid-template-columns: 32.2px minmax(0, 1fr);
  }
}
