.hdsguess-root {
	box-sizing: border-box;
}

.hdsguess-root *,
.hdsguess-root *::before,
.hdsguess-root *::after {
	box-sizing: border-box;
}

.hdsguess-container {
	max-width: 760px;
	margin: 0 auto;
	padding: 12px 16px 16px;
}

.hdsguess-date-display {
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #5a6c7d;
	margin-top: 16px;
}

.hdsguess-badge-wrap {
	text-align: center;
}

.hdsguess-weekly-badge {
	display: inline-block;
	background-color: #EC6861;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 20px;
	margin-top: 6px;
}

.hdsguess-guesses-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 4px 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.hdsguess-guesses-dot {
	width: 10px;
	height: 10px;
	background-color: #EC6861;
	border-radius: 50%;
	display: inline-block;
}

.hdsguess-search-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 10px 0 14px;
}

.hdsguess-search-container {
	position: relative;
	flex: 1 1 380px;
	max-width: 380px;
	min-width: 0;
}

.hdsguess-search-wrapper {
	display: flex;
	align-items: center;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 25px;
	padding: 8px 18px;
	transition: border-color 0.2s;
	width: 100%;
}

.hdsguess-search-wrapper input[type=text] {
	border: 0 !important;
}

.hdsguess-search-wrapper:focus-within {
	border-color: #EC6861;
}

.hdsguess-search-wrapper.hdsguess-disabled {
	opacity: 0.5;
	pointer-events: none;
}

.hdsguess-search-icon {
	color: #999;
	margin-right: 10px;
	display: flex;
	align-items: center;
}

.hdsguess-search-icon svg {
	width: 18px;
	height: 18px;
}

.hdsguess-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 15px;
	padding: 6px 0;
	background: transparent;
	color: #333;
	font-family: inherit;
}

.hdsguess-input::placeholder {
	color: #aaa;
}

.hdsguess-icon-btn {
	background: #141B38;
	border: none;
	cursor: pointer;
	color: #fff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0;
	transition: background-color 0.2s;
}

.hdsguess-icon-btn:hover {
	background: #1f2a52;
}

.hdsguess-icon-btn svg {
	width: 20px;
	height: 20px;
}

.hdsguess-autocomplete-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 2px solid #ddd;
	border-top: none;
	border-radius: 0 0 12px 12px;
	max-height: 200px;
	overflow-y: auto;
	display: none;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hdsguess-autocomplete-list.hdsguess-active {
	display: block;
}

.hdsguess-autocomplete-item {
	padding: 12px 18px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	transition: background-color 0.15s;
}

.hdsguess-autocomplete-item:hover,
.hdsguess-autocomplete-item.hdsguess-selected {
	background-color: #f5f0e6;
}

.hdsguess-autocomplete-item:last-child {
	border-bottom: none;
}

.hdsguess-athlete-sport {
	font-size: 11px;
	color: #999;
	margin-left: 6px;
}

.hdsguess-grid-headers {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	margin-bottom: 8px;
}

.hdsguess-grid-header {
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #7a8a9a;
	padding: 4px 0;
}

.hdsguess-game-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.hdsguess-guess-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 8px;
}

.hdsguess-guess-row-label {
	background-color: #2d3748;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 16px;
	border-radius: 12px;
	white-space: nowrap;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hdsguess-guess-row-cells {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	width: 100%;
}

.hdsguess-cell {
	min-height: 46px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	padding: 8px;
	background-color: #fff;
	color: #333;
	overflow: hidden;
	word-wrap: break-word;
	line-height: 1.25;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hdsguess-cell.hdsguess-green {
	background-color: #48bb78;
	color: #fff;
	box-shadow: none;
}

.hdsguess-cell.hdsguess-yellow {
	background-color: #ecc94b;
	color: #fff;
	box-shadow: none;
}

.hdsguess-cell.hdsguess-gray {
	background-color: #6b7f94;
	color: #fff;
	box-shadow: none;
}

.hdsguess-cell.hdsguess-empty {
	background-color: transparent;
	border: 2px solid #cbd5e1;
	box-shadow: none;
}

.hdsguess-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.hdsguess-modal-overlay.hdsguess-active {
	display: flex;
}

.hdsguess-modal-content {
	background: #fff;
	border-radius: 16px;
	padding: 28px;
	max-width: 440px;
	width: 90%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	max-height: 90vh;
	overflow-y: auto;
	color: #333;
}

.hdsguess-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.hdsguess-modal-header h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	color: #333;
}

.hdsguess-close-btn {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #999;
	line-height: 1;
	padding: 0;
}

.hdsguess-close-btn:hover {
	color: #333;
}

.hdsguess-help-text {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
	margin: 0 0 16px;
}

.hdsguess-help-footnote {
	font-size: 12px;
	color: #aaa;
	text-align: center;
	margin-bottom: 0;
}

.hdsguess-color-legend {
	display: flex;
	gap: 16px;
	margin: 18px 0;
	justify-content: center;
}

.hdsguess-legend-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.hdsguess-legend-swatch {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}

.hdsguess-legend-swatch.hdsguess-green { background-color: #48bb78; }
.hdsguess-legend-swatch.hdsguess-yellow { background-color: #ecc94b; }
.hdsguess-legend-swatch.hdsguess-gray { background-color: #6b7f94; }

.hdsguess-legend-label {
	font-size: 11px;
	font-weight: 600;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hdsguess-result-content {
	text-align: center;
}

.hdsguess-result-title {
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 8px;
}

.hdsguess-result-title.hdsguess-win { color: #48bb78; }
.hdsguess-result-title.hdsguess-lose { color: #EC6861; }

.hdsguess-result-subtitle {
	font-size: 15px;
	color: #777;
	margin-bottom: 16px;
}

.hdsguess-result-athlete {
	font-size: 22px;
	font-weight: 800;
	color: #EC6861;
	margin-bottom: 20px;
}

.hdsguess-btn {
	padding: 12px 28px;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	font-family: inherit;
}

.hdsguess-btn-primary {
	background-color: #EC6861;
	color: #fff;
}

.hdsguess-btn-primary:hover {
	background-color: #D55650;
}

.hdsguess-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 22px;
}

.hdsguess-stat-item {
	text-align: center;
}

.hdsguess-stat-value {
	font-size: 28px;
	font-weight: 800;
	color: #141B38;
}

.hdsguess-stat-label {
	font-size: 10px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-top: 2px;
}

.hdsguess-distribution-title {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #555;
}

.hdsguess-distribution-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 5px;
}

.hdsguess-distribution-label {
	width: 16px;
	font-size: 13px;
	font-weight: 700;
	text-align: right;
	color: #555;
}

.hdsguess-distribution-bar {
	height: 22px;
	background-color: #d1d5db;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 8px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	min-width: 24px;
	transition: width 0.3s;
}

.hdsguess-distribution-bar.hdsguess-highlight {
	background-color: #48bb78;
}

.hdsguess-share-btn {
	width: 100%;
	padding: 14px;
	margin-top: 18px;
	background-color: #141B38;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.5px;
	transition: background-color 0.2s;
	font-family: inherit;
}

.hdsguess-share-btn:hover {
	background-color: #1a1e1f;
}

.hdsguess-toast {
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	background: #141B38;
	color: #fff;
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	z-index: 1000000;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.hdsguess-toast.hdsguess-show {
	opacity: 1;
}

.hdsguess-share-prompt {
	text-align: center;
	color: #555;
	margin: 0 0 20px;
	font-size: 14px;
}

.hdsguess-share-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hdsguess-share-btn-opt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	color: #fff;
	transition: opacity 0.2s;
	font-family: inherit;
}

.hdsguess-share-btn-opt:hover {
	opacity: 0.9;
}

.hdsguess-share-btn-opt.hdsguess-twitter { background-color: #000; }
.hdsguess-share-btn-opt.hdsguess-facebook { background-color: #1877F2; }
.hdsguess-share-btn-opt.hdsguess-copy { background-color: #EC6861; }

.hdsguess-share-btn-opt svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 480px) {
	.hdsguess-container { padding: 12px 10px 24px; }
	.hdsguess-cell { font-size: 10px; border-radius: 10px; padding: 4px; }
	.hdsguess-grid-header { font-size: 10px; }
	.hdsguess-guess-row-label { font-size: 9px; }
	.hdsguess-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.hdsguess-icon-btn { width: 36px; height: 36px; }
	.hdsguess-icon-btn svg { width: 18px; height: 18px; }
}
