/* Generated from design/styles/feed.css. */
#feed-progress {
  font-variant-numeric: tabular-nums;
}
#feed-game {
  height: 100%;
  position: relative;
}
#feed-game iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#feed-game iframe[hidden] {
  display: none;
}
#feed-game > p {
  padding: var(--space-4);
  margin: 0;
  text-align: center;
}
#feed-skip {
  min-height: var(--control-size);
  min-width: var(--control-size);
  margin-inline-start: auto;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 var(--lip-small) 0 var(--plate-lip), var(--shadow-gloss);
}
#feed-skip:hover {
  background: var(--surface-hover);
}
#feed-continue {
  --feed-continue-width-detail: 320px;
  width: min(100%, var(--feed-continue-width-detail));
  touch-action: pan-x;
}
#feed-results {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-6);
}
/* Recap rows are records, not buttons: flat, marked by how each game went. */
#feed-results li {
  --feed-results-tone: var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: var(--stroke-1) solid var(--line);
  border-left: var(--space-1) solid var(--feed-results-tone);
  border-radius: var(--radius-control);
  background: var(--well);
  font-weight: var(--font-weight-bold);
}
#feed-results li[data-state="played"] { --feed-results-tone: var(--success); }
#feed-results li[data-state="partial"] { --feed-results-tone: var(--accent); }
#feed-results li[data-state="failed"] { --feed-results-tone: var(--error); }
#feed-results li[data-state="skipped"] {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}
#feed-results span:last-child {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
#feed-results li:not([data-state="played"]) span:last-child {
  color: var(--muted);
}
#rush-score:has(+ #rush-personal-best:not(:empty)) {
  margin-bottom: var(--space-2);
}
#rush-personal-best {
  margin-bottom: 0;
  color: var(--muted);
}
#rush-personal-best:empty {
  display: none;
}
#rush-copy {
  margin: 0;
}
:is(#feed-copy-status, #rush-copy-status) {
  margin: var(--space-2) 0 0;
}
:is(#feed-copy-status, #rush-copy-status):empty {
  margin: 0;
}
:is(#feed-copy-text, #rush-copy-text) {
  display: block;
  width: 100%;
  margin-top: var(--space-2);
  padding: var(--space-3);
  border: var(--stroke-1) solid var(--line);
  border-radius: var(--radius-control-compact);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  line-height: var(--leading-1-5);
  resize: vertical;
}
#rush-status {
  margin: 0;
  font-size: var(--font-size-13);
}
#rush-clock {
  min-width: 3ch;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#feed-results a {
  display: inline-flex;
  align-items: center;
  min-height: var(--space-8);
}
/* Daily and Rush host layout and clock. */
@media (max-width: 440px) {
  .feed-header {
    padding: var(--space-2) var(--space-4);
  }
}
@media (max-width: 360px) {
  .daily-header {
    flex-wrap: wrap;
  }
}
@media (max-width: 360px) {
  .daily-header #feed-progress {
    order: 4;
    flex-basis: 100%;
    text-align: right;
  }
}
.daily-feed {
  --daily-feed-min-height: 320px;
  --daily-feed-height: 100dvh;
  min-height: var(--daily-feed-min-height);
  height: auto;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto;
}
.feed-header {
  position: relative;
  min-height: var(--space-15);
  gap: 0 var(--space-4);
}
.daily-header {
  align-items: center;
  white-space: nowrap;
}
.feed-header h1 {
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-bold);
  margin: 0;
}
.feed-header p {
  color: var(--muted);
  margin: 0 0 0 auto;
}
.feed-body {
  min-height: 0;
  overflow: auto;
}
#feed-game iframe.feed-loading {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.feed-actions {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-top: 0;
}
.feed-actions > button {
  width: auto;
}
@media (max-width: 440px) {
  .feed-header {
    align-items: center;
    gap: 0 var(--space-2);
  }
}
@media (max-width: 440px) {
  .daily-header h1::before {
    display: none;
  }
}
@media (max-width: 440px) {
  .feed-header h1::before {
    width: var(--space-3);
    height: var(--space-3);
  }
}
.feed-undo {
  position: relative;
}
.rush-progress {
  display: flex;
}
.rush-time {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.rush-time[hidden] {
  display: none;
}
.rush-time:not([data-timed]) .rush-track {
  display: none;
}
.rush-time[data-timed] {
  --rush-time-max-width: 288px;
  flex: 1;
  min-width: 0;
  max-width: var(--rush-time-max-width);
}
.rush-track {
  flex: 1;
  overflow: hidden;
}
.rush-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(var(--rush-remaining));
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .rush-track span {
    transition: transform var(--duration-fast) var(--ease-linear), background-color var(--duration-fast) var(--ease-linear);
  }
}
.feed-actions:has(#rush-status) {
  align-items: center;
  justify-content: space-between;
}
.feed-header h1 a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-size);
  text-decoration: none;
}
.rush-feed #feed-game {
  overflow: hidden;
}
/* A finished game frame stays pinned over its place while it leaves. */
#feed-game iframe.feed-leaving {
  position: fixed;
  z-index: var(--layer-base);
  pointer-events: none;
  transform-origin: 50% 100%;
}
#feed-game:has(> iframe.feed-leaving) {
  overflow-x: clip;
}
@media (max-width: 360px) {
  .feed-actions:has(.rush-time[data-timed]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
@media (max-width: 360px) {
  .rush-time[data-timed] {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
}
.rush-feed .feed-actions {
  margin-inline: auto;
  border-top: 0;
}
.rush-feed .feed-body {
  --feed-body-width: 760px;
  width: min(100%, var(--feed-body-width));
  margin-inline: auto;
}
@media (max-width: 440px) {
  .rush-feed .feed-actions {
    padding: var(--space-2) var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
  }
}
@media (max-width: 440px) {
  .rush-feed .rush-progress {
    flex: 1 1 auto;
  }
}
@media (max-width: 440px) {
  .rush-feed .rush-time[data-timed] {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
  }
}
@media (max-width: 440px) {
  .rush-feed .feed-actions:has(.rush-time[data-timed]) {
    display: flex;
  }
}
#rush-next.rush-skip {
  border-color: transparent;
  margin-top: 0;
}
#rush-next.rush-skip:hover {
  --rush-skip-text-underline-offset: 3px;
  text-decoration: underline;
  text-underline-offset: var(--rush-skip-text-underline-offset);
}
#rush-next.rush-continue {
  margin-top: 0;
}
.feed-actions {
  background: transparent;
  border-color: transparent;
}
.daily-feed > .feed-body {
  width: min(var(--layout-playfield), calc(100% - var(--control-size-large)));
  margin: var(--space-6) auto var(--space-8);
  background: var(--panel);
  border-radius: var(--radius-board);
  border: 0;
  box-shadow: 0 var(--lip-large) 0 var(--panel-lip), var(--shadow-drop);
}
/* On wider screens, Edit games and Skip line up with the game card's edges
   instead of the window's corners. */
@media (min-width: 700px) {
  .daily-feed:not(.rush-feed) > .feed-actions {
    width: min(var(--layout-playfield), calc(100% - var(--control-size-large)));
    margin: calc(var(--space-8) * -1 + var(--space-4)) auto var(--space-6);
    padding-inline: 0;
  }
}
/* A Close-up clue is a magnified crop; a wider card only enlarges the blur. */
.daily-feed:has(iframe[title=zoomrot]:not([hidden])) > :is(.feed-body, .feed-actions, .rush-controls) {
  --feed-body-closeup-width: 520px;
  max-width: var(--feed-body-closeup-width);
}
/* At this width the game paints its compact page; the Rush header matches it. */
.rush-feed:has(iframe[title=zoomrot]:not([hidden])) .feed-actions { background: var(--paper); }
.daily-feed:not(.rush-feed):has(iframe:is([title=skyrot], [title=skylinerot]):not([hidden])) > :is(.feed-body, .feed-actions) {
  max-width: var(--layout-city-photo);
}
.rush-feed .feed-actions {
  width: min(var(--layout-playfield), calc(100% - var(--control-size-large)));
  margin: var(--space-6) auto 0;
  padding: var(--space-4) var(--space-6);
  min-height: var(--space-14);
  border: 0;
  border-radius: var(--radius-board) var(--radius-board) 0 0;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
  background: var(--panel);
  box-shadow: var(--shadow-gloss);
}
.rush-feed > .feed-body {
  width: min(var(--layout-playfield), calc(100% - var(--control-size-large)));
  margin: 0 auto var(--space-6);
  border-top: 0;
  border-radius: 0 0 var(--radius-board) var(--radius-board);
}
.rush-feed:has(.feed-actions[hidden]) > .feed-body {
  border-radius: var(--radius-board);
  margin-top: var(--space-6);
}
.rush-progress {
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  flex-wrap: wrap;
}
.rush-game-name {
  display: inline-flex;
  align-items: center;
  min-height: var(--space-8);
  padding: 0 var(--space-3);
  border-radius: var(--radius-control-compact);
  background: var(--candy-teal);
  color: var(--ink);
  font-size: var(--font-size-15);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  box-shadow: 0 var(--lip-small) 0 var(--candy-teal-lip), var(--shadow-gloss);
}
.streak-blocks {
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
}
.streak-block {
  --streak-block-border-radius: 3px;
  --streak-block-paint: var(--streak);
  --streak-block-shadow-ink: var(--streak-glow);
  --streak-block-shadow-ink-alternate: var(--streak-lip);
  --streak-block-box-shadow-min: 2px;
  width: var(--space-4);
  height: var(--space-5);
  border-radius: var(--streak-block-border-radius);
  animation: streak-land var(--duration-pop) var(--ease-spring) both;
  background: var(--streak-block-paint);
  box-shadow: inset 0 var(--streak-block-box-shadow-min) var(--streak-block-shadow-ink), inset 0 calc(var(--streak-block-border-radius) * -1) var(--streak-block-shadow-ink-alternate);
}
.streak-block:nth-last-child(-n+2) {
  --streak-block-paint: var(--streak-hot);
  --streak-block-shadow-ink: var(--streak-hot-glow);
  --streak-block-shadow-ink-alternate: var(--streak-hot-lip);
  --streak-block-box-shadow-min: 2px;
  --streak-block-box-shadow-fluid: 3px;
  background: var(--streak-block-paint);
  box-shadow: inset 0 var(--streak-block-box-shadow-min) var(--streak-block-shadow-ink), inset 0 calc(var(--streak-block-box-shadow-fluid) * -1) var(--streak-block-shadow-ink-alternate);
}
@keyframes streak-land {
  from { transform: translateY(calc(var(--space-3) * -1)) scale(.4); opacity: 0; }
}
.rush-time:not([data-timed]) {
  display: none;
}
.rush-feed .rush-time[data-timed] {
  max-width: none;
  flex: 1 1 100%;
  order: 5;
  gap: var(--space-3);
}
.rush-track {
  --rush-track-height: 18px;
  background: var(--well);
  height: var(--rush-track-height);
  box-shadow: inset 0 var(--stroke-3) 0 var(--plate-lip);
  border-radius: var(--radius-pill);
}
.rush-track span {
  --rush-track-hue: 120;
  --rush-track-saturation: 65%;
  --rush-track-lightness: 60%;
  --rush-track-fill: hsl(calc(var(--rush-remaining) * var(--rush-track-hue)) var(--rush-track-saturation) var(--rush-track-lightness));
  background: var(--rush-track-fill);
  box-shadow: inset 0 calc(var(--stroke-4) * -1) 0 var(--cast), var(--shadow-gloss);
}
.daily-feed #feed-recap {
  max-width: var(--layout-dialog);
  text-align: center;
  padding: var(--space-8) var(--space-6);
  margin: 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.daily-feed .feed-recap-heading {
  display: contents;
}
.daily-feed #feed-recap h2 {
  align-self: center;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-control);
  background: var(--action);
  color: var(--action-ink);
  font-size: var(--font-size-24);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  margin-bottom: var(--space-6);
  box-shadow: 0 var(--lip) 0 var(--action-lip), var(--shadow-drop), var(--shadow-gloss);
  animation: recap-banner var(--duration-reveal) var(--ease-spring) both;
}
@keyframes recap-banner {
  from { transform: scale(0) rotate(-12deg); }
}
.recap-streak {
  display: grid;
  justify-content: center;
  gap: var(--space-2);
}
.recap-streak > span {
  font-size: var(--font-size-28);
  font-weight: var(--font-weight-black);
  color: var(--success);
}
.rush-breakdown {
  margin-top: var(--space-4);
  text-align: left;
}
.daily-feed #feed-recap {
  display: flex;
  flex-direction: column;
}
.daily-feed .feed-recap-heading h2 {
  order: 0;
}
.recap-streak {
  order: 2;
}
.rush-breakdown {
  order: 4;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes rush-streak {
    0%, 100% {
      transform: scale(1);
    }
    35% {
      transform: scale(1.08);
    }
  }
}
@media (max-width: 900px) {
  body:not(.daily-feed) > .main {
    margin: var(--space-6);
  }
}
@media (max-width: 700px) {
  body:not(.daily-feed) > .main {
    margin: var(--space-4) var(--space-3);
  }
}
@media (max-width: 700px) {
  .daily-feed > .feed-body {
    width: 100%;
    margin-block: 0;
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
  }
}
@media (max-width: 700px) {
  .rush-feed .feed-actions {
    width: 100%;
    margin-top: 0;
    padding: var(--space-2) var(--space-4) var(--space-3);
    gap: var(--space-2);
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
  }
}
@media (max-width: 700px) {
  .rush-feed > .feed-body {
    width: 100%;
    margin-block: 0;
    border-radius: 0;
    background: var(--paper);
  }
}
@media (max-width: 700px) {
  .rush-progress {
    gap: var(--space-2) var(--space-3);
  }
}
@media (max-width: 700px) {
  .rush-game-name {
    font-size: var(--font-size-16);
  }
}
@media (max-width: 700px) {
  .streak-block {
    width: var(--space-2);
    height: var(--space-3);
  }
}
@media (max-width: 700px) {
  .streak-blocks {
    --streak-blocks-gap: 3px;
    gap: var(--streak-blocks-gap);
  }
}
@media (max-width: 700px) {
  .rush-feed .rush-time[data-timed] {
    order: 5;
  }
}
@media (max-width: 360px) {
  .daily-feed > .feed-body {
    width: calc(100% - var(--space-4));
  }
  .rush-feed .feed-actions {
    width: calc(100% - var(--space-4));
  }
}
.rush-feed {
  grid-template-rows: auto auto auto auto;
}
.rush-feed > .feed-body {
  position: relative;
}
.rush-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  width: min(var(--layout-playfield), calc(100% - var(--control-size-large)));
  margin-inline: auto;
  padding: var(--space-2) var(--space-6) max(var(--space-2), env(safe-area-inset-bottom));
}
.rush-controls > button {
  width: auto;
}
body:has(.feed-actions[hidden]) .rush-controls {
  display: none;
}
.rush-controls #rush-next.rush-skip, .rush-controls #rush-review {
  border: 0;
  background: var(--surface-raised);
  color: var(--ink);
  padding: var(--space-2);
  min-width: var(--control-size);
  min-height: var(--control-size);
  border-radius: var(--radius-control);
  box-shadow: 0 var(--lip-small) 0 var(--plate-lip), var(--shadow-gloss);
}
.rush-pause-control {
  min-height: var(--control-size);
  min-width: var(--control-size);
  padding: var(--space-2);
  border: 0;
  background: var(--surface-raised);
  color: var(--ink);
  border-radius: var(--radius-control);
  box-shadow: 0 var(--lip-small) 0 var(--plate-lip), var(--shadow-gloss);
}
.rush-pause-control:hover {
  color: var(--ink);
  background: var(--surface-hover);
}
.rush-pause-surface {
  position: absolute;
  z-index: var(--layer-map-label);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-piece-large);
  background: var(--panel);
}
.rush-pause-surface[data-preview] {
  background: transparent;
  border: 0;
}
.rush-resume-card {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-piece-large);
}
[data-preview] .rush-resume-card {
  background: var(--paper);
}
.rush-resume-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-14);
}
@media (max-width: 700px) {
  .rush-controls {
    width: calc(100% - var(--space-6));
    padding-inline: var(--space-4);
  }
}
#rush-round {
  color: var(--muted);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-black);
  font-variant-numeric: tabular-nums;
}
#rush-streak {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  color: var(--ink);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-control);
}
#rush-clock {
  font-size: var(--font-size-18);
  font-weight: var(--font-weight-black);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
#rush-next.rush-skip {
  color: var(--ink);
}
#rush-next.rush-skip:hover {
  color: var(--ink);
}
#rush-pause:not(.primary), #rush-review {
  background: var(--surface-raised);
}
:is(#rush-score, #feed-score) {
  font-size: var(--font-size-56);
  font-weight: var(--font-weight-black);
  line-height: var(--leading-1);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: 0 var(--lip) 0 var(--plate-lip);
  margin: 0 0 var(--space-6);
  animation: result-slam var(--duration-reveal) var(--ease-spring) var(--duration-reward) both;
}
#rush-replay {
  width: 100%;
  margin-top: var(--space-6);
}
#rush-copy {
  width: 100%;
  margin-top: var(--space-3);
}
:is(#rush-score, #feed-score) {
  order: 1;
}
#feed-summary {
  order: 2;
  margin: calc(var(--space-4) * -1) 0 0;
  color: var(--muted);
}
#feed-streak {
  order: 2;
  margin: var(--space-2) 0 0;
  color: var(--streak);
  font-weight: var(--font-weight-bold);
}
#feed-results {
  order: 3;
  text-align: left;
}
#feed-replay {
  order: 4;
  width: 100%;
}
#feed-edit-recap {
  order: 4;
  width: 100%;
  margin-top: var(--space-3);
}
#feed-copy {
  order: 5;
  width: 100%;
  margin-top: var(--space-3);
}
#feed-copy-status {
  order: 6;
}
#feed-copy-text {
  order: 7;
}
#rush-replay {
  order: 3;
}
#rush-review-recap {
  order: 5;
}
#rush-copy {
  order: 6;
}
#rush-copy-status, #rush-copy-text {
  order: 7;
}
@media (prefers-reduced-motion: no-preference) {
  #rush-streak.rush-milestone {
    animation: rush-streak var(--duration-feedback) var(--ease-out);
  }
}
@media (max-width: 700px) {
  #rush-streak {
    gap: var(--space-2);
  }
}
#rush-next {
  margin-left: auto;
}
.rush-resume-card #rush-pause {
  --rush-pause-width-detail: 136px;
  width: var(--rush-pause-width-detail);
  min-height: var(--control-size);
}
.daily-feed p {
  line-height: normal;
}

/* Long puzzles grow the page; the round clock stays visible while reading. */
.daily-feed:has(iframe[data-content-sized][title]:not([hidden])) {
  height: auto; min-height: var(--daily-feed-height);
}
.daily-feed:has(iframe[data-content-sized][title]:not([hidden])) > .feed-body { overflow: visible; }
.daily-feed:has(iframe[data-content-sized][title]:not([hidden])) #feed-game { height: auto; overflow: visible; border-radius: inherit; }
.rush-feed:has(iframe[data-content-sized][title]:not([hidden])) .feed-actions {
  position: sticky; top: 0; z-index: var(--layer-navigation);
}
iframe[data-content-sized] { border-radius: inherit; }

@media (min-width: 1000px) {
  .daily-feed:has(iframe:is([title=trainrot], [title=maprot]):not([hidden])) > :is(.feed-body, .feed-actions, .rush-controls) {
    width: min(var(--layout-map), calc(100% - var(--control-size-large)));
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  :root[data-daily-feed]:not([data-rush]) .prompt { min-height: 0; padding: var(--space-3); margin: var(--space-2) 0 var(--space-4); }
  :root[data-daily-feed]:not([data-rush]) .flag { --flag-feed-height: 144px; height: var(--flag-feed-height); }
  :root[data-daily-feed]:not([data-rush]) .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  :root[data-daily-feed]:not([data-rush]) .visual-viewport { --visual-viewport-feed-height: 160px; width: 100%; height: var(--visual-viewport-feed-height); aspect-ratio: auto; }
}

/* Keep Rush controls available while the map fills the remaining screen. */
.daily-feed:has(iframe.feed-map-expanded[title]:not([hidden])) {
  position: fixed;
  inset: 0;
  height: var(--daily-feed-height);
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}
.daily-feed:has(iframe.feed-map-expanded[title]:not([hidden])) > :is(.site-masthead, .rush-controls) { display: none; }
.daily-feed:not(.rush-feed):has(iframe.feed-map-expanded[title]:not([hidden])) { grid-template-rows: minmax(0, 1fr); }
.daily-feed:not(.rush-feed):has(iframe.feed-map-expanded[title]:not([hidden])) > .feed-actions { display: none; }
.daily-feed:has(iframe.feed-map-expanded[title]:not([hidden])) > .feed-actions {
  width: 100%;
  margin: 0;
  border-radius: 0;
}
.daily-feed:has(iframe.feed-map-expanded[title]:not([hidden])) > .feed-body {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.daily-feed:has(iframe.feed-map-expanded[title]:not([hidden])) #feed-game { position: static; }
#feed-game iframe.feed-map-expanded {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  max-height: 100%;
  z-index: var(--layer-map-label);
  border-radius: 0;
}
body:has(iframe.feed-map-expanded[title]:not([hidden])) { overflow: hidden; }


/* A paused short question still needs room for the Resume control. */
.rush-feed[data-rush-phase=paused] > .feed-body {
  --feed-body-paused-min-height: 320px;
  min-height: var(--feed-body-paused-min-height);
}

/* A stopped clock preserves the timed round's reference frame during feedback. */
.rush-feed:is([data-rush-phase=feedback],[data-rush-phase=loading]) .rush-track span {
  background: var(--muted);
  transition: none;
}
.rush-feed:is([data-rush-phase=feedback],[data-rush-phase=loading]) #rush-clock { color: var(--muted); }

/* Stable header columns prevent Help and Pause reflow when the streak changes. */
.rush-feed .feed-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.rush-feed .feed-actions:has(.rush-time[data-timed]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.rush-feed .rush-progress { grid-column: 1; grid-row: 1; }
.rush-feed #rush-help { grid-column: 2; grid-row: 1; }
.rush-feed .feed-actions > .action-control:has(#rush-pause) { grid-column: 3; grid-row: 1; }
.rush-feed .rush-time { grid-column: 1 / -1; grid-row: 2; }
.feed-actions > .action-control:has(#feed-skip) { margin-inline-start: auto; }

.rush-feed:has(iframe[title=pricerot]:not([hidden])) > :is(.feed-actions, .feed-body) { width: min(100%, var(--layout-playfield)); margin-block: 0; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
.rush-feed:has(iframe[title=pricerot]:not([hidden])) .feed-actions { padding: 0 var(--space-4) var(--space-2); }
.rush-feed:has(iframe[title=pricerot]:not([hidden])) .rush-controls { width: min(100%, var(--layout-playfield)); padding-block: var(--space-1); }
.rush-feed:has(iframe[title=pricerot]:not([hidden])) .rush-time { gap: var(--space-2); }

.rush-feed:has(iframe[title=pricerot]:not([hidden])) > :is(.feed-actions, .feed-body) { --feed-body-price-width: 520px; max-width: var(--feed-body-price-width); }
.rush-feed:has(iframe:is([title=anagram], [title=numbertarget]):not([hidden])) > :is(.feed-actions, .feed-body, .rush-controls) { --feed-body-quick-width: 480px; max-width: var(--feed-body-quick-width); }


.rush-feed:has(iframe[title=pricerot]:not([hidden]):not([data-rush-answer])) .rush-controls { position: absolute; right: var(--space-4); bottom: var(--space-4); width: var(--control-size); margin: 0; padding: 0; }

.feed-actions #rush-pause { background: transparent; min-width: var(--control-size); min-height: var(--control-size); }

.rush-feed:has(iframe[title=pricerot]:not([hidden])) .feed-actions > .action-control:has(#rush-review) { grid-column: 2; grid-row: 1; }
@media (max-width: 440px) {
  .rush-game-name {
    min-height: var(--space-5);
    padding: 0 var(--space-2);
    font-size: var(--font-size-12);
    letter-spacing: normal;
  }
  .rush-feed .rush-progress {
    row-gap: var(--space-1);
  }
  .streak-block {
    height: var(--space-4);
  }
}
@media (max-width: 360px) {
  .rush-track {
    --rush-track-height: 12px;
  }
  .rush-feed .feed-actions {
    padding-block: var(--space-1) var(--space-2);
  }
}

/* Choosing and ordering the games in the Daily feed. */
.lineup-dialog { overflow-y: auto; }
.lineup-dialog > .game-help-header { position: sticky; top: 0; z-index: var(--layer-help); margin-bottom: var(--space-4); }
.lineup-dialog .game-help-header h2 { flex: 1; }
.lineup-content { padding-right: var(--space-1); }
.lineup-content > .lineup-note { margin-top: 0; }
.lineup-note {
  margin: var(--space-2) 0 var(--space-4);
  color: var(--muted);
}
.lineup-sharing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.lineup-sharing > button { width: auto; margin: 0; }
.lineup-sharing > p { margin: 0; }
.lineup-sharing > textarea { width: 100%; }
.lineup-link-error { margin: 0; padding: var(--space-4) var(--space-6); }
.lineup-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lineup;
}
.lineup-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  counter-increment: lineup;
  border: var(--stroke-1) solid var(--line);
  border-radius: var(--radius-control);
  background: var(--well);
}
.lineup-list li::before {
  content: counter(lineup);
  width: var(--space-5);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lineup-name {
  flex: 1;
  min-width: 0;
  font-weight: var(--font-weight-bold);
  overflow-wrap: anywhere;
}
.lineup-add-title {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-bold);
}
.lineup-add {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.lineup-dialog .lineup-save {
  width: auto;
  flex: none;
  margin: 0;
}
@media (max-width: 700px) {
  .lineup-list li { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, var(--control-size)); }
  .lineup-list li::before { display: none; }
}
