/* Chestnut Solitaire. Everything is prefixed cs- so it can't collide with the site chrome. */
body {
  margin: 0;
  background: var(--am-bg, #15110e);
  color: var(--am-text, #f3eadf);
  font-family: var(--am-font, system-ui, sans-serif);
}

.page {
  margin: 0;
  padding: 0;
}

.cs {
  --felt-in: #2f7048;
  --felt-out: #173f28;
  --ink: #f7efe2;
  --muted: #cdbfae;
  --gold: #ffcf6e;
  --panel: #221b15;
  --panel-2: #2d241c;
  --line: #4a3d30;
  position: relative;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: 'top' 'table' 'bar';
  height: calc(100vh - 49px); /* the site header: 48px and a 1px border */
  height: calc(100dvh - 49px);
  min-height: 380px;
  max-height: 1300px;
  overflow: hidden;
  color: var(--ink);
  background: radial-gradient(ellipse 120% 90% at 50% 30%, var(--felt-in), var(--felt-out) 78%);
  font-family: var(--am-font, system-ui, sans-serif);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.cs *,
.cs *::before,
.cs *::after {
  box-sizing: border-box;
}
.cs [hidden] {
  display: none !important;
}

.cs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Top bar ---------- */
.cs-top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.26);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.cs-title {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.cs-title strong {
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cs-title span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cs-readout {
  display: flex;
  flex: none;
  gap: 12px;
}
.cs-read {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
  line-height: 1.15;
}
.cs-lbl {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cs-read b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.cs-toggles {
  display: flex;
  flex: none;
  gap: 4px;
}

/* ---------- Buttons ---------- */
.cs-btn,
.cs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.3);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.cs-btn:hover,
.cs-icon:hover {
  background: rgba(0, 0, 0, 0.42);
}
.cs-btn:focus-visible,
.cs-icon:focus-visible,
.cs-dialog button:focus-visible,
.cs-dialog input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.cs-btn:disabled {
  opacity: 0.42;
  cursor: default;
}
.cs-btn svg,
.cs-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-menu-btn {
  flex: none;
  gap: 6px;
  height: 38px;
  padding: 0 12px 0 9px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.cs-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}
.cs-icon .cs-off {
  display: none;
}
.cs-icon[aria-pressed='false'] {
  color: var(--muted);
  opacity: 0.8;
}
.cs-icon[aria-pressed='false'] .cs-off {
  display: inline;
}
.cs-icon[aria-pressed='false'] .cs-on {
  display: none;
}

/* ---------- Bottom bar ---------- */
.cs-bar {
  grid-area: bar;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.26);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.cs-bar .cs-btn {
  flex: 0 1 92px;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  height: 52px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Table ---------- */
.cs-table {
  grid-area: table;
  position: relative;
  min-height: 0;
  overflow: hidden;
  outline: none;
  touch-action: none;
}
.cs-table:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 207, 110, 0.55);
}
.cs-layer {
  position: absolute;
  inset: 0;
}
.cs-card,
.cs-slot,
.cs-kcursor {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cw, 60px);
  height: var(--ch, 84px);
  border-radius: calc(var(--cw, 60px) * 0.075);
}
.cs-card {
  background-color: #fbf6ea;
  background-size: 100% 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.38), 0 0 0 0.5px rgba(0, 0, 0, 0.3);
  transition: translate 200ms cubic-bezier(0.2, 0.75, 0.3, 1), scale 95ms ease-in, rotate 220ms ease;
  will-change: translate;
  touch-action: none;
}
.cs-card.cs-down {
  background-color: #7a2e1b;
}
.cs-card.cs-dragging {
  transition: scale 95ms ease-in, rotate 220ms ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(0, 0, 0, 0.3);
}
.cs-card.cs-fly {
  transition: translate 1000ms cubic-bezier(0.25, 0.1, 0.2, 1), rotate 1000ms ease, scale 95ms ease-in;
}
.cs-still .cs-card,
.cs-still .cs-kcursor {
  transition: none !important;
}
.cs-card.cs-shake {
  animation: cs-shake 360ms ease;
}
@keyframes cs-shake {
  20% {
    rotate: -4deg;
  }
  45% {
    rotate: 4deg;
  }
  70% {
    rotate: -2deg;
  }
  90% {
    rotate: 1deg;
  }
}
.cs-card.cs-hint-src,
.cs-card.cs-hint-dst,
.cs-slot.cs-hint-src,
.cs-slot.cs-hint-dst {
  animation: cs-glow 1.1s ease-in-out 2;
}
.cs-card.cs-hint-src {
  box-shadow: 0 0 0 3px #ffd66a, 0 0 18px 5px rgba(255, 200, 80, 0.7);
}
.cs-card.cs-hint-dst,
.cs-slot.cs-hint-dst {
  box-shadow: 0 0 0 3px #8fe38a, 0 0 18px 5px rgba(120, 230, 120, 0.6);
}
.cs-slot.cs-hint-src {
  box-shadow: 0 0 0 3px #ffd66a, 0 0 18px 5px rgba(255, 200, 80, 0.7);
}
@keyframes cs-glow {
  50% {
    filter: brightness(1.12);
  }
}
.cs-card.cs-held {
  box-shadow: 0 0 0 3px #ffd66a, 0 8px 18px rgba(0, 0, 0, 0.45);
}

.cs-slot {
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.13);
  font-size: calc(var(--cw, 60px) * 0.42);
  font-weight: 800;
}
.cs-slot span {
  pointer-events: none;
}
.cs-slot-tableau {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.07);
}
.cs-slot-cell {
  background: rgba(0, 0, 0, 0.2);
}
.cs-slot-stock {
  cursor: pointer;
}
.cs-slot-stock svg {
  display: none;
  width: 46%;
  height: 46%;
  pointer-events: none;
}
.cs-slot-stock.cs-empty.cs-can-recycle svg {
  display: block;
  color: rgba(255, 255, 255, 0.55);
}
.cs-spider .cs-slot-foundation,
.cs-spider .cs-slot-stock {
  display: none;
}
.cs-kcursor {
  z-index: 5000;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  transition: translate 120ms ease;
}

.cs-finish {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 6000;
  translate: -50% 0;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  color: #2a1a07;
  background: linear-gradient(#ffe29a, #f4b64a);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  font: 700 16px var(--am-font, system-ui, sans-serif);
  cursor: pointer;
  animation: cs-pop 300ms ease;
}
@keyframes cs-pop {
  from {
    scale: 0.7;
    opacity: 0;
  }
}

.cs-toast {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 6500;
  max-width: calc(100% - 24px);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(20, 14, 10, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  text-align: center;
  translate: -50% -8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, translate 200ms ease;
}
.cs-toast.cs-show {
  translate: -50% 0;
  opacity: 1;
}

/* Falling leaves when a game is won. */
.cs-leaves {
  position: absolute;
  inset: 0;
  z-index: 6000;
  overflow: hidden;
  pointer-events: none;
}
.cs-leaves i {
  position: absolute;
  top: -40px;
  width: 20px;
  height: 20px;
  border-radius: 0 75% 0 75%;
  background: linear-gradient(135deg, hsl(var(--hue) 78% 58%), hsl(calc(var(--hue) - 10) 70% 38%));
  animation: cs-leaf 3s linear forwards;
  opacity: 0.95;
}
@keyframes cs-leaf {
  0% {
    top: -40px;
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: var(--sway) 0;
  }
  100% {
    top: 105%;
    translate: 0 0;
    rotate: 520deg;
  }
}

/* ---------- Stuck banner ---------- */
.cs-banner {
  position: absolute;
  right: 10px;
  bottom: 72px;
  left: 10px;
  z-index: 7000;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(24, 17, 12, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: cs-pop 250ms ease;
}
.cs-banner p {
  margin: 0 0 10px;
  font-size: 15px;
}
.cs-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cs-small {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.cs-primary,
.cs-dialog .cs-primary {
  border-color: transparent;
  color: #2a1a07;
  background: linear-gradient(#ffe29a, #f4b64a);
}
.cs-primary:hover,
.cs-dialog .cs-primary:hover {
  background: linear-gradient(#ffe8ad, #f7bf5c);
}

/* ---------- Menus and dialogs ---------- */
.cs-overlay {
  position: absolute;
  inset: 0;
  z-index: 8000;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(8, 6, 4, 0.6);
}
.cs-dialog {
  position: relative;
  width: min(600px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  user-select: text;
  -webkit-user-select: text;
  overscroll-behavior: contain;
}
.cs-dialog h2 {
  margin: 0;
  font-size: 19px;
}
.cs-dialog h3 {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cs-dialog p {
  margin: 6px 0;
  line-height: 1.45;
}
.cs-dialog .cs-note {
  color: var(--muted);
  font-size: 13px;
}
.cs-dhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cs-dhead h2 {
  flex: 1;
}
.cs-close {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
}
.cs-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.cs-tab {
  height: 38px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--panel-2);
  font: 600 14px var(--am-font, system-ui, sans-serif);
  cursor: pointer;
}
.cs-tab[aria-selected='true'] {
  border-color: var(--gold);
  color: var(--ink);
  background: #3a2e22;
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.cs-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cs-tile:hover {
  border-color: #6b5844;
  background: #372c21;
}
.cs-tile strong {
  font-size: 16px;
}
.cs-tile span {
  color: var(--muted);
  font-size: 13px;
}
.cs-tile .cs-badge {
  margin-top: auto;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.cs-tile.cs-current {
  border-color: var(--gold);
}
.cs-tile.cs-done {
  border-color: #5c8f4e;
}
.cs-tile:disabled {
  opacity: 0.5;
  cursor: default;
}
.cs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.cs-row input[type='number'] {
  width: 130px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #19130f;
  font: inherit;
}
.cs-dialog .cs-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.cs-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.cs-switch span {
  display: flex;
  flex-direction: column;
}
.cs-switch small {
  color: var(--muted);
  font-size: 12px;
}
.cs-switch input {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: #f4b64a;
}
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}
.cs-stat {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel-2);
}
.cs-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.cs-stat b {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.cs-chip {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-2);
  font: 600 13px var(--am-font, system-ui, sans-serif);
  cursor: pointer;
}
.cs-chip[aria-pressed='true'] {
  border-color: var(--gold);
  color: var(--ink);
}
.cs-awards {
  display: grid;
  gap: 6px;
}
.cs-award {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel-2);
}
.cs-award i {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3b3027;
}
.cs-award.cs-got i {
  background: radial-gradient(circle at 35% 35%, #ffe7a3, #d69a2c 70%);
}
.cs-award:not(.cs-got) {
  opacity: 0.6;
}
.cs-award div {
  display: flex;
  flex-direction: column;
}
.cs-award small {
  color: var(--muted);
}
.cs-styles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
}
.cs-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font: 12px var(--am-font, system-ui, sans-serif);
  cursor: pointer;
}
.cs-style[aria-pressed='true'] {
  border-color: var(--gold);
}
.cs-style:disabled {
  cursor: default;
}
.cs-style .cs-swatch {
  width: 60px;
  height: 84px;
  border-radius: 6px;
  background-size: 100% 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.cs-style .cs-felt {
  width: 70px;
  height: 50px;
  border-radius: 8px;
}
.cs-style:disabled .cs-swatch,
.cs-style:disabled .cs-felt {
  filter: grayscale(0.8) brightness(0.55);
}
.cs-style small {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.cs-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cs-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel-2);
  font: 12px var(--am-font, system-ui, sans-serif);
  cursor: pointer;
}
.cs-day[aria-pressed='true'] {
  border-color: var(--gold);
}
.cs-dots {
  display: flex;
  gap: 3px;
}
.cs-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a3d30;
}
.cs-dots i.cs-on {
  background: var(--gold);
}
.cs-trail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.cs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel-2);
  font: 600 15px var(--am-font, system-ui, sans-serif);
  cursor: pointer;
}
.cs-step small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.cs-step.cs-current {
  border-color: var(--gold);
  background: #3a2e22;
}
.cs-step:disabled {
  opacity: 0.4;
  cursor: default;
}
.cs-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
}
.cs-stars .cs-dim {
  color: #5a4a3a;
}
.cs-big-stars {
  margin: 6px 0;
  color: var(--gold);
  font-size: 34px;
  letter-spacing: 6px;
  text-align: center;
}
.cs-big-stars .cs-dim {
  color: #4f4134;
}
.cs-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.cs-new {
  color: #8fe38a;
  font-size: 11px;
  font-weight: 700;
}
.cs-list {
  margin: 8px 0;
  padding-left: 18px;
  line-height: 1.5;
}
.cs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.cs-dialog kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #19130f;
  font: 12px ui-monospace, monospace;
}

/* ---------- Below the game ---------- */
.cs-ad {
  max-width: 970px;
  margin: 12px auto 0;
}
.cs-about {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 0 16px;
  color: #ddd2c4;
  line-height: 1.55;
}
.cs-about h1 {
  margin: 0 0 8px;
  color: var(--am-text, #f3eadf);
  font-size: 26px;
}
.cs-about h2,
.cs-about h3 {
  color: var(--am-text, #f3eadf);
}
.cs-about kbd {
  padding: 1px 6px;
  border: 1px solid #43372b;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #221b15;
  font: 13px ui-monospace, monospace;
}

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  .cs-top {
    gap: 6px;
    padding: 4px 6px;
  }
  .cs-menu-btn span {
    display: none;
  }
  .cs-menu-btn {
    width: 38px;
    padding: 0;
  }
  .cs-readout {
    gap: 6px;
  }
  .cs-read {
    min-width: 30px;
  }
  .cs-read b {
    font-size: 13px;
  }
  .cs-icon {
    width: 34px;
    height: 34px;
  }
  .cs-bar {
    gap: 6px;
    padding-right: 6px;
    padding-left: 6px;
  }
  .cs-bar .cs-btn {
    height: 50px;
  }
  .cs-dialog {
    padding: 12px;
  }
  .cs-tab {
    font-size: 13px;
  }
  .cs-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 360px) {
  .cs-title span {
    display: none;
  }
}

/* Phones held sideways: the bars move to the sides so the table keeps its height. */
@media (orientation: landscape) and (max-height: 540px) {
  .cs {
    grid-template-columns: 104px minmax(0, 1fr) 84px;
    grid-template-rows: 100%;
    grid-template-areas: 'top table bar';
    min-height: 300px;
  }
  .cs-top {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)) calc(6px + env(safe-area-inset-left, 0px));
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 0;
  }
  .cs-menu-btn {
    width: auto;
  }
  .cs-menu-btn span {
    display: inline;
  }
  .cs-title {
    flex: none;
  }
  .cs-title strong {
    font-size: 13px;
    white-space: normal;
  }
  .cs-title span {
    display: block;
    font-size: 11px;
    white-space: normal;
  }
  .cs-readout {
    flex-direction: column;
    gap: 4px;
  }
  .cs-read {
    flex-direction: row;
    justify-content: space-between;
    gap: 4px;
  }
  .cs-toggles {
    justify-content: center;
    margin-top: auto;
  }
  .cs-bar {
    flex-direction: column;
    justify-content: center;
    padding: 6px calc(6px + env(safe-area-inset-right, 0px)) 6px 6px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }
  .cs-bar .cs-btn {
    flex: 0 1 60px;
    width: 100%;
    height: auto;
    min-height: 48px;
  }
  .cs-banner {
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-card,
  .cs-kcursor,
  .cs-toast {
    transition: none !important;
  }
  .cs-card.cs-shake,
  .cs-finish,
  .cs-banner {
    animation: none;
  }
}
