/*
 * Preflop GTO Trainer Styles
 * Full-width layout, poker-guide header style
 */

/* ===== Page ===== */
.gto-trainer-page {
	width: 100%;
	background: linear-gradient(160deg, #F3EEEC 0%, #EDE8E6 25%, #E8EAF0 50%, #EBE6E4 75%, #F0ECEA 100%);
}

.gto-trainer-page *,
.gto-trainer-page *::before,
.gto-trainer-page *::after {
	box-sizing: border-box;
}

/* Breadcrumb width to match layout */
.gto-trainer-page .tool-crumbs-inner { max-width: 1100px; margin: 0 auto; }

/* ===== Hero ===== */
.gto-trainer-page .gto-hero {
	padding: 28px 0 12px;
	text-align: center;
}

.gto-trainer-page .gto-hero-content {
	max-width: 680px;
	margin: 0 auto;
}

.gto-trainer-page .gto-hero-title {
	font-size: 1.9rem;
	font-weight: 750;
	color: var(--text-dark);
	margin: 0 0 8px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.gto-trainer-page .gto-hero-subtitle {
	font-size: 1rem;
	color: var(--text-gray);
	margin: 0;
	line-height: 1.5;
}

/* ===== Format Tabs (page-specific max-width) ===== */
.gto-trainer-page .tool-format-tabs-inner {
	max-width: 1100px;
	margin: 0 auto;
}

/* ===== Layout ===== */
.gto-trainer-wrap {
	padding: 12px 0 72px;
}

.gto-trainer-layout {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	gap: 24px;
	align-items: stretch;
}

/* ===== Main Card ===== */
.gto-trainer-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.gto-trainer-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: var(--shadow-md);
	padding: 20px 24px;
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* ===== Card Controls (top-right) ===== */
.gto-card-controls {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 6;
	display: flex;
	align-items: center;
	gap: 4px;
}

.gto-hotkey-toggle,
.gto-fullscreen-toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 4px 10px 4px 7px;
	cursor: pointer;
	color: #94a3b8;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.gto-hotkey-toggle svg,
.gto-fullscreen-toggle svg {
	flex-shrink: 0;
}

.gto-hotkey-toggle:hover,
.gto-fullscreen-toggle:hover {
	color: #475569;
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.gto-fullscreen-toggle {
	padding: 4px 7px;
}

.gto-fullscreen-toggle .gto-fs-collapse {
	display: none;
}

.gto-hotkey-panel {
	position: absolute;
	top: 40px;
	right: 12px;
	z-index: 7;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: var(--shadow-md);
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gto-hotkey-panel.hidden {
	display: none;
}

.gto-hotkey-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.78rem;
	color: var(--text-gray);
	white-space: nowrap;
}

.gto-hotkey-row kbd {
	display: inline-block;
	min-width: 28px;
	text-align: center;
	padding: 2px 6px;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	color: #475569;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	box-shadow: 0 1px 0 #cbd5e1;
}

/* ===== Filters ===== */
.gto-filters-toggle {
	display: none;
}

.gto-trainer-filters {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.gto-filter-group {
	display: flex;
	align-items: center;
	gap: 5px;
}

.gto-filter-label {
	font-size: 0.7rem;
	font-weight: 650;
	color: var(--text-gray);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.gto-filter-select {
	padding: 5px 24px 5px 8px;
	font-size: 0.8rem;
	font-weight: 500;
	font-family: inherit;
	border: 1.5px solid #e2e8f0;
	border-radius: 7px;
	background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 7px center;
	color: var(--text-dark);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s ease;
}

.gto-filter-select:hover,
.gto-filter-select:focus {
	border-color: var(--primary-color);
	outline: none;
}

/* Filter inline items: skip button & warning — unified sizing */
.gto-filter-warn,
.gto-skip-btn {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	font-size: 0.72rem;
	font-weight: 650;
	font-family: inherit;
	line-height: 1.4;
	border-radius: 7px;
	border: 1.5px solid;
	white-space: nowrap;
	box-sizing: border-box;
}

.gto-filter-warn {
	color: #b45309;
	background: #fffbeb;
	border-color: #fcd34d;
}

.gto-filter-warn.hidden {
	display: none;
}

.gto-skip-btn {
	gap: 3px;
	color: var(--primary-color);
	background: var(--primary-bg);
	border-color: var(--primary-color);
	cursor: pointer;
	transition: all 0.15s ease;
}

.gto-skip-btn:hover {
	background: var(--primary-color);
	color: #fff;
}

.gto-skip-btn.hidden {
	display: none;
}

/* ===== Visual Poker Table ===== */
.gto-table-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 4px 0 0;
}

.gto-table-felt {
	position: relative;
	width: 100%;
	max-width: 500px;
	aspect-ratio: 1.65;
	margin: 0 auto;
}

.gto-table-surface {
	position: absolute;
	top: 16%;
	left: 12%;
	right: 12%;
	bottom: 12%;
	background: #1a7742;
	border-radius: 50%;
	border: 3px solid #145f34;
}

/*
 * Seats on the ellipse border.
 * Surface spans 12%–88% (x), 16%–88% (y).
 * Ellipse center = (50%, 52%), rx = 38%, ry = 36%.
 * 6 equal angles starting from bottom (90°).
 */
.gto-seat {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	z-index: 2;
	transform: translate(-50%, -50%);
	transition: opacity 0.2s ease;
}

.gto-seat-0 { left: 50%;  top: 88%; }
.gto-seat-1 { left: 17%;  top: 70%; }
.gto-seat-2 { left: 17%;  top: 34%; }
.gto-seat-3 { left: 50%;  top: 16%; }
.gto-seat-4 { left: 83%;  top: 34%; }
.gto-seat-5 { left: 83%;  top: 70%; }

.gto-seat-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #f5f6f8;
	border: 3px solid #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 800;
	color: #475569;
	letter-spacing: 0.02em;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,0.12);
	position: relative;
	z-index: 1;
}

.gto-seat-label {
	display: none;
}

.gto-seat-cards {
	display: flex;
	gap: 3px;
	order: -1;
}

.gto-seat-cards:empty {
	display: none;
}

/* Cards tucked behind avatar — only top half visible */
.gto-seat.has-facedown .gto-seat-cards {
	margin-bottom: -21px;
	gap: 2px;
}

.gto-seat.has-herocards .gto-seat-cards {
	margin-bottom: -28px;
}

.gto-seat.has-herocards .gto-mini-card {
	padding-bottom: 20px;
}

.gto-seat-cards .gto-mini-card {
	width: 40px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 5px;
	border: 1.5px solid #d1d5db;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12);
	line-height: 1;
}

.gto-mini-card.suit-h,
.gto-mini-card.suit-d {
	color: #dc2626;
}

.gto-mini-card.suit-s,
.gto-mini-card.suit-c {
	color: #1e293b;
}

.gto-mini-card.facedown {
	background: #c25a6e;
	background-image:
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 3px,
			rgba(255,255,255,0.12) 3px,
			rgba(255,255,255,0.12) 4px
		),
		repeating-linear-gradient(
			-45deg,
			transparent,
			transparent 3px,
			rgba(255,255,255,0.12) 3px,
			rgba(255,255,255,0.12) 4px
		);
	border-color: #a8485a;
	width: 30px;
	height: 42px;
}

/* ── Seat states — position-based colors ── */
.gto-seat.is-active.pos-UTG .gto-seat-avatar {
	background: #fdf2f2;
	border-color: #e07070;
	color: #9b3434;
	box-shadow: 0 0 0 3px rgba(224,112,112,0.18), 0 2px 6px rgba(0,0,0,0.08);
}
.gto-seat.is-active.pos-HJ .gto-seat-avatar {
	background: #fdf5ed;
	border-color: #e09050;
	color: #965a1e;
	box-shadow: 0 0 0 3px rgba(224,144,80,0.18), 0 2px 6px rgba(0,0,0,0.08);
}
.gto-seat.is-active.pos-CO .gto-seat-avatar {
	background: #fafbe8;
	border-color: #c4b240;
	color: #7a6510;
	box-shadow: 0 0 0 3px rgba(196,178,64,0.18), 0 2px 6px rgba(0,0,0,0.08);
}
.gto-seat.is-active.pos-BTN .gto-seat-avatar {
	background: #eefaf0;
	border-color: #50b866;
	color: #2a7a3a;
	box-shadow: 0 0 0 3px rgba(80,184,102,0.18), 0 2px 6px rgba(0,0,0,0.08);
}
.gto-seat.is-active.pos-SB .gto-seat-avatar {
	background: #edf8fa;
	border-color: #3ab8c8;
	color: #1a7a88;
	box-shadow: 0 0 0 3px rgba(58,184,200,0.18), 0 2px 6px rgba(0,0,0,0.08);
}
.gto-seat.is-active.pos-BB .gto-seat-avatar {
	background: #eef3fb;
	border-color: #5a94d4;
	color: #2d5a9e;
	box-shadow: 0 0 0 3px rgba(90,148,212,0.18), 0 2px 6px rgba(0,0,0,0.08);
}

/* ── Bet chips (inside the table, between seat and center) ── */
.gto-bet {
	position: absolute;
	z-index: 3;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 3px;
	transition: opacity 0.2s ease;
}

.gto-bet:empty {
	display: none;
}

/* Hero bet (seat-0): further toward center to clear large face-up cards */
.gto-bet-0 { left: 50%;  top: 68%; }
/* Other players: closer to their seat (facedown cards are smaller) */
.gto-bet-1 { left: 28%;  top: 64%; }
.gto-bet-2 { left: 29%;  top: 40%; }
.gto-bet-3 { left: 50%;  top: 31%; }
.gto-bet-4 { left: 71%;  top: 40%; }
.gto-bet-5 { left: 71%;  top: 64%; }

.gto-chip {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	border: 2px dashed rgba(255,255,255,0.45);
	flex-shrink: 0;
}

.gto-chip-blind {
	background: #94a3b8;
}

.gto-chip-raise {
	background: #f59e0b;
}

.gto-chip-3bet {
	background: #ef4444;
}

.gto-bet-label {
	font-size: 0.62rem;
	font-weight: 700;
	color: rgba(255,255,255,0.85);
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ── Dealer button ── */
.gto-dealer-btn {
	position: absolute;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #334155;
	font-size: 0.55rem;
	font-weight: 800;
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	transform: translate(-50%, -50%);
}

.gto-hand-name {
	display: none;
}

.gto-empty-hint {
	text-align: center;
	font-size: 0.82rem;
	color: var(--text-light);
	padding: 40px 0 0;
}

.gto-empty-hint.hidden {
	display: none;
}

/* ===== Bottom Zone (fixed space for actions / feedback) ===== */
.gto-bottom-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ===== Action Buttons ===== */
.gto-action-btns {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	padding: 0;
	margin-top: 34px;
}

.gto-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	width: 130px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	white-space: nowrap;
	border: 1.5px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.15s ease;
	position: relative;
}

.gto-action-btn:disabled {
	cursor: not-allowed;
	pointer-events: none;
}

.gto-btn-raise {
	background: #fee2e2;
	color: #b91c1c;
	border-color: #f8b4b4;
}

.gto-btn-raise:hover:not(:disabled) {
	background: #ef4444;
	color: #fff;
	border-color: #ef4444;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.gto-btn-raise2 {
	background: #fff4dd;
	color: #b45309;
	border-color: #f4bb62;
}

.gto-btn-raise2:hover:not(:disabled) {
	background: #f59e0b;
	color: #fff;
	border-color: #f59e0b;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.gto-btn-call {
	background: #e4f5ed;
	color: #1b7d4e;
	border-color: #7ecea4;
}

.gto-btn-call:hover:not(:disabled) {
	background: #2e9b6a;
	color: #fff;
	border-color: #2e9b6a;
	box-shadow: 0 4px 12px rgba(46, 155, 106, 0.3);
}

.gto-btn-fold {
	background: #f3f4f6;
	color: #5a6577;
	border-color: #bcc4d1;
}

.gto-btn-fold:hover:not(:disabled) {
	background: #7d8a9a;
	color: #fff;
	border-color: #7d8a9a;
	box-shadow: 0 4px 12px rgba(125, 138, 154, 0.3);
}

/* Highlight states after answer */
.gto-action-btn.gto-answer-correct {
	border-color: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
	opacity: 1;
}

.gto-action-btn.gto-answer-wrong {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
	opacity: 0.35;
}

.gto-action-btn:disabled:not(.gto-answer-correct):not(.gto-answer-wrong) {
	opacity: 0.35;
}

.gto-action-btn.is-hidden {
	display: none;
}

/* ===== Feedback (compact inline) ===== */
.gto-feedback {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0;
	margin-top: 16px;
}

.gto-feedback.is-visible {
	display: flex;
}

.gto-feedback-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gto-feedback-icon {
	font-size: 1.1rem;
	line-height: 1;
}

.gto-feedback-icon.correct {
	color: #22c55e;
}

.gto-feedback-icon.incorrect {
	color: #ef4444;
}

.gto-feedback-text {
	font-size: 0.88rem;
	font-weight: 700;
}

.gto-feedback-text.correct {
	color: #15803d;
}

.gto-feedback-text.incorrect {
	color: #dc2626;
}

.gto-feedback-detail {
	font-size: 0.82rem;
	color: var(--text-gray);
	line-height: 1.4;
}

.gto-feedback-detail::before {
	content: '\2014';
	margin-right: 4px;
}

.gto-next-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 18px;
	font-size: 0.82rem;
	font-weight: 650;
	font-family: inherit;
	color: #fff;
	background: var(--primary-color);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
	flex-shrink: 0;
}

.gto-next-btn:hover {
	background: var(--primary-dark);
	box-shadow: var(--shadow-primary);
}

.gto-view-range-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	font-size: 0.8rem;
	font-weight: 650;
	font-family: inherit;
	color: var(--text-gray);
	background: #f8fafc;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	flex-shrink: 0;
}

.gto-view-range-btn:hover {
	color: var(--text-dark);
	border-color: #c3d0df;
	background: #f1f5f9;
}

/* ===== Range Modal ===== */
.gto-range-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.gto-range-modal.hidden {
	display: none;
}

.gto-range-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(2px);
}

.gto-range-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
	padding: 16px;
}

.gto-range-modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.gto-range-modal-title {
	font-size: 1rem;
	font-weight: 750;
	color: var(--text-dark);
	line-height: 1.2;
}

.gto-range-modal-subtitle {
	font-size: 0.8rem;
	color: var(--text-gray);
	margin-top: 3px;
}

.gto-range-close-btn {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	color: #64748b;
	font-size: 1.45rem;
	font-weight: 400;
	font-family: Arial, sans-serif;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: all 0.15s ease;
}

.gto-range-close-btn:hover {
	background: #f1f5f9;
	color: #334155;
	border-color: #cbd5e1;
}

.gto-range-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-bottom: 10px;
}

.gto-range-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.76rem;
	color: var(--text-gray);
}

.gto-range-legend-item.hidden {
	display: none;
}

.gto-range-swatch {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	border: 1px solid rgba(0,0,0,0.08);
}

.gto-range-swatch.gto-color-raise { background: #ef4444; }
.gto-range-swatch.gto-color-raise2 { background: #f59e0b; }
.gto-range-swatch.gto-color-call { background: #22c55e; }
.gto-range-swatch.gto-color-fold { background: #e7ebf0; }

.gto-range-grid-wrap {
	overflow: auto;
	border-radius: 8px;
}

.gto-range-grid {
	border-collapse: collapse;
	width: 100%;
	table-layout: fixed;
	min-width: 0;
}

.gto-range-grid td {
	position: relative;
	padding: 0;
	border: 1px solid rgba(0,0,0,0.08);
	vertical-align: middle;
	text-align: center;
	font-size: 0.75rem;
	border-radius: 4px;
}

.gto-range-grid td::before {
	content: '';
	display: block;
	padding-top: 100%;
}

.gto-range-grid td .gto-cell-label {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gto-range-grid td.gto-raise { background: #ef4444; color: #fff; }
.gto-range-grid td.gto-raise2 { background: #f59e0b; color: #fff; }
.gto-range-grid td.gto-call { background: #22c55e; color: #fff; }
.gto-range-grid td.gto-fold { background: #e7ebf0; color: #94a3b8; }
.gto-range-grid td.gto-mixed { color: #fff; }
.gto-range-grid td.gto-current-hand {
	box-shadow: inset 0 0 0 2px #0f172a;
}

/* ===== Range Tooltip ===== */
.gto-range-tooltip {
	position: fixed;
	z-index: 100002;
	background: var(--text-dark);
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.8rem;
	line-height: 1.5;
	box-shadow: var(--shadow-lg);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.12s ease;
	max-width: 220px;
	white-space: normal;
}

.gto-range-tooltip.visible {
	opacity: 1;
}

.gto-range-tooltip .gto-tooltip-hand {
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 4px;
}

.gto-range-tooltip .gto-tooltip-type {
	font-size: 0.72rem;
	opacity: 0.7;
	margin-bottom: 6px;
}

.gto-range-tooltip .gto-tooltip-actions {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.gto-range-tooltip .gto-tooltip-action {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.gto-range-tooltip .gto-tooltip-action-name {
	opacity: 0.85;
}

.gto-range-tooltip .gto-tooltip-action-pct {
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}


/* ===== Fullscreen Mode ===== */
.gto-trainer-page.is-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 99999;
	overflow-y: auto;
	background: linear-gradient(160deg, #F3EEEC 0%, #EDE8E6 25%, #E8EAF0 50%, #EBE6E4 75%, #F0ECEA 100%);
}

.gto-trainer-page.is-fullscreen .gto-trainer-main-bg {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.gto-trainer-page.is-fullscreen .tool-crumbs,
.gto-trainer-page.is-fullscreen .gto-hero,
.gto-trainer-page.is-fullscreen .tool-format-tabs,
.gto-trainer-page.is-fullscreen .tool-seo-section {
	display: none;
}

.gto-trainer-page.is-fullscreen .gto-trainer-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 24px;
}

.gto-trainer-page.is-fullscreen .gto-trainer-wrap .container {
	max-width: 1440px !important;
	padding: 0 32px !important;
	width: 100% !important;
}

.gto-trainer-page.is-fullscreen .gto-trainer-layout {
	max-width: 100%;
	width: 100%;
	gap: 28px;
}

/* Main card — bigger padding, allow growth */
.gto-trainer-page.is-fullscreen .gto-trainer-card {
	padding: 28px 36px;
	border-radius: 20px;
	overflow: visible;
}

/* Table — bigger but proportional */
.gto-trainer-page.is-fullscreen .gto-table-felt {
	max-width: 660px;
}

.gto-trainer-page.is-fullscreen .gto-table-area {
	width: 100%;
}

/* Avatars — larger */
.gto-trainer-page.is-fullscreen .gto-seat-avatar {
	width: 64px;
	height: 64px;
	font-size: 0.85rem;
	border-width: 3.5px;
}

/* Hero cards — larger */
.gto-trainer-page.is-fullscreen .gto-seat-cards .gto-mini-card {
	width: 48px;
	height: 66px;
	font-size: 1.22rem;
	border-radius: 6px;
}

.gto-trainer-page.is-fullscreen .gto-seat.has-herocards .gto-mini-card {
	padding-bottom: 24px;
}

.gto-trainer-page.is-fullscreen .gto-seat.has-herocards .gto-seat-cards {
	margin-bottom: -34px;
}

/* Facedown cards — larger */
.gto-trainer-page.is-fullscreen .gto-mini-card.facedown {
	width: 36px;
	height: 50px;
}

.gto-trainer-page.is-fullscreen .gto-seat.has-facedown .gto-seat-cards {
	margin-bottom: -26px;
}

/* Chips — larger */
.gto-trainer-page.is-fullscreen .gto-chip {
	width: 22px;
	height: 22px;
}

.gto-trainer-page.is-fullscreen .gto-bet-label {
	font-size: 0.72rem;
}

/* Dealer button — larger */
.gto-trainer-page.is-fullscreen .gto-dealer-btn {
	width: 26px;
	height: 26px;
	font-size: 0.62rem;
	border-width: 2.5px;
}

/* Filters — bigger */
.gto-trainer-page.is-fullscreen .gto-filter-label {
	font-size: 0.78rem;
}

.gto-trainer-page.is-fullscreen .gto-filter-select {
	padding: 7px 28px 7px 10px;
	font-size: 0.88rem;
	border-radius: 8px;
}

.gto-trainer-page.is-fullscreen .gto-filter-warn,
.gto-trainer-page.is-fullscreen .gto-skip-btn {
	padding: 7px 16px;
	font-size: 0.8rem;
}

/* Action buttons — bigger & bolder */
.gto-trainer-page.is-fullscreen .gto-action-btns {
	gap: 14px;
	margin-top: 40px;
}

.gto-trainer-page.is-fullscreen .gto-action-btn {
	width: 160px;
	padding: 15px 24px;
	font-size: 0.95rem;
	border-radius: 12px;
	border-width: 2.5px;
}

/* Feedback — bigger text */
.gto-trainer-page.is-fullscreen .gto-feedback {
	margin-top: 20px;
	gap: 12px;
}

/* Keep layout static in fullscreen: reserve feedback space from start */
.gto-trainer-page.is-fullscreen .gto-bottom-zone {
	min-height: 126px;
}

.gto-trainer-page.is-fullscreen .gto-feedback {
	display: flex;
	min-height: 40px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.gto-trainer-page.is-fullscreen .gto-feedback.is-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.gto-trainer-page.is-fullscreen .gto-feedback-icon {
	font-size: 1.3rem;
}

.gto-trainer-page.is-fullscreen .gto-feedback-text {
	font-size: 1rem;
}

.gto-trainer-page.is-fullscreen .gto-feedback-detail {
	font-size: 0.92rem;
}

.gto-trainer-page.is-fullscreen .gto-next-btn {
	padding: 10px 22px;
	font-size: 0.92rem;
	border-radius: 10px;
}

.gto-trainer-page.is-fullscreen .gto-view-range-btn {
	padding: 10px 16px;
	font-size: 0.9rem;
	border-radius: 10px;
}

/* Sidebar — wider & bigger text */
.gto-trainer-page.is-fullscreen .gto-trainer-sidebar {
	width: 280px;
	gap: 20px;
}

.gto-trainer-page.is-fullscreen .gto-trainer-stats-card {
	padding: 24px;
	border-radius: 16px;
}

.gto-trainer-page.is-fullscreen .gto-sidebar-title {
	font-size: 0.85rem;
	margin-bottom: 16px;
}

.gto-trainer-page.is-fullscreen .gto-ts-row {
	font-size: 0.92rem;
	margin-bottom: 8px;
}

.gto-trainer-page.is-fullscreen .gto-ts-subtitle {
	font-size: 0.8rem;
}

.gto-trainer-page.is-fullscreen .gto-ts-pos-row {
	margin-bottom: 8px;
}

.gto-trainer-page.is-fullscreen .gto-ts-pos-label {
	font-size: 0.85rem;
	width: 32px;
}

.gto-trainer-page.is-fullscreen .gto-ts-pos-bar {
	height: 10px;
}

.gto-trainer-page.is-fullscreen .gto-ts-pos-pct {
	font-size: 0.82rem;
	width: 36px;
}

.gto-trainer-page.is-fullscreen .gto-reset-stats-btn {
	padding: 9px;
	font-size: 0.85rem;
	border-radius: 10px;
}

.gto-trainer-page.is-fullscreen .gto-sidebar-cta {
	padding: 16px 16px 16px 18px;
	border-radius: 12px;
}

.gto-trainer-page.is-fullscreen .gto-sidebar-cta-title {
	font-size: 0.9rem;
}

.gto-trainer-page.is-fullscreen .gto-sidebar-cta-desc {
	font-size: 0.82rem;
}

/* Save progress — fullscreen */
.gto-trainer-page.is-fullscreen .gto-save-btn {
	padding: 14px 18px;
	font-size: 0.9rem;
	border-radius: 12px;
}

/* Icon swap */
.gto-trainer-page.is-fullscreen .gto-fullscreen-toggle .gto-fs-expand {
	display: none;
}

.gto-trainer-page.is-fullscreen .gto-fullscreen-toggle .gto-fs-collapse {
	display: block;
}

/* ===== Stats Sidebar ===== */
.gto-trainer-sidebar {
	width: 240px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gto-trainer-stats-card {
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	box-shadow: var(--shadow-sm);
	padding: 20px;
}

.gto-trainer-sidebar .gto-sidebar-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--text-dark);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 14px;
}

.gto-synced-icon {
	position: relative;
	color: #22c55e;
	cursor: help;
	line-height: 0;
}

.gto-synced-icon.hidden {
	display: none;
}

.gto-synced-icon::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) scale(0.95);
	transform-origin: bottom center;
	white-space: nowrap;
	padding: 7px 12px;
	background: #0f172a;
	color: #f1f5f9;
	font-size: 0.72rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.3;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 10;
}

.gto-synced-icon::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #0f172a;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: 10;
}

.gto-synced-icon:hover::after {
	opacity: 1;
	transform: translateX(-50%) scale(1);
}

.gto-synced-icon:hover::before {
	opacity: 1;
}

/* Stats rows */
.gto-ts-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	font-size: 0.84rem;
}

.gto-ts-label {
	color: var(--text-gray);
}

.gto-ts-value {
	font-weight: 650;
	color: var(--text-dark);
	font-variant-numeric: tabular-nums;
}

.gto-ts-divider {
	height: 1px;
	background: #e2e8f0;
	margin: 10px 0;
}

.gto-ts-subtitle {
	font-size: 0.75rem;
	font-weight: 650;
	color: var(--text-gray);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 10px;
}

/* Per-position bars */
.gto-ts-pos-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.gto-ts-pos-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--text-dark);
	width: 28px;
	flex-shrink: 0;
}

.gto-ts-pos-bar {
	flex: 1;
	height: 8px;
	background: #f1f5f9;
	border-radius: 4px;
	overflow: hidden;
}

.gto-ts-pos-fill {
	height: 100%;
	background: var(--primary-color);
	border-radius: 4px;
	transition: width 0.3s ease;
	width: 0;
}

.gto-ts-pos-pct {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-gray);
	width: 32px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* Reset button */
.gto-reset-stats-btn {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 7px;
	font-size: 0.78rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--text-light);
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.gto-reset-stats-btn:hover {
	color: #dc2626;
	border-color: #fca5a5;
	background: #fef2f2;
}

/* ===== Reset Confirmation ===== */
.gto-reset-confirm {
	margin-top: 10px;
	padding: 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
}

.gto-reset-confirm.hidden {
	display: none;
}

.gto-reset-confirm-text {
	font-size: 0.78rem;
	color: #991b1b;
	margin: 0 0 10px;
	line-height: 1.4;
}

.gto-reset-confirm-btns {
	display: flex;
	gap: 8px;
}

.gto-reset-confirm-yes,
.gto-reset-confirm-no {
	flex: 1;
	padding: 7px;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.gto-reset-confirm-yes {
	color: #fff;
	background: #dc2626;
	border: 1px solid #dc2626;
}

.gto-reset-confirm-yes:hover {
	background: #b91c1c;
}

.gto-reset-confirm-no {
	color: var(--text-gray);
	background: #fff;
	border: 1px solid #e2e8f0;
}

.gto-reset-confirm-no:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
}

/* ===== Save Progress Block ===== */
.gto-save-progress {
	display: flex;
	margin-top: 12px;
}

.gto-save-progress.hidden {
	display: none;
}

.gto-save-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 650;
	color: #fff;
	background: var(--primary-color);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.gto-save-btn:hover {
	background: var(--primary-dark);
	box-shadow: var(--shadow-primary);
}

.gto-save-btn svg {
	flex-shrink: 0;
	opacity: 0.9;
}

/* ===== Email Verify Banner ===== */
.gto-verify-banner {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 8px 10px;
	background: #FFFBEB;
	border: 1px solid #FDE68A;
	border-radius: 8px;
	font-size: 0.75rem;
	color: #92400E;
	line-height: 1.3;
}

.gto-verify-banner svg {
	flex-shrink: 0;
	color: #D97706;
}

.gto-verify-text {
	flex: 1;
	min-width: 0;
}

.gto-verify-resend {
	all: unset;
	flex-shrink: 0;
	cursor: pointer;
	font-size: 0.72rem;
	font-weight: 600;
	color: #D97706;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gto-verify-resend:hover {
	color: #B45309;
	background: none;
}

.gto-verify-resend:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Sidebar CTA (shared with charts page) */
.gto-trainer-sidebar .gto-sidebar-cta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 14px 14px 16px;
	background: var(--primary-bg);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.gto-trainer-sidebar .gto-sidebar-cta:hover {
	border-color: var(--primary-color);
	box-shadow: var(--shadow-primary);
}

.gto-trainer-sidebar .gto-sidebar-cta svg {
	position: absolute;
	top: 14px;
	right: 12px;
	color: var(--primary-color);
}

.gto-sidebar-cta-title {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--primary-dark);
}

.gto-sidebar-cta-desc {
	font-size: 0.75rem;
	color: var(--text-gray);
	line-height: 1.4;
	padding-right: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
	.gto-trainer-layout {
		flex-direction: column;
	}

	.gto-trainer-sidebar {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 16px;
	}

	.gto-trainer-stats-card {
		flex: 1;
		min-width: 260px;
	}

	.gto-trainer-sidebar .gto-sidebar-cta {
		flex: 1;
		min-width: 260px;
	}
}

@media (max-width: 640px) {
	.gto-hotkey-toggle,
	.gto-fullscreen-toggle {
		display: none;
	}

	.gto-trainer-page .gto-hero-title {
		font-size: 1.45rem;
	}

	.gto-trainer-page .gto-hero-subtitle {
		font-size: 0.9rem;
	}

	.gto-trainer-card {
		padding: 16px;
		border-radius: 12px;
	}

	.gto-filters-toggle {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 8px 14px;
		margin-bottom: 10px;
		font-family: inherit;
		font-size: 0.8rem;
		font-weight: 600;
		color: var(--text-gray);
		background: #f1f5f9;
		border: 1px solid #e2e8f0;
		border-radius: 8px;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.gto-filters-toggle:hover,
	.gto-filters-toggle:active {
		background: #e2e8f0;
		color: var(--text-dark);
	}

	.gto-filters-toggle::after {
		content: '\25BC';
		font-size: 0.6rem;
		opacity: 0.7;
	}

	.gto-filters-wrapper.is-open .gto-filters-toggle::after {
		content: '\25B2';
	}

	.gto-trainer-filters {
		display: none;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px 12px;
		margin-bottom: 0;
		align-items: flex-end;
	}

	.gto-filters-wrapper.is-open .gto-trainer-filters {
		display: flex;
		margin-bottom: 14px;
		padding: 12px;
		background: #f8fafc;
		border-radius: 8px;
		border: 1px solid #e2e8f0;
	}

	.gto-filter-group {
		flex: 1 1 0;
		min-width: 64px;
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.gto-filter-label {
		font-size: 0.65rem;
		letter-spacing: 0.02em;
	}

	.gto-filter-select {
		width: 100%;
		min-width: 0;
		padding: 6px 20px 6px 8px;
		font-size: 0.75rem;
	}

	.gto-filters-wrapper .gto-skip-btn,
	.gto-filters-wrapper .gto-filter-warn {
		flex: 1 1 100%;
		justify-content: center;
		margin-top: 8px;
	}

	.gto-table-felt {
		max-width: 380px;
	}

	.gto-seat-avatar {
		width: 38px;
		height: 38px;
		font-size: 0.58rem;
		border-width: 2.5px;
	}

	.gto-seat-cards .gto-mini-card {
		width: 28px;
		height: 40px;
		font-size: 0.78rem;
	}

	.gto-mini-card.facedown {
		width: 24px;
		height: 34px;
	}

	.gto-chip {
		width: 14px;
		height: 14px;
	}

	.gto-bet-label {
		font-size: 0.52rem;
	}

	.gto-dealer-btn {
		width: 18px;
		height: 18px;
		font-size: 0.48rem;
	}

	.gto-action-btns {
		gap: 8px;
	}

	.gto-action-btn {
		padding: 8px 12px;
		width: 105px;
		font-size: 0.72rem;
	}

	.gto-feedback {
		flex-wrap: wrap;
	}

	.gto-view-range-btn,
	.gto-next-btn {
		padding: 7px 12px;
		font-size: 0.74rem;
	}

	.gto-range-modal {
		padding: 12px;
	}

	.gto-range-modal-dialog {
		padding: 12px;
		border-radius: 12px;
	}

	.gto-range-grid {
		min-width: 0;
	}

	.gto-range-grid td {
		font-size: 0.66rem;
	}
}

/* ===== Dark theme ownership ===== */
:root[data-theme="dark"] .gto-trainer-page,
:root[data-theme="dark"] .gto-trainer-page.is-fullscreen {
	background: linear-gradient(160deg, #0d1618 0%, #112022 35%, #102022 70%, #0c1617 100%);
}

:root[data-theme="dark"] .gto-trainer-page .gto-trainer-card,
:root[data-theme="dark"] .gto-trainer-page .gto-trainer-stats-card,
:root[data-theme="dark"] .gto-trainer-page .gto-hotkey-panel {
	background: var(--bg-light);
	border-color: var(--border-color);
	color: var(--text-dark);
}

:root[data-theme="dark"] .gto-trainer-page .gto-hotkey-toggle,
:root[data-theme="dark"] .gto-trainer-page .gto-fullscreen-toggle,
:root[data-theme="dark"] .gto-trainer-page .gto-filter-select,
:root[data-theme="dark"] .gto-trainer-page .gto-reset-stats-btn,
:root[data-theme="dark"] .gto-trainer-page .gto-reset-confirm-no,
:root[data-theme="dark"] .gto-trainer-page .gto-hotkey-row kbd,
:root[data-theme="dark"] .gto-trainer-page .gto-filters-toggle {
	background-color: var(--bg-lighter);
	border-color: var(--border-color);
	color: var(--text-gray);
	box-shadow: none;
}

:root[data-theme="dark"] .gto-trainer-page .gto-hotkey-toggle:hover,
:root[data-theme="dark"] .gto-trainer-page .gto-fullscreen-toggle:hover,
:root[data-theme="dark"] .gto-trainer-page .gto-filters-toggle:hover,
:root[data-theme="dark"] .gto-trainer-page .gto-filters-toggle:active {
	background: #223138;
	border-color: var(--border-strong);
	color: var(--text-dark);
}

:root[data-theme="dark"] .gto-trainer-page .gto-filter-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%23CBD5E1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3l3 3 3-3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 7px center;
	background-size: 10px;
}

:root[data-theme="dark"] .gto-trainer-page .gto-filter-label,
:root[data-theme="dark"] .gto-trainer-page .gto-hotkey-row,
:root[data-theme="dark"] .gto-trainer-page .gto-feedback-detail,
:root[data-theme="dark"] .gto-trainer-page .gto-ts-label,
:root[data-theme="dark"] .gto-trainer-page .gto-ts-subtitle,
:root[data-theme="dark"] .gto-trainer-page .gto-ts-pos-pct,
:root[data-theme="dark"] .gto-trainer-page .gto-sidebar-cta-desc,
:root[data-theme="dark"] .gto-trainer-page .gto-empty-hint {
	color: var(--text-gray);
}

:root[data-theme="dark"] .gto-trainer-page .gto-ts-value,
:root[data-theme="dark"] .gto-trainer-page .gto-ts-pos-label,
:root[data-theme="dark"] .gto-trainer-page .gto-sidebar-title {
	color: var(--text-dark);
}

:root[data-theme="dark"] .gto-trainer-page .tool-format-tabs-inner {
	background: #1b272b;
	border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .gto-trainer-page .tool-format-tab {
	color: var(--text-gray);
}

:root[data-theme="dark"] .gto-trainer-page .tool-format-tab:hover:not(:disabled) {
	background: #223138;
	color: var(--text-dark);
}

:root[data-theme="dark"] .gto-trainer-page .tool-format-tab.is-active {
	background: var(--bg-lighter);
	color: var(--text-accent);
	box-shadow: none;
}

:root[data-theme="dark"] .gto-trainer-page .tool-format-tab.is-soon,
:root[data-theme="dark"] .gto-trainer-page .tool-format-tab.is-soon:hover {
	color: #7f8ea1;
}

:root[data-theme="dark"] .gto-trainer-page .tool-tab-badge {
	color: #9fb2c7;
	background: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .gto-trainer-page .gto-btn-raise {
	background: #3b1f24;
	color: #fecaca;
	border-color: #a74b58;
}

:root[data-theme="dark"] .gto-trainer-page .gto-btn-raise:hover:not(:disabled) {
	background: #ef4444;
	color: #ffffff;
	border-color: #ef4444;
}

:root[data-theme="dark"] .gto-trainer-page .gto-btn-raise2 {
	background: #3a2a16;
	color: #fde68a;
	border-color: #c8781f;
}

:root[data-theme="dark"] .gto-trainer-page .gto-btn-raise2:hover:not(:disabled) {
	background: #f59e0b;
	color: #ffffff;
	border-color: #f59e0b;
}

:root[data-theme="dark"] .gto-trainer-page .gto-btn-call {
	background: #173328;
	color: #bbf7d0;
	border-color: #2d855e;
}

:root[data-theme="dark"] .gto-trainer-page .gto-btn-call:hover:not(:disabled) {
	background: #2e9b6a;
	color: #ffffff;
	border-color: #2e9b6a;
}

:root[data-theme="dark"] .gto-trainer-page .gto-btn-fold {
	background: #26323d;
	color: #cbd5e1;
	border-color: #5b6b80;
}

:root[data-theme="dark"] .gto-trainer-page .gto-btn-fold:hover:not(:disabled) {
	background: #64748b;
	color: #ffffff;
	border-color: #64748b;
}

:root[data-theme="dark"] .gto-trainer-page .gto-view-range-btn,
:root[data-theme="dark"] .gto-trainer-page .gto-range-close-btn {
	background: var(--bg-lighter);
	border-color: var(--border-color);
	color: var(--text-gray);
}

:root[data-theme="dark"] .gto-trainer-page .gto-next-btn {
	background: #1b7078;
	border: 1px solid #31909a;
	color: #eaf7f7;
	box-shadow: 0 3px 10px rgba(10, 102, 112, 0.3);
}

:root[data-theme="dark"] .gto-trainer-page .gto-view-range-btn:hover,
:root[data-theme="dark"] .gto-trainer-page .gto-range-close-btn:hover {
	background: #223138;
	border-color: var(--border-strong);
	color: var(--text-dark);
}

:root[data-theme="dark"] .gto-trainer-page .gto-next-btn:hover {
	background: #21818b;
	border-color: #39a7b2;
	color: #eaf7f7;
	box-shadow: 0 6px 16px rgba(14, 132, 146, 0.35);
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-modal-backdrop {
	background: rgba(2, 6, 23, 0.66);
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-modal-dialog {
	background: var(--bg-light);
	border-color: var(--border-color);
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-modal-title {
	color: var(--text-dark);
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-modal-subtitle,
:root[data-theme="dark"] .gto-trainer-page .gto-range-legend-item {
	color: var(--text-gray);
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-swatch {
	border-color: rgba(255,255,255,0.12);
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-grid td {
	border-color: rgba(255,255,255,0.08);
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-grid td.gto-fold {
	background: #31404a;
	color: #90a3b5;
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-grid td.gto-current-hand {
	box-shadow: inset 0 0 0 2px #e2e8f0;
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-swatch.gto-color-fold {
	background: #31404a;
}

:root[data-theme="dark"] .gto-trainer-page .gto-range-tooltip {
	background: #0f172a;
	color: #e2e8f0;
	border: 1px solid rgba(148, 163, 184, 0.25);
}

:root[data-theme="dark"] .gto-trainer-page .gto-feedback-icon.correct,
:root[data-theme="dark"] .gto-trainer-page .gto-feedback-text.correct {
	color: #4ade80;
}

:root[data-theme="dark"] .gto-trainer-page .gto-feedback-icon.incorrect,
:root[data-theme="dark"] .gto-trainer-page .gto-feedback-text.incorrect {
	color: #f87171;
}

:root[data-theme="dark"] .gto-trainer-page .gto-save-btn {
	background: linear-gradient(180deg, #0f766e, #0b5f59);
	border: 1px solid #0f8a81;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

:root[data-theme="dark"] .gto-trainer-page .gto-save-btn:hover {
	background: linear-gradient(180deg, #0e6b64, #09534d);
	border-color: #14b8a6;
	box-shadow: 0 6px 16px rgba(15, 118, 110, 0.32);
}

:root[data-theme="dark"] .gto-trainer-page .gto-filter-warn {
	background: #3a2b14;
	border-color: #8a6a2f;
	color: #f5cf87;
}

:root[data-theme="dark"] .gto-trainer-page .gto-skip-btn {
	background: rgba(13, 148, 136, 0.16);
	border-color: var(--primary-color);
	color: var(--text-accent);
}

:root[data-theme="dark"] .gto-trainer-page .gto-skip-btn:hover {
	background: var(--primary-color);
	color: #ffffff;
}

:root[data-theme="dark"] .gto-trainer-page .gto-table-surface {
	background: #125e3a;
	border-color: #0d4d2f;
}

:root[data-theme="dark"] .gto-trainer-page .gto-seat-avatar {
	background: #1f2b32;
	border-color: #4f6476;
	color: #cfd8e3;
}

:root[data-theme="dark"] .gto-trainer-page .gto-seat-cards .gto-mini-card {
	background: #f8fafc;
	border-color: #cbd5e1;
}

:root[data-theme="dark"] .gto-trainer-page .gto-mini-card.facedown {
	background: #9f4254;
	border-color: #873346;
}

:root[data-theme="dark"] .gto-trainer-page .gto-dealer-btn {
	background: #e2e8f0;
	border-color: #64748b;
	color: #334155;
}

:root[data-theme="dark"] .gto-trainer-page .gto-ts-divider {
	background: var(--border-color);
}

:root[data-theme="dark"] .gto-trainer-page .gto-ts-pos-bar {
	background: #25333b;
}

:root[data-theme="dark"] .gto-trainer-page .gto-reset-stats-btn:hover {
	color: #fca5a5;
	border-color: #7f1d1d;
	background: #38181b;
}

:root[data-theme="dark"] .gto-trainer-page .gto-reset-confirm {
	background: #2b171a;
	border-color: #7f1d1d;
}

:root[data-theme="dark"] .gto-trainer-page .gto-reset-confirm-text {
	color: #fecaca;
}

:root[data-theme="dark"] .gto-trainer-page .gto-reset-confirm-yes {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff;
}

:root[data-theme="dark"] .gto-trainer-page .gto-reset-confirm-yes:hover {
	background: #991b1b;
}

:root[data-theme="dark"] .gto-trainer-page .gto-verify-banner {
	background: #3a2b14;
	border-color: #8a6a2f;
	color: #f5cf87;
}

:root[data-theme="dark"] .gto-trainer-page .gto-verify-banner svg,
:root[data-theme="dark"] .gto-trainer-page .gto-verify-resend {
	color: #f8b84a;
}

:root[data-theme="dark"] .gto-trainer-page .gto-sidebar-cta {
	background: var(--bg-lighter);
	border-color: var(--border-color);
}

:root[data-theme="dark"] .gto-trainer-page .gto-sidebar-cta-title {
	color: var(--text-accent);
}

:root[data-theme="dark"] .gto-trainer-page .gto-synced-icon::after {
	background: #0f172a;
	border: 1px solid rgba(148, 163, 184, 0.25);
	color: #e2e8f0;
}

:root[data-theme="dark"] .gto-trainer-page .gto-synced-icon::before {
	border-top-color: #0f172a;
}

@media (max-width: 640px) {
	:root[data-theme="dark"] .gto-trainer-page .gto-filters-wrapper.is-open .gto-trainer-filters {
		background: #1b272b;
		border-color: var(--border-color);
	}
}
