.lcbp-chant-game {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	font-family: inherit;
	color: #4a3010;
	/* Tile pattern ใต้ภาพพระ */
	background-image: url('https://www.lcbp.co.th/wp-content/uploads/2026/06/bgpt3.webp');
	background-repeat: repeat;
	background-position: center top;
	background-size: 50px 50px;
	border-radius: 26px;
	padding-bottom: 40px;
}

/* ---------- HERO (1200×720 ภาพเต็ม ไม่ fade) ---------- */
.lcbp-chant-hero-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1200 / 720;
	overflow: hidden;
	border-radius: 26px 26px 0 0;
	border: 3px solid transparent;
	background:
		linear-gradient( 160deg, #7a5420 0%, #3c2a0d 100% ) padding-box,
		linear-gradient( 135deg, #f5d060 0%, #b8750a 25%, #f7e080 50%, #b8750a 75%, #f5d060 100% ) border-box;
	box-shadow:
		0 12px 28px rgba(0,0,0,.45),
		0 4px 10px rgba(0,0,0,.30);
}

.lcbp-chant-hero {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: background-image .35s ease;
}

/* ไม่มี fade gradient แล้ว — ตัดออก */
.lcbp-chant-hero-fade { display: none; }

/* Empty state message */
.lcbp-chant-hero-empty-msg {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	color: rgba(255,235,190,.9);
	font-size: 13px;
}
.lcbp-chant-hero-wrap.is-empty .lcbp-chant-hero-empty-msg { display: flex; }

.lcbp-chant-buddha-row {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 3;
}
.lcbp-buddha-thumb {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.85);
	background: rgba(0,0,0,.3) center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 7px;
	line-height: 1;
	color: #fff;
	text-align: center;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,.35);
	transition: transform .15s, border-color .15s;
}
.lcbp-buddha-thumb.active { border-color: #ffd166; transform: scale(1.12); box-shadow: 0 0 0 3px rgba(255,209,102,.45); }
.lcbp-buddha-thumb span { padding: 1px; }

/* ---------- PANEL ---------- */
.lcbp-chant-panel-wrap {
	position: relative;
	z-index: 2;
	margin-top: -9%;
	padding: 0 16px;
}

.lcbp-chant-panel {
	max-width: 700px;
	margin: 0 auto;
	border: 3px solid transparent;
	background:
		url('https://www.lcbp.co.th/wp-content/uploads/2026/06/bgmon2.webp') top center / 100% auto no-repeat padding-box,
		linear-gradient( #fffdf6, #fffdf6 ) padding-box,
		linear-gradient( 135deg, #f5d060 0%, #b8750a 25%, #f7e080 50%, #b8750a 75%, #f5d060 100% ) border-box;
	border-radius: 24px;
	box-shadow:
		0 20px 60px rgba(30, 18, 4, 0.45),
		0 6px 18px rgba(30, 18, 4, 0.28),
		0 0 0 1px rgba(180, 130, 40, 0.12);
	padding: 26px 20px 30px;
}

.lcbp-chant-header { text-align: center; margin-bottom: 16px; }
.lcbp-chant-title {
	margin: 0 0 6px;
	font-size: 25px;
	color: #8a5a00;
	font-weight: 800;
}
.lcbp-chant-subtitle { margin: 2px 0; color: #6b4f1d; font-size: 14px; text-align: center !important; }
.lcbp-chant-subtitle2 { font-weight: 600; }

/* ---------- Sign-in / Name input ---------- */
.lcbp-chant-signin {
	background: #fff;
	border: 1px solid #f0e0bb;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
}
.lcbp-chant-signin-label { margin: 0 0 10px; font-weight: 700; color: #8a5a00; text-align: center; }
.lcbp-chant-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: center; }
.lcbp-chant-field { display: flex; flex-direction: row; align-items: center; font-size: 13px; color: #6b4f1d; gap: 8px; }
.lcbp-chant-name-input {
	padding: 9px 12px;
	border: 1.5px solid #e0c98c;
	border-radius: 8px;
	font-size: 15px;
	min-width: 190px;
	background: #fffefb;
	transition: border-color .18s;
}
.lcbp-chant-name-input:focus {
	outline: none;
	border-color: #c9930b;
	box-shadow: 0 0 0 3px rgba(201,147,11,.15);
}
.lcbp-chant-name-hint {
	margin: 8px 0 0;
	font-size: 12px;
	color: #aaa;
	text-align: center;
}

/* ---------- Chant plate ---------- */
.lcbp-chant-plate-wrap { display: flex; justify-content: center; margin: 10px 0 18px; }
.lcbp-chant-plate {
	width: 100%;
	min-height: 110px;
	border-radius: 14px;
	background: linear-gradient(135deg, #f7d896 0%, #e9b65e 100%);
	border: 3px solid #c9930b;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 18px;
	box-shadow: inset 0 0 0 4px rgba(255,255,255,0.35);
	background-size: cover;
	background-position: center;
}
@keyframes plate-border-pulse {
	0%   { box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), 0 0 0 0 rgba(201,147,11,.75); }
	55%  { box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), 0 0 18px 8px rgba(201,147,11,.18); }
	100% { box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), 0 0 0 0 rgba(201,147,11,0); }
}
@keyframes plate-border-ripple {
	0%   { outline: 3px solid rgba(232,165,12,.0); outline-offset: 0px; }
	40%  { outline: 3px solid rgba(232,165,12,.55); outline-offset: 8px; }
	100% { outline: 3px solid rgba(232,165,12,.0); outline-offset: 18px; }
}
.lcbp-chant-plate.has-result {
	animation: plate-border-pulse 2.2s ease-out infinite, plate-border-ripple 2.2s ease-out infinite;
	border-color: #e8a50c;
	transition: border-color .3s;
}
.lcbp-chant-plate-placeholder { color: #7a5414; font-size: 14px; }
.lcbp-chant-plate-result a {
	display: inline-block;
	font-size: 32px;
	font-weight: 800;
	color: #5b3a00;
	text-decoration: none;
}
.lcbp-chant-plate-result a:hover { color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,.85); }

/* ---------- Actions ---------- */
.lcbp-chant-actions-draw { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.lcbp-chant-draw-hint { margin: 0; font-size: 13px; color: #7a5414; text-align: center; }
.lcbp-chant-actions-save { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; }
.lcbp-chant-save-hint { margin: 0; font-size: 15px; font-weight: 600; color: #000; text-align: center; }

.lcbp-btn {
	border: none;
	border-radius: 999px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .15s, box-shadow .22s, color .18s;
}
.lcbp-btn:active:not(:disabled) {
	transform: scale(0.92) !important;
	box-shadow: inset 0 4px 12px rgba(0,0,0,.22), 0 1px 4px rgba(0,0,0,.12) !important;
	transition: transform .08s ease, box-shadow .08s ease;
}
.lcbp-btn-draw { background: linear-gradient(135deg,#ffb84d,#ff8c1a); color: #4a2600; }
.lcbp-btn-draw:hover:not(:disabled) {
	transform: scale(1.07);
	color: #fff;
	box-shadow: 0 6px 22px rgba(255,140,26,.55), 0 2px 8px rgba(0,0,0,.12);
}
.lcbp-btn-save {
	background: linear-gradient(135deg,#6dd5fa,#2980b9);
	color: #0d2a45;
	background-size: cover;
	background-position: center;
}
.lcbp-btn-save:hover:not(:disabled) {
	transform: scale(1.07);
	color: #fff;
	box-shadow: 0 6px 22px rgba(41,128,185,.55), 0 2px 8px rgba(0,0,0,.12);
}
.lcbp-btn-cancel {
	background: #f0ece4;
	color: #5a4010;
	border: 1.5px solid #d0b87a;
}
.lcbp-btn-cancel:hover { background: #e8e0d0; }
.lcbp-btn:disabled { opacity: .45; cursor: not-allowed; }

.lcbp-chant-msg { text-align: center; min-height: 20px; font-size: 14px; font-weight: 600; color: #2f7d32; margin: 4px 0 0; }
.lcbp-chant-msg.is-error { color: #c0392b; }

/* ---------- Leaderboard ---------- */
.lcbp-chant-leaderboard { margin-top: 22px; }
.lcbp-chant-leaderboard h3 { text-align: center; color: #8a5a00; margin-bottom: 10px; font-size: 16px; }
.lcbp-chant-leaderboard-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
}
.lcbp-chant-leaderboard-table th,
.lcbp-chant-leaderboard-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #f0e6cc;
	font-size: 14px;
	text-align: left;
}
.lcbp-chant-leaderboard-table th { background: #fbe9c5; color: #6b4f1d; }

/* Own row — pinned first, highlighted */
.lcbp-chant-leaderboard-table tr.is-me td {
	background: #fff8e1;
	font-weight: 700;
}
.lcbp-me-tag {
	font-size: 11px;
	font-weight: 400;
	color: #b08a2e;
	margin-left: 4px;
}

/* Divider row between own row and friends */
.lcbp-chant-leaderboard-table tr.lcbp-lb-divider td {
	background: #f9f4ea;
	color: #b08a2e;
	font-size: 12px;
	text-align: center;
	padding: 5px 10px;
	border-bottom: 2px solid #f0e6cc;
}

.lcbp-chant-leaderboard-table td:nth-child(1) { width: 30px; color: #b08a2e; }
.lcbp-chant-leaderboard-table td:nth-child(3) { font-weight: 700; color: #c9930b; }

/* ---------- Pagination ---------- */
#lcbp-leaderboard-pager { margin-top: 10px; }
.lcbp-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 6px 0;
}
.lcbp-pager-btn {
	background: #fbe9c5;
	border: 1px solid #e0c98c;
	border-radius: 8px;
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #6b4f1d;
	cursor: pointer;
	transition: background .15s;
}
.lcbp-pager-btn:hover:not([disabled]) { background: #f7d896; }
.lcbp-pager-btn[disabled] { opacity: .4; cursor: default; }
.lcbp-pager-info { font-size: 13px; color: #8a5a00; font-weight: 600; }

/* ---------- Confirm dialog (ชื่อซ้ำ) ---------- */
.lcbp-confirm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.lcbp-confirm-box {
	background: #fffdf6;
	border-radius: 18px;
	padding: 28px 26px 22px;
	max-width: 360px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
	text-align: center;
}
.lcbp-confirm-title {
	font-size: 17px;
	font-weight: 800;
	color: #8a5a00;
	margin: 0 0 10px;
}
.lcbp-confirm-msg {
	font-size: 14px;
	color: #4a3010;
	line-height: 1.6;
	margin: 0 0 20px;
}
.lcbp-confirm-btns {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.lcbp-confirm-btns .lcbp-btn { font-size: 14px; padding: 10px 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
	.lcbp-chant-title { font-size: 21px; }
	.lcbp-chant-name-input { min-width: 150px; font-size: 14px; }
	.lcbp-buddha-thumb { width: 32px; height: 32px; }
	.lcbp-chant-panel { padding: 20px 16px 24px; border-radius: 18px; }
	.lcbp-chant-plate-result a { font-size: 24px; }
}
