@charset "UTF-8";
:root{
	--cell-size: 40px;
}
.controls {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 900px;
	margin: auto;
	margin-top: 30px;
}
.controls .btn {
	padding: 8px 14px;
	border-radius: 12px;
	border: 0;
	cursor: pointer;
	font-weight: 700;
	font-size: 15px;
	box-shadow: 0 6px 12px rgba(30,30,60,0.06);
	font-size: 1.6rem;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	color: #414042;
}
.btn.ghost {
	background: transparent;
	border: 0px dashed rgba(0,0,0,0.15);
	color:#333;
}

.wrap {
	max-width: 990px;
	width: 95%;
	margin: auto;
}
.wrap h1 {
	font-size: 3rem;
	text-align: center;
	width: 100%;
	margin-bottom: 20px;
	font-weight: 900;
}
.wrap p {
	margin-bottom: 20px;
}
.card {
	background-color: #F4F4F4;
	padding: 0px;
	border-radius: 0px;
	border: 0px solid white;
	position: relative;
	flex-shrink: 0;
}
.grid {
	margin: auto;
	display: grid;
	gap: 0.5rem;
	touch-action: none;
	user-select: none;
	padding: 10px;
	/* background: linear-gradient(0deg, rgba(244,244,244,0), rgba(255,255,255,0.5)); */
	border-radius:12px;
}
.cell {
	width: var(--cell-size);
	height: var(--cell-size);
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg,#ffffff,#f4f4f4);
	border-radius: 10px;
	font-weight: 800;
	font-size: 18px;
	color: #222222;
	border: 0px solid rgba(0,0,0,0.04);
	box-shadow:0 0px 0 rgba(0,0,0,0.04);
}
.cell.selected {
	background: linear-gradient(135deg, rgba(255,182,40,0.18), rgba(255,49,127,0.12));
	transform: translateY(-2px);
	box-shadow: 0 12px 18px rgba(0,0,0,0.08);
}
.cell.found {
	background: linear-gradient(135deg, #63cf1c, #5dc11a);
	color: #FFFFFF;
	transform: translateY(-3px);
}
.words {
	position: relative;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	flex-direction: column;
	gap: 8px;
	min-width: 180px;
	flex-grow: 1;
	margin-top: 20px;
	margin-bottom: 20px;
}
.word {
	padding: 8px 10px;
	border-radius:10px;
	font-weight:700;
}
.word.found {
	text-decoration: line-through;
	opacity:0.88;
	color: #ABABAB;
}
@media only screen and (min-width: 768px) {
	.words {
		grid-template-columns: repeat(4, 1fr);
	}
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: Arial;
}

.spin {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #ff4081;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader.hidden {
    display: none !important;
}
