@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	margin: 0;
	padding: 0;
	font-family: 'Outfit', sans-serif;
	background-color: #0f172a;
	color: white;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
	background-image:linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 40px 40px;
}
body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: radial-gradient(circle at center,transparent 40%,rgba(30, 27, 75, 0.5) 80%,rgba(76, 29, 149, 0.6) 100%);
	backdrop-filter: blur(1px);
}
#home-screen,#main-game-wrapper,.login-box,.settings-popup {
	position: relative;
	z-index: 10;
}
.hidden {
	display: none !important;
}
.aurora-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}
.blob {
	position: absolute;
	filter: blur(80px);
	opacity: 0.5;
	border-radius: 50%;
	animation: drift 20s infinite alternate;
}
.blob-1 {
	top: -10%;
	left: -10%;
	width: 50vw;
	height: 50vw;
	background: #7c3aed;
}
.blob-2 {
	bottom: -10%;
	right: -10%;
	width: 60vw;
	height: 60vw;
	background: #2563eb;
	animation-delay: -5s;
}
.grid-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 50px 50px;
	z-index: -1;
}
@keyframes drift {
	0% {
		transform: translate(0,0);
	}
	100% {
		transform: translate(30px, 20px);
	}
}
.card-style, .modern-glass {
	background: rgba(30, 41, 59, 0.7);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	border-radius: 24px;
	color: white;
}
button {
	font-family: 'Outfit', sans-serif;
	cursor: pointer;
	border: none;
	outline: none;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary, .btn-main, .btn-cyber {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: white;
	padding: 16px 24px;
	border-radius: 14px;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
	position: relative;
	overflow: hidden;
}
.btn-primary:hover, .btn-main:hover, .btn-cyber:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}
.btn-primary:active {
	transform: scale(0.98);
}
.btn-success {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
	padding: 16px 24px;
	border-radius: 14px;
	font-weight: 800;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.btn-success:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}
input[type="text"], select, textarea {
	background: rgba(15, 23, 42, 0.6);
	border: 2px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	padding: 12px 16px;
	border-radius: 12px;
	font-family: 'Outfit', sans-serif;
	font-size: 16px;
	outline: none;
	transition: 0.3s;
}
input:focus, select:focus, textarea:focus {
	border-color: #8b5cf6;
	background: rgba(15, 23, 42, 0.9);
}
option {
	background: #0f172a;
	color: white;
}
#home-screen {
	height: 45rem;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}
.login-box {
	width: 480px;
	padding: 50px 40px;
	text-align: center;
	transform: translateY(20px);
	animation: fadeUp 0.8s forwards;
}
@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.logo-glitch {
	font-size: 56px;
	font-weight: 900;
	letter-spacing: -2px;
	background: linear-gradient(to right, #fff, #a5b4fc);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
	margin-bottom: 5px;
}
.accent-text {
	color: #8b5cf6;
	-webkit-text-fill-color: #8b5cf6;
}
.tagline {
	font-size: 12px;
	letter-spacing: 4px;
	color: rgba(255,255,255,0.5);
	font-weight: 600;
	margin-bottom: 40px;
}
.hero-avatar-section {
	margin-bottom: 30px;
}
.avatar-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}
.control-btn {
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.1);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	fill: white;
}
.control-btn:hover {
	background: white;
	fill: black;
	transform: scale(1.1);
}
.control-btn svg {
	width: 24px;
	height: 24px;
}
.avatar-pod {
	width: 100px;
	height: 100px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}
#avatar-display {
	font-size: 60px;
	filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.5));
	animation: float 3s infinite ease-in-out;
	display: inline-block;
	transform-origin: center;
}
@keyframes popEffect {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}
@keyframes popAnimation {
	0% {
		transform: scale(1) rotate(0deg);
		filter: brightness(1);
	}
	50% {
		transform: scale(1.3) rotate(8deg);
		filter: brightness(1.4);
		box-shadow: 0 0 40px rgba(124, 58, 237, 0.8);
	}
	100% {
		transform: scale(1) rotate(0deg);
		filter: brightness(1);
	}
}
.avatar-pop {
	animation: popAnimation 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
	transition: none !important;
}
.avatar-ring {
	position: absolute;
	width: 120%;
	height: 120%;
	border-radius: 50%;
	border: 2px dashed rgba(255,255,255,0.2);
	animation: spin 10s linear infinite;
}
@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}
@keyframes float {
	0%,100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}
.modern-input-wrapper {
	position: relative;
	margin-bottom: 30px;
}
.modern-input-wrapper label {
	position: absolute;
	left: 9rem;
	top: 0.9rem;
	color: rgba(255, 255, 255, 0.5);
	pointer-events: none;
	transition: 0.2s;
}
.modern-input-wrapper input:focus + label,.modern-input-wrapper input:not(:placeholder-shown) + label {
	top: -20px;
	left: 9.8rem;
	font-size: 12px;
	background: transparent;
	padding: 0 4px;
	color: #a5b4fc;
}
.action-area {
	display: flex;
	gap: 15px;
	flex-direction: column;
}
#main-game-wrapper {
	width: 95%;
	max-width: 1600px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 30px;
	background: rgba(15, 23, 42, 0.6);
	border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-timer-box {
	background: #7c3aed;
	color: white;
	width: 70px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 12px;
	font-size: 28px;
	font-weight: 800;
	box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
	flex-shrink: 0;
}
.top-round {
	font-size: 20px;
	color: #a5b4fc;
	font-weight: 700;
	white-space: nowrap;
}
.top-settings {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.3s ease, color 0.3s ease;
	color: #ffffff;
	opacity: 0.8;
}
.top-settings:hover {
	transform: rotate(90deg);
	opacity: 1;
	color: #8b5cf6;
}
#copy-link-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
}
.btn-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
#copy-link-btn span {
	line-height: 1;
}
.game-layout {
	display: flex;
	gap: 20px;
	height: 82vh;
	min-height: 0;
}
.panel {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
}
.left-panel {
	width: 280px;
	background: rgba(30, 41, 59, 0.5);
}
.center-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	position: relative;
	gap: 15px;
}
.right-panel {
	width: 350px;
	background: rgba(30, 41, 59, 0.5);
}
#game-players-list {
	list-style: none;
	padding: 15px;
	overflow-y: auto;
}
#game-players-list li {
	background: rgba(255, 255, 255, 0.05);
	padding: 12px;
	margin-bottom: 10px;
	border-radius: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: 1px solid rgba(255,255,255,0.05);
	transition: 0.2s;
}
#game-players-list li:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255,255,255,0.2);
}
#game-players-list li span {
	font-weight: 700;
	font-size: 16px;
}
#game-players-list li b {
	color: #22c55e;
	font-size: 18px;
}
.settings-panel {
	padding: 20px 25px;
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 8px;
}
.settings-panel h2 {
	color: #8b5cf6;
	margin-bottom: 10px;
	margin-top: 0;
	font-size: 24px;
	text-transform: uppercase;
	letter-spacing: 1px;
	flex-shrink: 0;
}
.setting-row {
	margin-bottom: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	min-height: 40px;
}
.custom-words-section {
	flex-shrink: 1;
	display: flex;
	flex-direction: column;
	margin-top: 5px;
	min-height: 0;
}
.setting-icon {
	width: 20px;
	height: 20px;
	fill: #8b5cf6;
	flex-shrink: 0;
}
.setting-row span {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #cbd5e1;
	font-weight: 600;
}
.setting-row select {
	width: 55%;
	padding: 6px 10px;
	font-size: 15px;
	background: rgba(15, 23, 42, 0.8);
	height: auto;
}
.custom-words-section label {
	font-size: 14px;
	margin-bottom: 5px;
	color: #cbd5e1;
}
.checkbox-row {
	margin-top: 5px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}
#custom-words {
	width: 100%;
	height: 13rem;
	padding: 8px;
	font-size: 14px;
	background: rgba(15, 23, 42, 0.8);
	resize: none;
}
.lobby-actions {
	display: flex;
	gap: 15px;
	margin-top: auto;
	padding-top: 10px;
	flex-shrink: 0;
}
.top-left-section {
	display: flex;
	align-items: center;
	gap: 15px;
	justify-self: start;
}
.lobby-actions button {
	flex: 1;
	padding: 14px;
	font-size: 18px;
}
#canvas-area {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 15px;
	position: relative;
	overflow: hidden;
}
canvas.card-style {
	background: #ffffff;
	border: 4px solid #334155;
	border-radius: 16px;
	cursor: crosshair;
	box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}
.modern-toolbar {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 12px 20px;
	background: rgba(30, 41, 59, 0.7);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	position: relative;
	z-index: 50;
}
.toolbar-group {
	background: rgba(15, 23, 42, 0.5);
	padding: 8px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	display: flex;
	flex-direction: row;
	gap: 8px;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
}
.c-swatch {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: 0.1s;
}
.c-swatch:hover {
	transform: scale(1.2);
	z-index: 5;
}
.c-swatch.active {
	border-color: white;
	transform: scale(1.2);
	box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.color-grid {
	display: grid;
	grid-template-columns: repeat(11, 1fr);
	gap: 4px;
}
.tool-icon-btn {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-icon-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}
.tool-icon-btn.active {
	background: #7c3aed;
	border-color: #8b5cf6;
	box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}
.delete-btn:hover {
	background: #ef4444;
	border-color: #f87171;
}
#chat-box {
	flex-grow: 1;
	padding: 15px;
	overflow-y: auto;
	background: rgba(15, 23, 42, 0.4);
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-height: 0;
	height: 100%;
}
* {
	scrollbar-width: thin;
	scrollbar-color: #7c3aed rgba(15, 23, 42, 0.3);
}
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-track {
	background: rgba(15, 23, 42, 0.3);
	border-radius: 10px;
}
::-webkit-scrollbar-thumb {
	background: #4f46e5;
	border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
	background: #8b5cf6;
	cursor: pointer;
}
.chat-msg {
	font-size: 15px;
	color: #e2e8f0;
	line-height: 1.4;
}
.chat-msg b {
	color: #a5b4fc;
}
.system-msg {
	color: #94a3b8;
	font-style: italic;
	text-align: center;
	font-size: 13px;
	margin: 5px 0;
	padding-top: 5px;
}
.correct-guess {
	background: rgba(34, 197, 94, 0.2);
	color: #4ade80;
	padding: 8px;
	border-radius: 8px;
	text-align: center;
	font-weight: 800;
	border: 1px solid rgba(34, 197, 94, 0.3);
}
#chat-input {
	border-radius: 0;
	border: none;
	border-top: 0px solid rgba(255,255,255,0.1);
	background: rgba(30, 41, 59, 0.8);
	padding: 15px;
}
#game-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(20px);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}
#overlay-content h1 {
	font-size: 48px;
	color: white;
	margin-bottom: 10px;
	text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}
#overlay-content h2 {
	font-size: 28px;
	color: #cbd5e1;
	margin-bottom: 30px;
}
.word-options {
	display: flex;
	gap: 20px;
	justify-content: center;
}
.word-btn {
	padding: 20px 40px;
	font-size: 24px;
	background: rgba(255,255,255,0.1);
	color: white;
	border: 2px solid rgba(255,255,255,0.2);
	border-radius: 16px;
	font-weight: 700;
}
.word-btn:hover {
	background: #7c3aed;
	border-color: #7c3aed;
	transform: scale(1.05);
}
.end-word-orange {
	color: #fbbf24;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.end-scores-list {
	width: 300px;
	margin: 20px auto;
	background: rgba(0,0,0,0.3);
	padding: 20px;
	border-radius: 16px;
}
.score-row {
	display: flex;
	justify-content: space-between;
	font-size: 20px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding-bottom: 5px;
}
.score-row .pts {
	color: #4ade80;
	font-weight: 800;
}
.winner-title {
	font-size: 50px;
	margin-bottom: 40px;
}
.winner-name-highlight {
	color: #fbbf24;
	text-shadow: 0 0 20px #fbbf24;
}
.podium-container {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 15px;
	height: 400px;
}
.podium-place {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 140px;
	border-radius: 16px 16px 0 0;
	color: #1e293b;
	font-weight: 900;
	position: relative;
	box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.podium-place .avatar {
	font-size: 60px;
	margin-top: -50px;
	margin-bottom: 10px;
	filter: drop-shadow(0 5px 5px rgba(0,0,0,0.3));
}
.podium-place .name {
	color: white;
	margin-bottom: 10px;
	font-size: 20px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.podium-place .score {
	font-size: 24px;
	color: rgba(255,255,255,0.9);
	margin-top: auto;
	margin-bottom: 20px;
}
.first-place {
	height: 320px;
	background: linear-gradient(to top, #fbbf24, #f59e0b);
	z-index: 2;
	border: 4px solid #fffbeb;
}
.first-place .avatar {
	font-size: 80px;
	margin-top: -70px;
}
.second-place {
	height: 240px;
	background: linear-gradient(to top, #94a3b8, #cbd5e1);
	border: 4px solid #f1f5f9;
}
.third-place {
	height: 180px;
	background: linear-gradient(to top, #b45309, #d97706);
	border: 4px solid #fcd34d;
}
.size-group {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 8px 12px;
}
.size-btn {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid transparent;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: all 0.2s;
	padding: 0;
}
.size-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}
.size-btn.active {
	background: rgba(124, 58, 237, 0.2);
	border-color: #ffffff;
	transform: scale(1.1);
}
.size-dot {
	background-color: #ffffff;
	border-radius: 50%;
	pointer-events: none;
}
canvas.card-style {
	cursor: none;
}
.tool-icon-btn svg {
	width: 24px;
	height: 24px;
	display: block;
	pointer-events: none;
}
.tool-icon-btn:hover svg {
	transform: scale(1.15);
}
.tool-icon-btn:hover svg,.tool-icon-btn.active svg {
	transform: scale(1.1);
}
.custom-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	pointer-events: none !important;
	z-index: 9999;
	transform: translate(-50%, -50%);
	display: none;
	background: transparent;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}
.settings-popup {
	width: 500px;
	background: rgba(15, 23, 42, 0.6);
	border: 3px solid rgba(15, 23, 42, 0.6);
	border-radius: 12px;
	padding: 20px;
	color: white;
}
.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.modal-header h2 {
	font-weight: 900;
	letter-spacing: 1px;
}
.close-btn {
	background: none;
	border: none;
	color: white;
	font-size: 30px;
	cursor: pointer;
	line-height: 1;
}
.settings-section {
	margin-bottom: 25px;
}
.section-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: 700;
}
.modern-slider:focus {
	outline: none;
}
.modern-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	outline: none;
	border: none;
}
.modern-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	background: #ffffff;
	border-radius: 50%;
	cursor: pointer;
	border: 4px solid #60a5fa;
	box-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
	transition: transform 0.15s;
}
.modern-slider::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}
.hotkeys-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}
.hotkey-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.hotkey-item label {
	font-size: 14px;
	opacity: 0.8;
}
.hotkey-item input {
	width: 100%;
	padding: 8px;
	text-align: center;
	background: white;
	color: black;
	border: none;
	border-radius: 4px;
	font-weight: 900;
	text-transform: uppercase;
}
.reset-link {
	background: #4086F4;
	font-size: 14px;
	padding: 4px 12px;
	border-radius: 5px;
	margin-left: auto;
}
#avatar-img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: transparent;
	filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
	z-index: 2;
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popAnimation {
	0% {
		transform: scale(1) ;
		filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
	}
	50% {
		transform: scale(1.2);
		filter: drop-shadow(0 0 25px rgba(167, 139, 250, 1)) brightness(1.2);
	}
	100% {
		transform: scale(1) rotate(0deg);
		filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
	}
}
.avatar-pop {
	animation: popAnimation 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
	transition: none !important;
}
.avatar-pod {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}
.status-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 8px;
	transition: all 0.3s ease;
}
.status-dot.online {
	background-color: #22c55e;
	box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e;
	animation: pulseGreen 2s infinite;
}
.status-dot.offline {
	background-color: #ef4444;
	box-shadow: none;
}
@keyframes pulseGreen {
	0% {
		transform: scale(0.95);
		opacity: 0.7;
	}
	50% {
		transform: scale(1.1);
		opacity: 1;
	}
	100% {
		transform: scale(0.95);
		opacity: 0.7;
	}
}
button:disabled {
	background: #334155 !important;
	color: #94a3b8 !important;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
	opacity: 0.7;
	border: 1px solid #475569;
}
.footer-status {
	margin-top: 20px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.4);
	font-weight: 600;
	letter-spacing: 1px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
}
.countdown-big {
	font-size: 120px;
	font-weight: 900;
	color: #fbbf24;
	text-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
	margin-top: 20px;
	animation: countPulse 1s infinite;
}
@keyframes countPulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.2);
		opacity: 0.8;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}
.intro-avatar-large {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 4px solid #fff;
	object-fit: contain;
	display: block;
}
.intro-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	animation: popIn 0.5s ease-out;
}
.intro-name {
	font-size: 36px;
	font-weight: 800;
	color: white;
	text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
@keyframes popIn {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	80% {
		transform: scale(1.1);
		opacity: 1;
	}
	100% {
		transform: scale(1);
	}
}
.reaction-bar {
	display: flex;
	justify-content: space-around;
	background: rgba(0,0,0,0.2);
	border-radius: 12px;
	margin: 5px 10px;
}
.reaction-btn {
	background: none;
	font-size: 24px;
	border: none;
	cursor: pointer;
	transition: transform 0.2s;
	padding: 5px;
}
.reaction-btn:hover {
	transform: scale(1.3);
}
.floating-emoji {
	position: absolute;
	font-size: 32px;
	pointer-events: none;
	animation: floatUp 2s ease-out forwards;
	z-index: 1000;
}
@keyframes floatUp {
	0% {
		transform: translateY(0) scale(0.5);
		opacity: 0;
	}
	20% {
		opacity: 1;
		transform: translateY(-20px) scale(1.2);
	}
	100% {
		transform: translateY(-150px) scale(1);
		opacity: 0;
	}
}
#game-players-list li.player-correct {
	border: 2px solid #4ade80 !important;
	background: rgba(74, 222, 128, 0.15) !important;
	box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
	color: white !important;
}
#game-players-list li.player-correct span,#game-players-list li.player-correct b {
	color: white !important;
}
.color-popup-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}
.custom-color-popup {
	position: absolute;
	bottom: 60px;
	left: 0;
	background: rgba(15, 23, 42, 0.95);
	padding: 12px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.1);
	box-shadow: 0 -5px 20px rgba(0,0,0,0.6);
	z-index: 1000;
	width: max-content;
}
.custom-color-popup .color-grid {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 8px;
}
}
.mobile-only-btn {
display: none;
}
.desktop-only {
display: flex;
}
.mobile-only-btn {
display: none !important;
}
.relative-wrapper {
position: relative;
}
.chat-input-wrapper {
display: flex;
gap: 8px;
background: rgba(30, 41, 59, 0.8);
margin-top: auto;
}
#chat-input {
flex-grow: 1;
width: auto;
margin: 0;
}
#send-msg-btn {
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background: #7c3aed;
color: white;
border-top-left-radius: 12px;
border: none;
cursor: pointer;
box-shadow: 0 4px 10px rgba(124, 58, 237, 0.4);
transition: transform 0.1s;
flex-shrink: 0;
}
#send-msg-btn:active {
transform: scale(0.95);
}
.modern-toolbar,.toolbar-group,.color-grid-group {
overflow: visible !important;
position: relative;
z-index: 500;
}
@media (max-width: 950px) {
* {
	-webkit-tap-highlight-color: transparent !important;
	-webkit-touch-callout: none !important;
}
button:focus,input:focus,textarea:focus,select:focus,.c-swatch:focus {
	outline: none !important;
}
.tool-icon-btn,.c-swatch,.reaction-btn,.word-btn,.checkbox,img {
	user-select: none !important;
	-webkit-user-select: none !important;
}
#overlay-content h1 {
	font-size: 30px !important;
	margin-bottom: 5px !important;
	line-height: 1.2 !important;
}
#overlay-content h2 {
	font-size: 20px !important;
	font-weight: 400 !important;
	opacity: 0.8;
}
.end-word-orange {
	font-size: 30px !important;
	display: block;
	margin-top: 5px;
}
.end-word-orange {
	font-size: 1.7rem !important;
	letter-spacing: 1px !important;
}
.score-row {
	font-size: 14px !important;
	margin-bottom: 6px !important;
}
.winner-title {
	font-size: 24px !important;
	margin-bottom: 20px !important;
	padding: 0 10px;
}
.podium-container {
	height: 220px !important;
	gap: 8px !important;
	margin-top: 40px !important;
}
.podium-place {
	width: 28% !important;
	border-radius: 10px 10px 0 0 !important;
}
.first-place {
	height: 160px !important;
	border-width: 2px !important;
}
.second-place {
	height: 120px !important;
	border-width: 2px !important;
}
.third-place {
	height: 90px !important;
	border-width: 2px !important;
}
.podium-place .avatar,.podium-place img {
	width: 45px !important;
	height: 45px !important;
	font-size: 35px !important;
	margin-top: -30px !important;
}
.first-place .avatar,.first-place img {
	width: 55px !important;
	height: 55px !important;
	font-size: 45px !important;
	margin-top: -40px !important;
}
.podium-place .name {
	font-size: 11px !important;
	margin-bottom: 5px !important;
	max-width: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.podium-place .score {
	font-size: 14px !important;
	margin-bottom: 10px !important;
}
html, body {
	overflow-y: auto !important;
	overflow-x: hidden !important;
	width: 100vw !important;
	height: auto !important;
	position: relative;
	overscroll-behavior-y: auto;
}
#canvas-area{
	gap: 0px;
}
.lobby-actions button {
	flex: 1;
	padding: 14px;
	font-size: 15px;
}
.login-box {
	width: 353px;
	padding: 19px 5px;
	text-align: center;
	transform: translateY(20px);
	animation: fadeUp 0.8s forwards;
}
.modern-input-wrapper label {
	position: absolute;
	left: 7.5rem;
	top: 0.9rem;
	color: rgba(255, 255, 255, 0.5);
	pointer-events: none;
	transition: 0.2s;
}
.modern-input-wrapper input:focus + label,.modern-input-wrapper input:not(:placeholder-shown) + label {
	top: -20px;
	left: 8rem;
	font-size: 12px;
	background: transparent;
	padding: 0 4px;
	color: #a5b4fc;
}
.btn-primary, .btn-main, .btn-cyber {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: white;
	padding: 16px 24px;
	border-radius: 14px;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
	position: relative;
	overflow: hidden;
}
#game-players-list li b{
	color: #22c55e;
	font-size: 13px;
}
#game-players-list li {
	margin-bottom: 0px;
}
.word-options {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 0 10px !important;
}
.word-btn {
	padding: 10px 15px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	border: 1px solid rgba(255,255,255,0.3) !important;
	border-radius: 8px !important;
	flex-grow: 1 !important;
	text-align: center !important;
	min-width: 80px !important;
	max-width: 45% !important;
}
.word-btn:hover {
	transform: none !important;
}
.word-btn:active {
	background: #7c3aed !important;
	border-color: #7c3aed !important;
	transform: scale(0.95) !important;
}
#copy-link-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 6px 3px;
}
#custom-words {
	width: 100%;
	height: 3rem;
	padding: 8px;
	font-size: 14px;
	background: rgba(15, 23, 42, 0.8);
	resize: none;
}
#main-game-wrapper {
	width: 100%;
	display: block;
	box-sizing: border-box;
}
.settings-panel {
	padding: 20px 25px;
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 0px;
}
.reaction-bar {
	display: flex;
	justify-content: space-around;
	padding: 0px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 12px;
	margin: 5px 10px;
}
#use-custom-only {
	margin-bottom: 5px;
	width: 15px;
	height: 15px;
}
#chat-input {
	width: 100%;
	border-radius: 0;
	border: none;
	background: rgba(30, 41, 59, 0.8);
	padding: 15px;
}
.settings-popup {
	width: 302px;
	background: rgba(15, 23, 42, 0.6);
	border: 3px solid rgba(15, 23, 42, 0.6);
	border-radius: 12px;
	padding: 20px;
	color: white;
}
.mobile-only-btn{
	background:#000;
	border-radius: 8px;
	width: 35px;
	height: 35px;
	border: 2px solid white;
	cursor: pointer;
}
.top-bar {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 5px 8px !important;
	height: auto !important;
	flex-wrap: nowrap !important;
}
.top-left-section {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	min-width: 45px !important;
	gap: 0px;
	flex-shrink: 0;
}
.top-timer-box {
	width: 35px !important;
	height: 35px !important;
	font-size: 16px !important;
	margin: 0 !important;
}
.top-round {
	display: block !important;
	font-size: 10px !important;
	line-height: 1 !important;
	margin-top: 2px !important;
	opacity: 0.8;
	white-space: nowrap;
}
.top-word {
	flex-grow: 1 !important;
	text-align: center !important;
	margin: 0 5px !important;
	font-size: 15px !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.top-settings {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.3s ease, color 0.3s ease;
	color: #ffffff;
	opacity: 0.8;
	width: 25px;
}
.top-settings:hover {
	transform: rotate(90deg);
	opacity: 1;
	color: #8b5cf6;
}
.game-layout {
	display: grid !important;
	grid-template-columns: 35% 1fr !important;
	grid-template-rows: auto 400px !important;
	gap: 2% !important;
	height: auto !important;
	padding-bottom: 25px !important;
	margin-top: 5px;
}
.center-panel {
	grid-column: 1 / 3 !important;
	grid-row: 1 !important;
	width: 100% !important;
	margin-bottom: 4px;
}
.left-panel {
	grid-column: 1 !important;
	grid-row: 2 !important;
	width: 100% !important;
	height: 100% !important;
	overflow-y: auto;
	background: rgba(30, 41, 59, 0.3) !important;
	border-radius: 8px !important;
}
.right-panel {
	grid-column: 2 !important;
	grid-row: 2 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(30, 41, 59, 0.3) !important;
	border-radius: 8px !important;
	display: flex;
	flex-direction: column;
}
#game-canvas {
	width: 100% !important;
	height: 280px !important;
	touch-action: none;
	border-radius: 8px;
	border: 2px solid #334155;
}
#game-players-list {
	display: flex !important;
	flex-direction: column !important;
	padding: 2px !important;
	gap: 4px;
}
#game-players-list li {
	display: flex !important;
	flex-direction: column !important;
	padding: 4px 1px !important;
	background: rgba(255,255,255,0.05);
	border-radius: 6px;
}
#game-players-list li img {
	width: 28px !important;
	height: 28px !important;
	margin-bottom: 2px !important;
}
#game-players-list li span {
	font-size: 11px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.modern-toolbar.hidden {
	display: none !important;
}
.modern-toolbar:not(.hidden) {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: space-between !important;
	align-items: center !important;
	overflow: visible !important;
	padding: 4px 6px !important;
	gap: 4px !important;
	background: rgba(15, 23, 42, 0.95) !important;
	border-radius: 12px !important;
	margin-top: 5px !important;
	min-height: 40px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}
.toolbar-group {
	padding: 0px !important;
	gap: 2px !important;
	justify-content: flex-end !important;
	margin-left: -36px !important;
	position: relative !important;
	display: flex !important;
	border: none !important;
	background: transparent !important;
}
.desktop-only,.current-color-box {
	display: none !important;
}
.tool-icon-btn,#size-toggle-btn {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	border-radius: 6px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	flex-shrink: 0;
}
#color-toggle-btn.mobile-only-btn {
	display: block !important;
	border: 2px solid white !important;
}
.tool-icon-btn svg {
	width: 18px !important;
	height: 18px !important;
}
#color-popup-menu, #size-popup-menu {
	display: none !important;
	position: absolute !important;
	bottom: 50px !important;
	left: 241% !important;
	transform: translateX(-50%) !important;
	z-index: 999999 !important;
	background: rgba(15, 23, 42, 0.98) !important;
	border: 1px solid rgba(255,255,255,0.2) !important;
	padding: 8px !important;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.8);
	width: max-content !important;
}
#color-popup-menu {
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 4px !important;
}
#size-popup-menu {
	flex-direction: row !important;
	gap: 8px !important;
}
#color-popup-menu.show-popup {
	display: grid !important;
}
#size-popup-menu.show-popup {
	display: flex !important;
}
#color-popup-menu .c-swatch {
	width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
}
.size-btn {
	width: 32px !important;
	height: 32px !important;
}
#chat-box {
	padding: 5px;
	font-size: 11px;
	flex-grow: 1;
	overflow-y: auto;
}
.chat-input-wrapper {
	padding: 4px !important;
	min-height: 40px !important;
}
#chat-input {
	height: 32px !important;
	font-size: 13px !important;
	padding: 0 5px !important;
}
#send-msg-btn {
	width: 32px !important;
	height: 32px !important;
	border-radius: 6px !important;
	flex-shrink: 0;
}
#custom-cursor {
	display: none !important;
}
.desktop-only {
	display: none !important;
}
.hotkeys-grid {
	display: none !important;
}
}
@media (min-width: 951px) {
#size-toggle-btn,#color-toggle-btn,.mobile-only-btn {
	display: none !important;
}
#size-popup-menu {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 8px !important;
	position: static !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	width: auto !important;
	transform: none !important;
	left: auto !important;
	bottom: auto !important;
}
#color-popup-menu {
	display: grid !important;
	grid-template-columns: repeat(11, 1fr) !important;
	gap: 4px !important;
	position: static !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	width: auto !important;
	transform: none !important;
	left: auto !important;
	bottom: auto !important;
}
.size-btn {
	width: 40px !important;
	height: 40px !important;
	border-radius: 8px !important;
}
.c-swatch {
	width: 24px !important;
	height: 24px !important;
	border-radius: 6px !important;
	margin: 0 !important;
}
.modern-toolbar {
	justify-content: center !important;
	gap: 15px !important;
	padding: 12px 13px !important;
	height: auto !important;
	background: rgba(30, 41, 59, 0.7) !important;
}
.toolbar-group {
	position: static !important;
	padding: 4px !important;
	display: flex !important;
	align-items: center !important;
}
}
@keyframes popUpAnim {
from {
	transform: translateY(10px) scale(0.9);
	opacity: 0;
}
to {
	transform: translateY(0) scale(1);
	opacity: 1;
}
}
.checkbox-wrapper-33 {
--s-xsmall: 0.625em;
--s-small: 1.2em;
--border-width: 2px;
--c-primary: #8b5cf6;
--c-primary-20-percent-opacity: rgba(139, 92, 246, 0.2);
--c-primary-10-percent-opacity: rgba(139, 92, 246, 0.1);
--t-base: 0.4s;
--t-fast: 0.2s;
--e-in: ease-in;
--e-out: cubic-bezier(.11,.29,.18,.98);
}
.checkbox-wrapper-33 .visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.checkbox-wrapper-33 .checkbox {
display: flex;
align-items: center;
justify-content: flex-start;
cursor: pointer;
}
.checkbox-wrapper-33 .checkbox__symbol {
display: flex;
border: var(--border-width) solid var(--c-primary);
position: relative;
border-radius: 6px;
width: 1.5em;
height: 1.5em;
top: 3px;
transition: box-shadow var(--t-base) var(--e-out), background-color var(--t-base);
box-shadow: 0 0 0 0 var(--c-primary-10-percent-opacity);
}
.checkbox-wrapper-33 .checkbox__symbol:after {
content: "";
position: absolute;
top: 0.5em;
left: 0.5em;
width: 0.25em;
height: 0.25em;
background-color: var(--c-primary-20-percent-opacity);
opacity: 0;
border-radius: 3em;
transform: scale(1);
transform-origin: 50% 50%;
}
.checkbox-wrapper-33 .checkbox .icon-checkbox {
width: 1.1em;
height: 1.1em;
margin: auto;
fill: none;
stroke-width: 3.5;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-miterlimit: 10;
color: var(--c-primary);
}
.checkbox-wrapper-33 .checkbox .icon-checkbox path {
transition: stroke-dashoffset var(--t-fast) var(--e-in);
stroke-dasharray: 30px, 31px;
stroke-dashoffset: 31px;
}
.checkbox-wrapper-33 .checkbox__trigger:checked + .checkbox__symbol:after {
animation: ripple-33 1.5s var(--e-out);
}
.checkbox-wrapper-33 .checkbox__trigger:checked + .checkbox__symbol .icon-checkbox path {
transition: stroke-dashoffset var(--t-base) var(--e-out);
stroke-dashoffset: 0px;
}
.checkbox-wrapper-33 .checkbox__trigger:focus + .checkbox__symbol {
box-shadow: 0 0 0 0.25em var(--c-primary-20-percent-opacity);
}
@keyframes ripple-33 {
from {
	transform: scale(0);
	opacity: 1;
}
to {
	opacity: 0;
	transform: scale(20);
}
}
.toolbar-group.size-group {
display: flex;
align-items: center;
gap: 5px;
position: relative;
}
.popup-upwards {
position: absolute;
bottom: calc(100% + 15px);
left: 0;
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
background: rgba(15, 23, 42, 0.85);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
align-items: center;
opacity: 0;
visibility: hidden;
transform: translateY(15px);
transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
z-index: 100;
}
.popup-upwards.show-popup {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.popup-upwards .size-btn {
background: rgba(255, 255, 255, 0.05);
border: 1px solid transparent;
border-radius: 8px;
width: 38px;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
}
.popup-upwards .size-btn:hover {
background: rgba(255, 255, 255, 0.15);
}
.popup-upwards .size-btn.active {
background: rgba(96, 165, 250, 0.2);
border-color: #60a5fa;
box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}
.popup-upwards .size-dot {
background: #ffffff;
border-radius: 50%;
transition: all 0.2s;
}
.popup-upwards .menu-title {
font-size: 10px;
color: #94a3b8;
text-transform: uppercase;
font-weight: bold;
margin-bottom: 5px;
letter-spacing: 1px;
}
#canvas-area {
overflow: visible !important;
}
canvas.card-style {
min-height: 0 !important;
flex-shrink: 1 !important;
}
.isolated-popup {
position: absolute !important;
bottom: calc(100% + 15px) !important;
left: 50% !important;
transform: translateX(-50%) translateY(15px) !important;
display: flex !important;
flex-direction: column !important;
background: rgba(15, 23, 42, 0.95) !important;
padding: 10px !important;
border-radius: 12px !important;
border: 1px solid rgba(255,255,255,0.2) !important;
z-index: 999999 !important;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8) !important;
width: max-content !important;
height: auto !important;
opacity: 0 !important;
visibility: hidden !important;
pointer-events: none !important;
transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.isolated-popup.show-popup {
opacity: 1 !important;
visibility: visible !important;
pointer-events: auto !important;
transform: translateX(-50%) translateY(0) !important;
}
.isolated-size-btn {
width: 36px !important;
height: 36px !important;
background: rgba(255, 255, 255, 0.05) !important;
border: 1px solid transparent !important;
border-radius: 8px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
cursor: pointer !important;
margin-bottom: 6px !important;
padding: 0 !important;
box-shadow: none !important;
}
.isolated-size-btn:hover {
background: rgba(255, 255, 255, 0.15) !important;
}
.isolated-size-btn.active {
background: rgba(124, 58, 237, 0.6) !important;
border-color: #ffffff !important;
}
.hide-custom-cursor {
display: none !important;
}
canvas.force-crosshair {
cursor: crosshair !important;
}

.modal-box {
background: rgb(30 41 59);
padding: 30px;
border-radius: 15px;
text-align: center;
width: 90%;
max-width: 400px;
box-shadow: 0px 0px 24px rgb(30 41 59);
animation: popIn 0.3s ease-out;
}
.modal-box h2 {
margin-top: 0;
color: #ffffff;
font-family: sans-serif;
}
.modal-box p {
font-size: 18px;
color: #ffffff;
margin: 20px 0;
}
.modal-box button {
background: #ff4757;
color: white;
border: none;
padding: 10px 25px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background 0.2s;
}
.modal-box button:hover {
background: #e84118;
}
@keyframes popIn {
from {
	transform: scale(0.8);
	opacity: 0;
}
to {
	transform: scale(1);
	opacity: 1;
}
}
#word-display {
position: relative;
display: inline-block;
font-size: 32px;
font-weight: bold;
color: #ffffff;
letter-spacing: 5px;
margin-right: 20px;
white-space: pre-wrap;
}
.word-spacer {
display: inline-block;
width: 40px;
height: 1px;
}
.word-count-badge {
position: absolute;
top: -15px;
right: -25px;
color: white;
font-size: 14px;
font-weight: bold;
padding: 2px 8px;
border-radius: 12px;
letter-spacing: normal;
}
/* --- PANIKA ZADNJIH 10 SEKUNDI --- */
@keyframes dangerPulse {
    0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0); border-color: #334155; }
    50% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.8); border-color: #ef4444; }
    100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0); border-color: #334155; }
}

@keyframes dangerTextPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); background: #ef4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); }
    100% { transform: scale(1); }
}

.danger-blink canvas {
    animation: dangerPulse 1s infinite !important;
    border-color: #ef4444 !important; /* Mijenja ivicu platna u crveno */
}

.danger-text {
    background: #ef4444 !important;
    animation: dangerTextPulse 0.5s infinite !important; /* Tajmer ubrzano kuca i crveni se */
}
/* --- LIVE OCJENJIVANJE U TOKU CRTANJA --- */
.live-rate-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}
.live-rate-btn:hover:not(:disabled) {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}
.live-rate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.voted-like {
    background: rgba(34, 197, 94, 0.3) !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.voted-dislike {
    background: rgba(239, 68, 68, 0.3) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
.live-rate-btn svg {
    transition: all 0.2s ease-in-out;
}

.voted-like svg {
    fill: #22c55e; /* Popuni palac gore zelenom bojom */
}

.voted-dislike svg {
    fill: #ef4444; /* Popuni palac dole crvenom bojom */
}
