/* Preview-only layer for the live Suite room: auto-tour progress + hands-on "try it" demos. */
.ebook-suite-tour.sp-touring .ms-stations button.is-active { position: relative; overflow: hidden; }
.ebook-suite-tour.sp-touring .ms-stations button.is-active::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .85); transform-origin: left; transform: scaleX(var(--sp-p, 0)); }

.sp-try { min-height: 250px; box-sizing: border-box; margin-top: 0; padding: 18px; border-radius: 20px; background: color-mix(in srgb, var(--station) 9%, #fff); animation: spIn .45s cubic-bezier(.2, 1.35, .35, 1) both; }
@keyframes spIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sp-label { margin: 0 0 12px; font: 700 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--station); }
.sp-note, .sp-sub { margin: 10px 0 0; font: 500 14px/1.4 var(--f-body); color: #7a684f; }
.sp-note b { color: var(--station); }
.sp-sub [lang="ar"], .sp-note [lang="ar"] { font-family: var(--f-ar); font-size: 16px; color: #B26800; }
.sp-link { border: 0; background: none; padding: 0; font: 700 14px var(--f-body); color: var(--station); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sp-pop { animation: spPop .42s cubic-bezier(.2, 1.35, .35, 1); }
@keyframes spPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* Tiles shared by match / build / blank / scenario */
.sp-tile { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 14px; background: #fff; color: #351c08; font: 700 14.5px/1.2 var(--f-body); cursor: pointer; box-shadow: 0 1px 2px rgba(53, 35, 15, .08), 0 8px 18px -12px rgba(53, 35, 15, .45); transition: transform .2s cubic-bezier(.2, 1.35, .35, 1), background-color .2s, color .2s, opacity .3s; }
.sp-tile:hover { transform: translateY(-2px); }
.sp-tile:active { transform: scale(.96); }
.sp-tile.sp-en { font-weight: 500; color: #6b5843; }
.sp-tile.sel { background: #351c08; color: #FFC93C; }
.sp-tile.done { background: #2EC66D; color: #fff; }
.sp-tile.used { opacity: .3; pointer-events: none; }
.sp-tile.miss { animation: spShake .4s; background: #FFE1E1; }
@keyframes spShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.sp-tile:disabled:not(.done) { opacity: .45; }

/* Flashcards */
.sp-card { display: block; width: 100%; height: 132px; padding: 0; border: 0; background: none; perspective: 900px; cursor: pointer; }
.sp-card-in { position: relative; display: block; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.3, .4, 1); }
.sp-card.flipped .sp-card-in { transform: rotateY(180deg); }
.sp-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 18px; background: #fff; backface-visibility: hidden; box-shadow: 0 1px 2px rgba(53, 35, 15, .08), 0 16px 30px -18px rgba(53, 35, 15, .5); }
.sp-face b { font: 800 24px/1.1 var(--f-disp); letter-spacing: -.03em; color: #351c08; }
.sp-face i { font: 700 22px/1.3 var(--f-ar); font-style: normal; color: #B26800; }
.sp-back { transform: rotateY(180deg); background: var(--station); }
.sp-back b { color: #fff; }
.sp-back small { font: 700 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

/* Listen */
.sp-listen { text-align: center; }
.sp-eq { display: flex; justify-content: center; align-items: center; gap: 4px; height: 44px; }
.sp-eq i { width: 5px; height: 100%; border-radius: 3px; background: var(--station); transform-origin: center; animation: spEq 1s ease-in-out infinite; }
.sp-eq i:nth-child(3n) { animation-delay: -.3s; background: #FFB300; }
.sp-eq i:nth-child(3n+1) { animation-delay: -.6s; }
.sp-eq i:nth-child(4n) { animation-duration: .8s; }
@keyframes spEq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.sp-karaoke { margin: 12px 0 0; font: 800 22px/1.2 var(--f-disp); letter-spacing: -.03em; color: #c9b9a2; }
.sp-karaoke span { transition: color .25s; }
.sp-karaoke span.on { color: #351c08; }

/* Match */
.sp-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Build it */
.sp-goal { margin: 0 0 10px; font: 600 15px/1.4 var(--f-body); color: #351c08; }
.sp-slots { display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; padding: 6px; margin-bottom: 10px; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--station) 35%, transparent); transition: background-color .3s, border-color .3s; }
.sp-slots.win { background: #2EC66D; border-color: #2EC66D; }
.sp-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 10px; background: #351c08; color: #FFC93C; font: 700 14px var(--f-body); }
.sp-slots.win .sp-chip { background: #fff; color: #157A41; }
.sp-bank { display: flex; flex-wrap: wrap; gap: 8px; }

/* Fill the blank */
.sp-sentence { margin: 0; font: 800 23px/1.3 var(--f-disp); letter-spacing: -.03em; color: #351c08; }
.sp-gap { display: inline-block; min-width: 3.4em; padding: 0 6px; border-radius: 10px; background: #fff; color: #c9b9a2; text-align: center; transition: background-color .3s, color .3s; }
.sp-gap.filled { background: #2EC66D; color: #fff; }
.sp-sentence + .sp-sub { margin: 4px 0 14px; }

/* Scenario */
.sp-chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sp-bub { margin: 0; max-width: 85%; padding: 10px 14px; border-radius: 16px; }
.sp-bub b { display: block; font: 700 15px var(--f-body); }
.sp-bub i { display: block; font-style: normal; font-size: 13px; }
.sp-bub.them { align-self: flex-start; background: #FFE9A8; border-bottom-left-radius: 5px; }
.sp-bub.them i { font-family: var(--f-ar); font-size: 16px; color: #B26800; }
.sp-bub.you { align-self: flex-end; background: var(--station); color: #fff; border-bottom-right-radius: 5px; }
.sp-bub.you i { opacity: .85; }

/* My words */
.sp-saves { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-saves li { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-radius: 14px; background: #fff; }
.sp-saves b { display: block; font: 700 15px var(--f-body); color: #351c08; }
.sp-saves small { font-size: 13px; color: #7a684f; }
.sp-saves button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--station) 10%, #fff); cursor: pointer; }
.sp-saves svg { width: 20px; height: 20px; fill: none; stroke: var(--station); stroke-width: 2; transition: fill .2s; }
.sp-saves button[aria-pressed="true"] svg { fill: #E0424F; stroke: #E0424F; }

@media (max-width: 980px) { .sp-try { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-try, .sp-pop, .sp-eq i, .sp-tile.miss { animation: none !important; } }
body.paused .sp-eq i { animation-play-state: paused; }

/* ===== Our look for the Suite room ===== */
.ebook-suite-tour.sp-plus { background: radial-gradient(60% 50% at 40% 58%, rgba(255, 201, 60, .28), transparent 70%), linear-gradient(180deg, var(--cream, #FFF8EA) 0%, #FFF1D2 100%) !important; padding: clamp(28px, 3vw, 40px) 0 clamp(56px, 6vw, 80px) !important; }
.sp-plus .ms-heading { margin-bottom: 18px !important; }
.sp-plus .ms-heading .eyebrow { margin: 0 0 14px; }
.sp-plus .ms-heading h2 { font-family: var(--f-disp) !important; font-weight: 800 !important; font-size: clamp(40px, 5vw, 72px) !important; line-height: .98 !important; letter-spacing: -.045em !important; color: var(--ink, #2B1500) !important; }
.sp-plus .ms-heading h2 span { color: #F07A1A !important; }
.sp-plus .ms-heading > p:last-child { font-family: var(--f-body) !important; color: var(--ink-soft, #6B5843) !important; }
.sp-plus .ms-toolbar { margin-bottom: 4px !important; }
@keyframes spBeacon { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* The room stays still. Its art is a copy with the outer glow made transparent, so no edge shows against the page. */
.sp-plus .ms-viewport { overflow: visible !important; }
@media (min-width: 701px) {
  .sp-plus .ps-room { aspect-ratio: 3 / 2 !important; }
  .sp-plus .ps-room .ps-room-art { content: url('/theme/20260926/assets/suite-room-clean.webp') !important; object-fit: contain !important; -webkit-mask-image: none !important; mask-image: none !important; }
}

/* Hotspots sit on their objects; each label's tail points at the top of its object. */
.sp-plus .ps-room .rail-item[data-mode=listen] { left: 19% !important; top: 13% !important; width: 18% !important; height: 20% !important; }
.sp-plus .ps-room .rail-item[data-mode=saved] { left: 44% !important; top: 18% !important; width: 12% !important; height: 9% !important; }
.sp-plus .ps-room .rail-item[data-mode=scenario] { left: 60% !important; top: 13% !important; width: 20% !important; height: 20% !important; }
.sp-plus .ps-room .rail-item[data-mode=flashcards] { left: 13% !important; top: 37% !important; width: 19% !important; height: 15% !important; }
.sp-plus .ps-room .rail-item[data-mode=match] { left: 67% !important; top: 41% !important; width: 19% !important; height: 16% !important; }
.sp-plus .ps-room .rail-item[data-mode=blank] { left: 15% !important; top: 60% !important; width: 22% !important; height: 18% !important; }
.sp-plus .ps-room .rail-item[data-mode=build] { left: 61% !important; top: 61% !important; width: 24% !important; height: 17% !important; }
.sp-plus .ps-room .rail-item .rail-item__name { position: absolute !important; left: 50% !important; top: auto !important; right: auto !important; bottom: calc(100% + 7px) !important; translate: -50% 0; transform-origin: 50% 100%; margin: 0 !important; }

/* Room labels: stickers with an icon, a little tail, and a gentle bob */
.sp-plus .ps-room .rail-item__name { gap: 9px !important; padding: 6px 16px 6px 6px !important; border: 0 !important; border-radius: 999px !important; background: #fff !important; color: var(--ink, #2B1500) !important; font: 800 14px/1 var(--f-disp) !important; letter-spacing: -.02em; box-shadow: 0 2px 0 color-mix(in srgb, var(--station) 30%, #fff), 0 14px 24px -12px rgba(73, 37, 12, .55) !important; position: relative; animation: spBob 3.4s ease-in-out infinite; animation-delay: var(--bob, 0s); transition: transform .3s cubic-bezier(.2, 1.35, .35, 1), background-color .2s, color .2s !important; }
.sp-plus .ps-room .rail-item__name::after { content: "" !important; display: block !important; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; border-radius: 0 0 3px 0; transform: rotate(45deg); z-index: -1; opacity: 1 !important; }
/* Labels size to their text; a narrow hotspot (My words) must not squeeze its pill. */
.sp-plus .ps-room .rail-item__name { flex: none !important; max-width: none !important; width: max-content !important; }
/* The bob owns `translate`, so it carries the label's centring offset with it. */
@keyframes spBob { 0%, 100% { translate: -50% var(--ty, 0px); } 50% { translate: -50% calc(var(--ty, 0px) - 5px); } }
.sp-plus .sp-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--station); transition: background-color .2s; }
.sp-plus .sp-ico svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.sp-plus .ps-room .rail-item:hover .rail-item__name, .sp-plus .ps-room .rail-item:focus-visible .rail-item__name { transform: scale(1.08); }
.sp-plus .ps-room .rail-item.is-active .rail-item__name { background: var(--station) !important; color: #fff !important; transform: scale(1.06); box-shadow: 0 0 0 5px color-mix(in srgb, var(--station) 22%, transparent), 0 16px 28px -12px color-mix(in srgb, var(--station) 70%, #000) !important; }
.sp-plus .ps-room .rail-item.is-active .sp-ico { background: #fff; }
.sp-plus .ps-room .rail-item.is-active .sp-ico svg { stroke: var(--station); }
.sp-plus .ps-room-hint { display: none !important; }

/* Station keys: small 3D keys that match the site buttons */
.sp-plus .ms-stations { gap: 10px 10px !important; }
.sp-plus .ms-stations button { --lip: color-mix(in srgb, var(--station) 30%, #EAD9B8); gap: 10px !important; min-height: 50px !important; padding: 6px 12px 6px 6px !important; border: 0 !important; border-radius: 16px !important; background: #fff !important; color: var(--ink, #2B1500) !important; font: 700 14px/1.1 var(--f-body) !important; box-shadow: 0 4px 0 var(--lip), 0 12px 20px -12px rgba(83, 45, 9, .45) !important; transition: transform .18s cubic-bezier(.2, 1.35, .35, 1), box-shadow .18s, background-color .2s, color .2s !important; }
.sp-plus .ms-stations button b { font-weight: 700; }
.sp-plus .ms-stations button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lip), 0 16px 24px -12px rgba(83, 45, 9, .45) !important; }
.sp-plus .ms-stations button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lip) !important; transition-duration: .06s !important; }
.sp-plus .ms-stations button.is-active { --lip: color-mix(in srgb, var(--station) 70%, #000); background: var(--station) !important; color: #fff !important; }
.sp-plus .ms-stations button.is-active .sp-ico { background: #fff; }
.sp-plus .ms-stations button.is-active .sp-ico svg { stroke: var(--station); }
.sp-plus .ms-stations .sp-ico { width: 36px; height: 36px; border-radius: 11px; }
.sp-plus.sp-touring .ms-stations button.is-active::after { height: 4px !important; background: rgba(255, 255, 255, .9) !important; }

/* Info panel */
.sp-plus .ms-info { border-top: 0 !important; padding-top: 22px !important; }
.sp-plus .ms-eyebrow { color: var(--station) !important; letter-spacing: .14em !important; font-family: var(--f-mono) !important; }
.sp-plus .ms-info h3 { font-family: var(--f-disp) !important; font-weight: 800 !important; letter-spacing: -.04em !important; color: var(--ink, #2B1500) !important; }
.sp-plus .ms-info > p { font-family: var(--f-body) !important; color: var(--ink-soft, #6B5843) !important; }
.sp-plus .ms-note { font: 500 14px/1.5 var(--f-body) !important; color: var(--ink-soft, #6B5843) !important; margin-top: 30px !important; }

@media (max-width: 700px) {
  .sp-plus .ps-room .rail-item__name { gap: 6px !important; padding: 4px 11px 4px 4px !important; font-size: 11.5px !important; }
  .sp-plus .ps-room .sp-ico { width: 24px; height: 24px; }
  .sp-plus .ps-room .sp-ico svg { width: 13px; height: 13px; }
  .sp-plus .ms-stations button { font-size: 13px !important; }
}
.sp-plus .ms-heading h2 { margin: 0 0 18px !important; }
.sp-plus .ms-info > p.ms-eyebrow { color: var(--station) !important; font: 700 12px/1.2 var(--f-mono) !important; letter-spacing: .14em !important; }

/* Layout: seven keys in one row above the room; room left, story + try-it right */
.sp-plus .ms-explore { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px) !important; gap: 28px clamp(28px, 4vw, 56px) !important; align-items: center !important; width: min(1320px, calc(100% - 48px)) !important; max-width: none !important; margin: 0 auto !important; padding: 0 !important; }
.sp-plus .ms-explore > .ms-stations { grid-column: 1 / -1; order: -1; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px !important; margin: 0 0 6px; }
.sp-plus .ms-explore > .ms-stations button { flex: 0 0 auto; }
.sp-plus .ms-bottom { align-self: center !important; }
.sp-plus .ms-info { margin-top: 0 !important; padding-top: 0 !important; min-height: 0 !important; }
@media (max-width: 980px) {
  .sp-plus .ms-explore { grid-template-columns: minmax(0, 1fr) !important; width: min(720px, calc(100% - 32px)) !important; gap: 18px !important; }
  .sp-plus .ms-explore > .ms-viewport { order: 0; }
  .sp-plus .ms-explore > .ms-stations { order: 1; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .sp-plus .ms-explore > .ms-stations::-webkit-scrollbar { display: none; }
  .sp-plus .ms-explore > .ms-bottom { order: 2; }
}

/* Phones: the portrait room as a rounded card, stairs cropped off, labels re-anchored to this art. */
@media (max-width: 700px) {
  .sp-plus .ps-room { width: 100% !important; margin: 0 !important; aspect-ratio: 4 / 5 !important; }
  .sp-plus .ps-room .ps-room-art { object-fit: cover !important; object-position: 50% 0 !important; border-radius: 26px !important; mix-blend-mode: normal !important; -webkit-mask-image: none !important; mask-image: none !important; box-shadow: 0 24px 40px -26px rgba(83, 45, 9, .55); }
  .sp-plus .ps-room .ps-focus-art { display: none !important; }
  .sp-plus .ps-room .ps-room-clean--phone, .sp-plus .ps-room .ps-room-motion--phone { clip-path: inset(0 round 26px); }
  /* Phone stations are packed tight, so each label stands on its own station's floor and points up at it. */
  .sp-plus .ps-room .rail-item[data-mode=saved] { left: 40% !important; top: 6% !important; width: 20% !important; height: 18% !important; }
  .sp-plus .ps-room .rail-item[data-mode=listen] { left: 13% !important; top: 20% !important; width: 28% !important; height: 18% !important; }
  .sp-plus .ps-room .rail-item[data-mode=scenario] { left: 64% !important; top: 20% !important; width: 26% !important; height: 18% !important; }
  .sp-plus .ps-room .rail-item[data-mode=flashcards] { left: 8% !important; top: 44% !important; width: 28% !important; height: 18% !important; }
  .sp-plus .ps-room .rail-item[data-mode=match] { left: 65% !important; top: 48% !important; width: 30% !important; height: 15% !important; }
  .sp-plus .ps-room .rail-item[data-mode=blank] { left: 6% !important; top: 67% !important; width: 34% !important; height: 19% !important; }
  .sp-plus .ps-room .rail-item[data-mode=build] { left: 62% !important; top: 71% !important; width: 34% !important; height: 15% !important; }
  .sp-plus .ps-room .rail-item .rail-item__name { --ty: -50%; top: 100% !important; bottom: auto !important; translate: -50% -50%; transform-origin: 50% 0; }
  .sp-plus .ps-room .rail-item__name::after { top: -5px !important; bottom: auto !important; border-radius: 3px 0 0 0 !important; }
}

.sp-pair-column { display: grid; align-content: start; gap: 8px; }
.sp-plus .ms-info { margin-top: 0 !important; padding-top: 0 !important; }
.sp-plus .sp-try { margin-top: 0 !important; }

.sp-audio-play { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 4px auto 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: #1C8FE0; color: #fff; font: 700 14px var(--f-body); cursor: pointer; box-shadow: 0 5px 0 #176eaa; }
.sp-audio-play:hover { transform: translateY(-2px); }
.sp-audio-play:active { transform: translateY(3px); box-shadow: 0 2px 0 #176eaa; }
.sp-audio-play:focus-visible { outline: 3px solid #ffb300; outline-offset: 3px; }

.sp-listen:not(.playing) .sp-eq i { animation: none; transform: scaleY(.18); }

/* Open windows reveal the real section background. */
.sp-plus .ps-room .ps-focus-art { display: none !important; }
.sp-plus .ps-room .ps-room-art { content: url("/theme/20260926/assets/suite-open-windows-desktop.webp") !important; }
@media(max-width:700px) { .sp-plus .ps-room .ps-room-art { content: url("/theme/20260926/assets/suite-open-windows-phone.webp") !important; } }

/* The opening above the shelf reveals the same backdrop as the side windows. */
@media(max-width:700px) {
  .sp-plus .ps-room .ps-room-art {
    -webkit-mask-image: url('/theme/20260926/assets/suite-phone-open-roof.svg') !important;
    mask-image: url('/theme/20260926/assets/suite-phone-open-roof.svg') !important;
    -webkit-mask-size: 100% auto !important;
    mask-size: 100% auto !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
  }
}

/* A continuous cream backing keeps external scenery out of the room openings. */
.sp-plus .ps-room { background: transparent url("/theme/20260926/assets/suite-window-backing-desktop.svg") center top / 100% auto no-repeat !important; }
@media(max-width:700px) { .sp-plus .ps-room { background-image: url("/theme/20260926/assets/suite-window-backing-phone.svg") !important; } }
