:root {
	--mural-ink: #2b2620;
	--mural-accent: #a8742c;
	--mural-accent-dark: #6b3f0a;
	--mural-bg: #faf7f1;
	--mural-card-bg: #ffffff;
	--mural-border: #d8cfbe;
}

html.mural-fullscreen,
body.mural-fullscreen {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: var(--mural-bg);
	color: var(--mural-ink);
	font-family: "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
	overscroll-behavior: none;
}

.mural-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	font-size: 1rem;
	color: var(--mural-accent-dark);
}

/* ---------- List page ---------- */

.mural-list-header {
	width: 100%;
	box-sizing: border-box;
	padding: clamp(10px, 2vw, 20px) clamp(8px, 2vw, 20px) 0;
	text-align: left;
}

.mural-list-back {
	display: inline-flex;
	align-items: center;
	background: rgba(43, 38, 32, 0.72);
	color: #fff;
	text-decoration: none;
	font-size: 0.85rem;
	line-height: 1;
	padding: 8px 14px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.mural-list-back:hover,
.mural-list-back:focus {
	background: rgba(43, 38, 32, 0.9);
	color: #fff;
}

.mural-list-title {
	margin: 0;
	font-size: clamp(1.05rem, 2.4vw, 1.4rem);
	line-height: 1.4;
	color: var(--mural-accent-dark);
}

.mural-list-en {
	margin: 6px 0 0;
	font-size: 0.85rem;
	line-height: 1.5;
	font-style: italic;
	color: var(--mural-accent-dark);
}

.mural-list-caution {
	margin: 4px 0 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--mural-ink);
}

.mural-list-app {
	min-height: 100vh;
	width: 100%;
	box-sizing: border-box;
	padding: clamp(8px, 2vw, 20px);
	display: grid;
	gap: clamp(8px, 1.5vw, 16px);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mural-card {
	display: flex;
	flex-direction: column;
	background: var(--mural-card-bg);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(43, 38, 32, 0.18);
	border: 3px solid transparent;
}

.mural-card.is-voted {
	border-color: var(--mural-accent);
}

.mural-card__link {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	text-decoration: none;
	color: inherit;
}

.mural-card__thumb-wrap {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.mural-card__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mural-card__badge {
	position: absolute;
	right: 8px;
	bottom: 8px;
	background: rgba(43, 38, 32, 0.72);
	color: #fff;
	font-size: 1.01rem;
	font-weight: bold;
	line-height: 1.4;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.mural-card__vote-btn {
	appearance: none;
	border: none;
	border-top: 1px solid var(--mural-border);
	background: var(--mural-accent);
	color: #fff;
	font-size: 0.85rem;
	font-weight: bold;
	padding: 10px 8px;
	cursor: pointer;
}

.mural-card__vote-btn:disabled {
	background: #b8b0a1;
	color: #f2efe9;
	cursor: default;
}

.mural-card.is-voted .mural-card__vote-btn:disabled {
	background: var(--mural-accent);
	color: #fff;
}

.btn-en {
	display: inline-block;
	margin-top: 2px;
	font-size: 0.78em;
	font-weight: normal;
	font-style: italic;
	opacity: 0.85;
}

/* ---------- Single page ---------- */

.mural-back-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 500;
	display: inline-flex;
	align-items: center;
	background: rgba(43, 38, 32, 0.72);
	color: #fff;
	text-decoration: none;
	font-size: 0.85rem;
	line-height: 1;
	padding: 10px 16px;
	border-radius: 999px;
}

.mural-back-link:hover,
.mural-back-link:focus {
	background: rgba(43, 38, 32, 0.9);
	color: #fff;
}

.mural-single-app {
	min-height: 100vh;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

.mural-single__stage {
	width: 100%;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	touch-action: pinch-zoom pan-x pan-y;
	background: #111;
	min-height: 60vh;
}

.mural-single__image {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	transition: transform 0.25s ease;
	transform-origin: center center;
	cursor: zoom-in;
	touch-action: pinch-zoom pan-x pan-y;
}

.mural-single__image.is-zoomed {
	max-width: none;
	max-height: none;
	width: auto;
	transform: scale(1.8);
	cursor: zoom-out;
}

.mural-single__panel {
	width: 100%;
	box-sizing: border-box;
	padding: 16px clamp(12px, 4vw, 32px) calc(16px + env(safe-area-inset-bottom));
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: var(--mural-card-bg);
	border-top: 1px solid var(--mural-border);
}

.mural-single__info {
	flex: 1 1 260px;
	min-width: 0;
}

.mural-single__title {
	margin: 0 0 6px;
	font-size: 1.15rem;
	line-height: 1.4;
	color: var(--mural-ink);
}

.mural-single__meta {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	font-size: 0.85rem;
	color: var(--mural-accent-dark);
}

.mural-single__artist {
	font-weight: bold;
}

.mural-single__votes {
	font-size: 1.1rem;
	font-weight: bold;
}

.mural-single__comment {
	margin: 10px 0 0;
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--mural-ink);
	white-space: pre-wrap;
	max-height: 40vh;
	overflow-y: auto;
}

.mural-vote-button {
	appearance: none;
	border: none;
	border-radius: 999px;
	padding: 12px 28px;
	font-size: 1rem;
	font-weight: bold;
	background: var(--mural-accent);
	color: #fff;
	cursor: pointer;
}

.mural-vote-button:disabled {
	background: #b8b0a1;
	cursor: default;
}

.mural-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 12px);
	background: rgba(43, 38, 32, 0.92);
	color: #fff;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 0.9rem;
	max-width: 90vw;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 1000;
}

.mural-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}
