/* Site styles, loaded after w3.css so they win where both apply. */

:root {
  --bg: #f6f7f9;
  --card: #fff;
  --fg: #1d2330;
  --muted: #6b7280;
  --border: #e5e7eb;
  --found: #fff3a0; /* search matches */
  --easy: #d7f5dd;   /* game levels: background, then text */
  --easy-fg: #11602a;
  --medium: #fdefc8;
  --medium-fg: #7a4d00;
  --hard: #fbdcdc;
  --hard-fg: #9b1c1c;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #181b22;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --border: #2a2f3a;
    --found: #5a4b12;
    --easy: #163d22;
    --easy-fg: #8ee4a6;
    --medium: #43350f;
    --medium-fg: #f5cf73;
    --hard: #4a1d1d;
    --hard-fg: #f7a5a5;
  }
}

/* While the websocket connection is lost and being retried (bbs.js sets
   .offline), the whole page fades to sepia, and back when it reconnects. A filter on the root element,
   unlike on any other, leaves position: fixed (the splash) unaffected. */
html {
  transition: filter 1.5s ease;
}

html.offline {
  filter: sepia(1) brightness(0.9);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, sans-serif;
}

body > div > header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

/* Who is logged in, in the header (the whoami template). */
.whoami {
  font-size: 14px;
  min-width: 0;
}

.whoami:empty {
  display: none;
}

body > div > header h1 {
  font-size: 18px;
  margin: 0;
  flex: 1;
}

.pill {
  font-size: 13px;
  color: var(--muted);
}

.status::before {
  content: "●";
  margin-right: 4px;
  color: #dc2626;
}

.status.on::before {
  color: #16a34a;
}

.muted {
  color: var(--muted);
}

/* A centred card for the login, signup and main screens. */
.panel {
  max-width: 440px;
  margin: 48px auto;
  background: var(--card);
}

.panel h2 {
  font-size: 20px;
}

/* W3.CSS assumes a white page; follow the colour scheme instead. */
.w3-modal-content,
.w3-input {
  background: var(--card);
  color: var(--fg);
}

.w3-border,
.w3-border-top {
  border-color: var(--border) !important;
}

/* The splash is shown as soon as it is swapped in. */
.splash {
  display: block;
}

.panel h3 {
  font-size: 16px;
}

/* Who's online: logged-in users are listed under their count. */
#presence .w3-ul li {
  padding: 4px 0;
  border-color: var(--border);
}

#presence .w3-ul li.indent {
  padding-left: 16px;
}

/* Recovery codes and the 2FA key, easy to copy. */
.codes code,
code.secret {
  font: 15px ui-monospace, monospace;
  letter-spacing: 0.05em;
  user-select: all;
}

.codes li {
  border-color: var(--border) !important;
}

/* Signup honeypot: off-screen rather than display: none, which some bots
   check for. */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ALTCHA widget colours follow the page. */
altcha-widget {
  --altcha-color-base: var(--card);
  --altcha-color-text: var(--fg);
  --altcha-color-border: var(--border);
  --altcha-max-width: 100%;
}

/* Wider card for chat and the sysop tables. */
.panel.wide {
  max-width: 900px;
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 16px 0 8px;
}

/* Chat: rooms on the left, messages on the right; stacked on phones. */
.chat-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 360px;
}

@media (max-width: 600px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
}

.chat-rooms {
  border-right: 1px solid var(--border);
  padding: 8px 0;
}

.chat-rooms h3 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 16px 4px;
}

.chat-rooms .current {
  font-weight: bold;
  background: var(--bg) !important;
}

.chat-main {
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#chat-messages {
  flex: 1;
  height: 50vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
}

.msg {
  padding: 2px 0;
  overflow-wrap: anywhere;
}

.msg time {
  color: var(--muted);
  font-size: 12px;
  margin-right: 6px;
}

.msg b {
  margin-right: 4px;
}

.msg.action,
.msg.system {
  font-style: italic;
  color: var(--muted);
}

.chat-form {
  display: flex;
  gap: 8px;
}

.level-form {
  display: flex;
  gap: 4px;
  max-width: 160px;
}

.level-form input {
  padding: 2px 6px;
}

/* Profile pictures, or a letter where there is none. */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
  background: var(--border);
  color: var(--fg);
  font-size: 12px;
  font-weight: bold;
  flex: none;
}

.avatar.large {
  width: 96px;
  height: 96px;
  font-size: 40px;
  margin-right: 16px;
}

.avatar-row {
  display: flex;
  align-items: center;
}

/* The picture section's text column takes the rest of the row, so its
   messages are not squeezed onto several lines. */
.avatar-controls {
  flex: 1;
  min-width: 0;
}

/* Shown only while an upload is sending (htmx adds .htmx-request to the
   hx-indicator element), and taking no room otherwise. */
#avatar-uploading:not(.htmx-request) {
  display: none;
}

.here-user {
  display: flex;
  align-items: center;
  padding: 4px 16px;
}

.online-user {
  display: flex !important;
  align-items: center;
}

/* One-line forms: the text box takes the room the number box and the
   button leave, and buttons never shrink (W3.CSS would clip their text). */
.inline-form {
  display: flex;
  gap: 4px;
  align-items: center;
}

.inline-form input {
  padding: 2px 6px;
  flex: 1;
  width: auto;
  min-width: 6em;
}

.inline-form input.level {
  width: 6em;
  flex: none;
  min-width: 0;
}

.inline-form button {
  flex: none;
}

/* Wide tables scroll sideways inside their section on narrow screens,
   rather than widening the page. */
.table-scroll {
  overflow-x: auto;
}

details.confirm summary {
  list-style: none;
}

details.confirm[open] summary {
  display: none;
}

#notice:empty {
  display: none;
}

.noscript {
  margin: 16px 24px 0;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid #d97706;
  border-radius: 6px;
}

/* ---- Messages and mail ---- */

.badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 12px;
  background: #2196f3;
  color: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 4px 2px 0;
  padding: 0 0 0 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Buttons that read as links in lists (a base, a thread). */
.link-button {
  padding: 0 !important;
  background: none !important;
  color: inherit;
  font-weight: bold;
  text-decoration: underline;
}

.threads tr.unread td {
  font-weight: bold;
}

.post {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.post.new {
  border-left: 3px solid #2196f3;
  padding-left: 8px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.post-tools {
  margin-left: auto;
}

/* Rendered Markdown: tame headings and keep wide content inside. */
.md {
  overflow-wrap: anywhere;
}

.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 {
  font-size: 1.1em;
  margin: 0.6em 0 0.3em;
}

.md h1 {
  font-size: 1.3em;
}

.md blockquote {
  margin: 0.5em 0;
  padding-left: 10px;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.md pre {
  overflow-x: auto;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.md code {
  font-family: ui-monospace, monospace;
}

.md table {
  border-collapse: collapse;
}

.md th, .md td {
  border: 1px solid var(--border);
  padding: 2px 6px;
}

/* The editor: text and preview side by side, stacked on phones. */
.md-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 600px) {
  .md-panes {
    grid-template-columns: 1fr;
  }
}

.md-input {
  font-family: ui-monospace, monospace;
  resize: vertical;
  min-height: 12em;
}

.md-preview {
  padding: 8px;
  min-height: 12em;
  max-height: 60vh;
  overflow-y: auto;
}

/* Sysop screen tabs and forms. */
.tabs .current {
  font-weight: bold;
  border-bottom: 3px solid #2196f3;
}

.base-fields {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .base-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.group-perms {
  max-width: 400px;
  margin-bottom: 8px;
}

.out-url code {
  overflow-wrap: anywhere;
}

.quote-button {
  margin-left: auto;
}

.quote-button + .post-tools {
  margin-left: 0;
}

.clock-select {
  max-width: 360px;
}

/* ---- File base ---- */

.file {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.search-form {
  margin-bottom: 12px;
}

/* Search results: a post found, with its matches marked. */
.hit {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.hit-snippet {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 4px;
}

.hit-snippet mark,
.post.found {
  background: var(--found);
  color: inherit;
}

.file-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Descriptions keep their line breaks; a FILE_ID.DIZ is fixed-width text
   (often with DOS box drawing), so it is shown as such. */
.file-desc {
  white-space: pre-wrap;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.file-desc.diz,
.diz-input {
  font-family: ui-monospace, "DejaVu Sans Mono", monospace;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.25;
}

.file-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 6px;
}

.file-tools select {
  padding: 2px 6px;
  width: auto;
}

.upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.upload-form p {
  flex-basis: 100%;
  margin: 0;
}

.upload-form input[type="file"] {
  flex: 1;
  min-width: 12em;
}

/* Shown only while an upload is sending (htmx adds .htmx-request). */
#upload-progress:not(.htmx-request) {
  display: none;
}

.upload-problem {
  white-space: pre-wrap;
}

/* ---- Statistics: headline numbers and charts ---- */

.viz {
  --series-1: #2a78d6;
  --series-2: #eb6834;
}

@media (prefers-color-scheme: dark) {
  .viz {
    --series-1: #3987e5;
    --series-2: #d95926;
  }
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.kpi-label {
  color: var(--muted);
  font-size: 13px;
}

.chart {
  margin: 0 0 20px;
}

.legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin: 4px 0;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-svg text {
  font-size: 11px;
  font-family: inherit;
}

.chart-svg .axis {
  fill: var(--muted);
}

.chart-svg .value,
.chart-svg .end-label {
  fill: var(--fg);
}

.chart-svg .grid {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-svg .baseline {
  stroke: var(--muted);
  stroke-width: 1;
}

.bar.series-1, .dot.series-1 { fill: var(--series-1); }
.bar.series-2, .dot.series-2 { fill: var(--series-2); }
.line.series-1 { stroke: var(--series-1); }
.line.series-2 { stroke: var(--series-2); }

.line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* End markers wear a 2px ring of the surface, so they stand off the line. */
.dot {
  stroke: var(--card);
  stroke-width: 2;
}

.chart-svg .hit {
  fill: transparent;
}

.chart-svg .hairline {
  stroke: var(--muted);
  stroke-width: 1;
  visibility: hidden;
}

.chart-svg .mark:hover .hairline,
.chart-svg .mark:focus .hairline {
  visibility: visible;
}

.chart-svg .mark:hover .bar,
.chart-svg .mark:focus .bar {
  opacity: 0.8;
}

.chart-svg .mark:focus {
  outline: none;
}

.chart-table summary {
  cursor: pointer;
  color: var(--muted);
}

/* The hover readout (bbs.js): the value leads, the label follows. */
#chart-tip {
  position: fixed;
  z-index: 10;
  pointer-events: none;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#chart-tip .tip-label {
  color: var(--muted);
  font-size: 12px;
}

.acl-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  margin: 6px 0;
}

.acl-groups label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

/* ---- Doors (door.go) ---- */

.door-list {
  display: flex;
  flex-direction: column;
}

.door-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.door-row p {
  margin: 2px 0 0;
}

/* The door's box. A door's markup stays inside it, painted and laid out
   there (even position: fixed), so it cannot cover the rest of the page.
   Widgets doors can use follow: the card table and game clock, and
   the level badges and rules pop-up. */
.panel.door-panel {
  max-width: 980px;
  margin: 24px auto;
}

.door {
  position: relative;
  contain: paint;
  overflow: hidden;
}

.door-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 16px;
}

/* ---- Card games (doors: webdoor/cards) ---- */

.game-front p {
  margin: 6px 0;
}

/* "Leaving keeps this game", beside the board's bottom button. */
.game-kept {
  margin-left: 12px;
}

/* A game's level, and its rules pop-up. */
.level {
  display: inline-block;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: normal;
  vertical-align: middle;
}

.level.easy {
  background: var(--easy);
  color: var(--easy-fg);
}

.level.medium {
  background: var(--medium);
  color: var(--medium-fg);
}

.level.hard {
  background: var(--hard);
  color: var(--hard-fg);
}

.rules-button {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: normal !important;
}

.rules-pop {
  width: min(40em, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.rules-pop::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.rules-pop h3 {
  margin-top: 0;
}

.rules-pop h4 {
  margin: 14px 0 4px;
  font-size: 1em;
}

.rules-pop ul {
  padding-left: 1.2em;
  margin: 0;
}

.rules-pop li + li {
  margin-top: 4px;
}

.game-current {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 8px 16px;
}

.game-current p {
  margin: 0;
}

.deal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.deal-form select,
.deal-form input {
  width: auto;
  padding: 4px 8px;
}

.deal-form input {
  width: 7em;
}

/* The board: a felt table. Card sizes follow the board's width (a
   container), so every column fits: --cw is a card's width. */
.game-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.game-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.game-clock {
  font-variant-numeric: tabular-nums;
}

.board {
  --felt: #1f6b3a;
  --gap: clamp(3px, 1.2cqw, 12px);
  container-type: inline-size;
  background: radial-gradient(ellipse at 50% 30%, #2a8049, var(--felt));
  padding: clamp(6px, 2vw, 16px);
  min-height: 420px;
  user-select: none;
  -webkit-user-select: none;
}

@media (prefers-color-scheme: dark) {
  .board {
    --felt: #123d22;
    background: radial-gradient(ellipse at 50% 30%, #1a5530, var(--felt));
  }
}

.board-top,
.board-tab,
.board-bottom,
.board-peaks {
  --cw: min(96px, calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols)));
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cw));
  gap: var(--gap);
  justify-content: center;
  align-items: start;
}

.board-top {
  margin-bottom: calc(var(--cw) * 0.3);
}

/* Tri Peaks: the peaks on a grid of half-card columns, each row of cards
   overlapping the one above; the stock and waste below. */
.board-peaks {
  grid-template-columns: repeat(calc(var(--cols) * 2), calc((var(--cw) - var(--gap)) / 2));
  grid-template-rows: repeat(3, calc(var(--cw) * 0.55)) calc(var(--cw) * 1.4); /* the bottom row keeps its height when cleared */
  margin-bottom: calc(var(--cw) * 0.3);
}

/* Pyramid: seven rows, each half over the one above. */
.board.pyramid .board-peaks {
  grid-template-rows: repeat(6, calc(var(--cw) * 0.5)) calc(var(--cw) * 1.4);
}

.pile.peak {
  min-height: 0;
}

.board-bottom {
  margin-top: calc(var(--cw) * 0.2);
}

.pile {
  display: flex;
  min-height: calc(var(--cw) * 1.4);
  border-radius: calc(var(--cw) * 0.08);
}

.pile.tab {
  flex-direction: column;
  padding-bottom: calc(var(--cw) * 0.4); /* room to drop on */
}

/* Cards in a column overlap, showing a strip of each: less of the face-
   down ones. */
.tab .card + .card {
  margin-top: calc(var(--cw) * -1.4 + var(--cw) * 0.3);
}

.tab .card.back + .card {
  margin-top: calc(var(--cw) * -1.4 + var(--cw) * 0.14);
}

/* King Albert: the seven reserve cards fan across five columns. */
.reserve .card + .card {
  margin-left: calc((4 * var(--cw) + 4 * var(--gap)) / 6 - var(--cw));
}

/* Klondike draw three: the waste fans out to the right. */
.waste .card + .card {
  margin-left: calc(var(--cw) * -0.7);
}

/* The card beneath a waste or foundation's top card(s), hidden under
   them, so that picking up the top one shows it. */
.pile .card.under + .card {
  margin-left: calc(var(--cw) * -1);
}

.card {
  position: relative;
  flex: none;
  width: var(--cw);
  height: calc(var(--cw) * 1.4);
  border-radius: calc(var(--cw) * 0.08);
  background: #fffdf8;
  border: 1px solid #8d969f;
  color: #1b1b1b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-family: Georgia, "Times New Roman", serif;
  touch-action: none;
  padding: 0;
}

.card.red {
  color: #c4161c;
}

.card[data-drag] {
  cursor: grab;
}

.card:focus-visible,
.stock-draw:focus-visible {
  outline: 3px solid #ffd54f;
  outline-offset: 1px;
}

.card .corner {
  position: absolute;
  top: 3%;
  left: 6%;
  font-size: calc(var(--cw) * 0.2);
  line-height: 1;
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.card .corner .cs {
  font-weight: normal;
  margin-left: 0.05em;
}

.card .corner.end {
  top: auto;
  left: auto;
  bottom: 3%;
  right: 6%;
  transform: rotate(180deg);
}

.card .pip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--cw) * 0.52);
  line-height: 1;
}

.card .pip.court {
  inset: 22% 20%;
  flex-direction: column;
  border: 1px solid currentColor;
  border-radius: calc(var(--cw) * 0.05);
  font-size: calc(var(--cw) * 0.34);
  font-weight: bold;
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.card .pip.court small {
  font-size: 0.6em;
  font-weight: normal;
}

.card.back {
  background: repeating-linear-gradient(45deg, #1e4f8f 0 3px, #2c63ad 3px 6px);
  border: calc(var(--cw) * 0.05) solid #fffdf8;
  outline: 1px solid #8d969f;
  outline-offset: -1px;
}

.stock-draw {
  cursor: pointer;
}

.stock-count {
  position: absolute;
  right: 4%;
  bottom: 3%;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font: 11px/1.4 system-ui, sans-serif;
}

/* An empty pile: a dashed outline, with what may go there. */
.slot {
  width: var(--cw);
  height: calc(var(--cw) * 1.4);
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: calc(var(--cw) * 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: calc(var(--cw) * 0.36);
  background: none;
  padding: 0;
}

.slot:disabled {
  cursor: default;
}

/* While dragging: where the cards may go, and where they would land. */
.pile.drop-ok > :last-child {
  box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.75);
}

.pile.drop-over > :last-child {
  box-shadow: 0 0 0 4px #ffd54f, 0 0 14px #ffd54f;
}

.drag-layer {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
}

.drag-layer .card {
  position: absolute;
  left: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.drag-layer.back-home {
  transition: transform 0.18s ease-out;
}

.card.nope {
  animation: nope 0.3s;
}

@keyframes nope {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .card.nope { animation: none; }
  .drag-layer.back-home { transition: none; }
}
