/* Pinned stories (How it works, Features): device frames, role screens, sequenced rows,
   and the How it works step line in the navbar. Loads after components.css. Tokens only.
   Motion: transform and opacity, --ease-out for arrivals, --ease-in-out for the line fill.
   Reduced motion: everything shows in its final state, nothing moves. */

/* ---------- Story refinements ---------- */
.ct-story__panel { transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out), visibility 0s linear 450ms; }
.ct-story__step { display: inline-flex; align-items: center; gap: var(--space-2); }
.ct-story__step .ct-icon { width: 1.15em; height: 1.15em; }
.ct-story__visual { min-width: 0; display: flex; justify-content: center; }

/* How it works, pinned: the navbar step line replaces the side tabs, so the screen gets the room. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .ct-story--how .ct-story__sticky { padding-top: calc(var(--space-8) + var(--space-6)); gap: var(--space-4); }
  .ct-story--how .ct-story__tabs { display: none; }
  .ct-story--how .ct-story__body { grid-template-columns: minmax(0, 1fr); }
  .ct-story--how .ct-story__stage { min-height: min(34rem, calc(100vh - 15rem)); }
  /* The frame always fits under the step line: phone and tablet take their height from the space
     left in the pinned screen (heading, step line and caption take about 17rem), not a fixed shape. */
  .ct-story--how .ct-frame--phone .ct-frame__body { aspect-ratio: auto; height: clamp(26rem, calc(100vh - 17rem), 32rem); }
  .ct-story--how .ct-frame--tablet .ct-frame__body { aspect-ratio: auto; max-height: calc(100vh - 17rem); }
  .ct-story--how .ct-story__panel { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-7); }
  .ct-story--how .ct-story__copy h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
  .ct-story--how .ct-story__copy p { font-size: var(--text-md); }
  .ct-story--features .ct-story__panel { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-5); }
}
/* Short screens: the step 4 phone shows all three Care cards at 700px tall. */
@media (min-width: 900px) and (max-height: 720px) and (prefers-reduced-motion: no-preference) {
  .ct-story--how .ct-frame--phone .ct-frame__screen { zoom: 0.94; }
}
@media (min-width: 900px) and (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  .ct-story--how .ct-story__panel { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--space-5); }
}

/* ---------- Device frames ---------- */
.ct-frame { margin: 0 auto; width: 100%; max-width: 44rem; display: flex; flex-direction: column; align-items: center; }
.ct-frame__body {
  position: relative; background: var(--color-ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-ink-inverse) 18%, transparent), var(--shadow-2);
}
.ct-frame__screen {
  position: relative; display: flex; flex-direction: column; overflow: hidden; container-type: inline-size;
  background: var(--color-surface); color: var(--color-ink); text-align: left; line-height: var(--leading-tight);
}
.ct-frame__caption {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4);
  font-size: var(--text-sm); color: color-mix(in srgb, var(--color-ink-inverse) 75%, transparent);
}
.ct-frame__caption .ct-icon { color: var(--color-accent); }

/* Phone: rounded body (~9:19.5), an even bezel, side buttons and an island at the top. */
.ct-frame--phone .ct-frame__body { width: min(100%, 17.5rem); aspect-ratio: 9 / 19.5; padding: var(--space-2); border-radius: 2.75rem; display: flex; flex-direction: column; }
.ct-frame--phone .ct-frame__body::before,
.ct-frame--phone .ct-frame__body::after {
  content: ""; position: absolute; width: 3px; border-radius: var(--radius-sm); background: var(--color-ink); pointer-events: none;
}
.ct-frame--phone .ct-frame__body::before { left: -3px; top: 22%; height: 14%; }
.ct-frame--phone .ct-frame__body::after { right: -3px; top: 26%; height: 10%; }
.ct-frame--phone .ct-frame__screen { flex: 1; border-radius: 2.25rem; }
.ct-frame__island {
  position: absolute; z-index: 1; top: calc(var(--space-2) + 0.5rem); left: 50%;
  width: 4.75rem; height: 1.3rem; border-radius: var(--radius-pill); background: var(--color-ink); transform: translateX(-50%);
}
/* Keypad phone: dark body, a small display and four keys. */
.ct-frame--keypad .ct-frame__body { width: min(100%, 17rem); padding: var(--space-5) var(--space-4); border-radius: 2.25rem; }
.ct-frame--keypad .ct-frame__screen { background: transparent; color: var(--color-ink-inverse); overflow: visible; gap: var(--space-3); }
/* Laptop: screen in a black lid, hinge and a wider thin base. */
.ct-frame--laptop .ct-frame__body { width: 90%; padding: var(--space-4) var(--space-3) var(--space-3); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-sm); }
.ct-frame--laptop .ct-frame__body::before,
.ct-frame--tablet .ct-frame__body::before {
  content: ""; position: absolute; width: 0.3rem; height: 0.3rem; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink-inverse) 22%, transparent);
}
.ct-frame--laptop .ct-frame__body::before { top: 0.4rem; left: 50%; transform: translateX(-50%); }
.ct-frame--laptop .ct-frame__screen { border-radius: var(--radius-sm); }
.ct-frame__base {
  position: relative; display: block; width: 100%; height: 0.75rem;
  background: var(--color-border-strong); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--color-surface-sunken);
}
.ct-frame__base::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 18%; height: 0.3rem; transform: translateX(-50%);
  background: color-mix(in srgb, var(--color-ink) 32%, var(--color-border-strong)); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
/* Tablet: landscape (~4:3), even bezel, camera on the left edge. */
.ct-frame--tablet .ct-frame__body { width: 100%; aspect-ratio: 4 / 3; padding: var(--space-4); border-radius: 1.75rem; display: flex; flex-direction: column; }
.ct-frame--tablet .ct-frame__body::before { left: 0.55rem; top: 50%; transform: translateY(-50%); }
.ct-frame--tablet .ct-frame__screen { flex: 1; border-radius: var(--radius-md); }

/* ---------- Screen pieces ---------- */
.ct-scr__status {
  display: flex; justify-content: space-between; align-items: center; height: 2.4rem; padding: 0 var(--space-5) 0 var(--space-6);
  font-size: var(--text-xs); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums;
}
.ct-scr__signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.65rem; }
.ct-scr__signal span { width: 3px; border-radius: 1px; background: var(--color-ink); }
.ct-scr__signal span:nth-child(1) { height: 40%; } .ct-scr__signal span:nth-child(2) { height: 60%; }
.ct-scr__signal span:nth-child(3) { height: 80%; } .ct-scr__signal span:nth-child(4) { height: 100%; }
.ct-scr__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); background: var(--color-surface);
}
.ct-scr__bar .ct-status { font-size: var(--text-xs); padding: 2px var(--space-2); }
.ct-scr__title { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.ct-scr__title > .ct-icon { color: var(--color-primary); }
.ct-scr__title > span { min-width: 0; }
.ct-scr__title strong { display: block; font-size: var(--text-sm); }
.ct-scr__title strong + span { display: block; font-size: var(--text-xs); color: var(--color-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-scr__clock { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-xs); color: var(--color-ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-scr__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); }
.ct-scr__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); align-items: start; }
@container (min-width: 28rem) { .ct-scr__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ct-scr__col { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.ct-scr__label { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-ink-muted); }
.ct-scr__label .ct-icon { color: var(--color-primary); }

/* Rows from components.css, sized for a screen. */
.ct-frame .ct-ui__row { padding: var(--space-2); font-size: var(--text-xs); }
.ct-frame .ct-ui__row > span:first-child .ct-icon { color: var(--color-primary); }
.ct-frame .ct-ui__ok > span:first-child .ct-icon { color: inherit; }
.ct-frame .ct-ui__bubble { font-size: var(--text-sm); max-width: 94%; }
.ct-frame .ct-ui__bubble span[lang] { display: block; margin: 0; font-size: inherit; color: inherit; }
 .ct-frame .ct-ui__row .ct-status { font-size: var(--text-xs); padding: 2px var(--space-2); }
.ct-frame .ct-ui__wave { height: 0.9rem; }
.ct-scr__week { gap: 3px; }
.ct-scr__week > span { min-height: 2.5rem; justify-content: center; }
.ct-scr__week span span { min-height: 0; padding: 0; border-radius: 0; background: none; }
.ct-scr__week .ct-swap { display: inline-grid; }
.ct-scr__today { box-shadow: inset 0 0 0 1.5px var(--color-primary); }
.ct-scr__today .ct-swap__b { color: var(--status-later); }

/* Care cards inside a screen: one compact row, no bobbing. */
.ct-frame .ct-care-card {
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "emoji body meta";
  gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius-md); box-shadow: none;
}
.ct-frame .ct-care-card__emoji { font-size: var(--text-md); animation: none; }
.ct-frame .ct-care-card__body strong { font-size: var(--text-xs); }
.ct-frame .ct-care-card__body span { font-size: var(--text-xs); line-height: var(--leading-tight); }
.ct-frame .ct-care-card__meta time { display: none; }
.ct-frame .ct-care-card__meta .ct-status { font-size: var(--text-xs); padding: 2px var(--space-2); }
.ct-scr__cards { display: flex; flex-direction: column; gap: var(--space-1); }

/* 1. The incoming call */
.ct-scr__body--call { flex: 1; padding-top: var(--space-3); }
.ct-scr__caller { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); padding-bottom: var(--space-2); text-align: center; }
.ct-scr__avatar { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: var(--radius-pill); background: var(--color-primary-soft); font-size: var(--text-lg); }
.ct-scr__caller strong { font-size: var(--text-lg); }
.ct-scr__callstate { font-size: var(--text-xs); color: var(--color-ink-muted); }
.ct-scr__callstate .ct-swap { justify-items: center; }
.ct-scr__callstate .ct-swap > span { display: inline-flex; align-items: center; gap: var(--space-1); }
.ct-scr__callstate .ct-swap__b { color: var(--status-taken); font-weight: var(--weight-bold); }
.ct-scr__callstate .ct-icon { width: 1.1em; height: 1.1em; }
.ct-scr__keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.ct-scr__key { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); font-size: var(--text-xs); color: var(--color-ink-muted); }
.ct-scr__key .ct-icon { width: 2.5rem; height: 2.5rem; padding: 0.7rem; border-radius: var(--radius-pill); background: var(--color-surface-sunken); color: var(--color-ink); }
.ct-scr__key--end .ct-icon { background: var(--status-urgent); color: var(--color-ink-inverse); }

/* 2. Nurse board */
.ct-scr__metric {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n label" "n pill"; gap: 2px var(--space-3); align-items: center;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--status-taken-bg);
}
.ct-scr__metric strong { grid-area: n; font-size: var(--text-3xl); line-height: 1; color: var(--status-taken); font-variant-numeric: tabular-nums; }
.ct-scr__metric > span:not(.ct-status) { grid-area: label; font-size: var(--text-sm); font-weight: var(--weight-bold); }
.ct-scr__metric .ct-status { grid-area: pill; justify-self: start; font-size: var(--text-xs); padding: 2px var(--space-2); background: var(--color-surface); }
.ct-scr__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.ct-scr__pt { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.ct-scr__pt + .ct-scr__pt { border-top: 1px solid var(--color-border); }
.ct-scr__pt > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.ct-scr__pt > span:first-child span { font-size: var(--text-xs); color: var(--color-ink-muted); }
.ct-scr__pt .ct-status { font-size: var(--text-xs); padding: 2px var(--space-2); }
.ct-scr__pt--live::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--status-taken-bg); opacity: 0; transition: opacity 400ms var(--ease-out); }
.ct-scr__readback { padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-bg); }

/* 3. Rules in order, and the flag */
.ct-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-rule { position: relative; isolation: isolate; display: flex; align-items: center; gap: var(--space-2); padding: 3px var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-xs); }
.ct-rule__n { display: grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem; border-radius: var(--radius-pill); background: var(--color-surface-sunken); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.ct-rule__name { position: relative; font-weight: var(--weight-medium); }
.ct-rule__word { color: var(--color-ink-muted); white-space: nowrap; }
.ct-rule__tag { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-1); text-align: right; }
.ct-rule--win::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--status-urgent-bg); opacity: 0; transition: opacity 400ms var(--ease-out); }
.ct-rule--win .ct-rule__tag { color: var(--status-urgent); font-weight: var(--weight-bold); }
.ct-rule--lose .ct-rule__tag { color: var(--color-ink-muted); }
.ct-rule--lose .ct-rule__name::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 1.5px; background: var(--color-ink-muted);
  transform: scaleX(0); transform-origin: left center; transition: transform 450ms var(--ease-in-out);
}
.ct-scr__flag { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--status-urgent); border-left-width: 4px; border-radius: var(--radius-md); }
.ct-scr__flaghead { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.ct-scr__flaghead .ct-status { font-size: var(--text-xs); padding: 2px var(--space-2); }
.ct-scr__flaghead time { margin-left: auto; font-size: var(--text-xs); color: var(--color-ink-muted); }
.ct-scr__flag p { margin: 0; font-size: var(--text-xs); color: var(--color-ink-muted); }
.ct-scr__flag .ct-quote { font-size: var(--text-sm); font-weight: var(--weight-medium); }

/* ---------- Rows arrive in turn when their step becomes active ---------- */
.ct-seq { opacity: 0; transform: translateY(10px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.ct-story__panel.is-active .ct-seq { opacity: 1; transform: none; }
/* A value that changes in place: the old one lifts away, the new one rises in. */
.ct-swap { display: inline-grid; justify-items: end; align-items: center; vertical-align: middle; }
.ct-swap > span { grid-area: 1 / 1; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.ct-swap__b { opacity: 0; transform: translateY(6px); }
.ct-story__panel.is-active .ct-swap__a { opacity: 0; transform: translateY(-6px); }
.ct-story__panel.is-active .ct-swap__b { opacity: 1; transform: none; }
.ct-story__panel.is-active .ct-scr__pt--live::before,
.ct-story__panel.is-active .ct-rule--win::before { opacity: 1; }
.ct-story__panel.is-active .ct-rule--lose .ct-rule__name::after { transform: scaleX(1); }
/* Timing: the call is answered, then the question, the reply, what was heard, and so on. */
.ct-story__panel.is-active [data-d="1"], .ct-story__panel.is-active [data-d="1"] > span { transition-delay: 100ms; }
.ct-story__panel.is-active [data-d="2"], .ct-story__panel.is-active [data-d="2"] > span { transition-delay: 450ms; }
.ct-story__panel.is-active [data-d="3"], .ct-story__panel.is-active [data-d="3"] > span { transition-delay: 850ms; }
.ct-story__panel.is-active [data-d="4"], .ct-story__panel.is-active [data-d="4"] > span { transition-delay: 1250ms; }
.ct-story__panel.is-active [data-d="5"], .ct-story__panel.is-active [data-d="5"] > span { transition-delay: 1650ms; }
.ct-story__panel.is-active [data-d="6"], .ct-story__panel.is-active [data-d="6"] > span { transition-delay: 2050ms; }
.ct-story__panel.is-active .ct-scr__pt--live::before { transition-delay: 1650ms; }
.ct-story__panel.is-active .ct-rule--win::before,
.ct-story__panel.is-active .ct-rule--lose .ct-rule__name::after { transition-delay: 850ms; }

/* ---------- Section step line (How it works, inside #how section) ---------- */
.ct-stepline {
  display: flex; justify-content: center; width: 100%; margin-top: var(--space-3);
}
.ct-stepline__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; }
.ct-stepline__item { display: inline-flex; align-items: center; min-width: 0; }
.ct-stepline__btn {
  display: inline-flex; align-items: center; gap: var(--space-2); flex: none; min-height: var(--tap-min); padding: 0 var(--space-3) 0 var(--space-2);
  border: 1px solid color-mix(in srgb, var(--color-ink-inverse) 18%, transparent); border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink-inverse) 6%, transparent); color: color-mix(in srgb, var(--color-ink-inverse) 78%, transparent);
  font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.ct-stepline__btn:hover { color: var(--color-ink-inverse); background: color-mix(in srgb, var(--color-ink-inverse) 14%, transparent); }
.ct-stepline__btn:active { transform: scale(0.97); }
.ct-stepline__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ct-stepline__icon {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--color-ink-inverse) 24%, transparent); background: transparent; color: var(--color-ink-inverse);
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease, transform 300ms var(--ease-out);
}
.ct-stepline__icon .ct-icon { width: 1rem; height: 1rem; }
.ct-stepline__item.is-done .ct-stepline__icon { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-ink-inverse); }
.ct-stepline__item.is-active .ct-stepline__btn { background: var(--color-surface); border-color: var(--color-surface); color: var(--color-ink); font-weight: var(--weight-bold); }
.ct-stepline__item.is-active .ct-stepline__icon { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-ink-inverse); }
.ct-stepline__link { display: inline-flex; align-items: center; margin: 0 var(--space-2); color: color-mix(in srgb, var(--color-ink-inverse) 55%, transparent); font-size: var(--text-sm); }
.ct-stepline__fill { display: none; }
.ct-stepline__item.is-done .ct-stepline__link { color: var(--color-accent); }

/* ---------- Features grid (six role tiles with Open links) ---------- */
.ct-roles-grid {
  list-style: none; margin: var(--space-6) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5);
}
.ct-role-tile {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--color-bg); border: 1px solid var(--color-border);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.ct-role-tile:hover { border-color: var(--color-primary); box-shadow: var(--shadow-1); }
.ct-role-tile__head { display: flex; align-items: center; gap: var(--space-3); }
.ct-role-tile__icon {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none;
  border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary);
}
.ct-role-tile__head h3 { font-size: var(--text-lg); margin: 0; }
.ct-role-tile__lead { font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--color-ink); margin: 0; }
.ct-role-tile__points {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--color-ink-muted); flex: 1;
}
.ct-role-tile__points li { display: flex; align-items: flex-start; gap: var(--space-2); }
.ct-role-tile__points .ct-icon { color: var(--status-taken); flex: none; margin-top: 2px; }
.ct-role-tile__open {
  display: inline-flex; align-items: center; gap: var(--space-2); align-self: flex-start;
  min-height: var(--tap-min); padding: 0 var(--space-3); margin-top: var(--space-1);
  border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border-strong);
  color: var(--color-primary); font-size: var(--text-sm); font-weight: var(--weight-bold); text-decoration: none;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.ct-role-tile__open:hover { background: var(--color-primary-soft); border-color: var(--color-primary); }
@media (max-width: 999px) { .ct-roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .ct-roles-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Stacked (under 900px) and reduced motion ---------- */
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .ct-story__visual { width: 100%; }
  .ct-frame--laptop .ct-frame__body { width: 96%; }
  .ct-frame--tablet .ct-frame__body { aspect-ratio: auto; }
}
@media (max-width: 599px) {
  .ct-frame--tablet .ct-frame__body { padding: var(--space-3); border-radius: var(--radius-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .ct-seq, .ct-swap__b { opacity: 1; transform: none; transition: none; }
  .ct-swap__a { opacity: 0; transition: none; }
  .ct-scr__pt--live::before, .ct-rule--win::before { opacity: 1; transition: none; }
  .ct-rule--lose .ct-rule__name::after { transform: none; transition: none; }
  .ct-frame .ct-ui__wave span { animation: none; }
}
