/* ==========================================================================
   Tivity Game – estilos frontend
   ========================================================================== */

:root {
	--tvg-accent: #D9A84A;
	--tvg-accent-2: #FFCB80;
	--tvg-dark: #0b1b2b;
	--tvg-font: inherit;
}

.tvg-empty,
.tvg-admin-notice {
	text-align: center;
	width: 100%;
	margin: 1em auto;
	font-size: 1.1em;
}
.tvg-admin-notice {
	background: #fff3cd;
	color: #664d03;
	border: 1px solid #ffe69c;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Trigger (acertijo)
   -------------------------------------------------------------------------- */
.tvg-trigger {
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}
.tvg-trigger.tvg-align-left { margin-left: 0; text-align: left; }
.tvg-trigger.tvg-align-right { margin-right: 0; text-align: right; }
.tvg-trigger.tvg-align-center { text-align: center; }

.tvg-trigger__title {
	font-size: 1.6em;
	font-weight: 700;
	margin-bottom: 0.3em;
	line-height: 1.2;
}
.tvg-trigger__subtitle {
	opacity: 0.9;
	margin-bottom: 1em;
}
.tvg-trigger__label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.6em;
}
.tvg-trigger__form { width: 100%; }
.tvg-trigger__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.tvg-align-left .tvg-trigger__row { align-items: flex-start; }
.tvg-align-right .tvg-trigger__row { align-items: flex-end; }
.tvg-trigger--inline .tvg-trigger__row {
	flex-direction: row;
	justify-content: center;
	flex-wrap: wrap;
}
.tvg-trigger--inline .tvg-input { flex: 1 1 200px; }

.tvg-input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1.05em;
	padding: 0.75em 1em;
	border: 2px solid var(--tvg-accent-2);
	border-radius: 10px;
	background: var(--tvg-accent);
	color: #1c1c1c;
	outline: none;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	text-align: center;
}
.tvg-trigger--inline .tvg-input { text-align: left; }
.tvg-input::placeholder { color: rgba(0, 0, 0, 0.55); }
.tvg-input:focus {
	box-shadow: 0 0 0 4px rgba(255, 203, 128, 0.35);
}
textarea.tvg-input { min-height: 90px; resize: vertical; }

.tvg-btn {
	cursor: pointer;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font: inherit;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.2s ease;
}
/* Estilo base solo si no se usa una clase del tema */
.tvg-btn:not([class*="us-btn-style"]) {
	background: var(--tvg-accent);
	color: #fff;
	border: 2px solid var(--tvg-accent-2);
	padding: 0.8em 1.8em;
	border-radius: 30px;
	font-weight: 600;
}
.tvg-btn:hover { transform: translateY(-2px); }
.tvg-btn:active { transform: translateY(0); }
.tvg-btn.is-loading { pointer-events: none; opacity: 0.8; }
.tvg-btn.is-loading .tvg-btn__text { visibility: hidden; }
.tvg-btn__spinner {
	display: none;
	position: absolute;
	width: 18px;
	height: 18px;
	border: 3px solid rgba(255, 255, 255, 0.4);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: tvg-spin 0.7s linear infinite;
}
.tvg-btn.is-loading .tvg-btn__spinner { display: block; }

.tvg-trigger__error {
	margin-top: 10px;
	font-weight: 600;
	color: #ff4b4b;
	animation: tvg-fade-in 0.3s ease;
}
.tvg-trigger__hint {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px dashed var(--tvg-accent-2);
	animation: tvg-fade-in 0.4s ease;
}
.tvg-trigger__result {
	margin-top: 18px;
	animation: tvg-fade-in 0.5s ease;
}
.tvg-shake { animation: tvg-shake 0.5s ease; }
.tvg-success-glow { animation: tvg-glow 1.2s ease; }

/* --------------------------------------------------------------------------
   Modal (popup propio)
   -------------------------------------------------------------------------- */
.tvg-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: var(--tvg-overlay, rgba(0, 0, 0, 0.72));
	backdrop-filter: blur(3px);
	animation: tvg-fade-in 0.25s ease;
	box-sizing: border-box;
}
.tvg-modal.is-closing { animation: tvg-fade-out 0.2s ease forwards; }
.tvg-modal__panel {
	--tvg-bg: #0b1b2b;
	--tvg-color: #fff;
	--tvg-title: var(--tvg-accent);
	--tvg-border: var(--tvg-accent);
	--tvg-width: 520px;
	position: relative;
	width: 100%;
	max-width: var(--tvg-width);
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: var(--tvg-bg);
	background-size: cover;
	background-position: center;
	color: var(--tvg-color);
	border: 2px solid var(--tvg-border);
	border-radius: 22px;
	padding: 34px 30px 28px;
	text-align: center;
	box-shadow: 0 0 36px 4px color-mix(in srgb, var(--tvg-border) 55%, transparent), 0 24px 60px rgba(0, 0, 0, 0.5);
	box-sizing: border-box;
	font-family: var(--tvg-font);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.tvg-modal__panel { box-shadow: 0 0 36px 4px rgba(217, 168, 74, 0.5), 0 24px 60px rgba(0, 0, 0, 0.5); }
}
.tvg-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	color: var(--tvg-title);
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.8;
	transition: opacity 0.2s, transform 0.2s;
}
.tvg-modal__close:hover { opacity: 1; transform: rotate(90deg); }
.tvg-modal__title {
	color: var(--tvg-title);
	font-size: 2em;
	font-weight: 700;
	margin: 0 0 0.4em;
	line-height: 1.15;
	letter-spacing: 0.5px;
}
.tvg-modal__short {
	opacity: 0.85;
	font-style: italic;
	margin-bottom: 0.8em;
}
.tvg-modal__image {
	margin: 0.4em auto 1em;
	display: flex;
	justify-content: center;
}
.tvg-modal__image img {
	width: var(--tvg-img, 260px);
	height: var(--tvg-img, 260px);
	max-width: 100%;
	object-fit: cover;
	display: block;
	filter: drop-shadow(0 0 18px color-mix(in srgb, var(--tvg-border) 70%, transparent));
}
.tvg-shape-circle .tvg-modal__image img, .tvg-modal__image.tvg-shape-circle img { border-radius: 50%; }
.tvg-modal__image.tvg-shape-rounded img { border-radius: 18px; }
.tvg-modal__image.tvg-shape-square img { border-radius: 0; }
.tvg-modal__html {
	text-align: left;
	line-height: 1.55;
	margin: 0.5em 0 1em;
}
.tvg-modal__html--center { text-align: center; }
.tvg-modal__html img, .tvg-modal__extra img { max-width: 100%; height: auto; display: block; margin: 12px auto; }
.tvg-modal__panel img, .tvg-modal__panel iframe, .tvg-modal__panel video { max-width: 100%; }
.tvg-modal__panel iframe, .tvg-modal__panel video { height: auto; aspect-ratio: 16 / 9; width: 100%; }
.tvg-modal__html p:last-child { margin-bottom: 0; }
.tvg-modal__extra {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px solid color-mix(in srgb, var(--tvg-border) 40%, transparent);
	text-align: left;
}
.tvg-modal__date {
	font-size: 0.9em;
	opacity: 0.75;
	margin: 0.6em 0 0;
}
.tvg-modal__actions { margin-top: 1.2em; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tvg-modal__note { font-size: 0.9em; opacity: 0.8; margin-top: 0.6em; }
.tvg-modal__count { margin-top: 0.8em; font-weight: 600; color: var(--tvg-title); }

/* Animaciones de entrada del panel */
.tvg-anim-in-zoom .tvg-modal__panel { animation: tvg-zoom-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.tvg-anim-in-bounce .tvg-modal__panel { animation: tvg-bounce-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tvg-anim-in-flip .tvg-modal__panel { animation: tvg-flip-in 0.7s ease; transform-style: preserve-3d; }
.tvg-anim-in-fade .tvg-modal__panel { animation: tvg-fade-in 0.5s ease; }
.tvg-anim-in-slide .tvg-modal__panel { animation: tvg-slide-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1); }

/* Animaciones de la insignia */
.tvg-badge-anim-pop img { animation: tvg-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both, tvg-glow-pulse 2.4s ease-in-out 0.9s infinite; }
.tvg-badge-anim-spin img { animation: tvg-spin-in 1s ease both; }
.tvg-badge-anim-float img { animation: tvg-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both, tvg-float 3s ease-in-out 0.8s infinite; }
.tvg-badge-anim-pulse img { animation: tvg-pulse 1.6s ease-in-out infinite; }
.tvg-badge-anim-shine { position: relative; overflow: hidden; border-radius: 50%; }
.tvg-badge-anim-shine img { animation: tvg-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.tvg-badge-anim-shine::after {
	content: "";
	position: absolute;
	top: -50%;
	left: -75%;
	width: 50%;
	height: 200%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: rotate(20deg);
	animation: tvg-shine 2.2s ease-in-out 0.6s infinite;
}

/* Cartas conseguidas dentro del popup de éxito */
.tvg-cards-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }
.tvg-cards-row__item { text-align: center; }
.tvg-cards-row__card { width: 120px; max-width: 32vw; aspect-ratio: 0.714; border-radius: 10px; overflow: hidden; background: #0b1b2b; box-shadow: 0 0 16px 2px var(--tvg-card-color, var(--tvg-accent)); animation: tvg-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.tvg-cards-row__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvg-cards-row__name { font-size: 0.85em; margin-top: 6px; opacity: 0.9; }

/* --------------------------------------------------------------------------
   Efectos (partículas DOM)
   -------------------------------------------------------------------------- */
.tvg-fx {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999999;
	overflow: hidden;
}
.tvg-fx__p {
	position: absolute;
	bottom: -40px;
	will-change: transform, opacity;
	animation: tvg-rise linear forwards;
}
.tvg-fx__p--fall {
	bottom: auto;
	top: -40px;
	animation-name: tvg-fall;
}
.tvg-fx__bubble {
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.7);
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(173, 216, 230, 0.25));
	box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.5);
}
.tvg-fx__star {
	color: #ffd86b;
	text-shadow: 0 0 10px #ffb300;
}
.tvg-fx__spark {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffe08a;
	box-shadow: 0 0 10px 3px rgba(255, 215, 120, 0.9);
}

/* --------------------------------------------------------------------------
   Vitrina de insignias
   -------------------------------------------------------------------------- */
.tvg-showcase { width: 100%; }
.tvg-showcase__counter {
	text-align: center;
	font-weight: 700;
	margin-bottom: 1em;
	font-size: 1.1em;
}
.tvg-showcase__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.tvg-badge-card {
	display: flex;
	align-items: center;
	gap: 18px;
	overflow: visible;
	position: relative;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
	outline: none;
}
.tvg-badge-card:focus-visible { box-shadow: 0 0 0 3px var(--tvg-accent-2); }
.tvg-badge-card:not([role="button"]) { cursor: default; }
.tvg-showcase--vertical .tvg-badge-card,
.tvg-showcase--circle .tvg-badge-card {
	flex-direction: column;
	text-align: center;
	justify-content: center;
}
.tvg-showcase--circle .tvg-badge-card {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 6px !important;
	min-height: 0 !important;
}
.tvg-badge-card__image {
	flex: 0 0 auto;
	box-sizing: content-box;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tvg-badge-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.tvg-shape-circle .tvg-badge-card__image img { border-radius: 50%; }
.tvg-shape-rounded .tvg-badge-card__image img { border-radius: 16px; }
.tvg-shape-square .tvg-badge-card__image img { border-radius: 0; }
.tvg-badge-card__lock {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2em;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
.tvg-badge-card__content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
}
.tvg-showcase--horizontal .tvg-badge-card__content { text-align: center; }
.tvg-badge-card__title { display: block; line-height: 1.25; word-wrap: break-word; }
.tvg-badge-card__short,
.tvg-badge-card__date { display: block; font-size: 0.9em; opacity: 0.85; text-align: inherit; }
.tvg-badge-card__locked-label { opacity: 0.7; font-style: italic; }
.tvg-badge-card--locked { filter: saturate(0.4); }

/* Hover */
.tvg-hover-lift .tvg-badge-card[role="button"]:hover,
.tvg-hover-lift .tvg-story__card--unlocked:hover { transform: translateY(-5px); }
.tvg-hover-zoom .tvg-badge-card[role="button"]:hover .tvg-badge-card__image img { transform: scale(1.08); }
.tvg-hover-glow .tvg-badge-card[role="button"]:hover,
.tvg-hover-glow .tvg-story__card--unlocked:hover { box-shadow: 0 0 28px 6px rgba(255, 203, 128, 0.55) !important; }

/* Centrar la última tarjeta si queda sola (2 columnas) */
.tvg-showcase--center-last .tvg-showcase__grid > .tvg-badge-card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	max-width: calc(50% - 12px);
	justify-self: center;
	width: 100%;
}
@media (max-width: 640px) {
	.tvg-showcase--center-last .tvg-showcase__grid > .tvg-badge-card:last-child:nth-child(odd) { max-width: 100%; }
}

/* --------------------------------------------------------------------------
   Historia
   -------------------------------------------------------------------------- */
.tvg-story { width: 100%; }
.tvg-story__progress {
	text-align: center;
	font-weight: 700;
	margin-bottom: 1.2em;
	font-size: 1.1em;
}
.tvg-story__list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.tvg-story__card {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	text-decoration: none !important;
	color: inherit;
	box-sizing: border-box;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	position: relative;
	overflow: hidden;
}
.tvg-story__card--popup { cursor: pointer; }
.tvg-story__thumb {
	flex: 0 0 220px;
	max-width: 220px;
	position: relative;
}
.tvg-story__thumb img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.tvg-story__thumb--empty {
	aspect-ratio: 1 / 1;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tvg-story--blur .tvg-story__thumb--locked img { filter: blur(6px) grayscale(1) brightness(0.6); }
.tvg-story__lock {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.6em;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}
.tvg-story__body { flex: 1 1 auto; min-width: 0; }
@media (min-width: 641px) and (max-width: 1024px) {
	.tvg-story__thumb { max-width: 40% !important; }
}
.tvg-story__number {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.8em;
	opacity: 0.75;
	margin-bottom: 4px;
}
.tvg-story__title { margin: 0 0 0.4em; line-height: 1.2; font-weight: 700; }
.tvg-story__excerpt { line-height: 1.5; opacity: 0.95; }
.tvg-story__card--latest::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
	background-size: 200% 100%;
	animation: tvg-sheen 3s linear infinite;
	pointer-events: none;
}
@media (max-width: 640px) {
	.tvg-story__card { flex-direction: column; align-items: center; text-align: center; }
	.tvg-story__thumb { flex-basis: auto; max-width: min(100%, 240px) !important; width: 100%; margin: 0 auto; }
	.tvg-story__thumb--empty { min-height: 140px; aspect-ratio: auto; }
	.tvg-story__excerpt { text-align: left; }
	.tvg-story__excerpt:only-child, .tvg-story__card--locked .tvg-story__excerpt { text-align: center; }
}

/* --------------------------------------------------------------------------
   Menú del juego
   -------------------------------------------------------------------------- */
.tvg-menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	font: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
}
.tvg-menu-btn:hover { transform: scale(1.08); }
.tvg-menu-btn .dashicons { font-size: 28px; width: 28px; height: 28px; }
.tvg-menu-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tvg-menu-btn__emoji { font-size: 28px; line-height: 1; }
.tvg-menu-btn__text { font-weight: 700; font-size: 14px; padding: 0 6px; }
.tvg-menu-btn--pulse { animation: tvg-ring-pulse 2.2s ease-out infinite; }

.tvg-menu {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	animation: tvg-fade-in 0.25s ease;
	backdrop-filter: blur(3px);
}
.tvg-menu[hidden] { display: none; }
.tvg-menu.is-closing { animation: tvg-fade-out 0.2s ease forwards; }
.tvg-menu__panel {
	position: relative;
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow: auto;
	text-align: center;
	box-sizing: border-box;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.tvg-menu.tvg-anim-zoom .tvg-menu__panel { animation: tvg-zoom-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.tvg-menu.tvg-anim-bounce .tvg-menu__panel { animation: tvg-bounce-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tvg-menu.tvg-anim-flip .tvg-menu__panel { animation: tvg-flip-in 0.7s ease; }
.tvg-menu.tvg-anim-fade .tvg-menu__panel { animation: tvg-fade-in 0.5s ease; }
.tvg-menu.tvg-anim-slide .tvg-menu__panel { animation: tvg-slide-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.tvg-menu__close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.85;
	transition: transform 0.2s, opacity 0.2s;
}
.tvg-menu__close:hover { opacity: 1; transform: rotate(90deg); }
.tvg-menu__logo { margin-bottom: 14px; }
.tvg-menu__logo img { object-fit: contain; border-radius: 50%; }
.tvg-menu__title {
	margin: 0 0 18px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.5px;
}
.tvg-menu__image { margin: 0 0 24px; display: flex; justify-content: center; }
.tvg-menu__image img { object-fit: cover; display: block; }
.tvg-menu__text { margin-bottom: 18px; line-height: 1.5; }
.tvg-menu__count { margin-bottom: 18px; font-weight: 600; }
.tvg-menu__buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.tvg-menu__btn {
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none !important;
	text-align: center;
	box-sizing: border-box;
}
.tvg-menu__btn:not([class*="us-btn-style"]) {
	background: var(--tvg-accent);
	color: #0b1b2b !important;
	padding: 0.8em 1.8em;
	border-radius: 30px;
	font-weight: 700;
	border: 2px solid var(--tvg-accent-2);
	transition: transform 0.2s;
}
.tvg-menu__btn:not([class*="us-btn-style"]):hover { transform: translateY(-2px); }
.tvg-menu__btn--logout { opacity: 0.85; font-size: 0.9em; }
.tvg-menu__footer { margin-top: 20px; font-size: 0.9em; opacity: 0.85; }
body.tvg-menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Progreso y award
   -------------------------------------------------------------------------- */
.tvg-progress {
	position: relative;
	width: 100%;
	height: var(--tvg-p-h, 18px);
	background: var(--tvg-p-bg, rgba(255, 255, 255, 0.15));
	border-radius: var(--tvg-p-r, 12px);
	overflow: hidden;
	margin: 0.5em 0;
}
.tvg-progress__bar {
	height: 100%;
	background: var(--tvg-p-color, var(--tvg-accent));
	border-radius: inherit;
	transition: width 1.2s cubic-bezier(0.2, 0.9, 0.3, 1);
	box-shadow: 0 0 12px var(--tvg-p-color, var(--tvg-accent));
}
.tvg-progress--animate:not(.is-visible) .tvg-progress__bar { width: 0 !important; }
.tvg-progress__text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75em;
	font-weight: 700;
	color: var(--tvg-p-text, #fff);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.tvg-award { text-align: center; }
.tvg-award__card {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 10px auto;
}
.tvg-award__card img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; filter: grayscale(1) opacity(0.6); transition: filter 0.6s; }
.tvg-award__card--owned img { filter: none; }
.tvg-count { font-weight: 700; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes tvg-spin { to { transform: rotate(360deg); } }
@keyframes tvg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tvg-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes tvg-shake {
	10%, 90% { transform: translateX(-2px); }
	20%, 80% { transform: translateX(4px); }
	30%, 50%, 70% { transform: translateX(-8px); }
	40%, 60% { transform: translateX(8px); }
}
@keyframes tvg-glow {
	0% { box-shadow: 0 0 0 0 rgba(255, 203, 128, 0.9); }
	100% { box-shadow: 0 0 0 30px rgba(255, 203, 128, 0); }
}
@keyframes tvg-zoom-in { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes tvg-bounce-in {
	0% { transform: scale(0.3); opacity: 0; }
	50% { transform: scale(1.08); opacity: 1; }
	70% { transform: scale(0.95); }
	100% { transform: scale(1); }
}
@keyframes tvg-flip-in { from { transform: perspective(900px) rotateY(90deg); opacity: 0; } to { transform: perspective(900px) rotateY(0); opacity: 1; } }
@keyframes tvg-slide-in { from { transform: translateY(-80px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes tvg-pop { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 70% { transform: scale(1.12) rotate(3deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes tvg-glow-pulse {
	0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 203, 128, 0.5)); }
	50% { filter: drop-shadow(0 0 30px rgba(255, 203, 128, 0.95)); }
}
@keyframes tvg-spin-in { from { transform: rotate(-540deg) scale(0); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes tvg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes tvg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes tvg-shine { 0% { left: -75%; } 60%, 100% { left: 125%; } }
@keyframes tvg-sheen { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes tvg-ring-pulse {
	0% { box-shadow: 0 0 0 0 rgba(217, 168, 74, 0.7); }
	70% { box-shadow: 0 0 0 18px rgba(217, 168, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(217, 168, 74, 0); }
}
@keyframes tvg-rise {
	0% { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
	10% { opacity: 1; }
	100% { transform: translateY(-110vh) translateX(var(--tvg-dx, 0)) rotate(var(--tvg-rot, 0)); opacity: 0; }
}
@keyframes tvg-fall {
	0% { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
	10% { opacity: 1; }
	100% { transform: translateY(110vh) translateX(var(--tvg-dx, 0)) rotate(var(--tvg-rot, 0)); opacity: 0; }
}

@media (max-width: 480px) {
	.tvg-modal { padding: 10px; }
	.tvg-modal__panel { padding: 30px 18px 22px; border-radius: 18px; max-height: calc(100vh - 20px); }
	.tvg-modal__title { font-size: 1.6em; }
	.tvg-modal__image img { width: min(var(--tvg-img, 260px), 70vw); height: min(var(--tvg-img, 260px), 70vw); }
	.tvg-modal__close { top: 6px; right: 8px; }
	.tvg-menu { padding: 10px; }
	.tvg-menu__panel { padding: 28px 18px 22px !important; max-height: calc(100vh - 20px); }
	.tvg-menu__title { font-size: 26px !important; }
	.tvg-menu__buttons .tvg-menu__btn { min-width: 0 !important; width: 100%; }
	.tvg-trigger__title { font-size: 1.35em; }
	.tvg-trigger--inline .tvg-trigger__row { flex-direction: column; align-items: stretch; }
	.tvg-trigger--inline .tvg-input { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.tvg-modal__panel, .tvg-menu__panel, .tvg-badge-card, .tvg-story__card, .tvg-menu-btn, .tvg-modal__image img { animation: none !important; transition: none !important; }
}
