/* ==========================================================================
   Fusion Harbor — main stylesheet
   Palette: fjord navy #0B1626 · panel #12233B · aurora teal #3EE6C1
            plasma coral #FF7A45 · ice #EAF4F2 · dim slate #8CA3B8
   ========================================================================== */

:root {
	--fh-bg: #0b1626;
	--fh-panel: #12233b;
	--fh-panel-deep: #0e1c30;
	--fh-line: #22405f;
	--fh-teal: #3ee6c1;
	--fh-coral: #ff7a45;
	--fh-ice: #eaf4f2;
	--fh-dim: #8ca3b8;
	--fh-radius: 14px;
	--fh-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.fusionharbor-site {
	margin: 0;
	background: var(--fh-bg);
	background-image:
		radial-gradient(1200px 500px at 85% -10%, rgba(62, 230, 193, 0.10), transparent 60%),
		radial-gradient(900px 420px at -10% 30%, rgba(255, 122, 69, 0.07), transparent 55%);
	color: var(--fh-ice);
	font-family: var(--fh-font);
	font-size: 17px;
	line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--fh-teal); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible {
	outline: 2px solid var(--fh-teal);
	outline-offset: 2px;
}

.fh-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 22px;
}

/* --- Top disclaimer strip ------------------------------------------------ */

.fh-topline {
	background: var(--fh-panel-deep);
	border-bottom: 1px solid var(--fh-line);
	color: var(--fh-dim);
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	padding: 7px 14px;
}

/* --- Header --------------------------------------------------------------- */

.fh-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(11, 22, 38, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--fh-line);
}

.fh-header-inner {
	display: flex;
	align-items: center;
	gap: 26px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.fh-brand { display: inline-flex; align-items: center; gap: 10px; }
.fh-brand:hover { text-decoration: none; }

.fh-brand-mark {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: conic-gradient(from 220deg, var(--fh-teal), var(--fh-coral), var(--fh-teal));
	box-shadow: 0 0 14px rgba(62, 230, 193, 0.55);
}

.fh-brand-text {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--fh-ice);
}
.fh-brand-text em {
	font-style: normal;
	color: var(--fh-teal);
}

.fh-nav { flex: 1; }

.fh-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fh-menu a {
	color: var(--fh-dim);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.03em;
}
.fh-menu a:hover,
.fh-menu .current-menu-item a { color: var(--fh-teal); text-decoration: none; }

.fh-header-balance {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	background: var(--fh-panel);
	border: 1px solid var(--fh-line);
	border-radius: 999px;
	padding: 6px 16px;
	font-weight: 700;
	color: var(--fh-teal);
	white-space: nowrap;
}
.fh-balance-label {
	font-size: 11px;
	letter-spacing: 0.16em;
	color: var(--fh-dim);
}

/* --- Sections ------------------------------------------------------------- */

.fh-section { padding: 64px 0; }
.fh-section-alt { background: var(--fh-panel-deep); border-top: 1px solid var(--fh-line); border-bottom: 1px solid var(--fh-line); }

.fh-section-title {
	font-size: 30px;
	line-height: 1.2;
	margin: 0 0 28px;
	letter-spacing: 0.01em;
}
.fh-section-title::after {
	content: "";
	display: block;
	width: 58px;
	height: 3px;
	margin-top: 12px;
	background: linear-gradient(90deg, var(--fh-teal), var(--fh-coral));
	border-radius: 2px;
}

.fh-page-title { font-size: 36px; margin: 0 0 10px; }
.fh-page-lead { color: var(--fh-dim); font-size: 18px; max-width: 720px; margin: 0 0 36px; }

.fh-eyebrow {
	color: var(--fh-teal);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.fh-center { text-align: center; margin-top: 30px; }

/* --- Hero ------------------------------------------------------------------ */

.fh-hero {
	padding: 76px 0 70px;
	border-bottom: 1px solid var(--fh-line);
}

.fh-hero-inner {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: center;
}

.fh-hero-copy h1 {
	font-size: 52px;
	line-height: 1.06;
	margin: 0 0 18px;
	letter-spacing: -0.01em;
}

.fh-hero-lead {
	color: var(--fh-dim);
	font-size: 19px;
	max-width: 540px;
	margin: 0 0 28px;
}

.fh-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.fh-hero-stats { display: flex; flex-wrap: wrap; gap: 34px; }
.fh-stat strong { display: block; font-size: 22px; color: var(--fh-teal); }
.fh-stat span { font-size: 13px; color: var(--fh-dim); letter-spacing: 0.06em; text-transform: uppercase; }

.fh-hero-visual img {
	border-radius: var(--fh-radius);
	border: 1px solid var(--fh-line);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* --- Buttons ---------------------------------------------------------------- */

.fh-btn {
	display: inline-block;
	border: 1px solid var(--fh-line);
	border-radius: 999px;
	background: var(--fh-panel);
	color: var(--fh-ice);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	padding: 11px 24px;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.fh-btn:hover { text-decoration: none; transform: translateY(-1px); }

.fh-btn-primary {
	background: linear-gradient(120deg, var(--fh-teal), #2bb99b);
	border-color: transparent;
	color: #06251d;
	box-shadow: 0 8px 24px rgba(62, 230, 193, 0.28);
}
.fh-btn-primary:hover { box-shadow: 0 10px 30px rgba(62, 230, 193, 0.4); }

.fh-btn-ghost { background: transparent; }

.fh-btn-bet.is-active {
	border-color: var(--fh-coral);
	color: var(--fh-coral);
	box-shadow: inset 0 0 0 1px var(--fh-coral);
}

.fh-btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

/* --- Cards & grids ----------------------------------------------------------- */

.fh-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.fh-card {
	background: var(--fh-panel);
	border: 1px solid var(--fh-line);
	border-radius: var(--fh-radius);
	padding: 26px 24px;
	margin-bottom: 22px;
}
.fh-card h2 { margin-top: 0; font-size: 22px; }
.fh-card h3 { margin: 18px 0 6px; font-size: 16.5px; color: var(--fh-teal); }
.fh-card p { margin: 0 0 10px; color: var(--fh-dim); }
.fh-grid-3 .fh-card { margin-bottom: 0; }

/* --- Game cards ----------------------------------------------------------------- */

.fh-game-card {
	background: var(--fh-panel);
	border: 1px solid var(--fh-line);
	border-radius: var(--fh-radius);
	padding: 30px 28px;
	margin: 0 0 30px;
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}
.fh-game-card h2 { margin: 0 0 12px; font-size: 24px; }
.fh-game-card > p { color: var(--fh-dim); }

.fh-game-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.fh-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fh-dim);
	border: 1px solid var(--fh-line);
	border-radius: 999px;
	padding: 4px 12px;
}
.fh-tag-hot { color: var(--fh-coral); border-color: rgba(255, 122, 69, 0.5); }

.fh-reels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 150px));
	gap: 16px;
	justify-content: center;
	margin: 22px 0;
}

.fh-reel {
	background: var(--fh-panel-deep);
	border: 1px solid var(--fh-line);
	border-radius: 12px;
	padding: 14px;
	transition: box-shadow 0.15s ease;
}
.fh-reel.is-spinning { animation: fh-reel-shake 0.28s linear infinite; }
.fh-reel.is-win { box-shadow: 0 0 0 2px var(--fh-teal), 0 0 26px rgba(62, 230, 193, 0.5); }

@keyframes fh-reel-shake {
	0% { transform: translateY(0); }
	25% { transform: translateY(-4px); }
	75% { transform: translateY(4px); }
	100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.fh-reel.is-spinning { animation: none; opacity: 0.75; }
	.fh-ring-visual img.is-spinning { animation: none; opacity: 0.75; }
	html { scroll-behavior: auto; }
}

.fh-ring-visual { max-width: 320px; margin: 20px auto; }
.fh-ring-visual img { border-radius: 50%; }
.fh-ring-visual img.is-spinning { animation: fh-ring-spin 0.8s linear infinite; }

@keyframes fh-ring-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.fh-game-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 18px 0 8px;
}

.fh-game-status {
	text-align: center;
	font-weight: 600;
	min-height: 1.6em;
	margin: 14px 0 4px;
}
.fh-game-status.is-win { color: var(--fh-teal); }
.fh-game-status.is-loss { color: var(--fh-coral); }

.fh-game-recent { text-align: center; color: var(--fh-dim); font-size: 14px; margin: 0; }

.fh-balance-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 34px;
	justify-content: center;
	background: var(--fh-panel-deep);
	border: 1px solid var(--fh-line);
	border-radius: 999px;
	padding: 14px 26px;
	margin-top: 8px;
}
.fh-balance-strip strong { color: var(--fh-teal); }

/* --- Tables -------------------------------------------------------------------- */

.fh-table-wrap { overflow-x: auto; }

.fh-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--fh-panel);
	border: 1px solid var(--fh-line);
	border-radius: var(--fh-radius);
	overflow: hidden;
}
.fh-table th, .fh-table td {
	text-align: left;
	padding: 14px 18px;
	border-bottom: 1px solid var(--fh-line);
}
.fh-table th {
	background: var(--fh-panel-deep);
	color: var(--fh-teal);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.fh-table tr:last-child td { border-bottom: none; }
.fh-table td { color: var(--fh-dim); }
.fh-table td:first-child { color: var(--fh-ice); font-weight: 700; }

/* --- Prose pages ------------------------------------------------------------------ */

.fh-prose { max-width: 820px; }
.fh-prose h1 { font-size: 36px; margin: 0 0 22px; }
.fh-prose h2 { font-size: 23px; margin: 38px 0 12px; color: var(--fh-teal); }
.fh-prose h3 { font-size: 18px; margin: 26px 0 8px; }
.fh-prose p, .fh-prose li { color: var(--fh-dim); }
.fh-prose ul { padding-left: 22px; }
.fh-prose li { margin-bottom: 8px; }
.fh-prose strong { color: var(--fh-ice); }

/* --- Contact ------------------------------------------------------------------------ */

.fh-contact-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 26px;
	align-items: start;
}

.fh-contact-form label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fh-dim);
	margin: 18px 0 6px;
}
.fh-contact-form label:first-of-type { margin-top: 4px; }

.fh-contact-form input,
.fh-contact-form textarea {
	width: 100%;
	background: var(--fh-panel-deep);
	border: 1px solid var(--fh-line);
	border-radius: 10px;
	color: var(--fh-ice);
	font: inherit;
	padding: 11px 14px;
}
.fh-contact-form input:focus,
.fh-contact-form textarea:focus {
	outline: 2px solid var(--fh-teal);
	outline-offset: 1px;
	border-color: var(--fh-teal);
}

.fh-contact-form button { margin-top: 20px; }
.fh-form-status { color: var(--fh-teal); font-weight: 600; min-height: 1.4em; }

/* --- Footer ---------------------------------------------------------------------------- */

.fh-footer {
	background: var(--fh-panel-deep);
	border-top: 1px solid var(--fh-line);
	padding: 54px 0 34px;
	margin-top: 40px;
}

.fh-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
	gap: 34px;
}

.fh-footer-brand { font-size: 19px; display: inline-block; margin-bottom: 10px; }

.fh-footer-col h3 {
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fh-teal);
	margin: 0 0 14px;
}
.fh-footer-col p { color: var(--fh-dim); font-size: 14.5px; margin: 0 0 10px; }

.fh-footer-links { list-style: none; margin: 0; padding: 0; }
.fh-footer-links li { margin-bottom: 9px; }
.fh-footer-links a { color: var(--fh-dim); font-size: 14.5px; }
.fh-footer-links a:hover { color: var(--fh-teal); }

.fh-footer-legal {
	border-top: 1px solid var(--fh-line);
	margin-top: 40px;
	padding-top: 24px;
	color: var(--fh-dim);
	font-size: 13.5px;
}
.fh-footer-legal strong { color: var(--fh-coral); }

/* --- Responsive ------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.fh-hero-inner { grid-template-columns: 1fr; }
	.fh-hero-copy h1 { font-size: 40px; }
	.fh-grid-3 { grid-template-columns: 1fr; }
	.fh-contact-grid { grid-template-columns: 1fr; }
	.fh-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
	.fh-header-inner { flex-wrap: wrap; gap: 12px; }
	.fh-nav { order: 3; flex-basis: 100%; }
	.fh-hero { padding: 48px 0; }
	.fh-hero-copy h1 { font-size: 33px; }
	.fh-section { padding: 46px 0; }
	.fh-reels { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.fh-footer-grid { grid-template-columns: 1fr; }
}
