:root {
	--bg: hsl(220, 10%, 8%);
	--bg-2: hsl(220, 10%, 17%);
	--bg-3: hsl(220, 10%, 11%);
	--bg-4: hsl(220, 10%, 16%);
	--txt: hsl(220, 30%, 80%);
	--txt-1: hsl(220, 45%, 90%);
	--txt-2: hsl(220, 14%, 55%);
	--txt-3: hsl(220, 11%, 35%);
	--txt-4: #000000;
	--border: #334155;
	/* Accent colors */
	--accent: #f9e2af;
    --accent-event: #fbbf24;
	--accent-farm: #34d399;
	--success: #a6e3a1;
	--error: #f38ba8;
	--shadow: rgba(0, 0, 0, 0.3);
	/* Event */
	--bg-ev-card: #1e293b;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Source Code Pro", monospace;
	font-variant-ligatures: no-common-ligatures;
}

body {
	background: linear-gradient(135deg, var(--bg), #0c1427) !important;
	color: var(--txt-1);
	min-height: 100vh;
	line-height: 1.6;
}

h1,
h2,
h3,
h4 {
	color: var(--txt-1);
	line-height: 1.3;
	font-family: "Source Code Pro", monospace;
	font-variant-ligatures: no-common-ligatures;
	font-weight: 400;
	margin-block-end: 5.1px;
	margin-block-start: 5.1px;
	margin-inline-end: 0px;
	margin-inline-start: 0px;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0.6rem;
	transition: all 0.3s ease-in-out;
	width: 100%;
}

header {
	text-align: center;
	margin-bottom: 2rem;
	padding: 0 1rem;
}

footer {
	background-color: transparent !important;
}

.fadeIn {
	animation: fadeInUp 0.8s ease-out 0.2s forwards;
	opacity: 0;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUpNotStarted {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 0.4;
		transform: translateY(0);
	}
}

#audioActivationOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	cursor: pointer;
	z-index: 2147483647;
}

#playPauseButton {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(52, 211, 153, 0.5);
	color: white;
	border: none;
	font-size: 24px;
	display: none;
	z-index: 1000;
	cursor: pointer;
	transition: transform 0.2s;
}

#playPauseButton:hover {
	transform: scale(1.1);
	background: rgba(52, 211, 153, 0.75);
}

.subtitle {
	color: var(--text-secondary);
	font-size: 1.2rem;
	max-width: 700px;
	margin: 0 auto;
}

.farm-container {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-bottom: 3rem;
}

.farm-hero {
	border-radius: 16px;
	box-shadow: 0 10px 25px var(--shadow);
	height: 50vh;
	min-height: 250px;
	max-height: 700px;
	overflow: hidden;
	position: relative;
	transition: height 0.5s ease-in;
	width: 100%;
}

.farm-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.farm-hero:hover .farm-image {
	transform: scale(1.03);
}

.farm-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.5rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.farm-name {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	color: white;
}

.farm-level {
	display: inline-block;
	background: var(--accent-farm);
	color: var(--bg-primary);
	padding: 0.3rem 1rem;
	border-radius: 20px;
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.account-details-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 2rem;
}

.detail-card,
.detail-card-achievements {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 5px 15px var(--shadow);
	transition: all 0.3s ease;
	width: 100%;
}

.detail-card:hover,
.detail-card-achievements:hover {
	transform: translateY(-5px) !important;
	border-color: var(--accent-farm);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.detail-card.achievements:hover {
	transform: none !important;
	border-color: var(--border);
	box-shadow: none !important;
}

.card-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}

.card-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(52, 211, 153, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: var(--accent-farm);
	flex-shrink: 0;
}

.card-title {
	font-size: 1.3rem;
	color: var(--text-primary);
}

.info-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.info-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 0.8rem 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
	gap: 1rem;
}

.info-item:last-child {
	border-bottom: none;
}

.info-label {
	color: var(--text-secondary);
	font-weight: 500;
	flex-shrink: 0;
}

.info-value {
	color: var(--text-primary);
	font-weight: 600;
	text-align: right;
	display: flex;
	align-items: center;
	gap: 8px;
	word-break: break-word;
	flex: 1;
	justify-content: flex-end;
}

.info-copy,
.info-copy div {
	cursor: pointer;
	height: 25.6px;
}

.stats-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 1.5rem;
}

.stat-card {
	background: rgba(52, 211, 153, 0.1);
	border-radius: 12px;
	padding: 1.2rem;
	text-align: center;
	border: 1px solid rgba(52, 211, 153, 0.2);
}

.stat-value {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--accent-farm);
	margin-bottom: 0.5rem;
}

.stat-label {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.events-section {
	margin-top: 4rem;
}

.events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(558px, 1fr));
	gap: 2rem;
	margin-top: 1.5rem;
}

.event-card {
	background: var(--bg-ev-card);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 20px var(--shadow);
	transition: all 0.3s ease;
	position: relative;
}

.event-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.event-badge {
	backdrop-filter: blur(4px);
	background: rgba(251, 191, 36, 0.15);
	border-radius: 20px;
	color: var(--accent-event);
	font-weight: 600;
	font-size: 0.9rem;
	left: 50%;
	padding: 0.5rem 1rem;
	position: relative;
	text-align: center;
	top: 15px;
	transform: translate(-50%, 0%);
	width: calc(100% - 2rem);
}

.event-content {
	padding: 1.8rem;
}

.event-title {
	color: var(--accent-event);
}

.event-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.event-description {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.event-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.stat-item {
	text-align: center;
}

.stat-number {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--accent-event);
}

.stat-name {
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.timeline.disabled {
	border-left: 2px solid #808080;
	margin-top: 0rem;
}

.timeline.disabled .timeline-item::before {
	content: '';
	position: absolute;
	left: -1.95rem;
	top: 0.5rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #808080;
}

.timeline {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
	padding-left: 1.5rem;
	border-left: 2px solid var(--accent-event);
}

.timeline-item {
	position: relative;
	padding-left: 2rem;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: -1.95rem;
	top: 0.5rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent-event);
}

.timeline-date {
	color: var(--accent-event);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.timeline-title {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.timeline-desc {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.achievements {
	margin-top: 3rem;
}

.achievements-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.achievement,
.achievement.not-started {
	background: var(--bg-card);
	border-radius: 12px;
	border: 1px solid var(--border);
	cursor: pointer;
	overflow: hidden;
	padding: 1.2rem;
	position: relative;
	transition: all 0.3s ease !important;
	width: 100%;
}

.achievement:nth-child(1)  { animation-delay: 0.05s !important; }
.achievement:nth-child(2)  { animation-delay: 0.1s !important; }
.achievement:nth-child(3)  { animation-delay: 0.15s !important; }
.achievement:nth-child(4)  { animation-delay: 0.2s !important; }
.achievement:nth-child(5)  { animation-delay: 0.25s !important; }
.achievement:nth-child(6)  { animation-delay: 0.3s !important; }
.achievement:nth-child(7)  { animation-delay: 0.35s !important; }
.achievement:nth-child(8)  { animation-delay: 0.4s !important; }
.achievement:nth-child(9)  { animation-delay: 0.45s !important; }
.achievement:nth-child(10) { animation-delay: 0.5s !important; }
.achievement:nth-child(11) { animation-delay: 0.55s !important; }
.achievement:nth-child(12) { animation-delay: 0.6s !important; }
.achievement:nth-child(13) { animation-delay: 0.65s !important; }
.achievement:nth-child(14) { animation-delay: 0.7s !important; }
.achievement:nth-child(15) { animation-delay: 0.75s !important; }
.achievement:nth-child(16) { animation-delay: 0.8s !important; }
.achievement:nth-child(17) { animation-delay: 0.85s !important; }
.achievement:nth-child(18) { animation-delay: 0.9s !important; }
.achievement:nth-child(19) { animation-delay: 0.95s !important; }
.achievement:nth-child(20) { animation-delay: 1.0s !important; }
.achievement:nth-child(21) { animation-delay: 1.05s !important; }
.achievement:nth-child(22) { animation-delay: 1.1s !important; }
.achievement:nth-child(23) { animation-delay: 1.15s !important; }
.achievement:nth-child(24) { animation-delay: 1.2s !important; }
.achievement:nth-child(25) { animation-delay: 1.25s !important; }
.achievement:nth-child(26) { animation-delay: 1.3s !important; }
.achievement:nth-child(27) { animation-delay: 1.35s !important; }
.achievement:nth-child(28) { animation-delay: 1.4s !important; }
.achievement:nth-child(29) { animation-delay: 1.45s !important; }
.achievement:nth-child(30) { animation-delay: 1.5s !important; }
.achievement:nth-child(31) { animation-delay: 1.55s !important; }
.achievement:nth-child(32) { animation-delay: 1.6s !important; }
.achievement:nth-child(33) { animation-delay: 1.65s !important; }
.achievement:nth-child(34) { animation-delay: 1.7s !important; }
.achievement:nth-child(35) { animation-delay: 1.75s !important; }
.achievement:nth-child(36) { animation-delay: 1.8s !important; }
.achievement:nth-child(37) { animation-delay: 1.85s !important; }
.achievement:nth-child(38) { animation-delay: 1.9s !important; }
.achievement:nth-child(39) { animation-delay: 1.95s !important; }
.achievement:nth-child(40) { animation-delay: 2.0s !important; }
.achievement:nth-child(41) { animation-delay: 2.05s !important; }
.achievement:nth-child(42) { animation-delay: 2.1s !important; }
.achievement:nth-child(43) { animation-delay: 2.15s !important; }
.achievement:nth-child(44) { animation-delay: 2.2s !important; }
.achievement:nth-child(45) { animation-delay: 2.25s !important; }
.achievement:nth-child(46) { animation-delay: 2.3s !important; }
.achievement:nth-child(47) { animation-delay: 2.35s !important; }
.achievement:nth-child(48) { animation-delay: 2.4s !important; }
.achievement:nth-child(49) { animation-delay: 2.45s !important; }
.achievement:nth-child(50) { animation-delay: 2.5s !important; }

.achievement:hover,
.achievement.not-started:hover {
	transform: scale(1.02) translateY(-2px) !important;
	border-color: var(--accent-farm);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.achievement-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.achievement-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	font-size: 1.1rem;
	color: white;
	flex-shrink: 0;
}

.achievement-content {
	flex: 1;
}

.achievement-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 5px;
}

.achievement-description {
	color: var(--text-secondary);
	font-size: 0.85rem;
	line-height: 1.4;
}

.achievement-progress {
	margin-top: 15px;
}

.progress-bar {
	background: rgba(255, 255, 255, 0.1);
	height: 8px;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 5px;
}

.progress-fill {
	height: 100%;
	transition: width 0.5s ease;
	border-radius: 4px;
}

.progress-text {
	font-size: 0.75rem;
	color: var(--text-secondary);
	text-align: right;
}

.achievement-badges {
	display: flex;
	gap: 5px;
	margin-top: 10px;
}

.badge {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: bold;
	color: white;
	position: relative;
}

.badge.bronze svg {
	fill: #a9fe3c;
}

.badge.silver svg {
	fill: #4fc3ff;
}

.badge.gold svg {
	fill: #f86767;
}

.badge.locked svg {
	fill: #64748b;
	opacity: 0.3;
}

.achievement.not-started {
	animation: fadeInUpNotStarted 0.8s ease-out 0.2s forwards;
	filter: grayscale(70%);
}

.achievement.bronze .achievement-icon,
.achievement.silver .achievement-icon,
.achievement.not-started .achievement-icon,
.achievement-icon {
	background: #fbbf24;
}

.progress-fill.bronze {
	background: linear-gradient(90deg, #a9fe3c, #a9fe3c);
}

.progress-fill.silver {
	background: linear-gradient(90deg, #4fc3ff, #4fc3ff);
}

.progress-fill.gold {
	background: linear-gradient(90deg, #f86767, #f86767);
}

@media (min-width: 768px) {
	.container {
		padding: 1.5rem;
	}

	.account-details-grid {
		grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
	}

	.achievements-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}

	.farm-hero {
		height: 60vh;
	}

	.farm-name {
		font-size: 2.2rem;
	}

	.card-icon {
		width: 45px;
		height: 45px;
		font-size: 1.3rem;
	}

	.card-title {
		font-size: 1.4rem;
	}
}

@media (max-width: 768px) {
	.events-grid {
		display: flex;
		flex-direction: column;
	}

	.event-stats {
		grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
		gap: 10px;
	}

	.event-stats, .stat-number, .stat-name {
		font-size: 13px;
	}
	
}

@media (min-width: 1024px) {
	.container {
		padding: 2rem;
	}

	.account-details-grid {
		grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
	}

	.achievements-grid {
		grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	}

	.stats-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}

	.farm-hero {
		height: 70vh;
	}

	.farm-name {
		font-size: 2.5rem;
	}

	.farm-level {
		font-size: 1.1rem;
	}

	.farm-overlay {
		padding: 2rem;
	}

	.card-icon {
		width: 50px;
		height: 50px;
		font-size: 1.5rem;
	}

	.card-title {
		font-size: 1.5rem;
	}

	.achievement-icon {
		width: 50px;
		height: 50px;
		font-size: 1.3rem;
	}

	.achievement-name {
		font-size: 1.1rem;
	}

	.achievement-description {
		font-size: 0.9rem;
	}

	.stat-value {
		font-size: 2.2rem;
	}

	.stat-label {
		font-size: 0.95rem;
	}

	.badge {
		width: 30px;
		height: 30px;
		font-size: 0.8rem;
	}

	.progress-text {
		font-size: 0.8rem;
	}
}

/* Large Desktop */
@media (min-width: 1400px) {
	.stats-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}
}

/* Very small mobile devices */
@media (max-width: 320px) {
	.container {
		padding: 0.75rem;
	}

	.farm-hero {
		height: 35vh;
		min-height: 200px;
	}

	.farm-name {
		font-size: 1.5rem;
	}

	.farm-overlay {
		padding: 1rem;
	}

	.detail-card {
		padding: 1rem;
	}

	.card-header {
		gap: 0.75rem;
	}

	.card-icon {
		width: 35px;
		height: 35px;
		font-size: 1rem;
	}

	.card-title {
		font-size: 1.1rem;
	}

	.achievement {
		padding: 1rem;
	}

	.achievement-icon {
		width: 35px;
		height: 35px;
		font-size: 1rem;
		margin-right: 10px;
	}
}