/* ==========================================================================
   1. DESIGN TOKENS (VARIABLES) & FONTS
   ========================================================================== */
:root {
	--clr-1: #1b1b1b;
	--clr-2: #4E75C2;
	--clr-3: #B34E3F;
	--clr-4: #B84EC2;
	--clr-5: #E5B8B0;
	--clr-6: #71bd8f;
	--clr-7: #92ACDC;
	--clr-8: #ebebeb;
	--clr-9: #5b5b5b;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

@font-face { 
	font-family: font-1; 
	src: url('https://raw.githubusercontent.com/google/fonts/main/ofl/sansation/Sansation-Regular.ttf'); 
}

@font-face { 
	font-family: font-2; 
	src: url('https://raw.githubusercontent.com/google/fonts/main/ofl/oxanium/Oxanium[wght].ttf'); 
}

@font-face { 
	font-family: font-3; 
	src: url('../KaiTi.ttf') 
}

/* ==========================================================================
   2. GLOBAL RESET & BASE LAYOUT
   ========================================================================== */
html,
body {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	background-color: var(--clr-8);
	display: grid;
	grid-template-rows: auto 1fr auto;
	color: var(--clr-1);
}

.clearfix::after {
	content: "";
	clear: both;
	display: table;
}

header {
	background-color: var(--clr-8);
	border-bottom: 1px solid var(--clr-1);
	color: var(--clr-1);
	padding: 1.5rem;
}

footer {
	background-color: var(--clr-8);
	border-top: 1px solid var(--clr-1);
	color: var(--clr-1);
	padding: 1rem;
}

main {
	min-height: 5rem;
	color: var(--clr-1);
	font-family: font-1;
	font-weight: 700;
	font-size: 1rem;
}

/* ==========================================================================
   3. SECTIONS & ALIGNMENT
   ========================================================================== */
.-sheet-1 { 
	min-height: 25rem; 
}

.-section-1 {
	margin-top: 5rem;
	margin-bottom: 5rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	width: 100%;
}

.-align-left, 
.-menu-align-left { 
	float: left; 
	margin-left: 5rem; 
}

.-align-center { 
	margin-left: auto; 
	margin-right: auto; 
	text-align: center; 
	width: 25rem; 
}

.-menu-align-right, 
.-menu-right { 
	float: right; 
	margin-right: 4rem; 
}

.-mg-top { 
	margin-top: 1rem !important; 
}

.-display-block { 
	display: block !important; 
}

.-hover-pointer { 
	cursor: pointer; 
}

/* ==========================================================================
   4. TYPOGRAPHY & COLORS
   ========================================================================== */
.-font-3 { 
	font-family: font-3 !important; 
}

.-text-clr-1 { color: var(--clr-1); }
.-text-clr-2 { color: var(--clr-2); }
.-text-clr-3 { color: var(--clr-3); }
.-text-clr-4 { color: var(--clr-4); }
.-text-clr-9 { color: var(--clr-9); }

.-text-hover-clr-2:hover { color: var(--clr-2); }
.-text-hover-clr-4:hover { color: var(--clr-4); }

.-text-1 { 
	font-family: font-1; 
	font-size: 5rem; 
	font-weight: 700; 
	margin-top: auto;
	margin-bottom: 1rem;
	margin-left: auto;
	margin-right: auto;
}

.-text-2 { 
	font-family: font-1; 
	font-size: 4rem; 
	font-weight: 700; 
	margin-top: 1rem;
	margin-bottom: 1rem;
	margin-left: auto;
	margin-right: auto;
}

.-text-3 { 
	font-family: font-2; 
	font-size: 2rem; 
	font-weight: 700; 
	margin-top: auto;
	margin-bottom: 1rem;
	margin-left: auto;
	margin-right: auto;
}

.-text-4 { 
	font-family: font-2; 
	font-size: 1.5rem; 
	font-weight: 700; 
	margin-top: auto;
	margin-bottom: 1rem;
	margin-left: auto;
	margin-right: auto;
	display: inline-block; 
	text-decoration: none; 
}

.-text-5 { 
	font-family: font-2; 
	font-size: 74px; 
	font-weight: 700; 
	margin-top: auto;
	margin-bottom: auto;
	margin-left: auto;
	margin-right: auto;
}

.-text-351, 
.-text-384 { 
	display: none; 
}

::selection { 
	color: var(--clr-8); 
	background: var(--clr-2); 
}

::-moz-selection { 
	color: var(--clr-8); 
	background: var(--clr-2); 
}

::-webkit-scrollbar { 
	width: 0px; 
}

::-webkit-scrollbar-track, 
::-webkit-scrollbar-thumb { 
	background: transparent; 
}

/* ==========================================================================
   5. NAVIGATION MENU & BUTTONS
   ========================================================================== */
.-menu .-text-1 {
	font-family: font-1;
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
}

.-menu .-text-2, 
footer .-text-2 {
	font-family: font-1;
	font-size: 1.2rem;
	font-weight: 700;
	text-decoration: none;
	margin-left: 1rem;
	letter-spacing: 2px;
}

.-menu .-text-2 { 
	cursor: pointer; 
}

.-nav #-menu-small-items { 
	display: none; 
}

#-menu-small-items a {
	margin-top: 1.5rem;
	margin-left: 0 !important;
	text-decoration: none;
	display: block;
}

.-menu-icon { 
	cursor: pointer; 
	width: 25px; 
	height: 25px; 
	display: none; 
	margin-top: -2.5px; 
}

.-menu-icon-2 { 
	width: 25px; 
	height: 25px; 
	margin-bottom: -6px; 
}

.-language { 
	float: right; 
	margin-right: 1rem; 
}

.-language-content {
	display: none;
	position: absolute;
	margin-top: 2rem;
	margin-left: 0.6rem;
	width: 1.5rem;
	text-decoration: none;
	background-color: white;
	border-radius: 10px;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	text-align: center;
}

.-btn-2 {
	font-size: 1.5rem;
	color: var(--clr-2);
	border-radius: 10px;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	cursor: pointer;
}

.-btn-2:hover { 
	color: var(--clr-1); 
}

.-btn-3 {
	font-family: font-1;
	font-size: 1rem;
	font-weight: 700;
	color: var(--clr-2);
	background-color: var(--clr-1);
	border-radius: 10px;
	border: none;
	padding-top: 1rem;
	padding-bottom: 1rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	text-decoration: none;
	display: inline-block;
}

.-btn-3:hover { 
	color: var(--clr-1); 
	background-color: var(--clr-2); 
	cursor: pointer; 
}

.-btn-4 {
	color: var(--clr-3);
	background-color: transparent;
	font-size: 1.5rem;
	border-radius: 10px;
	cursor: pointer;
}

.-btn-4:hover { 
	color: var(--clr-1); 
}

#btt {
	position: fixed;
	bottom: 30px;
	right: 30px;
	padding-top: 1rem;
	padding-bottom: 1rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	z-index: 99;
	cursor: pointer;
	fill: var(--clr-2);
	border-radius: 10px;
	border: none;
	opacity: 0;
	transition: opacity 0.3s ease-in;
}

#btt:hover { 
	fill: var(--clr-1); 
}

/* ==========================================================================
   6. UI GRAPHICS & FORMS
   ========================================================================== */
.-image-1 {
	border-radius: 25px;
	border: 4px solid var(--clr-1);
	width: 256px;
	height: 256px;
	pointer-events: none;
	margin-bottom: 1rem;
}

.-icon-1 { 
	width: 25px; 
	height: 25px; 
	display: inline-block; 
}

.-icon-2 { 
	width: 1rem; 
	height: 1rem; 
	display: inline-block; 
}

.-icon-3 { 
	width: 20px; 
	height: 20px; 
	display: inline-block; 
	stroke: var(--clr-3); 
}

#access-form {
	display: flex;
	flex-direction: column;
	width: 300px;
	align-items: center;
	margin-left: auto;
	margin-right: auto;
}

.-input-email {
	font-family: font-1;
	font-size: 1rem;
	font-weight: 700;
	color: var(--clr-1);
	background-color: transparent;
	border: 2px solid var(--clr-1);
	border-radius: 10px;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 1rem;
	padding-right: 1rem;
	width: 100%;
	margin-bottom: 1rem;
}

.-input-email:focus { 
	outline: none; 
	border-color: var(--clr-2); 
}

/* ==========================================================================
   7. CALCULATOR TOOL
   ========================================================================== */
.-calculator {
	padding: 10px;
	height: 23rem;
	width: 20rem;
	border: 2px solid var(--clr-1);
	border-radius: 10px;
	box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
	margin-left: auto;
	margin-right: auto;
}

.-calc-display-box {
	font-family: font-1;
	border: 2px solid var(--clr-1);
	border-radius: 10px;
	color: var(--clr-3);
	width: 90%;
	height: 100%;
	font-weight: 700;
	letter-spacing: 1px;
}

.-calc-button {
	font-family: font-1;
	font-weight: 700;
	font-size: 1rem;
	border: 1px solid var(--clr-1);
	border-radius: 10px;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	padding-left: 1rem;
	padding-right: 1rem;
	width: 75%;
	height: 70%;
}

.-calc-button:active, 
.-calc-button:hover {
	color: var(--clr-1);
	box-shadow: rgba(0, 0, 0, 0.19) 0px 5px 10px, rgba(0, 0, 0, 0.23) 0px 3px 3px;
}

.-calc-icon { 
	width: 25px; 
	height: 25px; 
	display: inline-block; 
	color: var(--clr-1); 
}

.-calc-icon-2 { 
	width: 22px; 
	height: 22px; 
	display: inline-block; 
	color: var(--clr-1); 
}

.-calc-icon:hover, 
.-calc-icon-2:hover { 
	color: var(--clr-3); 
	stroke: var(--clr-3); 
	cursor: pointer; 
}

/* ==========================================================================
   8. FLASHCARDS & WRITING GAME ENGINE
   ========================================================================== */
.dropdown-container, 
.card-direction-setting {
	width: 100%;
	max-width: 340px;
	box-sizing: border-box;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
}

.card-direction-setting {
	margin-top: 25px;
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 14px;
	padding-right: 14px;
	border-radius: 12px;
	border: 1px solid var(--clr-1);
}

.setting-label { 
	font-size: 15px; 
	font-weight: 600; 
	color: var(--clr-9); 
}

.toggle-container {
	display: flex;
	background: var(--clr-7);
	padding: 3px;
	border-radius: 8px;
}

.toggle-btn {
	border: none;
	background: transparent;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 14px;
	padding-right: 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--clr-1);
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s ease;
	margin: 0;
}

.toggle-btn.active { 
	background: white; 
	color: var(--clr-2); 
	box-shadow: 0 2px 5px rgba(0,0,0,0.06); 
}

.toggle-btn:disabled { 
	opacity: 0.5; 
	cursor: not-allowed; 
	transform: none !important; 
	box-shadow: none !important; 
}

.dropdown-container {
	position: relative;
	background: var(--clr-8);
	border: 1px solid transparent;
	overflow: hidden;
	transition: all 0.2s ease;
}

.dropdown-container.is-open {
	border: 1px solid var(--clr-1);
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dropdown-header {
	background: transparent;
	border: 1px solid var(--clr-1);
	border-radius: 12px;
	padding-top: 12px;
	padding-bottom: 12px;
	padding-left: 18px;
	padding-right: 18px;
	cursor: pointer;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

.dropdown-container.is-open .dropdown-header { 
	border: none; 
	border-bottom: 1px solid var(--clr-1); 
	border-radius: 0; 
}

.dropdown-arrow { 
	color: var(--clr-9); 
	transition: transform 0.3s; 
	width: 1rem; 
	height: 1rem; 
	display: inline-block; 
}

.dropdown-container.is-open .dropdown-arrow { 
	transform: rotate(180deg); 
}

.dropdown-content { 
	display: none; 
	padding: 15px; 
}

.dropdown-container.is-open .dropdown-content { 
	display: block; 
}

.menu-actions-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	margin-bottom: 15px;
	width: 100%;
}

.menu-actions-row button { 
	flex: 1 1 0%; 
	max-width: 150px; 
}

.flashcard-area, 
.results-area {
	width: 100%;
	max-width: 450px;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
}

.results-area { 
	display: none; 
	text-align: center; 
	box-sizing: border-box; 
}

.counter, 
#results-title {
	font-size: 14px !important;
	font-weight: 600;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	line-height: 1.5 !important;
	margin-top: 0 !important;
	margin-bottom: 20px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: center !important;
	display: block !important;
	color: var(--clr-9);
}

.card-scene, 
.game-card-scene {
	width: 100%;
	height: 300px;
	perspective: 1000px;
	margin-bottom: 25px;
	cursor: pointer;
}

.game-card-scene { 
	height: 180px; 
}

.game-card-scene.expanded-drawing-mode, 
#game-results-screen .game-card-scene { 
	height: 360px !important; 
}

.card {
	width: 100%;
	height: 100%;
	position: relative;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	transform-style: preserve-3d;
}

.card.is-flipped { 
	transform: rotateY(180deg); 
}

.card-face, 
.game-card-face {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 24px;
	box-sizing: border-box;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 4px 10px rgba(0, 0, 0, 0.03);
	background: #ffffff;
	border: 2px solid var(--clr-1);
}

.card-back { 
	transform: rotateY(180deg); 
	text-align: center; 
}

.card-back.hide-content * { 
	opacity: 0 !important; 
	transition: none !important; 
}

.char { 
	font-size: 84px; 
	font-weight: bold; 
	font-family: font-3;
	margin: 0; 
	color: var(--clr-1); 
}

.pinyin { 
	font-size: 2rem; 
	color: var(--clr-9); 
	margin-top: 0;
	margin-bottom: 10px;
	margin-left: 0;
	margin-right: 0;
	font-weight: 600; 
	letter-spacing: 0.5px; 
	font-family: 'Montserrat', sans-serif; 
}

.definition { 
	font-size: 1.2rem; 
	color: var(--clr-9); 
	margin: 0; 
	font-weight: 500; 
	line-height: 1.4; 
}

.char.long-text { 
	font-size: 48px !important; 
}

.pinyin.long-text { 
	font-size: 1.4rem !important; 
}

.definition.long-text { 
	font-size: 0.95rem !important; 
}

.-btn-6 {
	border: none;
	padding-top: 14px;
	padding-bottom: 14px;
	padding-left: 16px;
	padding-right: 16px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
	max-width: 154px;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
	display: block;
	background: var(--clr-2);
	color: white;
	box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
}

.-btn-6:hover:not(:disabled) { 
	transform: translateY(-1px); 
}

.-btn-6:disabled { 
	cursor: not-allowed; 
	transform: none !important; 
	box-shadow: none !important; 
}

.controls { 
	display: flex; 
	gap: 12px; 
	width: 100%; 
}

.controls button {
	border: none;
	padding-top: 14px;
	padding-bottom: 14px;
	padding-left: 16px;
	padding-right: 16px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.-fc-btn-back, 
.-fc-btn-quit, 
.-fc-btn-wrong, 
.-fc-btn-right, 
.-fc-btn-review {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	margin: 0;
	min-width: 45px;
	width: 55px;
	height: 44px;
}

.-fc-btn-back { 
	background-color: white;
	color: var(--clr-1); 
}

.-fc-btn-quit { 
	background-color: var(--clr-5); 
	color: var(--clr-1); 
}

.-fc-btn-wrong { 
	background-color: var(--clr-3); 
	color: white; 
}

.-fc-btn-right, 
.-fc-btn-review { 
	background-color: var(--clr-6); 
	color: white; 
}

.-fc-btn-back:hover, 
.-fc-btn-quit:hover, 
.-fc-btn-right:hover, 
.-fc-btn-wrong:hover, 
.-fc-btn-review:hover {
	transform: translateY(-1px);
}

.-fc-controls-row, 
.results-controls-row {
	display: flex !important;
	gap: 8px !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
	max-width: 450px !important;
	margin-top: 20px !important;
	margin-bottom: 0 !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 10px !important;
	padding-right: 10px !important;
	box-sizing: border-box !important;
}

.results-controls-row button { 
	flex: 1 1 0%; 
	min-width: 0; 
	white-space: nowrap; 
	text-align: center; 
}

.-fc-btn-icon { 
	width: 1rem; 
	height: 1rem; 
	margin-bottom: 0; 
}

.tone-1 { color: var(--clr-3) !important; }
.tone-2 { color: var(--clr-6) !important; }
.tone-3 { color: var(--clr-2) !important; }
.tone-4 { color: var(--clr-4) !important; }
.tone-5 { color: var(--clr-9) !important; }

.week-checkboxes { 
	display: flex; 
	flex-direction: column; 
	width: 100%; 
	align-items: center; 
	user-select: none; 
}

.sheet-section-block { 
	display: flex; 
	flex-direction: column; 
	width: 100%; 
	max-width: 280px; 
	margin-top: 0;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
}

.sheet-section-title { 
	font-family: font-1; 
	font-size: 1.1rem; 
	font-weight: bold; 
	color: var(--clr-9); 
	margin-bottom: 0.75rem; 
	text-align: center; 
}

.sheet-columns-wrapper { 
	display: flex; 
	flex-direction: row; 
	gap: 2.5rem; 
	width: 100%; 
	justify-content: center; 
}

.sheet-column { 
	display: flex; 
	flex-direction: column; 
	gap: 0.5rem; 
	flex: 1; 
	align-items: center; 
}

.week-item { 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	text-align: center; 
	cursor: pointer; 
	width: 100%; 
	white-space: nowrap; 
}

.week-item:hover { 
	color: #acd8bb; 
}

.week-item:has(input:checked) { 
	color: var(--clr-6); 
}

.week-item input[type="checkbox"] { 
	display: none; 
}

.sheet-section-divider { 
	border: none; 
	border-top: 1px solid var(--clr-1); 
	margin-top: 1rem;
	margin-bottom: 1rem;
	margin-left: 0;
	margin-right: 0;
	width: 100%; 
	max-width: 340px; 
}

.-fc-loading { 
	text-align: center; 
	width: 100%; 
}

.-fc-loading-text { 
	display: none; 
	margin-top: 1rem; 
}

.document-accordion { 
	background: var(--clr-8); 
	border: 1px solid var(--clr-1); 
	border-radius: 8px; 
	margin-bottom: 0.75rem; 
	overflow: hidden; 
	width: 100%; 
}

.document-accordion[open] { 
	box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
}

.document-accordion.has-selections { 
	border-color: var(--clr-6); 
}

.document-accordion-summary { 
	display: flex; 
	justify-content: space-between; 
	align-items: center; 
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 14px;
	padding-right: 14px;
	font-family: font-1; 
	font-weight: bold; 
	font-size: 0.95rem; 
	cursor: pointer; 
	user-select: none; 
}

.document-accordion-summary::-webkit-details-marker { 
	display: none; 
}

.accordion-title-text { 
	position: relative; 
	padding-left: 18px; 
}

.accordion-title-text::before { 
	content: '▶'; 
	position: absolute; 
	left: 0; 
	top: 50%; 
	transform: translateY(-50%); 
	font-size: 10px; 
	color: var(--clr-9); 
	transition: transform 0.2s ease; 
}

.document-accordion[open] .accordion-title-text::before { 
	transform: translateY(-50%) rotate(90deg); 
}

.accordion-status-badge { 
	font-size: 0.8rem; 
	font-weight: 600; 
	color: var(--clr-9); 
	background: rgba(0, 0, 0, 0.03); 
	padding-top: 2px;
	padding-bottom: 2px;
	padding-left: 8px;
	padding-right: 8px;
	border-radius: 20px; 
}

.accordion-inner-content { 
	padding: 15px; 
	display: flex; 
	flex-direction: column; 
	align-items: center; 
	border-top: 1px solid var(--clr-8); 
}

.results-card-content { 
	display: flex; 
	flex-direction: column; 
	justify-content: center; 
	align-items: center; 
	height: 100%; 
	padding: 20px; 
	box-sizing: border-box; 
}

.score-chart-container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 225px;
	height: 225px;
	aspect-ratio: 1 / 1 !important;
	flex-shrink: 0 !important;
	border-radius: 50%;
	background: radial-gradient(#ffffff 61%, transparent 63%), conic-gradient(var(--clr-6) 0%, var(--clr-5) 0%);
	margin-top: 0;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
}

#study-time-duration { 
	display: inline-block; 
}

.status-indicator { 
	display: none; 
	font-size: 14px; 
	color: var(--clr-9); 
	font-weight: 600; 
	margin-bottom: 15px; 
	text-transform: uppercase; 
	letter-spacing: 0.5px; 
	flex-direction: column; 
	align-items: center; 
	gap: 10px; 
}

.spinner { 
	display: inline-block; 
	width: 24px; 
	height: 24px; 
	border: 3px solid rgba(0, 0, 0, 0.1); 
	border-radius: 50%; 
	border-top-color: var(--clr-2); 
	animation: spin 1s ease-in-out infinite; 
	margin-top: 15px;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
}

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

.game-input-field { 
	font-family: 'Montserrat', sans-serif; 
	font-size: 1.2rem; 
	font-weight: 600; 
	color: var(--clr-1); 
	background-color: transparent; 
	border: 2px solid var(--clr-1); 
	border-radius: 12px; 
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	padding-left: 1rem;
	padding-right: 1rem;
	width: 100%; 
	box-sizing: border-box; 
	text-align: center; 
	margin-bottom: 15px; 
}

.game-input-field:focus { 
	outline: none; 
	border-color: var(--clr-2); 
}

.canvas-container { 
	position: relative; 
	width: 100%; 
	max-width: 360px; 
	flex: 1; 
	background: #ffffff; 
	border-radius: 12px; 
	border: 2px solid var(--clr-1); 
	overflow: hidden; 
	margin-top: 10px; 
	box-sizing: border-box; 
}

#drawing-canvas { 
	display: block; 
	width: 100%; 
	height: 100%; 
	cursor: crosshair; 
	touch-action: none; 
}

#drawing-canvas.drawing-locked { 
	cursor: not-allowed !important; 
}

.canvas-grid-lines { 
	position: absolute; 
	top: 0; 
	left: 0; 
	width: 100%; 
	height: 100%; 
	pointer-events: none; 
	border: 1px dashed rgba(27, 27, 27, 0.15); 
	box-sizing: border-box; 
}

.canvas-grid-lines::before { 
	content: ""; 
	position: absolute; 
	top: 50%; 
	left: 0; 
	width: 100%; 
	border-top: 1px dashed rgba(27, 27, 27, 0.15); 
}

.canvas-grid-lines::after { 
	content: ""; 
	position: absolute; 
	left: 50%; 
	top: 0; 
	height: 100%; 
	border-left: 1px dashed rgba(27, 27, 27, 0.15); 
}

.reveal-box { 
	width: 100%; 
	text-align: center; 
	margin-top: 10px; 
	padding: 10px; 
	border: 1px dashed var(--clr-9); 
	border-radius: 8px; 
	background: rgba(0,0,0,0.02); 
	box-sizing: border-box; 
}

.hidden-phase-element { 
	display: none !important; 
}

.game-def-headline { 
	font-size: 1.4rem; 
	margin-bottom: 5px; 
	font-weight: bold; 
}

.game-pinyin-spacer { 
	margin-bottom: 5px; 
}

.game-char-spacer { 
	font-size: 54px; 
	margin-bottom: 5px; 
}

.game-label-small { 
	font-size: 12px; 
	display: block; 
}

.game-user-guess { 
	font-family: 'Montserrat', sans-serif; 
	font-size: 1.3rem; 
	font-weight: 600; 
	margin-bottom: 5px; 
	color: var(--clr-9); 
}

.game-label-divider { 
	border-top: 1px dashed rgba(0,0,0,0.1); 
	padding-top: 5px; 
}

.game-target-pinyin { 
	font-size: 1.4rem; 
	margin-top: 5px;
	margin-bottom: 0;
	margin-left: 0;
	margin-right: 0;
}

.game-phase-wrapper { 
	width: 100%; 
}

.game-controls-wrapper { 
	width: 100%; 
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 5px;
	padding-right: 5px;
	box-sizing: border-box; 
}

.game-nav-back-btn { 
	font-size: 1rem; 
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.game-container-hidden { 
	display: none; 
}

.game-action-btn-main { 
	flex: 2; 
	max-width: 100%; 
	margin: 0; 
	height: 46px; 
}

.game-weight-bold { 
	font-weight: bold; 
}

/* ==========================================================================
   9. RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1119px) {
	.-text-1 { font-size: 4.5rem; }
	.-text-2 { font-size: 3.6rem; }
	.-text-3 { font-size: 1.8rem; }
	.-text-4, .-btn-3, .-btn-4 { font-size: 1.3rem; }
	.-image-1 { width: 235.4px; height: 235.4px; }
	.-icon-1 { width: 22.7px; height: 22.7px; }
}

@media (max-width: 991px) {
	.-text-1 { font-size: 4rem; }
	.-text-2 { font-size: 3.2rem; }
	.-text-3 { font-size: 1.6rem; }
	.-text-4, .-btn-3, .-btn-4 { font-size: 1.2rem; }
	.-image-1 { width: 214px; height: 214px; }
	.-icon-1 { width: 20.6px; height: 20.6px; }
	.-menu .-text-1, .-menu .-text-2, footer .-text-2 { font-size: 1.25rem; }
	.-align-center { width: 22.5rem; }
	.-menu-icon-2 { width: 20px; height: 20px; margin-bottom: -3px; }
}

@media (max-width: 930px) {
	.-section-1 { 
		margin-top: 5rem; 
		margin-bottom: 2.5rem; 
		text-align: center; 
		float: none; 
	}
}

@media (max-width: 897px) {
	.-text-1 { font-size: 3.6rem; }
	.-text-2 { font-size: 2.9rem; }
	.-text-3 { font-size: 1.4rem; }
	.-text-4, .-btn-3, .-btn-4 { font-size: 1rem; }
	.-image-1 { width: 194.5px; height: 194.5px; }
	.-icon-1 { width: 18.7px; height: 18.7px; }
	.-menu .-text-1, .-menu .-text-2, footer .-text-2 { font-size: 1rem; }
	.-align-center { width: 20rem; }
	.-menu-icon-2 { width: 18px; height: 18px; margin-bottom: -4px; }
}

@media (max-width: 814px) {
	.-text-1 { font-size: 3.2rem; }
	.-text-2 { font-size: 2.6rem; }
	.-text-3 { font-size: 1.2rem; }
	.-btn-3, .-btn-4 { font-size: 0.9rem; }
	.-image-1 { width: 176.8px; height: 176.8px; }
	.-icon-1 { width: 17px; height: 17px; }
	.-menu-icon { display: unset; }
	.-menu-right { display: none; }
}

@media (max-width: 520px) { /* MOBILE */
	.hidden-phase-element { 
		display: none !important; 
	}

	.-menu-align-left { margin-left: 1rem; }
	.-menu-align-right { margin-right: 1rem; }
	.-text-384 { display: inline; }
	
	.card-direction-setting { 
		flex-direction: column; 
		align-items: center; 
		gap: 12px; 
		text-align: center; 
	}
	
	.flashcard-area, 
	.results-area { 
		max-width: 310px; 
		width: 90%; 
	}
	
	.card-scene { 
		height: 220px; 
		margin-bottom: 15px; 
	}
	
	.char, .-text-5 { font-size: 44px !important; }
	.definition { font-size: 1.2rem !important; }
	.pinyin { font-size: 22px !important; }
	.char.long-text { font-size: 40px !important; }
	.pinyin.long-text { font-size: 1.1rem !important; }
	.definition.long-text { font-size: 0.85rem !important; }
	
	.menu-actions-row { 
		display: flex !important; 
		flex-direction: row !important; 
		gap: 10px !important; 
	}
	
	.menu-actions-row button { 
		flex: 1 1 0%; 
		max-width: 150px; 
		display: inline-flex !important; 
		align-items: center !important; 
		justify-content: center !important; 
		padding: 0 !important; 
		height: 38px !important; 
	}
		
	.controls button { 
		padding-top: 10px;
		padding-bottom: 10px;
		padding-left: 12px;
		padding-right: 12px;
		font-size: 14px; 
		border-radius: 10px; 
		flex: 1 1 auto !important; 
		min-width: 0 !important; 
		height: 42px !important; 
		white-space: nowrap !important; 
	}

	.controls.-fc-controls-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 20px !important;
    }

	.controls.-fc-controls-row .-fc-btn-wrong,
    .controls.-fc-controls-row .-fc-btn-back,
    .controls.-fc-controls-row .-fc-btn-right {
        width: 30% !important; 
        flex: 1 1 30% !important;
        height: 46px !important;
        margin: 0 !important;
    }

    .controls.-fc-controls-row .-fc-btn-wrong { order: 2 !important; }
    .controls.-fc-controls-row .-fc-btn-back  { order: 1 !important; }
    .controls.-fc-controls-row .-fc-btn-right { order: 3 !important; }

    /* Row 2: Check & Quit */
    .controls.-fc-controls-row .-btn-6,
    .controls.-fc-controls-row .-fc-btn-quit {
        flex: 1 1 100% !important;
        width: 100% !important;
        height: 46px !important;
        margin: 0 !important;
    }

    .controls.-fc-controls-row .-btn-6 { order: 4 !important; }
    .controls.-fc-controls-row .-fc-btn-quit { order: 5 !important; }

	#unified-controls.controls.-fc-controls-row .-fc-btn-back,
	#unified-controls.controls.-fc-controls-row .-btn-6 {
		width: 30% !important; 
        flex: 1 1 30% !important;
        height: 46px !important;
        margin: 0 !important;
	}
	
	 
	.controls.results-controls-row { 
		display: flex !important;
		flex-direction: column !important; 
		width: 100% !important; 
		padding: 0 20px !important;
		gap: 10px !important; 
	}
	
	.controls.results-controls-row button { 
		width: 100% !important; 
		max-width: 100% !important; 
		flex: none !important; 
		height: 46px !important; 
		margin: 0 !important;
	}
	
	.score-chart-container { 
		width: 150px !important; 
		height: 150px !important; 
	}
	
}

@media (max-width: 351px) {
	header, 
	main, 
	footer { 
		display: none; 
	}
	
	.-text-351 { 
		display: inline; 
		margin-left: auto; 
		margin-right: auto; 
		font-family: font-2; 
		font-size: 4rem; 
		font-weight: 700; 
		text-align: center; 
	}
}

@media (max-width: 220px) {
	.-text-351 { 
		font-size: 2rem; 
	}
}