.rewind-choice-bar {
	position: absolute;
	z-index: 10020;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px 16px 14px;
	border: 1px solid rgba(184, 160, 255, .85);
	border-radius: 16px;
	color: #f2edff;
	background: rgba(25, 21, 50, .88);
	box-shadow: 0 0 24px rgba(139, 105, 255, .48);
	backdrop-filter: blur(3px);
	pointer-events: none;
	animation: rewind-choice-arrive .4s cubic-bezier(.2, 1.3, .35, 1) both;
}

.rewind-choice-title { font-size: 14px; font-weight: 800; color: #d8cbff; }
.rewind-choice-title i { margin-right: 5px; color: #b79cff; }
.rewind-actions { display: flex; gap: 14px; justify-content: center; pointer-events: auto; }
.rewind-actions button { min-width: 120px; padding: 11px 22px; border: 1px solid #8875c9; border-radius: 999px; color: #eee9ff; background: #393354; cursor: pointer; }
.rewind-actions .rewind-confirm { background: linear-gradient(135deg, #7651df, #443094); }
.rewind-actions button:hover:not(:disabled) { filter: brightness(1.2); transform: translateY(-1px); }
.rewind-actions button:disabled { opacity: .55; cursor: wait; }

@keyframes rewind-choice-arrive {
	from { opacity: 0; transform: translate(-50%, -50%) scale(.45) rotate(-5deg); }
	to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

.combat-heal-number {
	position: fixed;
	z-index: 10001;
	pointer-events: none;
	transform: translate(-50%, -50%);
	color: #5dff7b;
	font-family: 'Arial Black', 'Microsoft YaHei', sans-serif;
	font-size: clamp(30px, 3vw, 48px);
	font-weight: 900;
	line-height: 1;
	-webkit-text-stroke: 2px #efffe8;
	text-shadow: 0 3px 0 #116b2b, 0 5px 5px #000, 0 0 18px rgba(55, 255, 105, .95);
	animation: combat-heal-pop .9s cubic-bezier(.18, .8, .28, 1) forwards;
}

.combat-heal-glow {
	animation: combat-heal-glow .7s ease-out;
}

@keyframes combat-heal-pop {
	0% { opacity: 0; transform: translate(-50%, -30%) scale(.45); }
	28% { opacity: 1; transform: translate(-50%, -65%) scale(1.3); }
	100% { opacity: 0; transform: translate(-50%, -135%) scale(.9); }
}

@keyframes combat-heal-glow {
	0%, 100% { filter: none; }
	35% { filter: brightness(1.55) drop-shadow(0 0 16px #55ff7a); }
}

.game-end-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle, rgba(20, 30, 45, .35), rgba(0, 0, 0, .82));
	animation: game-end-fade-in .6s ease-out both;
}

.game-end-panel {
	min-width: 320px;
	padding: 38px 50px 32px;
	text-align: center;
	color: #f8e5a2;
	border: 3px solid #d5aa4e;
	border-radius: 24px;
	background: linear-gradient(160deg, #263850, #111927 65%);
	box-shadow: 0 0 45px rgba(243, 190, 72, .55), inset 0 0 25px rgba(255, 255, 255, .08);
	animation: game-end-arrive .9s cubic-bezier(.2, 1.35, .35, 1) both;
}

.game-end-emblem { font-size: 54px; filter: drop-shadow(0 0 12px #f6c552); }
.game-end-title { margin-top: 8px; font-size: 58px; font-weight: 900; letter-spacing: 10px; text-shadow: 0 3px 0 #684516, 0 0 18px #f2bd4c; }
.game-end-subtitle { margin: 12px 0 24px; color: #d6dbea; font-size: 18px; }
.game-end-close { padding: 10px 24px; border: 1px solid #d5aa4e; border-radius: 999px; color: #f8e5a2; background: #47361d; cursor: pointer; }
.game-end-close:hover { background: #674d25; }
.game-end-失败 { filter: grayscale(.35); }
.game-end-平局 { filter: saturate(.65); }

@keyframes game-end-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes game-end-arrive { from { opacity: 0; transform: scale(.45) rotate(-5deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

@import 'fonts.css';

:root {
	--color-gold: #ffd700;
	--color-red: #ff6b6b;
	--color-blue: #4da6ff;
	--color-green: #4cd964;
	--color-orange: #ff8c00;
}

body {
	background: radial-gradient(ellipse at center, #0c1a2d 0%, #050a13 100%);
	color: #f0e6d2;
	font-family: 'Roboto Slab', 'Segoe UI', 'Microsoft YaHei', sans-serif;
	overflow: hidden;
	margin: 0;
	padding: 0;
	height: 100vh;
}

.hs-card {
	background: linear-gradient(145deg, #1c2f40, #0f1c2a);
	border: 2px solid #3a536b;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
	transition: all 0.3s ease;
	position: relative;
	overflow: visible;
}

.hs-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9);
}

.mana-crystal {
	background: linear-gradient(145deg, #2a7fff, #0055cc);
	border: 2px solid #aaddff;
	box-shadow: 0 0 10px rgba(42, 127, 255, 0.6);
}

.mana-crystal-empty {
	background: linear-gradient(145deg, #3a536b, #2a435b);
	border-color: #8899aa;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.status-tag {
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-size: 0.7rem;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-taunt {
	background: linear-gradient(to right, #4cd964, #3db856);
	border-color: #4cd964;
}

.status-divine-shield {
	background: linear-gradient(to right, #aaddff, #88bbee);
	border-color: #aaddff;
	color: #000;
}

.status-stealth {
	background: linear-gradient(to right, #8899aa, #667788);
	border-color: #aaddff;
	color: #fff;
}

.status-lifesteal {
	background: linear-gradient(to right, #8b0000, #b22222);
	border-color: #ff0000;
}

.status-poisonous {
	background: linear-gradient(to right, #4b0082, #9370db);
	border-color: #9400d3;
}

.status-frozen {
	background: linear-gradient(to right, #0ea5e9, #bae6fd);
	border-color: #e0f2fe;
	color: #082f49;
}

.status-reborn {
	background: linear-gradient(to right, #166534, #22c55e);
	border-color: #86efac;
	color: #f0fdf4;
}

.status-sleeping {
	background: linear-gradient(to right, #475569, #64748b);
	border-color: #94a3b8;
	color: #fff;
}

.status-dormant {
	background: linear-gradient(to right, #374151, #6b7280);
	border-color: #9ca3af;
	color: #f9fafb;
}

.status-windfury {
	background: linear-gradient(to right, #daa520, #ffd700);
	border-color: #ffd700;
	color: #000;
}

.status-immune {
	background: linear-gradient(to right, #d946ef, #9333ea);
	border-color: #f0abfc;
	color: #fdf4ff;
}

.status-spell-immune {
	background: linear-gradient(to right, #06b6d4, #2563eb);
	border-color: #67e8f9;
	color: #ecfeff;
}

.hand-card-overlap {
	margin-left: -60px;
	position: relative;
}

.hand-card-overlap:first-child {
	margin-left: 0;
}

.hand-few-cards .hand-card-overlap {
	margin-left: 0 !important;
	margin-right: 10px;
	margin-left: 10px !important;
}

.hand-few-cards .hand-scroll-container {
	justify-content: center !important;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.hand-few-cards {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hand-card-overlap:hover {
	z-index: 50 !important;
}

.hand-card-overlap .hs-card:hover {
	transform: none !important;
}

.battlefield-minion {
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
	margin: 0 5px;
}

.battlefield-minion:hover {
	transform: translateY(-8px);
	z-index: 100;
}

.battlefield-minion.dormant-minion {
	cursor: default;
	filter: grayscale(0.45) saturate(0.75);
	opacity: 0.72;
}

.battlefield-minion.dormant-minion:hover {
	transform: none;
	z-index: 1;
}

.battlefield-minion.dormant-minion .battlefield-card {
	cursor: default;
	box-shadow: inset 0 0 0 2px rgba(140, 160, 180, 0.45), 0 0 14px rgba(60, 80, 110, 0.35);
}

.battlefield-minion.dormant-minion .card-full-bg {
	filter: grayscale(0.55) brightness(0.72);
}

.battlefield-minion.dormant-minion .card-attack-stat,
.battlefield-minion.dormant-minion .card-health-stat {
	opacity: 0.55;
}

.card-tooltip-image {
	width: 100%;
	height: 320px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
	background-color: #1a202c;
	border-radius: 6px;
	border: 1px solid #3a536b;
}

.card-tooltip-image.dynamic-card-image {
	background-position: center top;
}

.card-dynamic-cost-overlay {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(145deg, #2a7fff, #0055cc);
	border: 3px solid #aaddff;
	box-shadow: 0 0 12px rgba(42, 127, 255, 0.75), inset 0 0 8px rgba(255, 255, 255, 0.28);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 26px;
	font-weight: 900;
	line-height: 1;
	text-shadow: 0 2px 2px rgba(0, 0, 0, 0.65);
	pointer-events: none;
}

.card-tooltip-mana-overlay,
.card-tooltip-attack-overlay,
.card-tooltip-health-overlay,
.card-tooltip-weapon-health-overlay {
	position: absolute;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 6;
	font-size: 24px;
	font-weight: 900;
	line-height: 1;
	color: #fff;
	text-shadow: 0 2px 2px rgba(0, 0, 0, 0.75);
	pointer-events: none;
}

.card-tooltip-mana-overlay {
	top: 15px;
	left: 14px;
	background: linear-gradient(145deg, #2a7fff, #0055cc);
	border: 3px solid #aaddff;
	box-shadow: 0 0 12px rgba(42, 127, 255, 0.75), inset 0 0 8px rgba(255, 255, 255, 0.28);
}

.card-tooltip-attack-overlay {
	left: 17px;
	bottom: 12px;
	background: rgba(0, 0, 0, 0.78);
	border: 3px solid #ff6b6b;
	color: #ff6b6b;
	box-shadow: 0 0 12px rgba(255, 107, 107, 0.62);
}

.card-tooltip-health-overlay {
	right: 17px;
	bottom: 12px;
	background: rgba(0, 0, 0, 0.78);
	border: 3px solid #4cd964;
	color: #4cd964;
	box-shadow: 0 0 12px rgba(76, 217, 100, 0.62);
}

.card-tooltip-health-overlay.health-damaged {
	border-color: #ff4d4f;
	color: #ff4d4f;
	box-shadow: 0 0 12px rgba(255, 77, 79, 0.62);
}

.card-tooltip-weapon-health-overlay {
	right: 17px;
	bottom: 12px;
	background: rgba(0, 0, 0, 0.78);
	border: 3px solid #4cd964;
	color: #4cd964;
	box-shadow: 0 0 12px rgba(76, 217, 100, 0.62);
}

.card-dynamic-text-overlay {
	position: absolute;
	left: 46px;
	top: 202px;
	width: 161px;
	height: 74px;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(114, 73, 28, 0.75);
	background: linear-gradient(180deg, rgba(249, 226, 170, 0.98), rgba(206, 159, 92, 0.98));
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(255, 246, 198, 0.55);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #2b1a0f;
	text-shadow: 0 1px 0 rgba(255, 243, 205, 0.6);
}

.card-tooltip-image.dynamic-hero-power-image .card-dynamic-text-overlay {
	left: 46px;
	top: 220px;
}

.card-dynamic-name-overlay {
	position: absolute;
	left: 62px;
	right: 62px;
	top: 169px;
	min-height: 32px;
	padding: 1px 8px;
	border-radius: 9px 9px 7px 7px;
	background: linear-gradient(180deg, rgba(226, 195, 115, 0.97), rgba(154, 116, 57, 0.98));
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45), inset 0 0 7px rgba(255, 244, 181, 0.5);
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #1f150a;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.05;
	text-shadow: 0 1px 0 rgba(255, 239, 180, 0.65);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.card-dynamic-desc {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.18;
}

.large-card-text-md {
	font-size: 13px;
	line-height: 1.12;
}

.large-card-text-sm {
	font-size: 11.5px;
	line-height: 1.06;
}

.large-card-text-xs {
	font-size: 10px;
	line-height: 1.02;
}

.card-full-container {
	width: 100%;
	height: 100%;
	position: relative;
	border-radius: 6px;
	overflow: hidden;
}

.card-full-bg {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: absolute;
	top: 10;
	left: 0;
	z-index: 1;
}

.small-card-dynamic-text-overlay {
	position: absolute;
	left: 23px;
	top: 125px;
	width: 95px;
	height: 40px;
	padding: 3px 4px;
	border-radius: 4px;
	border: 1px solid rgba(105, 64, 23, 0.72);
	background: linear-gradient(180deg, rgba(248, 225, 170, 0.96), rgba(204, 157, 92, 0.97));
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.48), inset 0 0 8px rgba(255, 245, 197, 0.45);
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #2b1a0f;
	text-shadow: 0 1px 0 rgba(255, 243, 205, 0.55);
	pointer-events: none;
}

.small-card-dynamic-desc {
	font-size: 7.8px;
	font-weight: 700;
	line-height: 1.08;
	display: -webkit-box;
	line-clamp: 3;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.small-card-text-md {
	font-size: 6.8px;
	line-height: 1.02;
}

.small-card-text-sm {
	font-size: 6px;
	line-height: 0.98;
}

.small-card-text-xs {
	font-size: 5.3px;
	line-height: 0.94;
}

.choice-card-text-overlay {
	position: absolute;
	left: 15%;
	right: 15%;
	top: 60%;
	min-height: 17%;
	padding: 6px 8px;
	border-radius: 8px;
	border: 1px solid rgba(105, 64, 23, 0.72);
	background: linear-gradient(180deg, rgba(248, 225, 170, 0.97), rgba(204, 157, 92, 0.98));
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.48), inset 0 0 10px rgba(255, 245, 197, 0.48);
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #2b1a0f;
	text-shadow: 0 1px 0 rgba(255, 243, 205, 0.55);
	pointer-events: none;
}

.choice-card-dynamic-desc {
	font-size: clamp(10px, 1vw, 14px);
	font-weight: 700;
	line-height: 1.12;
	display: -webkit-box;
	line-clamp: 4;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-mana-cost {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(145deg, #2a7fff, #0055cc);
	border: 2px solid #aaddff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	color: white;
	box-shadow: 0 0 8px rgba(42, 127, 255, 0.6);
	position: absolute;
	top: 5px;
	left: 5px;
	z-index: 10;
}

.card-attack-stat {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	border: 2px solid #ff6b6b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	color: #ff6b6b;
	box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
	position: absolute;
	bottom: 5px;
	left: 5px;
	z-index: 10;
}

.card-health-stat {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	position: absolute;
	bottom: 5px;
	right: 5px;
	z-index: 10;
}

.card-health-stat.health-full,
.hero-health-stat.health-full {
	border-color: #4cd964;
	color: #4cd964;
	box-shadow: 0 0 8px rgba(76, 217, 100, 0.5);
}

.card-health-stat.health-damaged,
.hero-health-stat.health-damaged {
	border-color: #ff4d4f;
	color: #ff4d4f;
	box-shadow: 0 0 8px rgba(255, 77, 79, 0.55);
}

.health-full {
	color: #4cd964;
}

.health-damaged {
	color: #ff4d4f;
}

.card-weapon-health-stat {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	border: 2px solid #ff8c00;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	color: #ff8c00;
	box-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
	position: absolute;
	bottom: 5px;
	right: 5px;
	z-index: 10;
}

.hero-attack-stat {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.8);
	border: 2px solid #ff6b6b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	color: #ff6b6b;
	box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
	position: absolute;
	bottom: 10px;
	left: -10px;
	z-index: 10;
}

.hero-health-stat {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.8);
	border: 2px solid #4cd964;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	color: #4cd964;
	box-shadow: 0 0 8px rgba(76, 217, 100, 0.5);
	position: absolute;
	bottom: 10px;
	right: -10px;
	z-index: 10;
}

.hero-armor-stat {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.8);
	border: 2px solid #4da6ff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	color: #4da6ff;
	box-shadow: 0 0 10px rgba(77, 166, 255, 0.5);
	position: absolute;
	top: 50%;
	right: -20px;
	transform: translateY(-50%);
	z-index: 10;
}

.hero-portrait-container {
	position: relative;
	margin-right: 20px;
}

.current-turn-arrow {
	position: absolute;
	left: -120px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 248, 196, 0.98), rgba(255, 193, 7, 0.95));
	border: 3px solid rgba(120, 72, 0, 0.85);
	box-shadow:
		0 8px 22px rgba(0, 0, 0, 0.4),
		0 0 20px rgba(255, 193, 7, 0.5);
	z-index: 60;
	pointer-events: none;
	animation: current-turn-arrow-bounce 1s infinite ease-in-out;
}

.current-turn-arrow-icon {
	font-size: 32px;
	font-weight: 900;
	line-height: 1;
	color: #6a3a00;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.current-turn-arrow-text {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #4e2a00;
	white-space: nowrap;
}

.hero-left-section {
	position: relative;
	z-index: 20;
	margin-left: 10px;
	overflow: visible;
}

.hero-portrait {
	width: 110px;
	height: 140px;
	border-radius: 55px / 70px;
	border: 3px solid #ffd700;
	overflow: hidden;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
	position: relative;
	flex-shrink: 0;
}

.current-turn-hero {
	border-color: #ffe082 !important;
	border-width: 5px !important;
	box-shadow:
		0 0 26px rgba(255, 224, 130, 0.95),
		0 0 54px rgba(255, 193, 7, 0.78),
		0 0 84px rgba(255, 179, 0, 0.48),
		inset 0 0 0 3px rgba(255, 248, 196, 0.95),
		inset 0 0 18px rgba(255, 224, 130, 0.34) !important;
	animation: current-turn-hero-glow 1.6s infinite alternate;
	transform: scale(1.04);
	z-index: 40;
}

.current-turn-hero::before {
	content: '当前回合';
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	padding: 3px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 248, 196, 0.98), rgba(255, 193, 7, 0.96));
	color: #4e2a00;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1px;
	text-shadow: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	z-index: 2;
	pointer-events: none;
}

.current-turn-hero::after {
	content: '';
	position: absolute;
	inset: 4px;
	border: 3px solid rgba(255, 248, 196, 0.95);
	border-radius: 48px / 63px;
	pointer-events: none;
	box-shadow: inset 0 0 20px rgba(255, 241, 118, 0.35);
	z-index: 1;
}

.hero-portrait img {
	width: 200%;
	height: 200%;
	object-fit: cover;
	object-position: 55%;
	margin-top: -40px;
}

.hero-status-overlay {
	position: absolute;
	top: -25px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 3px;
	z-index: 15;
}

.hero-side-card {
	width: 70px;
	height: 90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	margin-top: 20px;
	cursor: pointer;
	pointer-events: auto !important;
}

.hero-side-image {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: 6px;
	position: relative;
	overflow: hidden;
	border: 1px solid #3a536b;
	background-color: #1a202c;
	pointer-events: none;
}

.disabled-hero-power {
	cursor: not-allowed;
	filter: grayscale(0.85) brightness(0.55);
	opacity: 0.72;
	box-shadow: none !important;
}

.disabled-hero-power::before {
	display: none !important;
}

.hero-side-stats {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-around;
	padding: 2px;
	background: rgba(0, 0, 0, 0.7);
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
}

.hero-side-stat {
	font-size: 10px;
	font-weight: bold;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-power-stats {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	gap: 1px;
	min-height: 17px;
	padding: 4px 4px 3px;
	background: linear-gradient(180deg, rgba(8, 14, 26, 0.96), rgba(0, 0, 0, 0.98));
	border-top: 1px solid rgba(255, 232, 163, 0.5);
	text-align: center;
	line-height: 1.05;
}

.hero-power-face-name-overlay {
	position: absolute;
	left: 13px;
	right: 13px;
	top: 45px;
	min-height: 10px;
	padding: 0 1px;
	border-radius: 3px;
	background: linear-gradient(180deg, rgba(224, 193, 116, 0.96), rgba(150, 114, 60, 0.96));
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #1d1309;
	font-size: 5.5px;
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 1px 0 rgba(255, 239, 180, 0.65);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.hero-power-face-text-overlay {
	position: absolute;
	left: 10px;
	top: 52px;
	width: 46px;
	height: 21px;
	padding: 1px 2px;
	border-radius: 3px;
	border: 1px solid rgba(110, 88, 55, 0.65);
	background: linear-gradient(180deg, rgba(238, 220, 181, 0.97), rgba(203, 180, 138, 0.98));
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #1f160d;
	font-size: 4px;
	font-weight: 800;
	line-height: 0.95;
	text-shadow: 0 1px 0 rgba(255, 247, 215, 0.65);
	overflow: hidden;
	pointer-events: none;
}

.hero-power-face-keyword {
	font-size: 4.6px;
	font-weight: 900;
	line-height: 0.95;
}

.hero-power-name {
	padding: 0 !important;
	font-size: 8px !important;
	line-height: 1.05;
}

.hero-power-dynamic-desc {
	color: #ffe8a3;
	font-size: 9px;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: keep-all;
}

.hero-side-attack {
	color: #ff6b6b !important;
}

.hero-side-weapon-health {
	color: #4cd964 !important;
}

.hero-side-cost {
	position: absolute;
	top: -3px;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(145deg, #2a7fff, #0055cc);
	border: 2px solid #aaddff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: bold;
	color: white;
	box-shadow: 0 0 8px rgba(42, 127, 255, 0.6);
	z-index: 10;
}

.weapon-cost {
	position: absolute;
	top: -5px;
	left: -5px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(145deg, #2a7fff, #0055cc);
	border: 2px solid #aaddff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: bold;
	color: white;
	box-shadow: 0 0 8px rgba(42, 127, 255, 0.6);
	z-index: 10;
}

.hero-name-above {
	font-size: 16px;
	font-weight: bold;
	color: #ffd700;
	text-align: center;
	width: 100%;
	margin-bottom: 5px;
}

.hero-class-above {
	font-size: 12px;
	color: #4da6ff;
	text-align: center;
	width: 100%;
	margin-bottom: 10px;
}

.hero-name-container-above {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 70px;
	position: absolute;
	top: -40px;
	left: 0;
}

.hero-power-container {
	position: relative;
	width: 70px;
	height: 90px;
	margin-top: 20px;
}

.mana-readout {
	font-size: 30px;
	line-height: 1;
	letter-spacing: 0.04em;
	color: #9fd4ff;
	text-shadow: 0 0 12px rgba(42, 127, 255, 0.35);
}

.mana-circle {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #3a536b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	color: white;
}

.mana-circle.active {
	background: linear-gradient(145deg, #2a7fff, #0055cc);
	border-color: #aaddff;
	box-shadow: 0 0 8px rgba(42, 127, 255, 0.6);
}

.turn-info-container {
	position: absolute;
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
	z-index: 10;
	max-height: calc(100% - 32px);
	overflow-y: auto;
}

.game-status-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 35;
	width: 16.8rem;
	height: 100vh;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(8, 14, 24, 0.98), rgba(4, 8, 15, 0.98));
	border-right: 1px solid rgba(204, 153, 51, 0.62);
	box-shadow: 8px 0 24px rgba(0, 0, 0, 0.48);
	color: #e5e7eb;
}

.game-status-panel-title {
	flex: 0 0 auto;
	margin: 0;
	padding: 3px 0 9px;
	border-bottom: 1px solid rgba(204, 153, 51, 0.55);
	color: #f5cf75;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	letter-spacing: 0.08em;
}

.game-status-panel button:disabled {
	background: #4b5563 !important;
	background-image: none !important;
	border-color: #6b7280 !important;
	color: #d1d5db !important;
	box-shadow: none !important;
	filter: none !important;
	transform: none !important;
	opacity: 0.65 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}

.game-status-group {
	flex: 0 0 auto;
	padding: 9px;
	border: 1px solid rgba(117, 139, 164, 0.42);
	border-radius: 8px;
	background: rgba(25, 36, 51, 0.72);
}

.game-status-group-title {
	margin-bottom: 7px;
	color: #d7b76a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.game-status-create-row {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 6px;
}

.game-status-load-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 34px;
	gap: 6px;
}

.game-status-control {
	width: 100%;
	min-width: 0;
	height: 30px;
	box-sizing: border-box;
	padding: 4px 6px;
	border: 1px solid #455469;
	border-radius: 5px;
	background: #101927;
	color: #fff;
	font-size: 11px;
}

.game-status-wide-button {
	width: 100%;
	margin-top: 7px;
}

.game-status-icon-button {
	min-width: 0 !important;
	padding: 4px 6px !important;
}

.game-status-save-actions {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: 8px;
}

.game-status-save-actions .game-status-wide-button {
	margin-top: 0;
}

.game-status-state-group {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.game-status-summary {
	flex: 0 0 auto;
	padding: 7px;
	border-radius: 6px;
	background: rgba(7, 13, 23, 0.68);
	font-size: 10px;
}

.game-status-summary-line {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 3px;
	color: #aebbc9;
}

.game-status-summary-line strong {
	color: #fff;
	font-weight: 600;
	text-align: right;
}

.game-status-summary-detail {
	margin-bottom: 5px;
	color: #8392a5;
	line-height: 1.35;
	word-break: break-all;
}

.game-status-pending,
.game-status-error {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: 5px;
	padding: 5px 6px;
	border-radius: 4px;
	background: rgba(146, 91, 15, 0.3);
	color: #fde68a;
}

.game-status-pending button {
	color: #fecaca;
	text-decoration: underline;
}

.game-status-error {
	background: rgba(127, 29, 29, 0.42);
	color: #fecaca;
	word-break: break-all;
}

.game-status-toolbar {
	margin-top: 7px;
}

.game-status-traces {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	margin-top: 8px;
	overflow: hidden;
}

.game-status-trace-section {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.game-status-action-list {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none !important;
}

.game-status-feedback-button {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 36px;
	border: 1px solid #b45353;
	border-radius: 7px;
	background: #7f1d1d;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.game-status-feedback-button:hover:not(:disabled) {
	background: #991b1b;
}

.game-status-feedback-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

@media (max-height: 760px) {
	.game-status-panel {
		gap: 6px;
		padding: 8px;
	}

	.game-status-group {
		padding: 6px;
	}

	.game-status-group-title {
		margin-bottom: 4px;
	}

}

.battlefield-container {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.battlefield-area {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 400px;
}

.battlefield-minions {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	overflow: hidden;
	max-height: 100%;
	min-height: 220px;
	margin-top: 20px;
}

.player-minions {
	margin-top: 5px;
}

.hand-area {
	display: grid;
	grid-template-columns: 250px 1fr 200px;
	gap: 10px;
	height: 100%;
	padding: 5px 10px;
}

@media (max-width: 1400px) {
	.hand-area {
		grid-template-columns: 220px 1fr 180px;
	}

	.hand-card-overlap {
		margin-left: -25px;
	}
}

@media (max-width: 1200px) {
	.hand-area {
		grid-template-columns: 200px 1fr 160px;
	}

	.hand-card-overlap {
		margin-left: -20px;
	}
}

@media (max-width: 900px) {
	.hand-area {
		grid-template-columns: 180px 1fr 120px;
		gap: 6px;
		padding: 5px 6px;
	}

	.resource-container {
		padding-left: 6px !important;
		padding-right: 6px !important;
	}

	.resource-row {
		flex-direction: column;
		max-width: 92px;
		gap: 8px;
	}

	.resource-counter {
		max-width: none;
		width: 100%;
		padding: 8px 6px;
	}

	.resource-counter .value {
		gap: 8px;
		font-size: 20px;
	}
}

.battlefield-bg {
	background:
		linear-gradient(rgba(40, 60, 80, 0.7), rgba(20, 40, 60, 0.9)),
		url('https://placehold.co/80x80/1a2f40/3a536b/png?text=HS');
	background-size: 80px 80px;
}

.resource-area {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 15px;
}

.resource-row {
	display: flex;
	justify-content: center;
	align-items: stretch;
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
	gap: 10px;
}

.resource-counter {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: auto;
	max-width: 115px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 215, 0, 0.3);
	min-width: 0;
}

.resource-counter .value {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 24px;
	font-weight: bold;
	color: #ffd700;
	text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.resource-counter .label {
	font-size: 12px;
	color: #b0b0b0;
	margin-top: 5px;
}

.opponent-hand-card {
	width: 150px;
	height: 200px;
	background: linear-gradient(135deg, #1a1a2e, #16213e);
	border-radius: 8px;
	border: 2px solid #8b4513;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.opponent-card-back {
	background: linear-gradient(135deg, #1a1a2e, #16213e);
	border-radius: 8px;
	border: 2px solid #8b4513;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-back-pattern {
	width: 100%;
	height: 100%;
	background-image:
		radial-gradient(circle at 30% 30%, #ffd700 2px, transparent 2px),
		radial-gradient(circle at 70% 70%, #ffd700 2px, transparent 2px),
		radial-gradient(circle at 50% 20%, #ffd700 3px, transparent 3px),
		radial-gradient(circle at 20% 50%, #ffd700 2px, transparent 2px),
		radial-gradient(circle at 80% 50%, #ffd700 2px, transparent 2px);
	background-size: 100% 100%;
	opacity: 0.6;
}

.card-back-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: radial-gradient(circle, #ffd700 0%, #8b4513 70%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid #8b4513;
}

.battlefield-card {
	width: 150px;
	height: 200px;
	cursor: pointer;
}

.battlefield-card.location-card {
	position: relative;
	border-radius: 10px;
	box-shadow: 0 0 12px rgba(0, 169, 255, 0.22);
}

.battlefield-card.location-open {
	box-shadow: 0 0 18px rgba(56, 189, 248, 0.7), 0 0 32px rgba(34, 197, 94, 0.35);
}

.battlefield-card.location-half-open {
	filter: saturate(0.92) brightness(0.92);
	box-shadow: 0 0 14px rgba(250, 204, 21, 0.65);
}

.battlefield-card.location-closed {
	filter: grayscale(0.35) brightness(0.72);
	box-shadow: 0 0 14px rgba(15, 23, 42, 0.85);
}

.location-state-tag {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 15;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #fff7ed;
	border: 1px solid rgba(255, 255, 255, 0.45);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

.location-state-open {
	background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(34, 197, 94, 0.9));
}

.location-state-half-open {
	background: linear-gradient(135deg, rgba(217, 119, 6, 0.92), rgba(250, 204, 21, 0.82));
}

.location-state-closed {
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(100, 116, 139, 0.85));
}

.battlefield-minion .card-mana-cost {
	display: none !important;
}

.game-status-area {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.game-container {
	display: flex;
	flex-direction: column;
	height: 100vh;
	overflow: hidden;
}

.action-log-inline-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #facc15;
	font-size: 11px;
	font-weight: 800;
}

.action-log-inline-list {
	max-height: 150px;
	overflow-y: auto;
	padding: 6px;
	border-radius: 4px;
	background: rgba(17, 24, 39, 0.78);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.action-log-empty {
	text-align: center;
	color: #94a3b8;
	font-size: 10px;
}

.action-log-entry {
	border: 1px solid rgba(96, 165, 250, 0.16);
	background: rgba(15, 23, 42, 0.72);
	border-radius: 7px;
	padding: 8px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.action-log-entry-top {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 5px;
	min-width: 0;
}

.action-log-index {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(59, 130, 246, 0.22);
	color: #bfdbfe;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	flex: 0 0 auto;
}

.action-log-type {
	color: #f8fafc;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.action-log-turn {
	margin-left: auto;
	color: #93c5fd;
	font-size: 11px;
	white-space: nowrap;
}

.action-log-main {
	color: #cbd5e1;
	font-size: 11px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.action-log-entry-spellcard,
.action-log-entry-power {
	border-color: rgba(96, 165, 250, 0.32);
}

.action-log-entry-minioncard,
.action-log-entry-summon,
.action-log-entry-playsummon {
	border-color: rgba(52, 211, 153, 0.28);
}

.action-log-entry-attack,
.action-log-entry-damage,
.action-log-entry-death {
	border-color: rgba(248, 113, 113, 0.3);
}

.action-log-entry-trade,
.action-log-entry-forge,
.action-log-entry-draw,
.action-log-entry-take {
	border-color: rgba(250, 204, 21, 0.28);
}

.opponent-area {
	flex: 0 0 24vh;
	min-height: 24vh;
	max-height: 24vh;
	overflow: visible;
	padding-top: 2px;
}

.battlefield-main-area {
	position: relative;
	flex: 1 1 50vh;
	min-height: 50vh;
	overflow: hidden;
}

.player-area {
	flex: 0 0 24vh;
	min-height: 24vh;
	max-height: 24vh;
	overflow: visible;
	padding-top: 2px;
}

.hand-container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 5px 0;
}

.hand-container-few-cards {
	justify-content: center !important;
}

.opponent-hand-container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 5px 0;
}

.hand-container::-webkit-scrollbar,
.opponent-hand-container::-webkit-scrollbar {
	height: 6px;
}

.hand-container::-webkit-scrollbar-track,
.opponent-hand-container::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 3px;
}

.hand-container::-webkit-scrollbar-thumb,
.opponent-hand-container::-webkit-scrollbar-thumb {
	background: #3a536b;
	border-radius: 3px;
}

.hand-container::-webkit-scrollbar-thumb:hover,
.opponent-hand-container::-webkit-scrollbar-thumb:hover {
	background: #4da6ff;
}

.hand-scroll-container {
	display: flex;
	height: 100%;
	align-items: center;
	padding-left: 10px;
	padding-right: 10px;
	margin-left: 70px;
}

.hand-scroll-container-few-cards {
	justify-content: center !important;
	margin-left: 0 !important;
	padding-left: 0;
	padding-right: 0;
}

.opponent-hand-scroll-container {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding-left: 10px;
	padding-right: 10px;
}

.resource-container {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
}

.selected-hand-play-actions {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	pointer-events: none;
}

.center-play-action-button {
	pointer-events: auto;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.95);
	background: radial-gradient(circle at 35% 28%, #fff2ad, #ffb300 52%, #b66a00 100%);
	color: #2a1500;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	font-size: 12px;
	font-weight: 900;
	box-shadow: 0 0 22px rgba(255, 183, 0, 0.78), 0 12px 28px rgba(0, 0, 0, 0.55);
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.center-play-action-button .fas {
	font-size: 24px;
}

.center-play-action-button:hover {
	transform: scale(1.08);
	box-shadow: 0 0 30px rgba(255, 215, 0, 0.94), 0 16px 34px rgba(0, 0, 0, 0.62);
	filter: saturate(1.12);
}

.selected-hand-side-actions {
	position: absolute;
	right: 24px;
	top: calc(50% + 92px);
	transform: translateY(-50%);
	z-index: 82;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 124px;
	pointer-events: none;
}

.side-hand-action-button {
	pointer-events: auto;
	min-height: 48px;
	font-size: 14px;
}

.selected-hand-cancel-button {
	position: absolute;
	left: 50%;
	top: calc(50% + 54px);
	transform: translateX(-50%);
	z-index: 81;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(127, 29, 29, 0.82);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
	cursor: pointer;
	transition: transform 0.16s ease, background 0.16s ease;
}

.selected-hand-cancel-button:hover {
	transform: translateX(-50%) translateY(-1px);
	background: rgba(185, 28, 28, 0.92);
}

.hand-action-button-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hand-action-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(255, 215, 0, 0.45);
	background: linear-gradient(145deg, rgba(70, 48, 20, 0.92), rgba(30, 20, 12, 0.92));
	color: #fff7cf;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
	transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.hand-action-button:hover {
	transform: translateY(-1px);
	border-color: var(--color-gold);
	box-shadow: 0 0 12px rgba(255, 215, 0, 0.28);
}

.hand-action-button-trade {
	border-color: rgba(77, 166, 255, 0.7);
	background: linear-gradient(145deg, rgba(24, 74, 125, 0.95), rgba(10, 32, 64, 0.95));
}

.hand-action-button-forge {
	border-color: rgba(255, 140, 0, 0.75);
	background: linear-gradient(145deg, rgba(130, 66, 14, 0.95), rgba(65, 32, 8, 0.95));
}

.hand-action-button-power {
	background: radial-gradient(circle at 35% 28%, #dbeafe, #60a5fa 52%, #1d4ed8 100%);
	color: #06142f;
	border-color: rgba(191, 219, 254, 0.95);
	box-shadow: 0 0 22px rgba(96, 165, 250, 0.78), 0 12px 28px rgba(0, 0, 0, 0.55);
}

.load-json-btn {
	background: linear-gradient(to right, #2a7fff, #0055cc);
	color: white;
	padding: 10px 15px;
	border-radius: 8px;
	font-weight: bold;
	border: 2px solid #aaddff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 12px rgba(42, 127, 255, 0.4);
	transition: all 0.3s ease;
	font-size: 14px;
	white-space: nowrap;
	width: 100%;
	margin-top: 10px;
}

.load-json-btn:hover {
	background: linear-gradient(to right, #3a8fff, #0066dd);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(42, 127, 255, 0.6);
}

.nav-btn {
	background: linear-gradient(to right, #4cd964, #3db856);
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	font-weight: bold;
	border: 2px solid #4cd964;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 10px rgba(76, 217, 100, 0.4);
	transition: all 0.3s ease;
	font-size: 12px;
	white-space: nowrap;
	width: 100%;
}

.nav-btn:hover:not(:disabled) {
	background: linear-gradient(to right, #5ce974, #4dc868);
	box-shadow: 0 6px 14px rgba(76, 217, 100, 0.6);
}

.nav-btn:disabled {
	background: linear-gradient(to right, #3a536b, #2a435b);
	border-color: #3a536b;
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
	box-shadow: none;
}

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 4px;
	width: 280px;

	transform: translateX(26px);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #4da6ff;
}

.battlefield-center {
	flex: 0 0 auto;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.2;
	pointer-events: none;
}

.battlefield-action-rail {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 12;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.end-turn-rail-btn {
	pointer-events: auto;
	min-width: 116px;
	padding: 18px 14px;
	border-radius: 18px;
	border: 2px solid rgba(255, 215, 0, 0.78);
	background: linear-gradient(180deg, rgba(255, 199, 82, 0.96), rgba(201, 112, 0, 0.98));
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 183, 0, 0.28);
	color: #1f1200;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	letter-spacing: 0.5px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.end-turn-rail-btn i {
	font-size: 20px;
}

.end-turn-rail-btn:hover:not(:disabled) {
	transform: translateY(-3px);
	box-shadow: 0 20px 36px rgba(0, 0, 0, 0.52), 0 0 28px rgba(255, 183, 0, 0.36);
	filter: saturate(1.08);
}

.end-turn-rail-btn:disabled {
	background: linear-gradient(180deg, rgba(78, 91, 108, 0.95), rgba(45, 58, 74, 0.98));
	border-color: rgba(111, 137, 163, 0.55);
	color: rgba(224, 232, 240, 0.72);
	box-shadow: none;
	cursor: not-allowed;
}

.end-turn-rail-label {
	font-size: 16px;
	line-height: 1;
}

.end-turn-rail-meta {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.72;
}

.sync-status-btn {
	background: transparent;
	border: 1px solid rgba(148, 163, 184, 0.4);
	color: #cbd5e1;
	padding: 6px 10px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sync-status-btn:hover:not(:disabled) {
	border-color: rgba(77, 166, 255, 0.7);
	color: #eff6ff;
	background: rgba(30, 41, 59, 0.65);
}

.sync-status-btn:disabled {
	background: #4b5563 !important;
	border-color: #6b7280 !important;
	color: #cbd5e1 !important;
	box-shadow: none !important;
	transform: none !important;
	opacity: 0.65;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 1200px) {
	.battlefield-action-rail {
		right: 14px;
	}

	.end-turn-rail-btn {
		min-width: 98px;
		padding: 14px 10px;
	}

	.end-turn-rail-label {
		font-size: 14px;
	}
}

.file-input-hidden {
	display: none;
}

.hand-section {
	position: relative;
	z-index: 10;
}

.player-area .hand-section {
	transform: translateX(125px);
}

.opponent-area .hand-section {
	transform: translate(125px, -28px);
}

@media (max-height: 850px) {
	.opponent-area .hand-section {
		transform: translate(125px, -18px);
	}
}

.opponent-area .hand-section,
.opponent-area .opponent-hand-container,
.opponent-area .opponent-hand-scroll-container,
.opponent-area .opponent-hand-card,
.opponent-area .opponent-card-back {
	pointer-events: none;
}

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.loading-content {
	background: linear-gradient(145deg, #1c2f40, #0f1c2a);
	border: 2px solid #3a536b;
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}

.loading-spinner {
	font-size: 48px;
	color: #ffd700;
	margin-bottom: 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.card-tooltip {
	position: fixed;
	z-index: 99999;
	max-width: 288px;
	max-height: 80vh;
	overflow-y: auto;
	pointer-events: none;
}

.hero-side-card:hover {
	transform: translateY(-5px);
	z-index: 100;
}

.weapon-container {
	width: 70px;
	height: 90px;
	position: relative;
	z-index: 30;
}

.hero-complete-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	height: auto;
	width: 280px;
	position: relative;
	transform: translateX(260px);
	overflow: visible;
	padding-bottom: 0;
	z-index: 40;
}

.hero-main-area {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	width: 100%;
}

.hero-objectives-row {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
	width: max-content;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 80;
	pointer-events: auto;
}

.hero-objectives-row-player1 {
	top: -18px;
	z-index: 95;
}

.hero-objectives-row-player2 {
	top: 126px;
}

.hero-objectives-list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	max-width: 100%;
	flex-wrap: nowrap;
	position: relative;
	z-index: 81;
	padding: 0;
	background: transparent;
}

.hero-objective-card {
	width: 30px;
	height: 40px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	overflow: hidden;
	background: linear-gradient(145deg, #1c2f40, #0f1c2a);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
	cursor: help;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	z-index: 82;
	pointer-events: auto;
}

.hero-objective-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45);
}

.hero-objective-image,
.hero-objective-secret-back {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-objective-secret {
	border-color: rgba(125, 211, 252, 0.45);
	box-shadow: 0 0 10px rgba(77, 166, 255, 0.18);
}

.hero-objective-secret-back {
	background: linear-gradient(160deg, #18334f, #0a1624);
	color: #9fd4ff;
	font-size: 13px;
}

.hero-objective-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
}

.hero-name-power-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	height: 120px;
	min-width: 70px;
}

.minion-status-tags {
	position: absolute;
	top: -5px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 3px;
	z-index: 20;
}

.status-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 6px;
	padding: 6px 10px;
	border: 1px solid rgba(255, 215, 0, 0.3);
	margin-bottom: 5px;
}

.folder-input-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.folder-select-btn {
	background: linear-gradient(to right, #8b4513, #a0522d);
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	font-weight: bold;
	border: 2px solid #8b4513;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 10px rgba(139, 69, 19, 0.4);
	transition: all 0.3s ease;
	font-size: 12px;
	white-space: nowrap;
	flex: 1;
}

.folder-select-btn:hover:not(:disabled) {
	background: linear-gradient(to right, #9c5523, #b1623d);
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(139, 69, 19, 0.6);
}

.folder-select-btn:disabled {
	background: #4b5563 !important;
	border-color: #6b7280 !important;
	color: #d1d5db !important;
	box-shadow: none !important;
	transform: none !important;
	opacity: 0.65;
	cursor: not-allowed;
	pointer-events: none;
}

/* Choices Modal Styles - 增强版 */
.choices-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	z-index: 20000;
}

.choices-content {
	background: linear-gradient(145deg, #0f1c2a, #1c2f40);
	border: 3px solid var(--color-gold);
	border-radius: 15px;
	padding: 30px;
	box-sizing: border-box;
	max-width: none;
	min-width: 920px;
	width: 920px;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
	position: relative;
}

.choices-close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--color-red);
	border: 2px solid rgba(255, 255, 255, 0.8);
	color: white;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	transition: all 0.3s ease;
	z-index: 10;
}

.choices-close-btn:hover {
	background: #ff3b3b;
	transform: scale(1.1);
	box-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
}

.choices-header {
	text-align: center;
	margin-bottom: 25px;
	padding-right: 30px;
	/* 为关闭按钮留出空间 */
}

.choices-title {
	color: var(--color-gold);
	font-size: 28px;
	margin-bottom: 10px;
	font-family: 'Roboto Slab', serif;
	text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.choices-subtitle {
	color: #f0e6d2;
	font-size: 16px;
	opacity: 0.8;
}

.choices-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, 260px);
	justify-content: center;
	gap: 25px;
	margin-bottom: 25px;
}

.choice-card {
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	width: 100%;
}

.choice-card:hover {
	transform: translateY(-5px);
}

.choice-card.selected {
	transform: translateY(-5px);
	box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
	border-color: var(--color-gold);
}

.choice-card.selected::after {
	content: '✓';
	position: absolute;
	top: -12px;
	right: -12px;
	width: 30px;
	height: 30px;
	background: var(--color-gold);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
	font-weight: bold;
	font-size: 16px;
	z-index: 10;
}

.choice-name {
	color: var(--color-gold);
	font-weight: bold;
	font-size: 16px;
	margin-top: 10px;
	text-align: center;
	font-family: 'Roboto Slab', serif;
}

.choice-cost {
	color: var(--color-blue);
	font-weight: bold;
	font-size: 14px;
	text-align: center;
	margin-top: 5px;
}

.choice-stats {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 8px;
}

.choice-attack {
	color: var(--color-red);
	font-weight: bold;
	font-size: 14px;
	background: rgba(255, 107, 107, 0.2);
	padding: 3px 8px;
	border-radius: 10px;
	border: 1px solid var(--color-red);
}

.choice-health {
	color: var(--color-green);
	font-weight: bold;
	font-size: 14px;
	background: rgba(76, 217, 100, 0.2);
	padding: 3px 8px;
	border-radius: 10px;
	border: 1px solid var(--color-green);
}

.choice-actions {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 25px;
}

.choice-btn {
	padding: 12px 35px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	font-family: 'Roboto Slab', serif;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.choice-confirm {
	background: linear-gradient(to right, var(--color-green), #3db856);
	color: white;
	box-shadow: 0 4px 12px rgba(76, 217, 100, 0.4);
}

.choice-confirm:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(76, 217, 100, 0.6);
}

.choice-confirm:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.choice-cancel {
	background: linear-gradient(to right, var(--color-red), #d64545);
	color: white;
	box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.choice-cancel:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(255, 107, 107, 0.6);
}

.choice-status {
	text-align: center;
	color: var(--color-gold);
	font-size: 14px;
	margin-top: 10px;
	opacity: 0.8;
}

/* 武器上方提示图标（用于重新打开choices） */
.choices-reopen-indicator {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 32px;
	height: 32px;
	background: linear-gradient(145deg, var(--color-green), #3db856);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 16px;
	cursor: pointer;
	z-index: 100;
	border: 2px solid white;
	box-shadow: 0 0 15px rgba(76, 217, 100, 0.7);
	animation: pulse-green 2s infinite;
}

.choices-reopen-indicator:hover {
	transform: scale(1.1);
	box-shadow: 0 0 20px rgba(76, 217, 100, 0.9);
}

@keyframes pulse-green {
	0% {
		transform: scale(1);
		box-shadow: 0 0 15px rgba(76, 217, 100, 0.7);
	}

	50% {
		transform: scale(1.05);
		box-shadow: 0 0 20px rgba(76, 217, 100, 0.9);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 15px rgba(76, 217, 100, 0.7);
	}
}

/* 手牌中可执行动作的卡牌高亮效果 */
.actionable-hand-card {
	border-color: var(--color-green) !important;
	box-shadow: 0 0 15px rgba(76, 217, 100, 0.7) !important;
	position: relative;
}

.actionable-hand-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border: 2px solid var(--color-green);
	border-radius: 6px;
	pointer-events: none;
	animation: glow 2s infinite;
	z-index: 5;
}

/* position类型的特殊高亮效果 */
.side-actionable-hand-card {
	border-color: #3b82f6 !important;
	box-shadow: 0 0 15px rgba(59, 130, 246, 0.7) !important;
	position: relative;
}

.side-actionable-hand-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border: 2px solid #3b82f6;
	border-radius: 6px;
	pointer-events: none;
	animation: glow-blue 2s infinite;
	z-index: 5;
}

@keyframes glow-blue {
	0% {
		box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
	}

	50% {
		box-shadow: 0 0 15px rgba(59, 130, 246, 0.9);
	}

	100% {
		box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
	}
}

/* position类型的特殊高亮效果 */
.position-hand-card {
	border-color: var(--color-orange) !important;
	box-shadow: 0 0 15px rgba(255, 140, 0, 0.7) !important;
	position: relative;
}

.position-hand-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border: 2px solid var(--color-orange);
	border-radius: 6px;
	pointer-events: none;
	animation: position-glow 2s infinite;
	z-index: 5;
}

/* 英雄技能可执行高亮效果 */
.actionable-hero-power {
	border-color: var(--color-green) !important;
	box-shadow: 0 0 15px rgba(76, 217, 100, 0.7) !important;
	position: relative;
}

.actionable-hero-power::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border: 2px solid var(--color-green);
	border-radius: 6px;
	pointer-events: none;
	animation: glow 2s infinite;
	z-index: 5;
}

@keyframes glow {
	0% {
		opacity: 0.5;
		box-shadow: 0 0 5px rgba(76, 217, 100, 0.5);
	}

	50% {
		opacity: 1;
		box-shadow: 0 0 20px rgba(76, 217, 100, 0.9);
	}

	100% {
		opacity: 0.5;
		box-shadow: 0 0 5px rgba(76, 217, 100, 0.5);
	}
}

@keyframes position-glow {
	0% {
		opacity: 0.5;
		box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
	}

	50% {
		opacity: 1;
		box-shadow: 0 0 20px rgba(255, 140, 0, 0.9);
	}

	100% {
		opacity: 0.5;
		box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
	}
}

/* 手牌中可执行动作的指示器 */
.hand-card-action-indicator {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	background: linear-gradient(145deg, var(--color-green), #3db856);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 12px;
	z-index: 101;
	border: 1px solid white;
	box-shadow: 0 0 8px rgba(76, 217, 100, 0.7);
}

/* position类型手牌指示器 */
.hand-card-position-indicator {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	background: linear-gradient(145deg, var(--color-orange), #ff8c00);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 12px;
	z-index: 101;
	border: 1px solid white;
	box-shadow: 0 0 8px rgba(255, 140, 0, 0.7);
}

/* 英雄技能可执行动作指示器 */
.hero-power-action-indicator {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	background: linear-gradient(145deg, var(--color-green), #3db856);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 12px;
	z-index: 101;
	border: 1px solid white;
	box-shadow: 0 0 8px rgba(76, 217, 100, 0.7);
}

/* 战场随从放置位置指示器 */
.position-indicator {
	position: absolute;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--color-orange), #ff8c00);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 14px;
	cursor: pointer;
	z-index: 100;
	border: 2px solid white;
	box-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
	transition: all 0.3s ease;
}

.position-indicator:hover {
	transform: scale(1.2);
	box-shadow: 0 0 15px rgba(255, 140, 0, 1);
}

.position-indicator-left {
	top: -10px;
	left: -20px;
}

.position-indicator-right {
	top: -10px;
	right: -20px;
}


/* 固定在对战区域右侧的工具提示 */
.fixed-right-tooltip {
	position: fixed;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	z-index: 99999;
	max-width: 288px;
	max-height: 80vh;
	overflow-y: auto;
	pointer-events: none;
}

/* 确保工具提示不会超出屏幕 */
@media (max-height: 800px) {
	.fixed-right-tooltip {
		max-height: 70vh;
		top: 45%;
	}
}

@media (max-height: 600px) {
	.fixed-right-tooltip {
		max-height: 60vh;
		top: 40%;
	}
}



/* 攻击状态相关样式 */
/* 攻击状态相关样式 - 增强版 */

.selected-attacker {
	border-color: #ff0000 !important;
	border-width: 3px !important;
	box-shadow:
		0 0 20px rgba(255, 0, 0, 0.8),
		0 0 40px rgba(255, 0, 0, 0.6),
		0 0 60px rgba(255, 0, 0, 0.4),
		inset 0 0 15px rgba(255, 0, 0, 0.5) !important;
	position: relative;
	z-index: 200 !important;
	animation: red-glow 1.5s infinite alternate;
}

.selected-attacker-indicator {
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 35px;
	height: 35px;
	background: linear-gradient(145deg, #ff0000, #ff6b6b);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 18px;
	z-index: 210;
	border: 3px solid white;
	box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
	animation: pulse-red-enhanced 1.5s infinite;
}

.selected-attacker-indicator::before {
	content: '⚔';
	font-size: 20px;
}

/* 增加多个阴影层叠效果 */
.attackable-target {
	position: relative;
	border-color: #00ff00 !important;
	border-width: 2px !important;
	box-shadow:
		0 0 15px rgba(0, 255, 0, 0.7),
		0 0 30px rgba(0, 255, 0, 0.5),
		0 0 45px rgba(0, 255, 0, 0.3) !important;
	cursor: pointer;
	z-index: 180 !important;
	animation: green-glow 2s infinite alternate;
}

.attackable-target:hover {
	transform: translateY(-8px) scale(1.08) !important;
	box-shadow:
		0 0 25px rgba(0, 255, 0, 0.9),
		0 0 50px rgba(0, 255, 0, 0.7),
		0 0 75px rgba(0, 255, 0, 0.5) !important;
}

.replay-selected-target {
	border-color: var(--color-gold) !important;
	border-width: 3px !important;
	box-shadow:
		0 0 18px rgba(255, 215, 0, 0.95),
		0 0 36px rgba(255, 140, 0, 0.7),
		0 0 54px rgba(255, 215, 0, 0.45) !important;
	animation: gold-glow 1.2s infinite alternate;
}

.attackable-indicator {
	position: absolute;
	top: -15px;
	right: -10px;
	width: 35px;
	height: 35px;
	background: linear-gradient(145deg, #00ff00, #00cc00);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: black;
	font-weight: bold;
	font-size: 16px;
	z-index: 190;
	border: 3px solid white;
	box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
	animation: pulse-green-enhanced 1.5s infinite;
}

.attackable-indicator::before {
	content: '🎯';
	font-size: 20px;
}

/* 英雄目标增强效果 */
.attackable-hero-target {
	position: relative;
	border-color: #00ff00 !important;
	border-width: 4px !important;
	box-shadow:
		0 0 25px rgba(0, 255, 0, 0.9),
		0 0 50px rgba(0, 255, 0, 0.7),
		0 0 100px rgba(0, 255, 0, 0.5) !important;
	cursor: pointer;
	z-index: 180 !important;
	animation: hero-glow 2s infinite alternate;
}

.attackable-hero-target:hover {
	transform: scale(1.15) !important;
	box-shadow:
		0 0 35px rgba(0, 255, 0, 1),
		0 0 70px rgba(0, 255, 0, 0.8),
		0 0 150px rgba(0, 255, 0, 0.6) !important;
}

.attackable-hero-indicator {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 45px;
	height: 45px;
	background: linear-gradient(145deg, #00ff00, #00cc00);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: black;
	font-weight: bold;
	font-size: 20px;
	z-index: 190;
	border: 4px solid white;
	box-shadow: 0 0 25px rgba(0, 255, 0, 1);
	animation: pulse-hero-enhanced 1.5s infinite;
}

.attackable-hero-indicator::before {
	content: '👑';
	font-size: 24px;
}

/* 可攻击状态的随从牌 */
.can-attack {
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	filter: brightness(1.08);
	z-index: 20;
}

.can-attack::before {
	content: '⚔';
	position: absolute;
	top: -13px;
	right: -13px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 35% 30%, #fff7b2, #f59e0b 55%, #92400e);
	border: 2px solid #fff3b0;
	border-radius: 50%;
	color: #451a03;
	font-size: 17px;
	line-height: 1;
	box-shadow: 0 0 10px rgba(251, 191, 36, 0.95), 0 0 20px rgba(245, 158, 11, 0.7);
	pointer-events: none;
	z-index: 30;
	animation: usable-minion-badge-pulse 1.2s ease-in-out infinite alternate;
}

.can-attack::after {
	content: '';
	position: absolute;
	top: -8px;
	left: -8px;
	right: -8px;
	bottom: -8px;
	border: 3px solid rgba(251, 191, 36, 0.95);
	border-radius: 12px;
	pointer-events: none;
	box-shadow: 0 0 12px rgba(251, 191, 36, 0.85), inset 0 0 8px rgba(251, 191, 36, 0.35);
	animation: usable-minion-glow 1.2s ease-in-out infinite alternate;
	z-index: 10;
}

.can-attack:hover {
	transform: translateY(-6px) scale(1.04);
	filter: brightness(1.18);
}

@keyframes usable-minion-glow {
	from {
		opacity: 0.65;
		box-shadow: 0 0 8px rgba(251, 191, 36, 0.65), inset 0 0 5px rgba(251, 191, 36, 0.25);
	}

	to {
		opacity: 1;
		box-shadow: 0 0 20px rgba(251, 191, 36, 1), 0 0 32px rgba(245, 158, 11, 0.55), inset 0 0 10px rgba(251, 191, 36, 0.45);
	}
}

@keyframes usable-minion-badge-pulse {
	from {
		transform: scale(0.94);
	}

	to {
		transform: scale(1.08);
	}
}

/* 增强的动画效果 */
@keyframes red-glow {
	0% {
		box-shadow:
			0 0 20px rgba(255, 0, 0, 0.8),
			0 0 40px rgba(255, 0, 0, 0.6),
			0 0 60px rgba(255, 0, 0, 0.4),
			inset 0 0 15px rgba(255, 0, 0, 0.5);
	}

	100% {
		box-shadow:
			0 0 25px rgba(255, 0, 0, 1),
			0 0 50px rgba(255, 0, 0, 0.8),
			0 0 80px rgba(255, 0, 0, 0.6),
			inset 0 0 20px rgba(255, 0, 0, 0.7);
	}
}

@keyframes current-turn-hero-glow {
	0% {
		transform: scale(1.02);
		box-shadow:
			0 0 20px rgba(255, 224, 130, 0.82),
			0 0 42px rgba(255, 193, 7, 0.56),
			0 0 66px rgba(255, 179, 0, 0.26),
			inset 0 0 0 2px rgba(255, 248, 196, 0.9),
			inset 0 0 10px rgba(255, 224, 130, 0.2);
	}

	100% {
		transform: scale(1.06);
		box-shadow:
			0 0 28px rgba(255, 224, 130, 1),
			0 0 58px rgba(255, 193, 7, 0.84),
			0 0 94px rgba(255, 179, 0, 0.52),
			inset 0 0 0 4px rgba(255, 248, 196, 1),
			inset 0 0 20px rgba(255, 224, 130, 0.36);
	}
}

@keyframes current-turn-arrow-bounce {

	0%,
	100% {
		transform: translateY(-50%) translateX(0);
	}

	50% {
		transform: translateY(-50%) translateX(10px);
	}
}

@keyframes green-glow {
	0% {
		box-shadow:
			0 0 15px rgba(0, 255, 0, 0.7),
			0 0 30px rgba(0, 255, 0, 0.5),
			0 0 45px rgba(0, 255, 0, 0.3);
	}

	100% {
		box-shadow:
			0 0 20px rgba(0, 255, 0, 0.9),
			0 0 40px rgba(0, 255, 0, 0.7),
			0 0 60px rgba(0, 255, 0, 0.5);
	}
}

@keyframes hero-glow {
	0% {
		box-shadow:
			0 0 25px rgba(0, 255, 0, 0.9),
			0 0 50px rgba(0, 255, 0, 0.7),
			0 0 100px rgba(0, 255, 0, 0.5);
	}

	100% {
		box-shadow:
			0 0 35px rgba(0, 255, 0, 1),
			0 0 70px rgba(0, 255, 0, 0.8),
			0 0 150px rgba(0, 255, 0, 0.6);
	}
}

@keyframes pulse-red-enhanced {
	0% {
		transform: translateX(-50%) scale(1);
		box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
	}

	50% {
		transform: translateX(-50%) scale(1.15);
		box-shadow: 0 0 30px rgba(255, 0, 0, 1);
	}

	100% {
		transform: translateX(-50%) scale(1);
		box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
	}
}

@keyframes pulse-green-enhanced {
	0% {
		transform: scale(1);
		box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
	}

	50% {
		transform: scale(1.10);
		box-shadow: 0 0 30px rgba(0, 255, 0, 1);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
	}
}

@keyframes pulse-hero-enhanced {
	0% {
		transform: scale(1);
		box-shadow: 0 0 25px rgba(0, 255, 0, 1);
	}

	50% {
		transform: scale(1.20);
		box-shadow: 0 0 40px rgba(0, 255, 0, 1.2);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 25px rgba(0, 255, 0, 1);
	}
}

@keyframes border-pulse-enhanced {
	0% {
		border-color: rgba(255, 0, 0, 0.4);
		box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
	}

	50% {
		border-color: rgba(255, 0, 0, 1);
		box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
	}

	100% {
		border-color: rgba(255, 0, 0, 0.4);
		box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
	}
}

/* 攻击状态下的战场背景提示 */
.battlefield-area.in-attack-mode::before {
	content: '攻击模式 - 选择一个攻击目标';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.8);
	color: #ff6b6b;
	font-size: 24px;
	font-weight: bold;
	padding: 15px 30px;
	border-radius: 10px;
	border: 3px solid #ff6b6b;
	z-index: 150;
	animation: attack-mode-pulse 2s infinite;
	pointer-events: none;
}

@keyframes attack-mode-pulse {
	0% {
		opacity: 0.7;
		box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
	}

	50% {
		opacity: 1;
		box-shadow: 0 0 40px rgba(255, 107, 107, 0.8);
	}

	100% {
		opacity: 0.7;
		box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
	}
}

/* 攻击模式的覆盖层效果 */
.battlefield-area.in-attack-mode {
	position: relative;
}

.battlefield-area.in-attack-mode::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 0, 0, 0.1);
	z-index: 149;
	pointer-events: none;
}

/* 英雄选中高亮效果 - 类似手牌选中方式 */
.selected-hero-attacker {
	border-color: var(--color-green) !important;
	border-width: 5px !important;
	box-shadow:
		0 0 20px rgba(76, 217, 100, 0.8),
		0 0 40px rgba(76, 217, 100, 0.6),
		0 0 60px rgba(76, 217, 100, 0.4),
		inset 0 0 15px rgba(76, 217, 100, 0.5) !important;
	position: relative;
	z-index: 200 !important;
	animation: hero-glow-effect 1.5s infinite alternate;
}

/* 英雄可点击状态 */
.hero-actionable {
	border-color: rgba(76, 217, 100, 0.7) !important;
	box-shadow: 0 0 15px rgba(76, 217, 100, 0.5) !important;
	cursor: pointer;
	position: relative;
}

.hero-actionable:hover {
	border-color: var(--color-green) !important;
	box-shadow: 0 0 20px rgba(76, 217, 100, 0.8) !important;
}

.hero-actionable:hover::after {
	content: '';
	position: absolute;
	top: -8px;
	left: -8px;
	right: -8px;
	bottom: -8px;
	border: 3px solid rgba(76, 217, 100, 0.9);
	border-radius: 12px;
	pointer-events: none;
	animation: hero-border-pulse-enhanced 1.5s infinite;
	z-index: 10;
}

@keyframes hero-glow-effect {
	0% {
		box-shadow:
			0 0 20px rgba(76, 217, 100, 0.8),
			0 0 40px rgba(76, 217, 100, 0.6),
			0 0 60px rgba(76, 217, 100, 0.4);
	}

	100% {
		box-shadow:
			0 0 25px rgba(76, 217, 100, 1),
			0 0 50px rgba(76, 217, 100, 0.8),
			0 0 80px rgba(76, 217, 100, 0.6);
	}
}

@keyframes hero-border-pulse-enhanced {
	0% {
		border-color: rgba(76, 217, 100, 0.4);
		box-shadow: 0 0 10px rgba(76, 217, 100, 0.4);
	}

	50% {
		border-color: rgba(76, 217, 100, 1);
		box-shadow: 0 0 20px rgba(76, 217, 100, 0.8);
	}

	100% {
		0 0 70px rgba(0, 255, 0, 0.8),
		0 0 150px rgba(0, 255, 0, 0.6);
	}
}

@keyframes pulse-red-enhanced {
	0% {
		transform: translateX(-50%) scale(1);
		box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
	}

	50% {
		transform: translateX(-50%) scale(1.15);
		box-shadow: 0 0 30px rgba(255, 0, 0, 1);
	}

	100% {
		transform: translateX(-50%) scale(1);
		box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
	}
}

@keyframes pulse-green-enhanced {
	0% {
		transform: scale(1);
		box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
	}

	50% {
		transform: scale(1.10);
		box-shadow: 0 0 30px rgba(0, 255, 0, 1);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
	}
}

@keyframes pulse-hero-enhanced {
	0% {
		transform: scale(1);
		box-shadow: 0 0 25px rgba(0, 255, 0, 1);
	}

	50% {
		transform: scale(1.20);
		box-shadow: 0 0 40px rgba(0, 255, 0, 1.2);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 25px rgba(0, 255, 0, 1);
	}
}

@keyframes border-pulse-enhanced {
	0% {
		border-color: rgba(255, 0, 0, 0.4);
		box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
	}

	50% {
		border-color: rgba(255, 0, 0, 1);
		box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
	}

	100% {
		border-color: rgba(255, 0, 0, 0.4);
		box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
	}
}

/* 攻击状态下的战场背景提示 */
.battlefield-area.in-attack-mode::before {
	content: '攻击模式 - 选择一个攻击目标';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.8);
	color: #ff6b6b;
	font-size: 24px;
	font-weight: bold;
	padding: 15px 30px;
	border-radius: 10px;
	border: 3px solid #ff6b6b;
	z-index: 150;
	animation: attack-mode-pulse 2s infinite;
	pointer-events: none;
}

@keyframes attack-mode-pulse {
	0% {
		opacity: 0.7;
		box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
	}

	50% {
		opacity: 1;
		box-shadow: 0 0 40px rgba(255, 107, 107, 0.8);
	}

	100% {
		opacity: 0.7;
		box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
	}
}

/* 攻击模式的覆盖层效果 */
.battlefield-area.in-attack-mode {
	position: relative;
}

.battlefield-area.in-attack-mode::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 0, 0, 0.1);
	z-index: 149;
	pointer-events: none;
}

/* 英雄选中高亮效果 - 类似手牌选中方式 */
.selected-hero-attacker {
	border-color: var(--color-green) !important;
	border-width: 5px !important;
	box-shadow:
		0 0 20px rgba(76, 217, 100, 0.8),
		0 0 40px rgba(76, 217, 100, 0.6),
		0 0 60px rgba(76, 217, 100, 0.4),
		inset 0 0 15px rgba(76, 217, 100, 0.5) !important;
	position: relative;
	z-index: 200 !important;
	animation: hero-glow-effect 1.5s infinite alternate;
}

/* 英雄可点击状态 */
.hero-actionable {
	border-color: rgba(76, 217, 100, 0.7) !important;
	box-shadow: 0 0 15px rgba(76, 217, 100, 0.5) !important;
	cursor: pointer;
	position: relative;
}

.hero-actionable:hover {
	border-color: var(--color-green) !important;
	box-shadow: 0 0 20px rgba(76, 217, 100, 0.8) !important;
}

.hero-actionable:hover::after {
	content: '';
	position: absolute;
	top: -8px;
	left: -8px;
	right: -8px;
	bottom: -8px;
	border: 3px solid rgba(76, 217, 100, 0.9);
	border-radius: 12px;
	pointer-events: none;
	animation: hero-border-pulse-enhanced 1.5s infinite;
	z-index: 10;
}

@keyframes hero-glow-effect {
	0% {
		box-shadow:
			0 0 20px rgba(76, 217, 100, 0.8),
			0 0 40px rgba(76, 217, 100, 0.6),
			0 0 60px rgba(76, 217, 100, 0.4);
	}

	100% {
		box-shadow:
			0 0 25px rgba(76, 217, 100, 1),
			0 0 50px rgba(76, 217, 100, 0.8),
			0 0 80px rgba(76, 217, 100, 0.6);
	}
}

@keyframes hero-border-pulse-enhanced {
	0% {
		border-color: rgba(76, 217, 100, 0.4);
		box-shadow: 0 0 10px rgba(76, 217, 100, 0.4);
	}

	50% {
		border-color: rgba(76, 217, 100, 1);
		box-shadow: 0 0 20px rgba(76, 217, 100, 0.8);
	}

	100% {
		border-color: rgba(76, 217, 100, 0.4);
		box-shadow: 0 0 10px rgba(76, 217, 100, 0.4);
	}
}

.power-target {
	border-color: #4cd964 !important;
	border-width: 3px !important;
	box-shadow:
		0 0 20px rgba(76, 217, 100, 0.8),
		0 0 40px rgba(76, 217, 100, 0.6),
		0 0 60px rgba(76, 217, 100, 0.4),
		inset 0 0 15px rgba(76, 217, 100, 0.5) !important;
	position: relative;
	z-index: 180 !important;
	animation: power-glow 1.5s infinite alternate;
}

@keyframes pulse-green-enhanced {
	0% {
		transform: scale(1);
		box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
	}

	50% {
		transform: scale(1.10);
		box-shadow: 0 0 30px rgba(0, 255, 0, 1);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 20px rgba(0, 255, 0, 0.9);
	}
}

@keyframes pulse-hero-enhanced {
	0% {
		transform: scale(1);
		box-shadow: 0 0 25px rgba(0, 255, 0, 1);
	}

	50% {
		transform: scale(1.20);
		box-shadow: 0 0 40px rgba(0, 255, 0, 1.2);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 25px rgba(0, 255, 0, 1);
	}
}

@keyframes border-pulse-enhanced {
	0% {
		border-color: rgba(255, 0, 0, 0.4);
		box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
	}

	50% {
		border-color: rgba(255, 0, 0, 1);
		box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
	}

	100% {
		border-color: rgba(255, 0, 0, 0.4);
		box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
	}
}

/* 攻击状态下的战场背景提示 */
.battlefield-area.in-attack-mode::before {
	content: '攻击模式 - 选择一个攻击目标';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.8);
	color: #ff6b6b;
	font-size: 24px;
	font-weight: bold;
	padding: 15px 30px;
	border-radius: 10px;
	border: 3px solid #ff6b6b;
	z-index: 150;
	animation: attack-mode-pulse 2s infinite;
	pointer-events: none;
}

@keyframes attack-mode-pulse {
	0% {
		opacity: 0.7;
		box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
	}

	50% {
		opacity: 1;
		box-shadow: 0 0 40px rgba(255, 107, 107, 0.8);
	}

	100% {
		opacity: 0.7;
		box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
	}
}

/* 攻击模式的覆盖层效果 */
.battlefield-area.in-attack-mode {
	position: relative;
}

.battlefield-area.in-attack-mode::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 0, 0, 0.1);
	z-index: 149;
	pointer-events: none;
}

/* 英雄选中高亮效果 - 类似手牌选中方式 */
.selected-hero-attacker {
	border-color: var(--color-green) !important;
	border-width: 5px !important;
	box-shadow:
		0 0 20px rgba(76, 217, 100, 0.8),
		0 0 40px rgba(76, 217, 100, 0.6),
		0 0 60px rgba(76, 217, 100, 0.4),
		inset 0 0 15px rgba(76, 217, 100, 0.5) !important;
	position: relative;
	z-index: 200 !important;
	animation: hero-glow-effect 1.5s infinite alternate;
}

/* 英雄可点击状态 */
.hero-actionable {
	border-color: rgba(76, 217, 100, 0.7) !important;
	box-shadow: 0 0 15px rgba(76, 217, 100, 0.5) !important;
	cursor: pointer;
	position: relative;
}

.hero-actionable:hover {
	border-color: var(--color-green) !important;
	box-shadow: 0 0 20px rgba(76, 217, 100, 0.8) !important;
}

.hero-actionable:hover::after {
	content: '';
	position: absolute;
	top: -8px;
	left: -8px;
	right: -8px;
	bottom: -8px;
	border: 3px solid rgba(76, 217, 100, 0.9);
	border-radius: 12px;
	pointer-events: none;
	animation: hero-border-pulse-enhanced 1.5s infinite;
	z-index: 10;
}

@keyframes hero-glow-effect {
	0% {
		box-shadow:
			0 0 20px rgba(76, 217, 100, 0.8),
			0 0 40px rgba(76, 217, 100, 0.6),
			0 0 60px rgba(76, 217, 100, 0.4);
	}

	100% {
		box-shadow:
			0 0 25px rgba(76, 217, 100, 1),
			0 0 50px rgba(76, 217, 100, 0.8),
			0 0 80px rgba(76, 217, 100, 0.6);
	}
}

@keyframes hero-border-pulse-enhanced {
	0% {
		border-color: rgba(76, 217, 100, 0.4);
		box-shadow: 0 0 10px rgba(76, 217, 100, 0.4);
	}

	50% {
		border-color: rgba(76, 217, 100, 1);
		box-shadow: 0 0 20px rgba(76, 217, 100, 0.8);
	}

	100% {
		border-color: rgba(76, 217, 100, 0.4);
		box-shadow: 0 0 10px rgba(76, 217, 100, 0.4);
	}
}

.power-target {
	border-color: #4cd964 !important;
	border-width: 3px !important;
	box-shadow:
		0 0 20px rgba(76, 217, 100, 0.8),
		0 0 40px rgba(76, 217, 100, 0.6),
		0 0 60px rgba(76, 217, 100, 0.4),
		inset 0 0 15px rgba(76, 217, 100, 0.5) !important;
	position: relative;
	z-index: 180 !important;
	animation: power-glow 1.5s infinite alternate;
}

@keyframes power-glow {
	0% {
		box-shadow:
			0 0 15px rgba(76, 217, 100, 0.7),
			0 0 30px rgba(76, 217, 100, 0.5),
			0 0 45px rgba(76, 217, 100, 0.3);
	}

	100% {
		box-shadow:
			0 0 20px rgba(76, 217, 100, 0.9),
			0 0 40px rgba(76, 217, 100, 0.7),
			0 0 60px rgba(76, 217, 100, 0.5);
	}
}

/* --- Vue Transition Animations --- */
/* --- Hand Card Animations (Draw Card) --- */
.hand-card-enter-active,
.hand-card-leave-active,
.hand-card-appear-active {
	transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.hand-card-move {
	transition: all 0.6s ease !important;
}

.card-draw-flight {
	position: fixed !important;
	z-index: 10000 !important;
	pointer-events: none !important;
	margin: 0 !important;
	transform-origin: center center;
	will-change: transform;
	filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.65));
}

.card-draw-destination-hidden {
	visibility: hidden !important;
}

.hand-card-enter-from,
.hand-card-appear-from {
	opacity: 0 !important;
	transform: translateX(10vw) scale(0.5) !important;
	/* Fly from deck (right) */
}

.hand-card-leave-to {
	opacity: 0 !important;
	transform: translateY(-50px) scale(0.85) !important;
	/* Play card up */
}

.hand-card-leave-active {
	position: absolute;
	z-index: 0;
}

/* --- Board Minion Animations (Play Card & Death) --- */
.board-minion-enter-active,
.board-minion-leave-active {
	transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.board-minion-move {
	transition: all 0.6s ease !important;
}

.board-minion-enter-from {
	opacity: 0 !important;
	transform: translateY(100px) scale(1.2) !important;
	/* Drop from hand */
}

.board-minion-leave-to {
	opacity: 0 !important;
	transform: scale(0.5) rotate(10deg) !important;
	filter: grayscale(100%) blur(5px) !important;
	/* Death effect */
}

.board-minion-leave-active {
	position: absolute;
	z-index: 0;
}

.combat-entity,
[data-combat-key] {
	transform-origin: center;
}

.combat-impact {
	animation: combat-impact 0.42s ease-out;
}

.combat-animation-retained {
	filter: drop-shadow(0 0 12px rgba(255, 235, 150, 0.8));
}

.combat-power-projectile {
	position: fixed;
	z-index: 10002;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, #fff 0 12%, #75d8ff 28%, #287ee9 58%, transparent 72%);
	box-shadow: 0 0 10px #fff, 0 0 24px #59c9ff, 0 0 42px #176ad6;
}

.trace-card-draw-flight {
	position: fixed;
	z-index: 10003;
	width: 150px;
	height: 200px;
	pointer-events: none;
	transform-origin: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(240, 194, 90, 0.45);
}

@keyframes combat-impact {

	0%,
	100% {
		filter: none;
		transform: translate(0, 0);
	}

	18% {
		filter: brightness(2) saturate(1.8);
		transform: translate(-7px, 2px);
	}

	38% {
		filter: brightness(1.35) saturate(1.4);
		transform: translate(7px, -2px);
	}

	58% {
		transform: translate(-4px, 1px);
	}

	78% {
		transform: translate(3px, 0);
	}
}

.combat-damage-number {
	position: fixed;
	z-index: 10000;
	pointer-events: none;
	transform: translate(-50%, -50%);
	color: #ff342e;
	font-family: 'Arial Black', 'Microsoft YaHei', sans-serif;
	font-size: clamp(30px, 3vw, 48px);
	font-weight: 900;
	line-height: 1;
	-webkit-text-stroke: 2px #fff3d0;
	text-shadow: 0 3px 0 #72110d, 0 5px 5px #000, 0 0 18px rgba(255, 38, 25, 0.95);
	animation: combat-damage-pop 0.85s cubic-bezier(.18, .8, .28, 1) forwards;
}

@keyframes combat-damage-pop {
	0% {
		opacity: 0;
		transform: translate(-50%, -35%) scale(0.35) rotate(-8deg);
	}

	22% {
		opacity: 1;
		transform: translate(-50%, -65%) scale(1.32) rotate(4deg);
	}

	48% {
		opacity: 1;
		transform: translate(-50%, -82%) scale(1) rotate(0);
	}

	100% {
		opacity: 0;
		transform: translate(-50%, -145%) scale(0.82);
	}
}

/* Shake animation for taking damage */
@keyframes shake {

	0%,
	100% {
		transform: translateX(0);
	}

	20% {
		transform: translateX(-10px) rotate(-3deg);
	}

	40% {
		transform: translateX(10px) rotate(3deg);
	}

	60% {
		transform: translateX(-10px) rotate(-3deg);
	}

	80% {
		transform: translateX(10px) rotate(3deg);
	}
}

.shake-animation {
	animation: shake 0.4s ease-in-out;
}

/* Flash animation for taking damage */
@keyframes damageFlash {
	0% {
		filter: brightness(1);
	}

	50% {
		filter: brightness(2) drop-shadow(0 0 15px red);
	}

	100% {
		filter: brightness(1);
	}
}

.damage-flash {
	animation: damageFlash 0.4s ease-in-out;
}

/* ==========================================
   Card Reveal Overlay (Play Card Showcase)
   ========================================== */
.card-reveal-overlay {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 200;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

/* Player plays card: show at lower-center of battlefield */
.card-reveal-player {
	bottom: 8%;
	align-items: flex-end;
}

/* Opponent plays card: show at upper-center of battlefield */
.card-reveal-opponent {
	top: 8%;
	align-items: flex-start;
}

.card-reveal-card {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Ambient glow behind the card */
.card-reveal-glow {
	position: absolute;
	inset: -30px;
	border-radius: 24px;
	background: radial-gradient(ellipse at center,
			rgba(255, 215, 0, 0.45) 0%,
			rgba(255, 180, 0, 0.25) 30%,
			rgba(255, 140, 0, 0.1) 60%,
			transparent 100%);
	filter: blur(18px);
	animation: card-reveal-glow-pulse 1.2s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes card-reveal-glow-pulse {
	0% {
		opacity: 0.7;
		transform: scale(0.95);
	}

	100% {
		opacity: 1;
		transform: scale(1.05);
	}
}

.card-reveal-inner {
	width: 180px;
	height: 260px;
	border-radius: 12px;
	border: 3px solid #ffd700;
	background: linear-gradient(160deg, #1a2e44 0%, #0d1a28 60%, #0a1420 100%);
	box-shadow:
		0 0 20px rgba(255, 215, 0, 0.5),
		0 0 40px rgba(255, 180, 0, 0.3),
		0 20px 60px rgba(0, 0, 0, 0.8);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.card-reveal-inner:hover {
	transform: none;
}

/* Mana Cost Crystal */
.card-reveal-mana {
	position: absolute;
	top: -6px;
	left: -6px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(145deg, #2a7fff, #0055cc);
	border: 3px solid #aaddff;
	box-shadow: 0 0 14px rgba(42, 127, 255, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.3);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
	font-weight: 900;
	text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
}

/* Card Image */
.card-reveal-image {
	width: 100%;
	height: 145px;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	border-radius: 8px 8px 0 0;
	position: relative;
	background-color: #0d1a28;
}

.card-reveal-image-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a2a3a, #0d1a28);
}

/* Card Name Banner */
.card-reveal-name {
	width: 85%;
	margin-top: -8px;
	padding: 4px 10px;
	border-radius: 10px;
	background: linear-gradient(180deg, rgba(226, 195, 115, 0.97), rgba(154, 116, 57, 0.98));
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(255, 244, 181, 0.4);
	z-index: 5;
	text-align: center;
	color: #1f150a;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-shadow: 0 1px 0 rgba(255, 239, 180, 0.6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Card Description */
.card-reveal-desc {
	width: 80%;
	margin-top: 4px;
	padding: 5px 8px;
	border-radius: 6px;
	background: linear-gradient(180deg, rgba(248, 225, 170, 0.95), rgba(204, 157, 92, 0.96));
	border: 1px solid rgba(105, 64, 23, 0.6);
	text-align: center;
	color: #2b1a0f;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 0 rgba(255, 243, 205, 0.5);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Card Type Badge */
.card-reveal-type {
	margin-top: auto;
	margin-bottom: 6px;
	padding: 2px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 180, 0, 0.1));
	border: 1px solid rgba(255, 215, 0, 0.4);
	color: #ffd700;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Attack / Health Stats */
.card-reveal-stats {
	position: absolute;
	bottom: 8px;
	left: 8px;
	right: 8px;
	display: flex;
	justify-content: space-between;
}

.card-reveal-attack,
.card-reveal-health {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 900;
}

.card-reveal-attack {
	border: 2px solid #ff6b6b;
	color: #ff6b6b;
	box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.card-reveal-health {
	border: 2px solid #4cd964;
	color: #4cd964;
	box-shadow: 0 0 10px rgba(76, 217, 100, 0.5);
}

/* --- Vue Transition: card-reveal --- */
.card-reveal-enter-active {
	transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-reveal-leave-active {
	transition: all 0.3s cubic-bezier(0.55, 0, 1, 0.45);
}

/* Player card: enters from bottom */
.card-reveal-player.card-reveal-enter-from {
	opacity: 0;
	transform: translateY(80px) scale(0.5);
}

.card-reveal-player.card-reveal-leave-to {
	opacity: 0;
	transform: translateY(-30px) scale(0.85);
}

/* Opponent card: enters from top */
.card-reveal-opponent.card-reveal-enter-from {
	opacity: 0;
	transform: translateY(-80px) scale(0.5);
}

.card-reveal-opponent.card-reveal-leave-to {
	opacity: 0;
	transform: translateY(30px) scale(0.85);
}

/* ==========================================
   Card Back Styling (Secrets Reveal)
   ========================================== */
.card-reveal-back {
	background: radial-gradient(circle at center, #3c0c1b 0%, #170208 100%) !important;
	border: 3px solid #b98b25 !important;
	box-shadow:
		0 0 25px rgba(185, 139, 37, 0.4),
		0 15px 45px rgba(0, 0, 0, 0.8) !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	position: relative;
	overflow: hidden;
}

.card-reveal-back::before {
	content: '';
	position: absolute;
	inset: 6px;
	border: 1px dashed rgba(218, 165, 32, 0.4);
	border-radius: 8px;
	pointer-events: none;
}

.card-reveal-back-decor {
	position: absolute;
	color: rgba(218, 165, 32, 0.05);
	font-size: 140px;
	pointer-events: none;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
}

.card-reveal-back-emblem {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e3ba3c, #9d7013);
	border: 2px solid #ffea8c;
	box-shadow:
		0 0 15px rgba(227, 186, 60, 0.7),
		inset 0 0 8px rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #170208;
	font-size: 32px;
	z-index: 2;
	animation: card-back-emblem-spin 12s linear infinite;
}

@keyframes card-back-emblem-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.card-reveal-hand-face {
	width: 150px;
	height: 200px;
	padding: 0;
	display: block;
	overflow: hidden;
	transform: scale(1.2);
	transform-origin: center;
}

.card-reveal-hand-face:hover {
	transform: scale(1.2);
}