/* Interactive player pages — free-preview timer, 1-minute toast and membership popup (1.0.316).
   Injected by inc/interactive-player.php into every Interactive player page (no theme CSS there). */
@font-face { font-family: 'Fredoka'; src: url('../fonts/fredoka-var.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('../fonts/nunito-sans-var.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }
@keyframes hft-ixg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.hft-ixg-locked, html.hft-ixg-locked body { overflow: hidden !important; }
/* ==========================================================================
   /<word>/<slug>/ — preview timer pill + membership popup
   (injected by the theme into the player page, so every Interactive resource gets it)
   ========================================================================== */
.hft-ixg-pill {
	position: fixed; z-index: 99990; right: 16px; bottom: 16px;
	display: inline-flex; align-items: center; gap: 10px;
	background: #fff; color: var(--fb-navy, #1B437D); border-radius: 999px; padding: 8px 8px 8px 16px;
	font: 800 14.5px/1 "Nunito Sans", system-ui, sans-serif;
	box-shadow: 0 14px 30px -12px rgba(27,67,125,.55); border: 2px solid #E3EEF9;
}
.hft-ixg-pill time { font: 700 18px/1 "Fredoka", system-ui, sans-serif; color: #D6337B; min-width: 3.1em; text-align: center; }
.hft-ixg-pill a { background: #D6337B; color: #fff !important; text-decoration: none !important; border-radius: 999px; padding: 9px 14px; }
.hft-ixg-pill.is-low { animation: hft-ixg-pulse 1.2s ease-in-out infinite; }
@keyframes hft-ixg-pulse { 50% { box-shadow: 0 0 0 8px rgba(214,51,123,.18), 0 14px 30px -12px rgba(27,67,125,.55); } }
.hft-ixg-toast {
	position: fixed; z-index: 99991; left: 50%; top: 18px; transform: translate(-50%, -140%);
	background: var(--fb-navy, #1B437D); color: #fff; border-radius: 18px; padding: 14px 16px 14px 20px;
	display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
	font: 700 15px/1.4 "Nunito Sans", system-ui, sans-serif; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
	transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.hft-ixg-toast.on { transform: translate(-50%, 0); }
.hft-ixg-toast b { color: #FBB915; }
.hft-ixg-toast a { flex: none; background: #D6337B; color: #fff !important; -webkit-text-fill-color: #fff; text-decoration: none !important; border-radius: 999px; padding: 9px 14px; font-weight: 800; box-shadow: 0 3px 0 #A4235C; } /* 1.0.323: pink (yellow is Amazon only) */
.hft-ixg-toast a:active { transform: translateY(2px); box-shadow: 0 1px 0 #A4235C; }
.hft-ixg-toast button { flex: none; background: none; border: 0; color: #fff; opacity: .7; font-size: 20px; cursor: pointer; }
.hft-ixg-veil {
	position: fixed; inset: 0; z-index: 99995; display: none; align-items: center; justify-content: center; padding: 16px;
	background: rgba(17, 37, 70, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hft-ixg-veil.on { display: flex; animation: hft-ixg-in .3s ease; }
.hft-ixg-modal {
	position: relative; width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto;
	background: #FFFCF6; border-radius: 30px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); isolation: isolate;
	font-family: "Nunito Sans", system-ui, sans-serif; color: #3d4a57;
}
.hft-ixg-l { padding: 38px 34px 30px; position: relative; overflow: hidden; }
.hft-ixg-l::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: #E3EEF9; right: -170px; top: -170px; z-index: -1; }
.hft-ixg-l h2 { font: 700 clamp(28px, 3.2vw, 38px)/1.06 "Fredoka", system-ui, sans-serif; color: #1B437D; margin: 12px 0 12px; letter-spacing: -.01em; }
.hft-ixg-l h2 em { font-style: normal; color: #0758A1; position: relative; white-space: nowrap; }
.hft-ixg-l h2 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .26em; background: #FBB915; border-radius: 999px; z-index: -1; opacity: .75; transform: rotate(-1.5deg); }
.hft-ixg-l p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.55; }
.hft-ixg-feats { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 9px; }
.hft-ixg-feats li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: #1B437D; font-size: 15.5px; }
.hft-ixg-feats i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #FBB915; display: grid; place-items: center; font-style: normal; font-size: 13px; color: #1B437D; font-weight: 900; }
.hft-ixg-r { background: #1B437D; color: #fff; padding: 34px 28px 26px; display: flex; flex-direction: column; gap: 12px; border-radius: 0 30px 30px 0; }
.hft-ixg-r .cap { margin: 0 0 4px; font: 600 15px/1.2 "Fredoka", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #FBB915; }
.hft-ixg-opt { display: block; background: #fff; color: #1B437D !important; border-radius: 20px; padding: 16px 18px; text-decoration: none !important; position: relative; transition: transform .15s ease; }
.hft-ixg-opt:hover { transform: translateY(-2px); }
.hft-ixg-opt--best { outline: 4px solid #FBB915; outline-offset: -4px; }
.hft-ixg-opt .flag { position: absolute; top: -11px; left: 16px; background: #FBB915; color: #1B437D; font: 800 11.5px/1 "Nunito Sans", sans-serif; padding: 6px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.hft-ixg-opt b { display: block; font: 700 18px/1.2 "Fredoka", system-ui, sans-serif; }
.hft-ixg-opt small { display: block; font-size: 13.5px; color: #5A6B7D; margin-top: 3px; font-weight: 700; }
.hft-ixg-opt .go { display: flex; align-items: center; justify-content: center; margin-top: 12px; min-height: 46px; border-radius: 999px; background: #D6337B; color: #fff; font-weight: 800; font-size: 16px; }
.hft-ixg-opt--ghost .go { background: #fff; color: #1B437D; box-shadow: inset 0 0 0 2px #1B437D; }
.hft-ixg-r .login { margin: auto 0 0; text-align: center; font-size: 14px; color: rgba(255,255,255,.85); }
.hft-ixg-r .login a { color: #FBB915 !important; font-weight: 800; }
.hft-ixg-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: #1B437D; font-size: 22px; line-height: 38px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.15); }


@media (max-width: 900px) { .hft-ixg-modal { grid-template-columns: 1fr; } .hft-ixg-r { border-radius: 0 0 30px 30px; } }
@media (max-width: 560px) { .hft-ixg-pill { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .hft-ixg-pill.is-low { animation: none; } .hft-ixg-veil.on { animation: none; } }
.hft-ixg-pill, .hft-ixg-toast, .hft-ixg-veil { box-sizing: border-box; }
.hft-ixg-pill { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.hft-ixg-eyebrow { margin: 0; font: 600 15px/1.2 "Fredoka", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #0758A1; }
.hft-ixg-x[hidden] { display: none; }
.hft-ixg-opt:focus-visible, .hft-ixg-pill a:focus-visible, .hft-ixg-x:focus-visible { outline: 3px solid #FBB915; outline-offset: 2px; }
/* 1.0.322: the "link isn't working" card for students (no upsell) */
.hft-ixg-modal.hft-ixg-modal--plain { grid-template-columns: 1fr; max-width: 420px; text-align: center; }
.hft-ixg-modal--plain h2 { margin: 0 0 6px; }
/* 1.0.355: preview pill counts free questions (text, not a timer) · buyer "Assign to students" button + Classroom offer */
.hft-ixg-pill time { min-width: 0; font-size: 16px; white-space: nowrap; }
button.hft-ixg-pill--assign { cursor: pointer; padding: 12px 20px; background: #1B437D; color: #fff; border-color: #1B437D; font: 800 15px/1 "Nunito Sans", system-ui, sans-serif; }
button.hft-ixg-pill--assign:hover { background: #12305A; }
button.hft-ixg-pill--assign:focus-visible { outline: 3px solid #FBB915; outline-offset: 2px; }
@media (max-width: 560px) { button.hft-ixg-pill--assign { justify-content: center; } }
/* 1.0.358 (Mark): the pill and the buyer "Assign" button sit ABOVE the player's bottom bar (they covered its Next button). */
.hft-ixg-pill { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 560px) { .hft-ixg-pill { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }

/* ==========================================================================
   1.0.364 — the preview popup as ONE small card in the design model (Interactive Worksheets brief 2026-10-05).
   New classes only: the buyer Classroom offer and the student "link isn't working" card keep the styles above.
   ========================================================================== */
.hft-ixg-veil--card { background: rgba(27, 67, 125, .55); cursor: pointer; }
.hft-ixg-card {
	position: relative; box-sizing: border-box; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; cursor: auto;
	background: #FFFCF6; border-radius: 26px; border-top: 8px solid #D6337B;
	box-shadow: 0 18px 40px -18px rgba(27, 67, 125, .55), 0 0 0 6px #FBEAF2;
	padding: 26px 26px 20px; text-align: center; color: #1B437D;
	font-family: "Nunito Sans", system-ui, sans-serif;
}
.hft-ixg-cx {
	position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
	background: #F3EDE3; color: #1B437D; display: grid; place-items: center; cursor: pointer;
}
.hft-ixg-cx:hover { background: #E9E0D4; }
.hft-ixg-cpill {
	display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid #F3C9DC; color: #D6337B;
	border-radius: 999px; padding: 6px 14px; font: 600 14px/1 "Fredoka", system-ui, sans-serif;
}
.hft-ixg-card h2 {
	font: 700 clamp(26px, 5vw, 32px)/1.12 "Fredoka", system-ui, sans-serif; color: #1B437D; margin: 14px 0 10px;
	letter-spacing: -.01em; text-wrap: balance;
}
.hft-ixg-card h2 em {
	font-style: normal; color: #D6337B; padding: 0 .08em;
	background: linear-gradient(transparent 62%, rgba(251, 185, 21, .4) 62%, rgba(251, 185, 21, .4) 92%, transparent 92%);
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hft-ixg-cp { font-size: 16px; line-height: 1.45; color: #3B4F66; margin: 0 0 16px; }
.hft-ixg-cp b { color: #1B437D; }
.hft-ixg-cta {
	display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 58px; padding: 0 18px;
	border-radius: 999px; background: #D6337B; color: #fff !important; -webkit-text-fill-color: #fff; text-decoration: none !important;
	font: 700 19px/1.1 "Fredoka", system-ui, sans-serif; box-shadow: 0 4px 0 #A4235C, 0 10px 22px -10px rgba(214, 51, 123, .8);
	transition: background .15s ease, transform .1s ease;
}
.hft-ixg-cta:hover { background: #B62A67; }
.hft-ixg-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 #A4235C; }
.hft-ixg-fine { font-size: 13px; color: #5A6B7D; margin: 10px 0 12px; }
.hft-ixg-alt { font-size: 14px; margin: 0; color: #5A6B7D; }
.hft-ixg-alt a { color: #1B437D !important; font-weight: 800; }
.hft-ixg-cta:focus-visible, .hft-ixg-cx:focus-visible, .hft-ixg-alt a:focus-visible { outline: 3px solid #FBB915; outline-offset: 3px; }
@media (max-width: 420px) { .hft-ixg-card { padding: 24px 18px 18px; } .hft-ixg-cta { font-size: 18px; } }
