@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');


/* Base Styles */
body {
	margin: 0;
	overflow: hidden;
	background-color: #f2f2f2;
	font-family: Arial, sans-serif;
}

/* Header Bar */
.header-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 55px;
	background-color: #3793d1;
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	z-index: 100;
}

body.in-training-mode .header-bar {
	background-color: #7ad304;
}

.logo-container {
	display: flex;
	align-items: center;
	margin-left: 15px;
}

.logo {
	width: 30px;
	height: 30px;
	background-color: white;
	border-radius: 50%;
	margin-right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

img#logo {
	transition: 0.2s;
}

img#logo:hover {
	transform: scale(1.1);
	cursor: pointer;
}

.header-title {
	font-size: 18px;
	font-weight: 500;
	margin-left: 8px;
}

.header-title span, .screen-title span {
	opacity: 0.7;
}

.header-controls {
	display: flex;
	align-items: center;
	gap: 15px;
	height: 55px;
	background-color: #232323;
	font-family: 'Inter';
}

.control-buttons {
	display: flex;
}

.training-mode {
	display: none;
	gap: 10px;
	color: white;
	height: 55px !important;
	font-size: 16px !important;
	justify-content: center;
	align-items: center;
	padding: 0 13px;
	background-color: #2d88c5;
	top: 0 !important;
	margin-top: 0 !important;
}

.playing .training-mode {
	display: flex;
}

.playing.in-training-mode .training-mode {
	display: flex;
	background-color: #76c809;
}

.switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 20px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #297db5;
	border-radius: 34px;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	border-radius: 50%;
	transition: .4s;
}

input:checked + .slider {
	background-color: #6ab801;
}

input:checked + .slider:before {
	transform: translateX(20px);
}

.header-button {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.header-button:hover {
	opacity: 1 !important;
}

.header-button img {
	width: 30px;
}

.game-controls {
	display: flex;
	align-items: center;
	gap: 15px;
	color: white;
	font-size: 15px;
}

.game-controls .value {
	color: #eae9e9;
}	

.game-controls #elapsed-time {
	color: #8d8d8d;
	font-weight: 500;
	font-size: 16px;
	width: 97px;
}

.game-controls #header-score {
	background-color: #3a3a3a;
	color: #cdcdcd;
	padding: 0 15px;
	height: 55px;
	display: flex;
	align-items: center;
	font-size: 16px;
	font-weight: 400;
}

.game-controls #header-score .value {
	padding-left: 7px;
}

.game-controls #round-counter {
	color: #8d8d8d;
	font-weight: 500;
	font-size: 16px;
}

.game-controls #header-score .percentage {
	font-size: 0.75em;
	opacity: 0.6;
	margin-left: 1px;
	bottom: -2px;
	position: relative;
}

.header-controls .control-buttons {
	display: none !important;
}

.playing .header-controls .control-buttons {
	display: flex !important;
}

.playing:not(.in-training-mode) #play-pause-button {
	opacity: 0.3 !important;
	pointer-events: none;
	cursor: not-allowed;
}

.game-stats {
	color: #888;
	font-size: 14px;
}

.exit-button {
	position: relative;
	border: none;
	background-color: #1B8AC0;
	padding: 0px 15px 0 20px;
	height: 55px !important;
	display: inline-block;
	cursor: pointer;
	transition: 0.2s;
	z-index: 9999;
	top: 0 !important;
	margin-top: 0 !important;
	float: right;
}

body.in-training-mode .exit-button {
	background-color: #78cf04;
}	

body.in-training-mode .exit-button:hover {
	background-color: #73ca00;
}	

.exit-button img {
	width: 22px;
}

.exit-button:hover {
	background-color: #177eb0;
}

.exit-button {
	display: none;
}

.start .exit-button,
.timeSelection .exit-button,
.ended .exit-button {
	display: flex;
}

/* Dropdown Menu Styling */
.settings-dropdown {
	position: absolute;
	top: 63px;
	left: 10px;
	margin-top: 5px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgb(0 0 0 / 38%);
	width: 250px;
	display: block;
	z-index: 9999;
	max-height: calc(100vh - 135px);
	bottom: auto;
	flex-direction: column;
}

.dropdown-exit-to-menu-button {
	background: #dc3545;
	color: white;
	border: none;
	padding: 16px 16px;
	border-radius: 8px;
	cursor: pointer;
	width: 100%;
	font-weight: 600;
	font-family: 'Inter';
	font-size: 14px;
}

.dropdown-exit-to-menu-button:hover {
	background: #c82333;
}

/* Pause Indicator Styles */
@keyframes flash {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

.pause-indicator {
	position: absolute;
	top: 95px;
	right: 15px;
	z-index: 1000;
	animation: flash 1.25s infinite;
}

/* Exit Modal */
#exit-modal {
	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: 9999;
}

.exit-modal-content {
	background: white;
	padding: 15px 30px 30px 30px;
	border-radius: 8px;
	text-align: center;
	max-width: 500px;
	box-shadow: 0 1px 6px 1px #03030363;
}

.exit-modal-content h2 {
	color: #575757;
	margin-bottom: 25px;
	font-size: 20px;
}

.exit-modal-content p {
	color: #888;
	margin-bottom: 40px;
	font-size: 15px;
}

.exit-modal-buttons {
	display: flex;
	justify-content: center;
	gap: 30px;
}

.modal-button {
	padding: 10px 25px;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	font-family: 'Inter';
	transition: 0.2s;
}

.modal-button:hover {
	transform: scale(1.05)
}

.modal-button.cancel {
	background: #3498db;
	color: white;
}

.modal-button.exit {
	background: #fff;
	color: #949494;
}

/* Game screens */
.game-screen {
	position: absolute;
	top: 50px; /* Below header */
	left: 0;
	width: 100%;
	height: calc(100% - 50px);
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: #f1f1f1;
	z-index: 90;
}

#start-screen {
	justify-content: top;
}

.screen-content {
	position: relative;
	text-align: center;
	width: 100%;
	top: 15vh
}

.screen-title {
	font-size: 46px;
	color: #474747;
	margin-bottom: 70px;
	font-family: 'Open Sans';
	font-weight: 600;
}

#time-selection-screen .screen-title {
	color: #696969;
	font-size: 20px;
	font-weight: 500;
	font-family: 'Inter';
	margin-bottom: 50px;
}

.menu-options {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 40px;
}

.menu-options a {
	text-decoration: none;
}

.menu-option {
	display: flex;
	flex-direction: column;
	justify-items: center;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
}

.menu-option.primary {
	color: white;
	background-color: #00acdd;
	padding: 30px 0px 30px 0px;
	letter-spacing: 0px !important;
	transition: 0.3s;
	border-radius: 5px;
	font-size: 17px !important;
	font-family: 'Open Sans';
	font-weight: 600 !important;
	width: 240px;
	background-size: 60px;
	background-repeat: no-repeat;
	background-position: 50% 20%;
	box-shadow: 0px 0px 4px #ddd;
}

.menu-option.primary:hover {
	box-shadow: rgba(50, 50, 50, 0.15) 0px 0px 4px 1px;
	cursor: pointer;
	background-color: #01a2d0;
}	  

.menu-option.secondary {
	color: white;
	background-color: #7edb4d;
	padding: 30px 0px 30px 0px;
	letter-spacing: 0px !important;
	transition: 0.3s;
	border-radius: 5px;
	font-size: 17px !important;
	font-family: 'Open Sans';
	font-weight: 600 !important;
	width: 240px;
	background-size: 60px;
	background-repeat: no-repeat;
	background-position: 50% 20%;
	box-shadow: 0px 0px 4px #eee;
}

.menu-option.secondary:hover {
	box-shadow: rgba(50, 50, 50, 0.15) 0px 0px 4px 1px;
	cursor: pointer;
	background-color: #7ad304;
}	

.menu-option#user-guide-button {
	color: #515151;
	border: 1px solid #dfdfdf;
	background-color: #fff;
	padding: 30px 0px 30px 0px;
	letter-spacing: 0px !important;
	transition: 0.3s;
	border-radius: 5px;
	font-size: 17px !important;
	font-family: 'Open Sans';
	font-weight: 600 !important;
	width: 240px;
	background-size: 60px;
	background-repeat: no-repeat;
	background-position: 50% 20%;
	box-shadow: 0px 0px 2px #e8e8e8;
}	

.menu-option#user-guide-button:hover {
	box-shadow: rgba(50, 50, 50, 0.15) 0px 0px 4px 1px;
	cursor: pointer;
	border: 1px solid #00acdd;
}	

.menu-option img {
	height: 35px;
	-webkit-filter: drop-shadow(0px 1px 2px rgb(0 0 0 / 15%));
	filter: drop-shadow(0px 1px 2px rgb(0 0 0 / 15%));
}

.menu-label {
	font-size: 17px;
}

.footer {
	position: absolute;
	bottom: 30px;
	left: 30px;
	display: flex;
	align-items: center;
}

.footer-logo {
	display: flex;
	align-items: center;
}

.footer-text {
	margin-left: 5px;
	font-size: 14px;
	color: #888;
}

/* Instructions Screen */
.instructions-container {
	max-width: 800px;
	margin: 0 auto;
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	text-align: left;
}

.instructions-container p, .instructions-container li {
	color: #555;
	font-size: 16px;
	line-height: 1.6;
}

.instructions-container h3 {
	color: #333;
	margin-top: 20px;
	font-size: 18px;
}

.instructions-container ul {
	padding-left: 20px;
}

.tip-box {
	background-color: #f8f9fa;
	border-left: 4px solid #00acdd;
	padding: 15px;
	margin-top: 30px;
}

.tip-box h3 {
	color: #00acdd;
	margin-top: 0;
}

.primary-button {
	background-color: #00acdd;
	color: white;
	border: none;
	padding: 12px 30px;
	font-size: 16px;
	border-radius: 4px;
	margin-top: 30px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.primary-button:hover {
	background-color: #0098c4;
}

/* Time selection styling */
.time-options {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin: 20px 0;
	flex-direction: column;
}

.time-option {
	width: 230px;
	height: 50px;
	font-size: 16px;
	text-align: center;
	margin: 0 auto;
	font-family: 'Inter';
	font-weight: 500;
	color: #646464;
	border-radius: 6px;
	border: 1px solid #e8e8e8;
	box-shadow: 1px 1px 4px #e8e8e8;
	transition: 0.2s;
	cursor: pointer;
	background: white;
}

.time-option:hover {
	cursor: pointer;
	border:0.5px solid #00ACDD;
	box-shadow: 0px 0px 6px #48A8EF;
	transform: scale(1.05);
	background: white;
}

.in-training-mode .time-option:hover {
	border:1px solid #6BDB00;
	box-shadow: 0px 1px 6px #8DE022;
}


/* Round Selection screen */

#round-selection-screen .screen-title {
	    color: #696969;
    font-size: 20px;
    font-weight: 500;
    font-family: 'Inter';
    margin-bottom: 50px;
}

.options-container { /* Was .time-options */
	display: flex;
	justify-content: center;
	gap: 30px;
	margin: 20px 0;
	flex-direction: column;
}

.game-option-button { /* Was .time-option */
	width: 230px;
	height: 50px;
	font-size: 16px;
	text-align: center;
	margin: 0 auto;
	font-family: 'Inter';
	font-weight: 500;
	color: #646464;
	border-radius: 6px;
	border: 1px solid #e8e8e8;
	box-shadow: 1px 1px 4px #e8e8e8;
	transition: 0.2s;
	cursor: pointer;
	background: white;
}

.game-option-button:hover {
	cursor: pointer;
	border:0.5px solid #00ACDD;
	box-shadow: 0px 0px 6px #48A8EF;
	transform: scale(1.05);
	background: white;
}

body.in-training-mode .game-option-button:hover {
    border:1px solid #8DE022;
	box-shadow: 0px 0px 1px #8DE022;
}

/* Countdown screen */
.countdown-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.countdown-label {
	font-size: 24px;
	color: #b7b7b7;
	margin-bottom: 20px;
}

.countdown-number {
	font-family: 'Inter';
	font-size: 45px;
	font-weight: 600;
	color: #787777;
}

/* Game UI */
.game-ui {
	position: absolute;
	top: 50px; /* Below header */
	left: 0;
	width: 100%;
	height: calc(100% - 50px);
	pointer-events: none; /* Allow clicking through to the game by default */
}

.game-stats-panel {
	position: absolute;
	top: 20px;
	left: 15px;
	color: #ffffff6b;
	font-size: 16px;
	font-family: 'Inter';
	text-align: right;
	display: flex;
	gap: 30px;
}

/* Balloon Game Specific Styles */
.balloon-game-container {
	/* width: 500px; */
	margin: 7vh auto 0;
	/* background-color: white; */
	border-radius: 10px;
	/* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
	/* padding: 20px; */
	pointer-events: auto;
	/* overflow: hidden; */
}

.balloon-header {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 9vh;
}

.round-indicator {
	color: #777;
	font-size: 16px;
}

.money-amount {
	font-size: 40px;
	font-weight: 600;
	color: #3f4e57;
	font-family: 'Inter';
}

.balloon-container {
	height: 300px;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Base Styles for all balloons (if not already specific enough) */
.balloon {
	width: 150px; /* Default, will be overridden by JS */
	height: 180px; /* Default, will be overridden by JS */
	/* background-color: #21d48f; Default green, will be overridden by color classes */
	border-radius: 50%;
	position: relative;
	transition: all 0.2s ease;
	/* box-shadow: inset -20px -20px 0 rgba(0,0,0,0.1); Default shadow, can be overridden */
}

.balloon:after { /* The knot */
	content: '';
	position: absolute;
	width: 10px;
	height: 20px;
	/* background-color: #21d48f; Default green knot */
	bottom: -18px; /* Adjust if balloon size changes affect knot position visually */
	left: 50%;
	transform: translateX(-50%) rotate(5deg);
	border-radius: 40%;
    transition: background-color 0.2s ease; /* Smooth color transition for knot */
}

/* Default balloon color (if no other class is applied, or as a fallback) */
.balloon {
    background-color: #21d48f; /* Default Green */
    box-shadow: inset -20px -20px 0 rgba(0,0,0,0.1);
}
.balloon:after {
    background-color: #21d48f; /* Default Green knot */
}


/* Dark Blue Balloon */
.balloon-darkblue {
    background-color: #005A9C; /* A nice dark blue */
    box-shadow: inset -20px -20px 0 rgba(255, 255, 255, 0.12); /* Lighter inset for dark color */
}
.balloon-darkblue:after {
    background-color: #1f6ea8;
}

/* Orange Balloon */
.balloon-orange {
    background-color: #FFA500; /* Bright Orange */
    box-shadow: inset -20px -20px 0 rgba(0, 0, 0, 0.18); /* Slightly darker inset for contrast */
}
.balloon-orange:after {
    background-color: #d18700;
}

/* Purple Balloon */
.balloon-purple {
    background-color: #8A2BE2; /* BlueViolet - a nice purple */
    box-shadow: inset -20px -20px 0 rgba(255, 255, 255, 0.15); /* Lighter inset for dark color */
}
.balloon-purple:after {
    background-color: #9b4be6;
}

.balloon-controls {
	display: flex;
	justify-content: space-around;
	margin-top: 20px;
	position: absolute;
	bottom: 12.5%;
	width: 100%;
}

.game-button {
	position: relative;
	padding: 20px 30px;
	border: none;
	border-radius: 50px;
	background-color: #ffffff;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 200px;
	font-weight: 600;
    font-size: 30px !important;
    font-family: Inter;
    box-shadow: rgb(171 171 171 / 40%) 0px 1px 5px;
}

.game-button:hover {
	background-color: #34424C;
}

.game-button:hover .button-label {
	color: white !important;
}

.game-button .button-label {
	font-size: 20px;
	font-weight: 600;
	color: #4f4f4f;
}

.game-button .key-hint {
	font-size: 16px;
	font-weight: 500;
	color: #999;
	margin-top: 4px;
	top: -50px;
	position: absolute;
}

/* Balloon popping animation */
@keyframes pop {
	0% { transform: scale(1); opacity: 1; }
	20% { transform: scale(1.2); }
	50% { transform: scale(1.5); opacity: 0.5; } /* Opacity change helps with color */
	100% { transform: scale(0); opacity: 0; }
}

.pop {
	animation: pop 0.5s ease-out forwards;
}

.hidden {
	display: none !important;
}

/* Training Mode specific-styles */

.training-gauges-container {
    position: fixed;
    top: 75px;
    right: 21.5px;
    background: white;
    padding: 13px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    width: 280px;
    /* display: none !important; */
}

.training-gauges-container h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 11px;
}

.training-gauges-container.hidden {
    display: none !important; /* Ensure it overrides other display properties */
}

.gauge {
    margin-bottom: 16px;
    display: flex; /* For better alignment */
    align-items: center;
}

.gauge:last-of-type {
	margin-bottom: 2px
}

.gauge-label {
    flex-basis: 155px; /* Fixed width for labels */
    margin-right: 5px;
    font-weight: 500;
    color: #585858;
    font-size: 14px;
}

.gauge-bar-container {
    flex-basis: 125px; /* Takes remaining space */
    height: 21px;
    background-color: #d2d2d2; /* Darker bar background */
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 0px 5px #c8c6c6;
    width: 100px !important;
}

.gauge-bar {
    height: 100%;
    width: 0%; /* Start empty */
    background-color: #4CAF50; /* Default Green */
    border-radius: 2px; /* Slightly smaller for inner bar */
    transition: width 0.2s ease-out, background-color 0.2s ease-out;
    text-align: right;
    padding-right: 3px;
    box-sizing: border-box;
    color: white;
    font-size: 12px;
    line-height: 12px; /* Vertical center text */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Pop chance gauge colors */
.gauge-bar.pop-low { background-color: #4CAF50; } /* Green */
.gauge-bar.pop-medium { background-color: #FFC107; } /* Amber */
.gauge-bar.pop-high { background-color: #F44336; } /* Red */
.gauge-bar.pop-very-high { background-color: #c00000; } /* Darker Red */

/* Results Page */
#end-screen .screen-content {top: 10vh}

.results-title {
	text-align: center;
	font-size: 29px;
	margin-bottom: 3rem;
	font-family: 'Inter';
	color: #474747;
	margin-top: 0;
}

.light-text {
	color: #adadad;
	font-weight: 500;
}

.score-section {
	background: white;
	border-radius: 4px;
	width: 1020px;
	border: 1px solid #eae9e9;
	box-shadow: 0 1px 2px 0px #eee;
}

.score-section h2 {
	color: #555555;
	font-family: 'Open Sans';
	font-size: 18px;
	font-weight: 600;
	border-bottom: 1px solid #eee;
	padding-bottom: 17px;
	text-align: left;
	padding-left: 30px;
	margin-bottom: 0;
}

.score-container {
	display: flex;
	justify-content: space-around;
	flex-direction: row;
	align-items: stretch;
	height: 40vh;
}

.score-value {
	position: absolute;
	top: 57%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 85px;
	font-family: 'Open Sans';
	color: #535353;
	font-weight: 400;
}

.score-symbol {
	position: absolute;
	top: 85%;
	left: 47%;
	font-size: 1.2rem;
	color: #c4c4c4;
}

/* Container for the progress circle */
.circular-progress {
	position: relative;
	width: 200px;
	height: 200px;
	flex: 1;
	margin-top: 19px;
}

/* Base circle styles */
.score-ring-background {
	stroke: #E8E8E8;
	stroke-width: 3;
}

.score-progress-ring {
	stroke: #95D2E8;
	stroke-width: 3;
	transform: rotate(-90deg);
	transform-origin: center;
	transition: stroke-dasharray 0.5s ease;
}

.aircraft-icon {
	transform-origin: center;
	transition: transform 0.5s ease, x 0.5s ease, y 0.5s ease;
	filter: drop-shadow(0px 1px 1px #aaa);
	-webkit-filter: drop-shadow(0px 1px 1px #aaa);
}

.stats-container {
	border-left: 1px solid #eee;
	align-self: stretch;
	box-shadow: 0px 0px 9px -3px #d9d9d9;
	position: relative;
	border-right: 1px solid #eee;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 200px;
	text-align: left;
}

.stat-row {
	color: #424242;
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
	height: 25%;
}

.stat-row:last-child {
    border-bottom: none; /* Remove border from last row */
}

.stat-label {
	display: block;
	color: #707070;
	margin-bottom: 10px;
	font-size: 15px;
	font-family: 'Open Sans';
}

.stat-value {
	font-size: 18px;
	font-weight: 600;
	color: #515151;
	font-family: 'Open Sans';
}

.max-attainable-money {
    font-size: 0.8em; 
    color: #999999;   
    font-weight: 400; 
    margin-left: 5px;
}

.time-unit {
	font-size: 0.9em;
	color: #bbb
}


.stat-unit {
	font-size: 12px;
	font-weight: 400;
	color: #999;
	margin-left: 1px;
	margin-right: 4px;
}
.results-actions {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 60px;
}

.action-button {
	background: white;
	width: 185px;
	height: 59px;
	border-radius: 6px;
	border: 1px solid #dfdfdf;
	color: white;
	font-size: 34px;
	cursor: pointer;
	transition: 0.2s;
	box-shadow: 0 2px 4px 0px #eee;
}

.action-button:hover {
	border: 1px solid #00acdd;
}

button#restart-button {
  color: white;
  background-color: #34424c;
  letter-spacing: 0.4px;
  transition: 0.3s;
  border-radius: 8px;
  background-image: url(../images/icon_restart.svg);
  background-size: 30px;
  background-repeat: no-repeat;
  background-position: 50%;
  font-family: Open Sans;
  box-shadow: 0px 1px 4px #ddd;
  margin-bottom: 30px;
  border: 0;
}

button#restart-button:hover {
  box-shadow: rgba(50, 50, 50, 0.15) 0px 0px 12px 1px;
  cursor: pointer;
  background-color: #3f515e;
  border: 0;
  color: #fff;
}

.action-button img {
	height: 65%;
	top: 4px;
	position: relative;
}

.graph-container {
	width: 100%;
	position: relative;
}

.activity-graph {
	flex: 1;
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 1px 0;
	height: 100%;
	color: #9e9e9e;
	font-size: 13px;
	font-family: 'Open Sans';
	display: flex;
	align-items: center;
	align-content: center;
	justify-content: center;
}

@media all and (max-height: 768px) {
	.game-content {
		margin: 10px;
	}

	.results-stats {
		grid-template-columns: 1fr;
	}
	
	#end-screen .screen-content {top: 3vh}
	
	.results-title {font-size: 26px;margin-bottom: 2rem;padding-top: 30px;}

	.results-actions {margin-top: 50px !important;}
	
	.score-container {height: 46vh;}
}
/* ============================================================
   PREDICTION - Additional Styles
   ============================================================ */

/* Header overrides */
.header-title { font-size: 18px; font-weight: 500; margin-left: 8px; }

/* Familiarisation Screen */
.fam-content { max-width: 900px; width: 100%; padding: 10px 20px 20px; box-sizing: border-box; }
.fam-subtitle { color: #555; font-size: 15px; margin: 0 0 20px; text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }

.symbol-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.fam-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s;
}
.fam-card:hover { border-color: #3793d1; }

.fam-symbol-svg {
    width: 70px;
    height: 70px;
}
.fam-label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fam-input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.fam-input:focus { border-color: #3793d1; }
.fam-input::placeholder { color: #bbb; }

.fam-ready-button {
    background-color: #3793d1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s, transform 0.1s;
}
.fam-ready-button:hover { background-color: #2d79b8; transform: translateY(-1px); }
.in-training-mode .fam-ready-button { background-color: #7ad304; }
.in-training-mode .fam-ready-button:hover { background-color: #6ab801; }

/* Game UI Layout */
.game-ui {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    overflow: visible;
    pointer-events: auto;
}

/* Training Tally Panel */
.training-tally-panel {
    position: absolute;
    top: 40px;
    left: 12px;
    width: 260px;
    max-height: calc(100vh - 90px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 10px rgb(0 0 0 / 4%);
    padding: 12px 14px;
    overflow-y: auto;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    z-index: 200;
}

/* Training Dashboard Title */
.training-tally-panel .training-indicator-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 11px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.dashboard-toggle-arrow {
    font-size: 11px;
    color: #7ad304;
    transition: transform 0.3s ease;
    display: inline-block;
}

.training-tally-panel.dashboard-collapsed .dashboard-toggle-arrow {
    transform: rotate(180deg);
}

.training-tally-panel.dashboard-collapsed .training-indicator-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Dashboard Body (collapsible) */
.dashboard-body {
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 1;
}

.training-tally-panel.dashboard-collapsed .dashboard-body {
    max-height: 0;
    opacity: 0;
}

.training-tally-panel.dashboard-collapsed {
    max-height: none;
    overflow-y: visible;
}

/* Section Styling */
.training-tally-panel .indicator-section {
    margin-bottom: 14px;
    padding: 12px;
    background: rgb(247 247 247 / 45%);
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: inset 0px 0px 6px #dddddd59;
}

.training-tally-panel .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #686868;
    margin-bottom: 8px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 1px solid #dddddd9c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.training-tally-panel .section-title::after {
    content: '▾';
    font-size: 12px;
    color: #999;
    transition: transform 0.25s ease;
}

.training-tally-panel .indicator-section.collapsed .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.training-tally-panel .indicator-section.collapsed .section-title::after {
    transform: rotate(-90deg);
}

.training-tally-panel .section-content {
    overflow: hidden;
    max-height: 600px;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 1;
}

.training-tally-panel .indicator-section.collapsed .section-content {
    max-height: 0;
    opacity: 0;
}

/* Performance Monitor Grid */
.training-tally-panel .performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.training-tally-panel .perf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    background: white;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.training-tally-panel .perf-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
    margin-top: 2px;
}

.training-tally-panel .perf-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.training-tally-panel .perf-value.good { color: #28a745; }
.training-tally-panel .perf-value.okay { color: #e67e22; }
.training-tally-panel .perf-value.poor { color: #dc3545; }

.training-tally-panel .perf-unit {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
}

/* Symbol Outcomes Tally */
.tally-header {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
}
.tally-sym-spacer { width: 30px; flex-shrink: 0; }
.tally-gauge-header { flex: 1; min-width: 0; }
.tally-counts-spacer { height: 0; }
.tally-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 0 2px;
}
.gauge-label-day, .gauge-label-night { line-height: 1; }

.tally-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.tally-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tally-sym { width: 30px; height: 30px; flex-shrink: 0; }
.tally-info { flex: 1; min-width: 0; }
.tally-counts {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 3px;
    padding: 0 2px;
}
.tally-day { color: #e67e22; font-weight: 600; }
.tally-night { color: #3498db; font-weight: 600; }
.tally-bar-container {
    background: #ebebeb;
    border-radius: 3px;
    height: 6px;
    overflow: hidden;
    position: relative;
}
.tally-bar-container::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -1px;
    width: 2px;
    height: calc(100% + 2px);
    background: #bbb;
    transform: translateX(-50%);
    z-index: 2;
}
.tally-bar-inner {
    height: 100%;
    border-radius: 3px;
    position: absolute;
    top: 0;
    transition: left 0.5s ease-in-out, width 0.5s ease-in-out, background-color 0.3s ease;
    z-index: 1;
}

/* Custom Scrollbar for Training Dashboard */
.training-tally-panel::-webkit-scrollbar { width: 4px; }
.training-tally-panel::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }
.training-tally-panel::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }
.training-tally-panel::-webkit-scrollbar-thumb:hover { background: #a7a7a7; }

/* Main Prediction Container */
.prediction-game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.trial-prompt {
    font-size: 24px;
    font-weight: 600;
    color: #444;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

/* Symbol Pair */
.symbol-pair {
    display: flex;
    gap: 45px;
    align-items: center;
    justify-content: center;
}

.symbol-card {
    width: 250px;
    height: 250px;
    background: white;
    border: 2.5px solid #d0d0d0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.15s;
    gap: 8px;
}

.symbol-svg {
    width: 170px;
    height: 170px;
}

.symbol-nickname {
    font-size: 13px;
    font-weight: 600;
    color: #3793d1;
    font-family: 'Inter', sans-serif;
    text-align: center;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.in-training-mode .symbol-nickname { color: #6ab801; }

/* Timer Bar */
.timer-bar-container {
    width: 380px;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.trial-timer-bar {
    height: 100%;
    width: 100%;
    background: #3793d1;
    border-radius: 4px;
    transition: background-color 0.3s;
}

/* Button Flash Feedback */
.answer-button.btn-flash-correct {
    box-shadow: 0 0 0 5px rgba(46, 204, 113, 0.7), 0 0 30px rgba(46, 204, 113, 0.45);
    opacity: 1 !important;
}
.answer-button.btn-flash-wrong {
    box-shadow: 0 0 0 5px rgba(231, 76, 60, 0.7), 0 0 30px rgba(231, 76, 60, 0.45);
    opacity: 1 !important;
}

/* Keep old overlay hidden (legacy) */
.feedback-overlay {
    display: none;
}

/* Answer Buttons */
.answer-buttons {
    display: flex;
    gap: 30px;
}

.answer-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 240px;
    height: 140px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.answer-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.answer-button:active:not(:disabled) { transform: translateY(0px); }
.answer-button:disabled { opacity: 0.4; cursor: default; }

.day-button   { background: linear-gradient(135deg, #f7b733, #fc4a1a); color: white; }
.night-button { background: linear-gradient(135deg, #2c3e50, #3498db); color: white; }

.answer-icon  { font-size: 40px; }
.answer-label { font-size: 26px; font-weight: 700; }
.key-hint     { font-size: 14px; opacity: 0.75; }

/* Confidence Panel */
.confidence-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.2s ease;
}
@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.confidence-label {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    font-family: 'Inter', sans-serif;
}

.confidence-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.conf-range-label {
    font-size: 11px;
    color: #888;
    font-family: 'Inter', sans-serif;
    width: 55px;
}
.conf-range-label:last-child { text-align: right; }

.confidence-btns {
    display: flex;
    gap: 5px;
}
.conf-btn {
    width: 34px;
    height: 34px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: #444;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.conf-btn:hover {
    background: #3793d1;
    border-color: #3793d1;
    color: white;
    transform: scale(1.1);
}
.in-training-mode .conf-btn:hover { background: #7ad304; border-color: #7ad304; }

.confidence-timer-container {
    width: 260px;
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}
.confidence-timer-bar {
    height: 100%;
    width: 100%;
    background: #aaa;
    border-radius: 2px;
    transition: background-color 0.3s;
}

/* End Screen stat adjustments */
.stats-container { min-width: 240px; }

/* Score Info Tooltip */
.score-info-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}
.score-info-btn:hover {
    background: #445168;
    color: #fff;
}
.score-info-tooltip {
    display: none;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 10px;
    background: #445168;
    color: #fff;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    width: 240px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 20;
}
.score-info-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #445168;
}
.score-info-btn:hover .score-info-tooltip {
    display: block;
}
.tooltip-row {
    margin-bottom: 3px;
}
.tooltip-row strong {
    color: #fff;
}
.tooltip-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 8px 0;
}
.tooltip-note {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
    line-height: 1.4;
}

/* Confidence Calibration Labels */
.calibration-good { color: #28a745; font-weight: 600; }
.calibration-okay { color: #e67e22; font-weight: 600; }
.calibration-poor { color: #dc3545; font-weight: 600; }

/* Confidence Screen */
#confidence-screen {
    justify-content: center;
}
#confidence-screen .screen-content {
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.conf-screen-subtitle {
    color: #555;
    font-size: 20px;
    margin: 0 0 40px;
    text-align: center;
}
.conf-screen-scale {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    width: 100%;
    max-width: 550px;
}
.conf-screen-label {
    font-size: 13px;
    color: #888;
    font-family: 'Inter', sans-serif;
    width: 110px;
    text-align: center;
    line-height: 1.3;
}
.conf-screen-btns {
    display: none;
}

/* Confidence Slider */
.conf-slider-container {
    flex: 1;
    position: relative;
    padding-top: 32px;
    padding-bottom: 8px;
}

.conf-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right,
        #e74c3c 0%,
        #e67e22 35%,
        #f1c40f 50%,
        #7ad304 75%,
        #27ae60 100%
    );
    opacity: 0.85;
    transition: opacity 0.15s;
}

.conf-slider:hover {
    opacity: 1;
}

/* Track behind the thumb */
.conf-slider::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 5px;
}

.conf-slider::-moz-range-track {
    height: 10px;
    border-radius: 5px;
    background: transparent;
}

/* Thumb */
.conf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 3px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -9px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.conf-slider::-webkit-slider-thumb:hover {
    border-color: #999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.conf-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 3px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Value bubble */
.conf-slider-value {
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    background: #445168;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    padding: 3px 10px;
    border-radius: 6px;
    pointer-events: none;
    transition: left 0.15s ease;
}

.conf-slider-value::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #445168;
}

/* Submit button */
.conf-submit-btn {
    display: inline-block;
    background: #3793d1;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 48px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.conf-submit-btn:hover {
    background: #2d79b8;
    transform: translateY(-1px);
}
.in-training-mode .conf-submit-btn {
    background: #7ad304;
}
.in-training-mode .conf-submit-btn:hover {
    background: #6ab801;
}
.conf-screen-hint {
    font-size: 13px;
    color: #aaa;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* ── Progress Bar (ported from Order) ── */
.progress-container {
    width: 100%;
    display: block;
    height: 6px !important;
    background: #fff;
    padding: 10px 10px 16px;
    border-bottom: 1px #e4e6e7 solid;
    box-sizing: border-box;
}
.progress-bar-container {
    background-color: #d2dde4;
    height: 6px;
}
.progress-bar {
    height: 6px;
    background: #34424C;
    width: 100%;
    transition: width 0.1s linear;
}
body.in-training-mode .progress-bar {
    background-color: rgb(115 184 22);
}

/* Row below progress bar — tally panel + main game area */
.game-content-row {
    display: flex;
    flex: 1;
    align-items: stretch;
    overflow: hidden;
}

/* Push game content below the progress bar */
.prediction-game-container {
    padding-top: 0;
}

/* Symbol Count Screen */
.symbol-count-subtitle {
    color: #777;
    font-size: 15px;
    margin: -10px 0 24px;
    text-align: center;
}
.game-option-button {
    position: relative;
}
.difficulty-tag {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.85;
}
.difficulty-easy   { color: #27ae60; }
.difficulty-medium { color: #e67e22; }
.difficulty-hard   { color: #e74c3c; }

/* Option buttons with description text */
.options-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.option-with-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
}
.option-desc {
    margin: 10px 0 0;
    font-size: 13px;
    color: #777;
    text-align: center;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Description text inside option buttons */
.game-option-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 16px 20px;
    white-space: normal;
    text-align: center;
    width: 100%;
}
.game-option-button .option-desc {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: inherit;
    opacity: 0.75;
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}
.game-option-button .difficulty-tag {
    margin-top: 4px;
    margin-bottom: 2px;
}

/* ── Selection screen layout overrides ── */
#symbol-count-screen .options-container,
#round-selection-screen .options-container {
    flex-direction: row !important;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

#symbol-count-screen .game-option-button,
#round-selection-screen .game-option-button {
    width: 220px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 18px 20px !important;
    white-space: normal !important;
    text-align: left !important;
    font-size: 17px !important;
    font-weight: 600 !important;
}

#symbol-count-screen .game-option-button .option-desc,
#round-selection-screen .game-option-button .option-desc {
    text-align: left !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #777 !important;
    opacity: 1 !important;
    margin-top: 8px !important;
    line-height: 1.55 !important;
}

#symbol-count-screen .game-option-button .difficulty-tag,
#round-selection-screen .game-option-button .difficulty-tag {
    text-align: left !important;
}

/* Back button */
.back-button {
    position: absolute;
    top: 70px;
    left: 24px;
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
}
.back-button:hover {
    color: #333;
    background: #ebebeb;
}
.in-training-mode .back-button:hover {
    color: #5a9e00;
    background: #f0ffd6;
}

.select-cards-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.select-card {
    width: 480px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 1px 1px 4px #e8e8e8;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
}

.select-card:hover {
    border: 0.5px solid #00ACDD;
    box-shadow: 0px 0px 6px #48A8EF;
    transform: scale(1.01);
}

body.in-training-mode .select-card:hover {
    border: 1px solid #8DE022;
    box-shadow: 0px 0px 4px #8DE022;
}

.select-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: block;
}

.select-card-desc {
    font-size: 12.5px;
    font-weight: 400;
    color: #777;
    line-height: 1.55;
    display: block;
    margin-top: 4px;
}

#symbol-count-screen .screen-title {
    color: #696969;
    font-size: 20px;
    font-weight: 500;
    font-family: 'Inter';
    margin-bottom: 50px;
}

/* Consistency warning */
.consistency-warning {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(230, 126, 34, 0.92);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
}
.consistency-warning.consistency-flash {
    animation: consistencyFadeInOut 1.8s ease forwards;
}
@keyframes consistencyFadeInOut {
    0%   { opacity: 0; transform: translateX(-50%) translateY(6px); }
    12%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    75%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}

/* ============================================================
   AZIMUTH-SPECIFIC STYLES
   ============================================================ */

/* Main game container */
.azimuth-game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 0 20px 20px;
    position: relative;
    box-sizing: border-box;
}

/* Compass stage */
.compass-stage {
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
#compass-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Compass elements */
.bezel-outer {
    fill: #d0d0d0;
    stroke: #3a3a36;
    stroke-width: 2.5;
    filter: drop-shadow(0 0px 8px rgba(0, 0, 0, 0.10));
}
.main-circle {
    fill: #ffffff;
    stroke: #cdcdc7;
    stroke-width: 0.8;
}
.tick {
    stroke-linecap: round;
}
.tick.cardinal {
    stroke: #1f1f1c;
    stroke-width: 2.2;
}
.tick.intercardinal {
    stroke: #5a5a55;
    stroke-width: 1.3;
}
.arrow-line {
    stroke: #2a2d2f;
    stroke-width: 2.8;
    stroke-linecap: round;
}
.arrow-head {
    fill: #2a2d2f;
}
.connector {
    stroke: #a07238;
    stroke-width: 1.3;
}
.marker-box {
    fill: #fdf3e1;
    stroke: #a07238;
    stroke-width: 1.5;
}
.marker-text {
    fill: #54341a;
    font-family: 'Inter', sans-serif;
    user-select: none;
}
.ex-marker {
    fill: #888888;
    font-family: 'Inter', sans-serif;
    user-select: none;
    pointer-events: none;
}

/* Extra markers fade in/out */
#extra-markers {
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}
.compass-stage.show-markers #extra-markers {
    opacity: 1;
}

/* In training mode hide the day/night-specific consistency warning if present */
.azimuth-game-container .consistency-warning { display: none; }

/* Multiple-choice answer buttons */
.azimuth-answer-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 620px;
}
.azimuth-answer-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 70px;
    border: 1.5px solid #d0d0d0;
    border-radius: 12px;
    background: #ffffff;
    color: #2c3e50;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s, background 0.15s, opacity 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.azimuth-answer-button:hover:not(:disabled) {
    transform: scale(1.05);
    border: 2px solid #3793d1;
}
.in-training-mode .azimuth-answer-button:hover:not(:disabled) {
	transform: scale(1.05);
    border: 2px solid #6ab801;
}
.azimuth-answer-button:active:not(:disabled) { transform: translateY(0); }
.azimuth-answer-button:disabled { cursor: default; }
.azimuth-answer-button .answer-dir-label {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.azimuth-answer-button .answer-key-hint {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}
/* Correct / wrong flashes */
.azimuth-answer-button.btn-flash-correct {
    background: #eafaf1;
    border-color: #2ecc71;
    color: #1e8449;
    box-shadow: 0 0 0 4px rgba(46,204,113,0.25);
    opacity: 1 !important;
}
.azimuth-answer-button.btn-flash-wrong {
    background: #fdecea;
    border-color: #e74c3c;
    color: #b03a2e;
    box-shadow: 0 0 0 4px rgba(231,76,60,0.25);
    opacity: 1 !important;
}
.azimuth-answer-button.dimmed {
    opacity: 0.4;
}

/* Feedback inline message */
.azimuth-feedback {
    min-height: 28px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #444;
    padding: 0 12px;
    line-height: 1.4;
}
.azimuth-feedback.hidden { display: none; }
.azimuth-feedback.correct { color: #1e8449; }
.azimuth-feedback.wrong   { color: #b03a2e; }
.azimuth-feedback .feedback-icon {
    margin-right: 6px;
    font-weight: 700;
}
.azimuth-feedback strong {
    color: inherit;
    font-weight: 700;
}

/* Training controls (rotate / continue) */
.training-controls {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}
.training-controls.hidden { display: none; }
.training-control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border: 1px solid #d0d0d0;
    border-radius: 30px;
    background: #ffffff;
    color: #444;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.training-control-button:hover {
    transform: scale(1.05);
}
.training-control-button.primary {
    background: #34424C;
    color: white;
    border-color: #34424C;
}
.training-control-button.primary:hover {
	 transform: scale(1.05)
}

/* Direction Outcomes (training dashboard, replaces day/night tally) */
#direction-tally-list .tally-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
}
.dir-tally-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #3793d1;
}
.in-training-mode .dir-tally-label { color: #6ab801; }
.dir-tally-bar-container {
    background: #ebebeb;
    border-radius: 3px;
    height: 6px;
    overflow: hidden;
    position: relative;
}
.dir-tally-bar-inner {
    height: 100%;
    width: 0;
    background: #6ab801;
    border-radius: 3px;
    transition: width 0.5s ease-in-out, background-color 0.3s ease;
}
.dir-tally-bar-inner.poor   { background: #e74c3c; }
.dir-tally-bar-inner.okay   { background: #f39c12; }
.dir-tally-bar-inner.good   { background: #6ab801; }
.dir-tally-counts {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #777;
    font-weight: 600;
    white-space: nowrap;
}

/* Time-remaining colour shifts */
#time-remaining.warn .value { color: #f39c12; }
#time-remaining.danger .value { color: #e74c3c; font-weight: 700; }

/* Progress bar drains down with time-remaining */
.progress-bar {background-color: #34424C;}
.in-training-mode .progress-bar { background-color: #7ad304; }

@media screen and (max-height: 800px) {
.training-controls {
	margin-top: 10px !important;
}
}

@media (min-height: 800px) {
    .compass-stage {
        width: 480px;
        height: 480px;
    }
}