/* =========================================================
   Hacienda Roulette — charte : charcoal / blanc / sable / beige doré
   Titres : Ashford  •  Texte : Montserrat
   ========================================================= */

.hr-game {
	--hr-ink:         #3D3D3D;
	--hr-white:       #FFFFFF;
	--hr-sand:        #F5E9DC;
	--hr-accent:      #CDB48E;
	--hr-accent-dark: #A98F63;
	--hr-card:        #FFFFFF;

	max-width: 560px;
	margin: 0 auto;
	padding: 28px 18px;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hr-ink);
	background: radial-gradient(130% 90% at 50% -10%, #FFFFFF 0%, var(--hr-sand) 55%, #ECDCC4 100%);
	border-radius: 26px;
	box-shadow: 0 24px 60px -24px rgba(61, 61, 61, .3);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}
.hr-game *, .hr-game *::before, .hr-game *::after { box-sizing: border-box; }

/* Voile texturé très discret */
.hr-game::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 24px);
	opacity: .4;
	pointer-events: none;
}

/* ---------------------------------------------------- Étapes */
.hr-step { display: none; position: relative; z-index: 1; }
.hr-step.is-active { display: block; animation: hr-fade .4s ease both; }

@keyframes hr-fade {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------- Carte */
.hr-card {
	--hr-pad-x: 26px;
	background: var(--hr-card);
	border: 1px solid #EFE2CE;
	border-radius: 20px;
	padding: 30px var(--hr-pad-x);
	text-align: center;
	box-shadow: 0 12px 30px -16px rgba(61,61,61,.22);
}

.hr-eyebrow {
	margin: 0 0 6px;
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: 12px;
	font-weight: 700;
	color: var(--hr-accent-dark);
}
.hr-title {
	margin: 0 0 10px;
	font-family: 'Ashford', 'Montserrat', sans-serif;
	font-size: clamp(24px, 5.2vw, 32px);
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.12;
	color: var(--hr-ink);
}
.hr-lead { margin: 0 0 22px; font-size: 15.5px; line-height: 1.55; color: #6b6b6b; }
.hr-header-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 16px;
}
.hr-gifts-img {
	display: block;
	height: auto;
	width: 100%;
	max-width: calc(100% + var(--hr-pad-x));
	/* collée au bord droit : on annule le padding droit de la carte */
	margin: 0 calc(-1 * var(--hr-pad-x)) 14px auto;
	border-radius: 14px 0 0 14px;
	box-shadow: 0 10px 26px -14px rgba(61,61,61,.4);
}
.hr-hint { margin: 12px 0 0; font-size: 13px; color: #8a8178; }
.hr-hint--error { color: #B5462E; font-weight: 700; }

.hr-stars { color: var(--hr-accent); font-size: 26px; letter-spacing: 4px; margin-bottom: 10px; }

/* ---------------------------------------------------- Formulaire */
.hr-form { text-align: left; }
.hr-field { display: block; margin-bottom: 16px; }
.hr-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--hr-ink); }
.hr-field input {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid #E3D7C2;
	border-radius: 12px;
	font-size: 16px;
	font-family: inherit;
	background: #fff;
	color: var(--hr-ink);
	transition: border-color .15s, box-shadow .15s;
}
.hr-field input:focus {
	outline: none;
	border-color: var(--hr-accent);
	box-shadow: 0 0 0 3px rgba(205,180,142,.35);
}

.hr-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13.5px;
	line-height: 1.45;
	color: #6b6b6b;
	margin: 4px 0 18px;
}
.hr-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--hr-accent-dark); flex: none; }
.hr-check a { color: var(--hr-ink); font-weight: 700; }

.hr-error {
	background: #f7e9e4;
	color: #9c3a23;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13.5px;
	margin: 0 0 14px;
}

/* ---------------------------------------------------- Boutons */
.hr-btn {
	display: inline-block;
	width: 100%;
	border: none;
	border-radius: 14px;
	padding: 15px 20px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: .02em;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: transform .12s ease, box-shadow .2s ease, opacity .2s, background .2s;
}
.hr-btn--primary,
.hr-btn--primary:link,
.hr-btn--primary:visited {
	background: var(--hr-ink);
	color: #fff;
	box-shadow: 0 10px 22px -8px rgba(61,61,61,.55);
}
.hr-btn--primary:hover,
.hr-btn--primary:focus {
	transform: translateY(-1px);
	background: #4a4a4a;
	color: #fff;
	box-shadow: 0 14px 26px -8px rgba(61,61,61,.6);
}
.hr-btn--ghost,
.hr-btn--ghost:link,
.hr-btn--ghost:visited {
	background: transparent;
	color: var(--hr-ink);
	border: 1.5px solid #E3D7C2;
	margin-top: 12px;
}
.hr-btn--ghost:hover,
.hr-btn--ghost:focus {
	background: #F3EAD9;
	color: var(--hr-ink);
	border-color: var(--hr-accent);
}
.hr-btn--ghost.is-ready { border-color: var(--hr-accent); color: var(--hr-accent-dark); }
.hr-btn--ghost.is-ready:hover,
.hr-btn--ghost.is-ready:focus { background: #F3EAD9; color: var(--hr-accent-dark); }
.hr-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.hr-btn.is-loading { color: transparent; position: relative; }
.hr-btn.is-loading::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 20px; height: 20px; border-radius: 50%;
	border: 3px solid rgba(255,255,255,.4); border-top-color: #fff;
	animation: hr-spin-loader .7s linear infinite;
}
@keyframes hr-spin-loader { to { transform: rotate(360deg); } }

/* ---------------------------------------------------- Avis / QR */
.hr-review-qr { margin: 6px 0 18px; }
.hr-qr-img {
	width: 168px; height: 168px;
	border-radius: 14px;
	background: #fff;
	padding: 10px;
	box-shadow: 0 8px 20px -10px rgba(61,61,61,.3);
}

/* ---------------------------------------------------- Roue */
.hr-wheel-wrap { text-align: center; }
.hr-wheel-stage {
	position: relative;
	width: min(420px, 90vw);
	height: min(420px, 90vw);
	margin: 18px auto 8px;
}
.hr-wheel {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	transform: rotate(0deg);
	box-shadow:
		0 0 0 8px var(--hr-accent),
		0 0 0 11px var(--hr-accent-dark),
		0 22px 44px -18px rgba(61,61,61,.5);
	background: #fff;
	overflow: hidden;
}
.hr-wheel-svg { display: block; width: 100%; height: 100%; }

.hr-wheel-pointer {
	position: absolute;
	top: -10px;
	left: 50%;
	margin-left: -15px;
	width: 0; height: 0;
	border-left: 15px solid transparent;
	border-right: 15px solid transparent;
	border-top: 26px solid var(--hr-ink);
	filter: drop-shadow(0 3px 3px rgba(0,0,0,.3));
	z-index: 4;
}
.hr-wheel-hub {
	position: absolute;
	top: 50%; left: 50%;
	margin: -37px 0 0 -37px;
	width: 74px; height: 74px;
	border-radius: 50%;
	border: 4px solid #fff;
	background: radial-gradient(circle at 35% 30%, #E7D4B4, var(--hr-accent) 58%, var(--hr-accent-dark));
	color: var(--hr-ink);
	font-family: 'Ashford', 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: .04em;
	cursor: pointer;
	z-index: 5;
	box-shadow: 0 6px 14px -4px rgba(61,61,61,.55);
}
.hr-wheel-hub:disabled { cursor: default; opacity: .85; }
.hr-status { margin: 10px 0 0; font-weight: 700; color: var(--hr-ink); min-height: 22px; }

/* ---------------------------------------------------- Résultat */
.hr-result { position: relative; overflow: hidden; }
.hr-result-icon { font-size: 56px; line-height: 1; margin-bottom: 6px; }
.hr-result-prize { font-size: 19px; font-weight: 700; color: var(--hr-ink); margin: 0; }
.hr-result.is-win { box-shadow: 0 0 0 2px var(--hr-accent), 0 16px 40px -18px rgba(205,180,142,.85); }

.hr-confetti {
	position: absolute;
	top: -16px;
	width: 9px; height: 15px;
	border-radius: 2px;
	opacity: .95;
	pointer-events: none;
}
.hr-confetti--css {
	animation-name: hr-fall;
	animation-timing-function: ease-in;
	animation-fill-mode: forwards;
}
@keyframes hr-fall {
	to { transform: translateY(360px) rotate(540deg); opacity: 0; }
}

/* ---------------------------------------------------- Accessibilité */
.hr-btn:focus-visible,
.hr-wheel-hub:focus-visible,
.hr-field input:focus-visible,
.hr-check input:focus-visible {
	outline: 3px solid var(--hr-ink);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.hr-step.is-active { animation: none; }
	.hr-confetti { display: none; }
	.hr-wheel { transition: transform .6s ease-out !important; }
}

@media (max-width: 480px) {
	.hr-game { padding: 20px 12px; border-radius: 20px; }
	.hr-card { --hr-pad-x: 18px; padding: 24px var(--hr-pad-x); }
}
