/**
 * Tareeqak Creative - Student Game Application CSS
 * Cohesive Visual Identity: Sunny Sky & Hills, Solid Bordered Cards, Real Assets,
 * High-Contrast Bulletproof Buttons (Text NEVER Disappears on Hover).
 */

:root {
	--tq-sky-top: #68C6FE;
	--tq-sky-mid: #A1DCFE;
	--tq-sky-bottom: #E2F4FE;
	--tq-grass-light: #48BB78;
	--tq-grass-dark: #2F855A;

	--tq-primary-blue: #0284C7;
	--tq-primary-blue-hover: #0369A1;
	--tq-primary-purple: #7C3AED;
	--tq-primary-purple-hover: #6D28D9;
	--tq-primary-orange: #EA580C;
	--tq-primary-orange-hover: #C2410C;
	--tq-primary-green: #16A34A;
	--tq-primary-green-hover: #15803D;

	--tq-dark-text: #0F172A;
	--tq-muted-text: #475569;
	--tq-card-border: #CBD5E1;
	--tq-card-bg: #FFFFFF;

	--tq-font-display: 'Changa', 'Tajawal', cursive, sans-serif;
	--tq-font-body: 'Tajawal', system-ui, -apple-system, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body.tareeqak-standalone {
	font-family: var(--tq-font-body);
	direction: rtl;
	text-align: right;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	position: relative;
	overflow-x: hidden;
	color: var(--tq-dark-text);

	/* Clean Sky Gradient */
	background: linear-gradient(180deg, var(--tq-sky-top) 0%, var(--tq-sky-mid) 50%, var(--tq-sky-bottom) 82%, var(--tq-grass-light) 93%, var(--tq-grass-dark) 100%);
	background-attachment: fixed;
}

/* Landscape Nature Elements */
.tq-landscape-bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.tq-sun {
	position: absolute;
	top: -30px;
	right: -30px;
	width: 170px;
	height: 170px;
	background: radial-gradient(circle, #FFFBEB 0%, #FDE047 50%, rgba(253, 224, 71, 0) 75%);
	border-radius: 50%;
	filter: blur(6px);
}

.tq-cloud {
	position: absolute;
	background: #FFFFFF;
	border-radius: 100px;
	opacity: 0.85;
	filter: drop-shadow(0 4px 10px rgba(0, 70, 140, 0.08));
}

.tq-cloud::before, .tq-cloud::after {
	content: '';
	position: absolute;
	background: #FFFFFF;
	border-radius: 50%;
}

.tq-cloud-1 {
	top: 35px;
	left: 8%;
	width: 130px;
	height: 42px;
	animation: tq-float 30s infinite alternate ease-in-out;
}
.tq-cloud-1::before { width: 55px; height: 55px; top: -28px; left: 22px; }
.tq-cloud-1::after { width: 40px; height: 40px; top: -18px; right: 22px; }

.tq-cloud-2 {
	top: 90px;
	right: 15%;
	width: 170px;
	height: 50px;
	animation: tq-float 38s infinite alternate-reverse ease-in-out;
}
.tq-cloud-2::before { width: 70px; height: 70px; top: -35px; left: 30px; }
.tq-cloud-2::after { width: 52px; height: 52px; top: -22px; right: 30px; }

.tq-hills {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 90px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 90" preserveAspectRatio="none"><path d="M0,35 C150,75 350,-15 500,35 C650,85 900,10 1200,45 L1200,90 L0,90 Z" fill="%2348BB78"/><path d="M0,55 C200,15 450,80 700,40 C950,0 1100,50 1200,65 L1200,90 L0,90 Z" fill="%232F855A"/></svg>') repeat-x;
	background-size: 100% 90px;
	pointer-events: none;
	z-index: 1;
}

@keyframes tq-float {
	0% { transform: translateX(0); }
	100% { transform: translateX(40px); }
}

/* Container */
.tq-app-container {
	position: relative;
	z-index: 10;
	max-width: 1060px;
	margin: 0 auto;
	padding: 16px 18px 80px 18px;
	width: 100%;
}

/* Navigation Bar */
.tq-navbar {
	background: #FFFFFF;
	border: 3px solid var(--tq-card-border);
	border-radius: 20px;
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	margin-bottom: 22px;
}

.tq-brand-badge {
	background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
	color: #FFFFFF !important;
	font-family: var(--tq-font-display);
	font-size: 19px;
	font-weight: 900;
	padding: 6px 18px;
	border-radius: 50px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 2px solid #6D28D9;
}

.tq-user-pill {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tq-points-badge {
	background: #FEF3C7;
	color: #B45309 !important;
	font-family: var(--tq-font-display);
	font-size: 17px;
	font-weight: 900;
	padding: 6px 16px;
	border-radius: 50px;
	border: 2px solid #F59E0B;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tq-points-badge.tq-star-pop {
	transform: scale(1.25);
	background: #FDE047;
	border-color: #D97706;
}

.tq-level-badge {
	background: #E0F2FE;
	color: #0369A1 !important;
	font-family: var(--tq-font-display);
	font-size: 14px;
	font-weight: 800;
	padding: 6px 14px;
	border-radius: 50px;
	border: 2px solid #38BDF8;
}

.tq-icon-btn {
	background: #FFFFFF;
	border: 2px solid var(--tq-card-border);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.15s ease;
	color: var(--tq-dark-text);
}

.tq-icon-btn:hover {
	border-color: var(--tq-primary-blue);
	background: #F0F9FF;
	transform: scale(1.08);
}

/* Banner */
.tq-welcome-banner {
	background: #FFFFFF;
	border: 3px solid var(--tq-card-border);
	border-radius: 20px;
	padding: 20px 24px;
	text-align: center;
	margin-bottom: 22px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.tq-welcome-banner h1 {
	font-family: var(--tq-font-display);
	font-size: 26px;
	font-weight: 900;
	color: var(--tq-primary-purple);
	margin-bottom: 4px;
}

.tq-welcome-banner p {
	font-size: 15px;
	color: var(--tq-muted-text);
	font-weight: 600;
}

/* ======================================================== */
/* 5 CARDS GRID (Using Real User Images from /assets)        */
/* ======================================================== */
.tq-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

@media (max-width: 860px) {
	.tq-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
	.tq-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.tq-image-card {
	background: #FFFFFF;
	border: 4px solid #CBD5E1;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 8px 20px -4px rgba(0, 50, 100, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
	cursor: pointer;
	position: relative;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	aspect-ratio: 1 / 1;
}

.tq-image-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.tq-image-card:hover {
	transform: translateY(-8px) scale(1.03);
	border-color: var(--tq-primary-blue);
	box-shadow: 0 16px 32px -6px rgba(2, 132, 199, 0.32);
}

.tq-image-card:hover img {
	transform: scale(1.04);
}

.tq-image-card:active {
	transform: translateY(-2px) scale(1.01);
}

/* ======================================================== */
/* BORDERED BUTTONS WITH BULLETPROOF HOVER (TEXT NEVER DIES) */
/* ======================================================== */
.tq-bordered-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 18px;
	border-radius: 50px;
	font-family: var(--tq-font-display);
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.18s ease;
	line-height: 1.3;
}

/* Purple Bordered Button */
.tq-btn-border-purple {
	background: #F5F3FF !important;
	border: 2.5px solid var(--tq-primary-purple) !important;
	color: var(--tq-primary-purple) !important;
}
.tq-btn-border-purple:hover,
.tq-btn-border-purple:focus {
	background: var(--tq-primary-purple) !important;
	border-color: var(--tq-primary-purple-hover) !important;
	color: #FFFFFF !important;
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Orange Bordered Button */
.tq-btn-border-orange {
	background: #FFF7ED !important;
	border: 2.5px solid var(--tq-primary-orange) !important;
	color: var(--tq-primary-orange) !important;
}
.tq-btn-border-orange:hover,
.tq-btn-border-orange:focus {
	background: var(--tq-primary-orange) !important;
	border-color: var(--tq-primary-orange-hover) !important;
	color: #FFFFFF !important;
	box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

/* Blue Bordered Button */
.tq-btn-border-blue {
	background: #F0F9FF !important;
	border: 2.5px solid var(--tq-primary-blue) !important;
	color: var(--tq-primary-blue) !important;
}
.tq-btn-border-blue:hover,
.tq-btn-border-blue:focus {
	background: var(--tq-primary-blue) !important;
	border-color: var(--tq-primary-blue-hover) !important;
	color: #FFFFFF !important;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Green Bordered Button */
.tq-btn-border-green {
	background: #F0FDF4 !important;
	border: 2.5px solid var(--tq-primary-green) !important;
	color: var(--tq-primary-green) !important;
}
.tq-btn-border-green:hover,
.tq-btn-border-green:focus {
	background: var(--tq-primary-green) !important;
	border-color: var(--tq-primary-green-hover) !important;
	color: #FFFFFF !important;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* ======================================================== */
/* QUESTION OPTIONS: 100% BORDERED & FIXED HOVER            */
/* ======================================================== */
.tq-arena-box {
	background: #FFFFFF;
	border: 3px solid var(--tq-card-border);
	border-radius: 20px;
	padding: 26px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
	position: relative;
}

.tq-arena-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}

.tq-timer-track {
	width: 100%;
	height: 12px;
	background: #F1F5F9;
	border-radius: 50px;
	overflow: hidden;
	margin-bottom: 22px;
	border: 1.5px solid #CBD5E1;
}

.tq-timer-fill {
	height: 100%;
	background: linear-gradient(90deg, #10B981, #0284C7);
	border-radius: 50px;
	transition: width 0.3s linear;
}

.tq-question-card {
	background: #F8FAFC;
	border: 3px solid #BAE6FD;
	border-radius: 18px;
	padding: 26px 20px;
	text-align: center;
	margin-bottom: 24px;
}

.tq-question-title {
	font-family: var(--tq-font-display);
	font-size: 28px;
	font-weight: 900;
	color: #0369A1;
	line-height: 1.5;
}

.tq-options-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) {
	.tq-options-grid { grid-template-columns: 1fr; }
	.tq-question-title { font-size: 22px; }
}

/* BORDERED OPTION CHOICE BUTTONS (FIXED HOVER: TEXT NEVER DISAPPEARS) */
.tq-opt-choice {
	background: #FFFFFF !important;
	border: 3px solid #0284C7 !important;
	border-radius: 16px !important;
	padding: 16px 20px !important;
	font-family: var(--tq-font-display) !important;
	font-size: 24px !important;
	font-weight: 900 !important;
	color: #0F172A !important;
	cursor: pointer;
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	outline: none;
	width: 100%;
}

.tq-opt-choice:hover:not(:disabled) {
	background: #F0F9FF !important;
	border-color: #0369A1 !important;
	color: #0F172A !important; /* TEXT REMAINS DARK AND 100% VISIBLE! */
	transform: translateY(-3px);
	box-shadow: 0 6px 14px rgba(2, 132, 199, 0.2);
}

.tq-opt-choice:active:not(:disabled) {
	transform: translateY(0);
}

.tq-opt-choice.tq-opt-correct {
	background: #ECFDF5 !important;
	border-color: #10B981 !important;
	color: #065F46 !important;
	animation: tq-pop 0.35s ease;
}

.tq-opt-choice.tq-opt-wrong {
	background: #FEF2F2 !important;
	border-color: #EF4444 !important;
	color: #991B1B !important;
}

@keyframes tq-pop {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

/* ======================================================== */
/* MULTIPLAYER 4 TEAMS GRID (Matching Image Reference)       */
/* ======================================================== */
.tq-multi-teams-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 22px;
}

@media (max-width: 800px) {
	.tq-multi-teams-row { grid-template-columns: repeat(2, 1fr); }
}

.tq-client-team-card {
	background: #FFFFFF;
	border: 3px solid #CBD5E1;
	border-radius: 18px;
	overflow: hidden;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.04);
	transition: all 0.2s ease;
}

.tq-client-team-card.tq-my-team {
	border-color: #F59E0B !important;
	box-shadow: 0 0 0 3px #FDE68A, 0 6px 16px rgba(245, 158, 11, 0.2) !important;
	transform: scale(1.03);
}

.tq-client-team-header {
	padding: 10px 8px;
	color: #FFFFFF !important;
	font-family: var(--tq-font-display);
	font-size: 15px;
	font-weight: 900;
}

.tq-client-team-score {
	padding: 12px 8px;
	font-size: 22px;
	font-weight: 900;
	color: var(--tq-dark-text);
}

.tq-client-team-meta {
	font-size: 12px;
	color: var(--tq-muted-text);
	padding-bottom: 10px;
	font-weight: bold;
}

/* Feedback Modal (Sad Face / Happy Star) */
.tq-feedback-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tq-feedback-card {
	background: #FFFFFF;
	border-radius: 24px;
	padding: 30px 24px;
	max-width: 400px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	border: 4px solid #CBD5E1;
	animation: tq-pop-in 0.25s ease;
}

.tq-mascot-sad {
	width: 85px;
	height: 85px;
	margin: 0 auto 14px;
	animation: tq-sad-wobble 1.2s infinite ease-in-out;
}

.tq-mascot-happy {
	width: 85px;
	height: 85px;
	margin: 0 auto 14px;
	animation: tq-bounce 0.8s infinite alternate ease-in-out;
}

@keyframes tq-sad-wobble {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(-8deg); }
	75% { transform: rotate(8deg); }
}

@keyframes tq-bounce {
	0% { transform: translateY(0); }
	100% { transform: translateY(-10px); }
}

@keyframes tq-pop-in {
	0% { transform: scale(0.85); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

/* Login Modal */
.tq-login-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(5px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tq-login-card {
	background: #FFFFFF;
	border-radius: 24px;
	border: 4px solid var(--tq-primary-blue);
	padding: 32px 26px;
	max-width: 420px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.tq-name-input {
	width: 100%;
	padding: 14px 18px;
	font-family: var(--tq-font-display);
	font-size: 20px;
	font-weight: 800;
	text-align: center;
	border: 3px solid #CBD5E1;
	border-radius: 14px;
	outline: none;
	margin: 16px 0;
	color: #0369A1;
}

.tq-name-input:focus {
	border-color: var(--tq-primary-blue);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

@keyframes tq-loader-bar {
	0% { left: -50%; }
	50% { left: 25%; }
	100% { left: 100%; }
}

@keyframes tq-pulse-card {
	0% { transform: scale(1); }
	100% { transform: scale(1.05); }
}

/* Confetti */
#tq_confetti_canvas {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 999998;
}

/* Credits Footer Branding */
.tq-credits-footer {
	margin-top: 36px;
	padding: 10px 0 24px 0;
	width: 100%;
	clear: both;
}

.tq-credits-card {
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border: 3px solid #FEF08A;
	border-radius: 22px;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tq-credit-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--tq-font-body);
	font-size: 14.5px;
	color: var(--tq-dark-text);
}

.tq-credit-icon {
	font-size: 20px;
}

.tq-credit-text {
	font-weight: 800;
	color: #0F172A;
}

.tq-credit-label {
	color: #64748B;
	font-weight: 700;
}

.tq-credit-val {
	color: #7C3AED;
	font-weight: 900;
}

.tq-credits-divider {
	width: 1.5px;
	height: 24px;
	background: #CBD5E1;
}

/* 3D Interactive Badge Cards with Glow & Hover Pop */
.tq-badge-card {
	background: #FFFFFF;
	border: 2px solid #E2E8F0;
	border-radius: 16px;
	padding: 16px 12px;
	text-align: center;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	cursor: pointer;
}

.tq-badge-card:hover {
	transform: translateY(-6px) scale(1.04);
	border-color: #F59E0B;
	box-shadow: 0 14px 28px rgba(245, 158, 11, 0.22), 0 0 12px rgba(253, 224, 71, 0.4);
}

.tq-badge-card .tq-badge-icon-box {
	font-size: 42px;
	margin-bottom: 8px;
	transition: transform 0.3s ease;
}

.tq-badge-card:hover .tq-badge-icon-box {
	transform: scale(1.18) rotate(-6deg);
}

.tq-badge-card.tq-badge-locked {
	background: #F8FAFC;
	opacity: 0.65;
	border-style: dashed;
}

.tq-badge-card.tq-badge-locked:hover {
	opacity: 0.9;
	transform: translateY(-3px) scale(1.02);
	border-color: #94A3B8;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

/* ========================================================= */
/* Roster Modal & Random Game Advanced Styles               */
/* ========================================================= */

.tq-roster-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(8px);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.tq-roster-card {
	background: #FFFFFF;
	width: 100%;
	max-width: 520px;
	border-radius: 24px;
	border: 3.5px solid #6366F1;
	box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.3);
	overflow: hidden;
	direction: rtl;
	text-align: right;
	animation: tq-pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tq-roster-header {
	background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
	padding: 18px 22px;
	border-bottom: 2px solid #C7D2FE;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tq-roster-title {
	margin: 0;
	font-family: var(--tq-font-display);
	font-size: 20px;
	font-weight: 900;
	color: #3730A3;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tq-roster-close-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 1.5px solid #CBD5E1;
	color: #64748B;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	line-height: 1;
}

.tq-roster-close-btn:hover {
	background: #FEE2E2;
	color: #EF4444;
	border-color: #FCA5A5;
	transform: rotate(90deg) scale(1.1);
}

.tq-roster-body {
	padding: 22px;
}

.tq-roster-input-row {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
	align-items: stretch;
}

.tq-roster-input {
	flex: 1;
	min-width: 0;
	height: 46px;
	border-radius: 14px;
	border: 2px solid #CBD5E1;
	padding: 0 16px;
	font-family: var(--tq-font-body);
	font-size: 15px;
	font-weight: 700;
	color: #0F172A;
	background: #F8FAFC;
	outline: none;
	transition: all 0.2s ease;
}

.tq-roster-input:focus {
	border-color: #6366F1;
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.tq-roster-add-btn {
	height: 46px;
	padding: 0 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, #4F46E5, #3730A3);
	color: #FFFFFF !important;
	border: none !important;
	font-family: var(--tq-font-body);
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tq-roster-add-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.tq-roster-tag-box {
	background: #F8FAFC;
	border: 2px dashed #CBD5E1;
	border-radius: 18px;
	padding: 14px;
	min-height: 120px;
	max-height: 200px;
	overflow-y: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-content: flex-start;
	margin-bottom: 18px;
}

.tq-roster-student-pill {
	background: #FFFFFF;
	border: 1.5px solid #C7D2FE;
	color: #3730A3;
	border-radius: 50px;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
}

.tq-roster-student-pill:hover {
	border-color: #818CF8;
	transform: scale(1.03);
}

.tq-roster-pill-del {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #FEE2E2;
	color: #DC2626;
	border: none;
	font-size: 11px;
	font-weight: 900;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	transition: all 0.15s ease;
}

.tq-roster-pill-del:hover {
	background: #DC2626;
	color: #FFFFFF;
	transform: scale(1.15);
}

.tq-roster-footer-btns {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	flex-wrap: wrap;
}

.tq-roster-btn-import {
	flex: 1;
	min-width: 150px;
	height: 44px;
	border-radius: 14px;
	background: #EFF6FF !important;
	color: #1D4ED8 !important;
	border: 2px solid #93C5FD !important;
	font-family: var(--tq-font-body);
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.tq-roster-btn-import:hover {
	background: #DBEAFE !important;
	border-color: #3B82F6 !important;
	transform: translateY(-2px);
}

.tq-roster-btn-ready {
	flex: 1;
	min-width: 150px;
	height: 44px;
	border-radius: 14px;
	background: linear-gradient(135deg, #10B981, #059669) !important;
	color: #FFFFFF !important;
	border: none !important;
	font-family: var(--tq-font-body);
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tq-roster-btn-ready:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Comprehensive Responsive Adjustments (Mobile & Tablet) */
@media (max-width: 768px) {
	.tq-app-container {
		padding: 10px 12px 100px 12px !important;
	}

	.tq-credits-footer {
		margin-top: 24px;
		padding: 6px 0 16px 0;
		position: relative;
		z-index: 15;
		display: block !important;
	}

	.tq-credits-card {
		background: #FFFFFF !important;
		border: 3px solid #FEF08A !important;
		flex-direction: column !important;
		align-items: stretch !important;
		text-align: center !important;
		gap: 8px !important;
		padding: 14px 12px !important;
		border-radius: 18px !important;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
	}

	.tq-credit-item {
		width: 100% !important;
		justify-content: center !important;
		flex-wrap: wrap !important;
		font-size: 13.5px !important;
		padding: 8px 10px !important;
		background: #F8FAFC !important;
		border-radius: 12px !important;
		border: 1px solid #E2E8F0 !important;
	}

	.tq-credits-divider {
		display: none !important;
	}

	.tq-navbar {
		flex-wrap: wrap;
		gap: 8px;
		padding: 10px 12px;
	}

	.tq-user-pill {
		flex-wrap: wrap;
		gap: 6px;
	}

	.tq-login-card {
		width: 95% !important;
		max-width: 420px !important;
		padding: 20px 16px !important;
	}

	.tq-cards-grid {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}

	.tq-options-grid {
		grid-template-columns: 1fr !important;
		gap: 10px !important;
	}

	.tq-multi-teams-row {
		grid-template-columns: 1fr 1fr !important;
		gap: 8px !important;
	}

	.tq-welcome-banner h1 {
		font-size: 22px !important;
	}

	.tq-question-title {
		font-size: 20px !important;
	}

	.tq-roster-footer-btns {
		flex-direction: column;
	}

	.tq-roster-btn-import,
	.tq-roster-btn-ready {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.tq-multi-teams-row {
		grid-template-columns: 1fr !important;
	}

	.tq-brand-badge {
		font-size: 16px !important;
		padding: 4px 10px !important;
	}

	.tq-name-input {
		font-size: 15px !important;
		padding: 10px 12px !important;
	}

	.tq-roster-header {
		padding: 14px 16px;
	}

	.tq-roster-body {
		padding: 16px 14px;
	}

	.tq-roster-input-row {
		flex-direction: column;
	}

	.tq-roster-add-btn {
		width: 100%;
	}
}
