/*
 * Waywa games: welcome coupons, spin & win, rewards page.
 * Mobile first. Logical properties so the same rules work right to left. Theme tokens with fallbacks.
 */

:root {
	--wwg-navy: var(--ww-navy, #14213D);
	--wwg-navy-2: #24345A;
	--wwg-navy-hover: #1F2F55;
	--wwg-coral: var(--ww-coral, #FF6B4A);
	--wwg-coral-hover: #FF7F62;
	--wwg-coral-soft: #FF8A6E;
	--wwg-coral-text: var(--ww-coral-text, #C2410C);
	--wwg-rust: #9A3412;
	--wwg-sand: var(--ww-sand, #F4F1EC);
	--wwg-line: var(--ww-line, #E6E2DA);
	--wwg-muted: var(--ww-muted, #5B6170);
	--wwg-peach: var(--ww-peach, #FFE4DC);
	--wwg-ticket: #FFF6F3;
	--wwg-ticket-line: #FFC9B9;
	--wwg-ticket-dash: #FF9A80;
	--wwg-mist: #C9CEDA;
	--wwg-gold: #FFB020;
	--wwg-green: #1F6B45;
	--wwg-display: var(--ww-font-display, 'Alexandria', system-ui, sans-serif);
	--wwg-radius-s: var(--ww-radius-s, 12px);
	--wwg-ring: var(--wwg-navy);
}

.wwg-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Buttons and small parts ---------- */

.wwg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding-inline: 18px;
	border: 0;
	border-radius: var(--wwg-radius-s);
	background: var(--wwg-sand);
	color: var(--wwg-navy);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.wwg-btn:hover { color: var(--wwg-navy); }
.wwg-btn--navy { background: var(--wwg-navy); color: #FFFFFF; }
.wwg-btn--navy:hover { background: var(--wwg-navy-hover); color: #FFFFFF; }
.wwg-btn--coral { background: var(--wwg-coral); color: var(--wwg-navy); }
.wwg-btn--coral:hover { background: var(--wwg-coral-hover); color: var(--wwg-navy); }
.wwg-btn--ghost { background: var(--wwg-sand); }
.wwg-btn--outline { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.wwg-btn--outline:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.wwg-btn--quiet { background: transparent; color: var(--wwg-muted); font-weight: 500; font-size: 14px; }
.wwg-btn--quiet:hover { color: var(--wwg-navy); text-decoration: underline; }
.wwg-btn--md { min-height: 48px; width: 100%; }
.wwg-btn--lg { min-height: 54px; width: 100%; border-radius: 14px; font-size: 16px; }
.wwg-btn[disabled],
.wwg-btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; }
.wwg-btn.is-busy { cursor: progress; }

.wwg-link {
	align-self: center;
	min-height: 44px;
	padding-inline: 12px;
	border: 0;
	background: none;
	color: var(--wwg-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.wwg-link:hover { color: var(--wwg-navy); }

.wwg-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--wwg-navy);
	cursor: pointer;
}
.wwg-close--sand { background: var(--wwg-sand); }
.wwg-close--navy { background: var(--wwg-navy-2); color: #FFFFFF; }

.wwg-btn:focus-visible,
.wwg-link:focus-visible,
.wwg-close:focus-visible,
.wwg-tile:focus-visible,
.wwg-back:focus-visible,
.wwg-banner__cta:focus-visible,
.wwg-code__copy:focus-visible,
.wwg-wheel__hub:focus-visible,
.wwg-deal__link:focus-visible,
.wwg-history summary:focus-visible,
.wwg-field__input:focus-visible {
	outline: 3px solid var(--wwg-ring);
	outline-offset: 2px;
}
[data-wwg-result]:focus,
[role="dialog"]:focus,
[data-wwg-checkin-card]:focus { outline: none; }
/* Results and the check-in card take focus only to move the screen reader there; they are not controls. */

.wwg-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wwg-coral-text);
}

.wwg-coin {
	flex: none;
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wwg-gold);
}
.wwg-coin--lg { width: 18px; height: 18px; }

.wwg-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding-inline: 12px;
	border-radius: 999px;
	background: var(--wwg-navy-2);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.wwg-fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--wwg-muted); }

.wwg-error {
	margin: 0;
	padding: 8px 12px;
	border-radius: 10px;
	background: #FEF3F2;
	color: #B42318;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}
.wwg-error[hidden] { display: none; }

/* Fields */
.wwg-form { display: flex; flex-direction: column; gap: 10px; }
.wwg-form__for { margin: 0; font-size: 13px; color: var(--wwg-muted); text-align: center; overflow-wrap: anywhere; }
.wwg-field { display: flex; flex-direction: column; gap: 6px; }
.wwg-field__label { font-size: 13px; font-weight: 600; }
.wwg-field__hint { font-size: 12px; color: var(--wwg-muted); }
.wwg-field__input {
	width: 100%;
	height: 50px;
	padding-inline: 16px;
	border: 1px solid #CFC9BE;
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--wwg-navy);
	font: inherit;
	font-size: 15px;
}
.wwg-field__input:focus { border-color: var(--wwg-navy); outline: none; box-shadow: 0 0 0 1px var(--wwg-navy); }
.wwg-field__input[aria-invalid="true"] { border-color: #B42318; }

/* Coupon code with copy */
.wwg-code {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding-block: 4px;
	padding-inline: 12px 4px;
	border: 1px dashed var(--wwg-ticket-dash);
	border-radius: 10px;
	background: var(--wwg-ticket);
	color: var(--wwg-navy);
}
.wwg-code__text {
	font-family: var(--wwg-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.wwg-code__copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding-inline: 10px;
	border: 0;
	border-radius: 8px;
	background: var(--wwg-navy);
	color: #FFFFFF;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.wwg-code__copy:hover { background: var(--wwg-navy-hover); }

/* Countdown */
.wwg-timer { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.wwg-timer__days { margin-inline-end: 4px; }
.wwg-timer__days[hidden] { display: none; }
.wwg-timer--boxes .wwg-timer__part {
	min-width: 30px;
	padding: 4px 0;
	border-radius: 6px;
	background: var(--wwg-navy);
	color: #FFFFFF;
	text-align: center;
}
.wwg-timer--pill {
	gap: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wwg-navy);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
}

/* ---------- Home banner ---------- */

.wwg-page .wwg-banner { margin-block: 0; }
.wwg-banner[hidden] { display: none; }
.wwg-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 16px;
	margin-block: 24px;
	padding: 18px 20px;
	border-radius: 20px;
	background: var(--wwg-navy);
	color: #FFFFFF;
	--wwg-ring: var(--wwg-coral);
}
.wwg-banner__text { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.wwg-banner__pill {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--wwg-coral);
	color: var(--wwg-navy);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.wwg-banner__title {
	margin: 0;
	font-family: var(--wwg-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.wwg-banner__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 46px;
	padding-inline: 22px;
	border: 0;
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--wwg-navy);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.wwg-banner__cta:hover { background: var(--wwg-sand); }
@media (min-width: 700px) {
	.wwg-banner { padding: 20px 28px; }
	.wwg-banner__title { font-size: 20px; }
	.wwg-banner__cta { width: auto; }
}

/* ---------- Dialogs ---------- */

html.wwg-locked { overflow: hidden; }

.wwg-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	padding: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: var(--wwg-navy);
}
.wwg-modal[hidden] { display: none; }
.wwg-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(20, 33, 61, 0.74);
	animation: wwg-fade 0.2s ease-out;
}
.wwg-modal > [role="dialog"] {
	position: relative;
	margin: auto;
	animation: wwg-rise 0.24s ease-out;
}
@keyframes wwg-fade { from { opacity: 0; } }
@keyframes wwg-rise { from { opacity: 0; transform: translateY(16px); } }

.wwg-dialog {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	max-width: 440px;
	padding: 20px;
	border-radius: var(--ww-radius-l, 24px);
	background: #FFFFFF;
}
.wwg-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wwg-dialog__title { margin: 0; font-family: var(--wwg-display); font-size: 20px; line-height: 1.25; }
.wwg-dialog__lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--wwg-muted); }

/* Welcome sheet */
.wwg-sheet {
	width: 100%;
	max-width: 400px;
	overflow: hidden;
	border-radius: 26px;
	background: #FFFFFF;
}
.wwg-sheet__head {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 20px 20px;
	background: var(--wwg-coral);
	color: var(--wwg-navy);
}
.wwg-sheet__blob { position: absolute; border-radius: 50%; background: var(--wwg-coral-soft); }
.wwg-sheet__blob--a { inset-inline-end: -30px; top: -40px; width: 140px; height: 140px; }
.wwg-sheet__blob--b { inset-inline-end: 70px; bottom: -36px; width: 70px; height: 70px; }
.wwg-sheet__eyebrow,
.wwg-sheet__title,
.wwg-sheet__sub { position: relative; }
.wwg-sheet__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.wwg-sheet__title {
	max-width: 260px;
	margin: 0;
	font-family: var(--wwg-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--wwg-navy);
}
.wwg-sheet__sub { margin: 0; font-size: 14px; font-weight: 500; }
.wwg-sheet__head .wwg-close { position: absolute; top: 10px; inset-inline-end: 10px; }
.wwg-sheet__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }

.wwg-tickets { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wwg-ticket {
	display: flex;
	border: 1px solid var(--wwg-ticket-line);
	border-radius: 14px;
	background: var(--wwg-ticket);
}
.wwg-ticket__amount {
	flex: 0 0 104px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 8px;
	border-inline-end: 2px dashed var(--wwg-ticket-dash);
	color: var(--wwg-rust);
	text-align: center;
}
.wwg-ticket__value { font-family: var(--wwg-display); font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.wwg-ticket__off { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.wwg-ticket__info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; min-width: 0; padding: 12px 14px; }
.wwg-ticket__rule { font-size: 14px; font-weight: 600; }
.wwg-ticket__valid { font-size: 12px; color: var(--wwg-muted); }
.wwg-ticket--code .wwg-ticket__info { gap: 6px; }
.wwg-ticket--code .wwg-ticket__rule { font-size: 12px; font-weight: 500; color: var(--wwg-muted); }
.wwg-ticket--code .wwg-ticket__amount { flex-basis: 92px; }
.wwg-ticket--code .wwg-ticket__info { padding-inline: 12px; }
.wwg-ticket .wwg-code { gap: 6px; padding-inline-start: 10px; }
.wwg-ticket .wwg-code__text { font-size: 14px; letter-spacing: 0.02em; }
.wwg-ticket .wwg-code__copy { padding-inline: 8px; }
.wwg-ticket .wwg-code__copy [data-wwg-copy-label] { display: none; } /* Icon only; the button's name says "Copy code …". */
.wwg-ticket.is-applied { border-color: var(--wwg-coral); box-shadow: 0 0 0 1px var(--wwg-coral); }
.wwg-ticket__status,
.wwg-result__status.is-applied { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--wwg-green); }

.wwg-ends { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; font-size: 13px; font-weight: 600; }

.wwg-claimed { display: flex; flex-direction: column; gap: 10px; }
.wwg-claimed__msg { margin: 0; font-size: 15px; font-weight: 600; }

/* Results */
.wwg-result { display: flex; flex-direction: column; gap: 12px; }
.wwg-result__main { display: flex; align-items: center; gap: 12px; }
.wwg-result__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wwg-result__eyebrow { font-size: 12px; font-weight: 600; color: var(--wwg-rust); }
.wwg-result__title { font-family: var(--wwg-display); font-size: 21px; font-weight: 700; line-height: 1.2; }
.wwg-result__detail { font-size: 12px; line-height: 1.45; color: var(--wwg-muted); }
.wwg-result__coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wwg-result__status { font-size: 12px; color: var(--wwg-muted); }
.wwg-result__actions { display: flex; flex-direction: column; gap: 6px; }
.wwg-result--spin {
	padding: 14px 16px;
	border-radius: 18px;
	background: #FFFFFF;
	color: var(--wwg-navy);
	--wwg-ring: var(--wwg-navy);
}
.wwg-result--promo .wwg-result__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wwg-coral-text); }
.wwg-result--promo .wwg-result__title { font-size: 32px; }
.wwg-result--scratch .wwg-result__main,
.wwg-result--scratch .wwg-result__text { display: none; }

/* ---------- Prize wheel ---------- */

.wwg-wheel {
	position: relative;
	flex: none;
	width: min(320px, 100%);
	aspect-ratio: 1;
	direction: ltr;
	container-type: inline-size;
}
.wwg-wheel__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.wwg-wheel__disc {
	position: absolute;
	inset: 5%;
	transition: transform 4.2s cubic-bezier(0.12, 0.8, 0.18, 1);
}
.wwg-wheel__disc svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wwg-wheel__pointer {
	position: absolute;
	top: -2.5%;
	left: 50%;
	z-index: 2;
	width: 10.625%;
	height: auto;
	transform: translateX(-50%);
}
.wwg-wheel__hub {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 26.25%;
	aspect-ratio: 1;
	padding: 0;
	border: 6px solid var(--wwg-coral);
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--wwg-navy);
	font-family: var(--wwg-display);
	font-size: clamp(12px, 5.3cqi, 17px);
	font-weight: 700;
	transform: translate(-50%, -50%);
}
button.wwg-wheel__hub { cursor: pointer; }
button.wwg-wheel__hub:disabled { cursor: default; }

/* ---------- Guest welcome spin (Web-Promo) ---------- */

.wwg-promo {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 900px;
	overflow: hidden;
	border-radius: 28px;
	background: #FFFFFF;
}
.wwg-promo__art {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 24px 20px;
	border-start-start-radius: 28px;
	border-start-end-radius: 28px;
	background: var(--wwg-navy);
}
.wwg-promo__art .wwg-wheel { width: min(220px, 70vw); }
.wwg-promo__panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px; border-end-start-radius: 28px; border-end-end-radius: 28px; background: #FFFFFF; }
.wwg-promo__panel > .wwg-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1; }
.wwg-promo__form { gap: 14px; }
.wwg-promo__form .wwg-eyebrow { font-size: 13px; padding-inline-end: 48px; }
.wwg-promo__title { margin: 0; font-family: var(--wwg-display); font-size: 24px; line-height: 1.15; }
.wwg-promo__lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--wwg-muted); }
.wwg-promo__body .wwg-result { padding-block-start: 32px; }
@media (min-width: 768px) {
	.wwg-modal--promo { padding: 24px; }
	.wwg-promo { flex-direction: row; }
	.wwg-promo__art,
	.wwg-promo__panel { flex: 1 1 0; min-width: 0; }
	.wwg-promo__art { padding: 40px; border-radius: 0; border-start-start-radius: 28px; border-end-start-radius: 28px; }
	.wwg-promo__panel { border-radius: 0; border-start-end-radius: 28px; border-end-end-radius: 28px; }
	.wwg-promo__art .wwg-wheel { width: 320px; }
	.wwg-promo__panel { padding: 48px 40px 40px; }
	.wwg-promo__title { font-size: 32px; }
	.wwg-promo__lead { font-size: 16px; }
}

/* ---------- Spin & win dialog (signed in) ---------- */

.wwg-modal--spin { padding: 0; }
.wwg-spin {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	padding: 12px 16px 28px;
	overflow: hidden;
	background: var(--wwg-navy);
	color: #FFFFFF;
	--wwg-ring: var(--wwg-coral);
}
.wwg-modal--spin > .wwg-spin { margin: 0; }
.wwg-spin__dot { position: absolute; border-radius: 50%; }
.wwg-spin__dot--a { inset-inline-start: 28px; top: 150px; width: 10px; height: 10px; background: var(--wwg-coral); }
.wwg-spin__dot--b { inset-inline-end: 36px; top: 190px; width: 14px; height: 14px; background: #FFC2B3; }
.wwg-spin__dot--c { inset-inline-start: 48px; top: 560px; width: 8px; height: 8px; background: #FFC2B3; }
.wwg-spin__dot--d { inset-inline-end: 24px; top: 520px; width: 10px; height: 10px; background: var(--wwg-coral); }
.wwg-spin__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wwg-spin__name { font-family: var(--wwg-display); font-size: 18px; font-weight: 700; }
.wwg-spin__intro { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 0; text-align: center; }
.wwg-spin__title { max-width: 270px; margin: 0 auto; font-family: var(--wwg-display); font-size: 26px; line-height: 1.2; color: #FFFFFF; }
.wwg-spin__lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--wwg-mist); }
.wwg-spin__wheel { position: relative; display: flex; justify-content: center; margin-top: 22px; }
.wwg-spin__foot { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 22px; }
.wwg-spin__result:empty { display: none; }
.wwg-spin .wwg-btn--coral { font-weight: 700; }
.wwg-spin .wwg-btn[disabled] { opacity: 1; background: var(--wwg-navy-2); color: var(--wwg-mist); }
.wwg-winners { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--wwg-mist); }
.wwg-winners strong { color: #FFFFFF; }
@media (min-width: 600px) {
	.wwg-modal--spin { padding: 24px; }
	.wwg-modal--spin > .wwg-spin { margin: auto; }
	.wwg-spin { max-width: 440px; min-height: 0; border-radius: 28px; padding-bottom: 24px; }
}

/* ---------- Scratch card ---------- */

.wwg-scratch__card {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border: 2px dashed var(--wwg-ticket-dash);
	border-radius: 18px;
	background: var(--wwg-peach);
	user-select: none;
	-webkit-user-select: none;
}
.wwg-scratch__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 16px;
	text-align: center;
}
.wwg-scratch__eyebrow { font-size: 13px; font-weight: 600; color: var(--wwg-rust); }
.wwg-scratch__prize { font-family: var(--wwg-display); font-size: 30px; font-weight: 700; line-height: 1.2; }
.wwg-scratch__foil {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: grab;
	touch-action: none;
	transition: opacity 0.5s ease;
}
.wwg-scratch__card.is-revealed .wwg-scratch__foil { opacity: 0; pointer-events: none; }
.wwg-scratch__result { display: flex; flex-direction: column; gap: 10px; }
.wwg-scratch__result[hidden] { display: none; }

/* ---------- Invite ---------- */

.wwg-copyfield { display: flex; gap: 8px; }
.wwg-copyfield .wwg-field__input { flex: 1; min-width: 0; height: 48px; font-size: 14px; }
.wwg-copyfield .wwg-btn { flex: none; min-height: 48px; }

.wwg-redeem__body { display: flex; flex-direction: column; gap: 14px; }
.wwg-redeem__have { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }

/* ---------- Rewards page ---------- */

.wwg-page .wwg-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 720px;
	margin-inline: auto;
}
.wwg-head { display: flex; align-items: center; gap: 10px; }
.wwg-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wwg-sand);
	color: var(--wwg-navy);
}
.wwg-back:hover { color: var(--wwg-navy); background: var(--wwg-line); }
html[dir="rtl"] .wwg-back svg { transform: scaleX(-1); }
.wwg-head__title { margin: 0; font-family: var(--wwg-display); font-size: 21px; }

.wwg-coins,
.wwg-join {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px;
	border-radius: 20px;
	background: var(--wwg-navy);
	color: #FFFFFF;
	--wwg-ring: var(--wwg-coral);
}
.wwg-coins__blob { position: absolute; inset-inline-end: -36px; bottom: -48px; width: 130px; height: 130px; border-radius: 50%; background: var(--wwg-navy-2); }
.wwg-coins__text { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wwg-coins__label { margin: 0; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--wwg-mist); }
.wwg-coins__balance { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--wwg-display); font-size: 30px; font-weight: 700; line-height: 1.2; }
.wwg-coins__worth { margin: 0; font-size: 13px; color: var(--wwg-mist); }
.wwg-coins > .wwg-btn { position: relative; flex: none; }

.wwg-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--wwg-line);
	border-radius: 18px;
	background: #FFFFFF;
}
.wwg-card__title { margin: 0; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; }

.wwg-checkin__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wwg-checkin__day { font-size: 13px; color: var(--wwg-muted); }
.wwg-checkin__done {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	border-radius: 12px;
	background: var(--wwg-sand);
	font-size: 15px;
	font-weight: 600;
}
.wwg-checkin__done .wwg-icon { color: var(--wwg-coral-text); }
.wwg-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}
.wwg-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 54px;
	padding: 8px 0;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}
.wwg-day.is-done { background: var(--wwg-coral); color: var(--wwg-navy); }
.wwg-day.is-today { padding-block: 6px; border: 2px solid var(--wwg-navy); font-weight: 700; }
.wwg-day.is-next { background: var(--wwg-sand); color: var(--wwg-muted); font-weight: 500; }
.wwg-day.is-gift { background: var(--wwg-peach); color: var(--wwg-rust); }
.wwg-day__coins { font-size: 13px; font-weight: 600; color: var(--wwg-navy); }
.wwg-day.is-today .wwg-day__coins { font-weight: 700; }

.wwg-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 8px 0 0;
	list-style: none;
}
.wwg-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 14px 6px 12px;
	border: 0;
	border-radius: 16px;
	background: var(--wwg-sand);
	color: var(--wwg-navy);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
}
.wwg-tile:hover { background: var(--wwg-line); }
.wwg-tile--navy { background: var(--wwg-navy); color: #FFFFFF; }
.wwg-tile--navy:hover { background: var(--wwg-navy-hover); }
.wwg-badge {
	position: absolute;
	top: -8px;
	left: 50%;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--wwg-navy);
	color: #FFFFFF;
	font-size: 10px;
	font-weight: 700;
	white-space: nowrap;
	transform: translateX(-50%);
}
.wwg-badge--coral { background: var(--wwg-coral); color: var(--wwg-navy); }

.wwg-deals { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.wwg-deals__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wwg-deals__title { display: flex; align-items: center; gap: 6px; margin: 0; font-family: var(--wwg-display); font-size: 17px; }
.wwg-deals__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.wwg-deal__link { display: flex; align-items: center; gap: 12px; border-radius: 12px; color: var(--wwg-navy); text-decoration: none; }
.wwg-deal__link:hover { color: var(--wwg-navy); }
.wwg-deal__link:hover .wwg-deal__name { text-decoration: underline; }
.wwg-deal__img { flex: none; }
.wwg-deal__img img { display: block; width: 64px; height: 64px; margin: 0; border-radius: 12px; object-fit: cover; background: var(--wwg-sand); }
.wwg-deal__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wwg-deal__name { overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.wwg-deal__prices { display: flex; align-items: baseline; gap: 6px; }
.wwg-deal__price { font-family: var(--wwg-display); font-size: 15px; font-weight: 700; }
.wwg-deal__was { font-size: 12px; color: #6B7080; }
.wwg-deal__claim { display: flex; align-items: center; gap: 8px; }
.wwg-bar { display: block; flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: var(--wwg-peach); }
.wwg-bar__fill { display: block; height: 100%; background: var(--wwg-coral); }
.wwg-deal__claimed { font-size: 11px; font-weight: 600; color: var(--wwg-rust); white-space: nowrap; }

.wwg-history { border-top: 1px solid var(--wwg-line); }
.wwg-history summary { padding-block: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.wwg-history__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.wwg-history__list li { display: flex; align-items: baseline; gap: 10px; padding-block: 8px; border-top: 1px solid var(--wwg-sand); font-size: 13px; }
.wwg-history__reason { flex: 1; min-width: 0; }
.wwg-history__date { color: var(--wwg-muted); font-size: 12px; }
.wwg-history__amount { min-width: 48px; font-weight: 700; text-align: end; color: var(--wwg-green); }
.wwg-history__amount.is-spent { color: var(--wwg-muted); }

/* Signed out */
.wwg-join { flex-direction: column; align-items: stretch; gap: 10px; padding: 20px; }
.wwg-join > :not(.wwg-coins__blob) { position: relative; }
.wwg-join__title { margin: 0; font-family: var(--wwg-display); font-size: 22px; color: #FFFFFF; }
.wwg-join__lead { margin: 0; font-size: 14px; color: var(--wwg-mist); }
.wwg-perks { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; padding: 0; list-style: none; font-size: 14px; }
.wwg-perks li { display: flex; align-items: flex-start; gap: 8px; }
.wwg-perks .wwg-icon { flex: none; margin-top: 3px; color: var(--wwg-coral); }
.wwg-join__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wwg-join__actions .wwg-btn { flex: 1 1 140px; width: auto; }
.wwg-offer .wwg-offer__title { font-family: var(--wwg-display); font-size: 22px; font-weight: 700; }
.wwg-offer__lead { margin: -6px 0 0; font-size: 14px; color: var(--wwg-muted); }

@media (min-width: 640px) {
	.wwg-page .wwg-col { gap: 18px; }
	.wwg-head__title { font-size: 28px; }
	.wwg-coins { padding: 24px; }
	.wwg-card { padding: 18px; }
	.wwg-deals__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.wwg-tile { padding-block: 18px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.wwg-wheel__disc,
	.wwg-scratch__foil { transition: none; }
	.wwg-modal__backdrop,
	.wwg-modal > [role="dialog"] { animation: none; }
}
