/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  -webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
/* Basics */
@font-face {
  font-family: "Basier Square";
  src: url("/fonts/basiersquare-regular.woff2") format("woff2"),
    url("/fonts/basiersquare-regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Basier Square";
  src: url("/fonts/basiersquare-regularitalic.woff2") format("woff2"),
    url("/fonts/basiersquare-regularitalic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Basier Square";
  src: url("/fonts/basiersquare-medium.woff2") format("woff2"),
    url("/fonts/basiersquare-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Basier Square";
  src: url("/fonts/basiersquare-mediumitalic.woff2") format("woff2"),
    url("/fonts/basiersquare-mediumitalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Basier Square";
  src: url("/fonts/basiersquare-bold.woff2") format("woff2"),
    url("/fonts/basiersquare-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Basier Square";
  src: url("/fonts/basiersquare-bolditalic.woff2") format("woff2"),
    url("/fonts/basiersquare-bolditalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "more_perfect_dos_vgaregular";
  src: url("/fonts/moreperfectdosvga.woff2") format("woff2"),
    url("/fonts/moreperfectdosvga.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --color-bg-base-50: #faf9fa;
  --color-bg-base-100: #f9f8f9;
  --color-bg-base-200: rgba(255, 255, 255, 0.75);
  --color-bg-base-300: #fff;
  --color-bg-base-900: #301346;
  --color-bg-selection: rgba(var(--color-text-base-rgb), 0.25);

  --color-text-base: #301346;
  --color-text-base-rgb: 48, 19, 70;
  --color-text-muted: rgba(var(--color-text-base-rgb), 0.4);
  --color-text-primary: #6e3fe1;
  --color-text-base-inverted: #fff;

  --color-border-base-50: rgba(var(--color-text-base-rgb), 0.1);
  --color-border-base-100: rgba(var(--color-text-base-rgb), 0.15);

  --border-radius-sm: 0.5rem;
  --border-radius-base: 1rem;

  --page-min-width: 320px;
  --page-max-width: 1400px;

  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2.25rem;

  --z-index-backdrop: 99;
  --z-index-modal: 100;

  --font-size-min: 100%;
  --font-size-max: 18px;
  --font-size-scaler: 1rem + 2vw;

  --font-size-sm: 0.85rem;
  --font-size-md: 1rem;

  --shadow-xs: 0px 1px 2px rgba(48, 19, 70, 0.12);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
@media (min-width: 768px) {
  :root {
    --space-xxs: 0.25rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
  }
}
::-moz-selection {
  background: var(--color-bg-selection);
}
::selection {
  background: var(--color-bg-selection);
}
html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
    -o-tab-size: 4;
       tab-size: 4;
  font-size: 16px;
  /* font-size: calc(14px + (18 - 14) * ((100vw - 320px) / (1400 - 320))); */
  /* font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300))); */
  font-size: clamp(
    var(--font-size-min),
    var(--font-size-scaler),
    var(--font-size-max)
  );
  font-family: "Basier Square", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans,
    sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol,
    Noto Color Emoji;
  color: var(--color-text-base);
  line-height: 1.5;
}
body {
  background: var(--color-bg-base-50) url(/background-1.jpg) no-repeat top
    center;
  background-size: contain;
  min-height: 100vh;
}
.no-js .needs-js {
  display: none;
}
p,
ul,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1.5rem;
}
p:last-child {
  margin-bottom: 0;
}
h1 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}
h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}
a {
  color: currentColor;
  text-decoration: underline;
}
a:focus {
  outline: none;
}
pre {
  white-space: pre-wrap;
  max-width: 100%;
}
[x-cloak] {
  display: none !important;
}
.hidden {
  display: none;
}
.text--lg {
  font-size: 1.25rem;
  line-height: 1.25;
}
.text--sm {
  font-size: var(--font-size-sm);
}
.text--muted {
  --color-text-base: var(--color-text-muted);
  color: var(--color-text-muted);
}
.text--center {
  text-align: center;
}
/* .list {} */
.list--dos {
  list-style-type: "* ";
}
.divider {
  height: 1px;
  background-color: var(--color-border-base-100);
}
.overflow--hidden {
  overflow: hidden;
}
/* Components */
.bluescreen {
  background-color: #000084;
  color: #bbb;
  font-family: "more_perfect_dos_vgaregular", ui-monospace, "Cascadia Code",
    "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  font-size: calc(18px + (24 - 18) * (100vw - 400px) / (1400 - 400));
}
.bluescreen__body {
  position: relative;
  z-index: 1;
  max-width: 50rem;
}
.bluescreen__title {
  background-color: #000084;
  display: inline-block;
  background-color: #bbb;
  color: #000084;
  text-transform: uppercase;
  padding: 0 1ch;
  margin-bottom: 2rem;
  letter-spacing: 0.5em;
  position: relative;
  font-size: inherit;
}
.bluescreen__title:after {
  position: absolute;
  left: 1ch;
  right: -1ch;
  bottom: -1ch;
  top: 1ch;
  content: " ";
  background-color: #000;
  z-index: -1;
}
.bluescreen-shutdown {
  overflow: hidden;
}
.bluescreen-shutdown::after {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000084;
  content: "Shutting down…";
  color: #bbb;
  font-family: "more_perfect_dos_vgaregular", ui-monospace, "Cascadia Code",
    "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  padding: 1rem;
  animation: bluescreen-shutdown 5s linear;
  z-index: 9999;
}
@keyframes bluescreen-shutdown {
  0% {
    height: 0;
  }
  100% {
    height: 100vh;
  }
}
.book {
  display: block;
  position: relative;
  width: 10rem;
  border-radius: 0.25rem;
  /* overflow: hidden; */
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  transition: 250ms transform ease, 250ms box-shadow ease;
}
.book:hover,
.book:focus {
  transform: rotate(-8deg) scale(1.1);
  box-shadow: var(--shadow-xl);
}
.book__cover {
  display: block;
  border-radius: 0.25rem;
}
.book::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: " ";
  background: radial-gradient(
      150% 100% at 45% 0%,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0.5%,
      rgba(255, 255, 255, 0.4) 0.8%,
      rgba(255, 255, 255, 0) 2%,
      rgba(255, 255, 255, 0) 4%,
      rgba(0, 0, 0, 0) 4%,
      rgba(0, 0, 0, 0.1) 5%,
      rgba(0, 0, 0, 0.3) 5%,
      rgba(0, 0, 0, 0.4) 5%,
      rgba(255, 255, 255, 0.4) 5%,
      rgba(255, 255, 255, 0.3) 6%,
      rgba(255, 255, 255, 0.1) 6%,
      rgba(255, 255, 255, 0) 6%
    );
  background-blend-mode: soft-light;
  border-radius: 0.25rem;
  box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.25),
    inset 0px 0px 4px rgba(255, 255, 255, 0.25),
    inset 6px -6px 12px -6px rgba(0, 0, 0, 0.05),
    inset 12px -12px 12px -12px rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.book::after {
  background-color: var(--color-bg-base-900);
  border-radius: 0 0 0.25rem 0.25rem;
  bottom: 0;
  color: var(--color-text-base-inverted);
  content: attr(aria-label);
  display: block;
  font-size: 0.75rem;
  left: 0.25rem;
  padding: 0.25rem 0.5rem;
  position: absolute;
  right: 0.25rem;
  text-align: center;
  transform: translateY(0%);
  transition: transform 250ms cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}
.book:hover::after,
.book:focus::after {
  transform: translateY(90%);
}
.btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: var(--color-bg-base-300);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border-base-100);
  box-shadow: var(--shadow-xs);
  color: var(--color-text-base);
  cursor: pointer;
  display: inline-flex;
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: var(--space-xxs) var(--space-xs);
  transition: 150ms background-color ease;
}
.btn:hover {
  background-color: var(--color-bg-base-100);
}
.btn:focus {
  outline: 4px solid var(--color-border-base-50);
}
.btn--inline {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  height: 1em;
  vertical-align: middle;
}
.btn:disabled {
  opacity: 0.2;
}
.files {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.files__item {
  display: block;
  grid-column: span 1 / span 1;
}
.files__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  transition: 250ms color ease, 250ms fill ease;
  fill: currentColor;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-sm);
}
.files__link:hover,
.files__link:focus {
  /* transform: scale(1.1); */
  color: var(--color-text-primary);
  background-color: var(--color-bg-base-100);
}
.files__label {
  display: block;
  font-size: var(--font-size-sm);
  text-align: center;
  line-height: 1.2;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form__label {
  display: block;
  font-weight: 500;
}
.form__textarea,
.form__text {
  border-radius: 0.5rem;
  border: 1px solid #aeb1c4;
  color: #000;
  display: block;
  width: 100%;
  padding: 0.25rem 0.4rem;
}
.form__textarea {
  resize: vertical;
}
.form__helper {
  color: var(--color-text-muted);
}
.form__actions {
  display: flex;
  justify-content: end;
}
.card,
.card-placeholder {
  width: min(var(--card-width, 15vw), 10rem);
  height: var(--card-height, calc(var(--card-width) * 1.6));
  position: relative;
}
.card {
  flex-shrink: 0;
  flex-grow: 0;
  perspective: 500px;
}
.card--hoverable::before {
  --card-hitbox-y-offset: calc(var(--card-width) * -0.2);
  --card-hitbox-x-offset: 0;

  /* background: rgba(255, 0, 0, 0.05); */
  bottom: var(--card-hitbox-y-offset);
  content: "";
  left: var(--card-hitbox-x-offset);
  position: absolute;
  right: var(--card-hitbox-x-offset);
  top: var(--card-hitbox-y-offset);
}
.card--flipped .card__faces {
  transform: rotateY(180deg);
}
.card__faces {
  background-color: #fff;
  box-shadow: var(--shadow-lg);
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  width: 100%;
}
.card__faces,
.card-placeholder::before {
  border-radius: 0.5rem;
  outline: 1px solid var(--color-border-base-100);
}
.card__wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}
.card__front,
.card__back {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  /* padding: 1rem; */
  overflow: hidden;
  backface-visibility: hidden;
}
.card__front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
}
.card__back {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='currentColor'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  transform: rotateY(180deg);
}
.card__title {
  line-height: 1.2;
  display: block;
  padding: 1rem;
  font-weight: 500;
}
.card__illustration {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
/* Placeholder */
.card-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  outline-style: dashed;
  outline-color: var(--color-text-muted);
  outline-offset: -2px;
}
/* Cards */
.cards {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;
  flex-wrap: nowrap;
  gap: 0.25rem;
  transition: 750ms bottom ease, 750ms top ease;
}
.cards .card {
  z-index: var(--i);
}
.cards--fanned-out {
  --cards-length: 7;

  --card-width: min(15vw, 10rem);
  --card-height: calc(var(--card-width) * 1.6);
  --card-r: 25deg;
  --card-r-base: 0deg;
  --card-y-offset: calc(var(--card-height) * 0.25);
  --card-y-base: 1;
  --card-x-offset: calc(var(--card-width) * 0.25);

  position: relative;
  min-height: var(--card-height);
}
.cards--fanned-out .card__wrapper {
  --m: calc((var(--i) - (var(--cards-length) - 1) / 2));
  --d: calc((var(--cards-length) - 2));

  --y: calc(var(--m) / var(--d) * var(--card-y-offset));
  --y-abs: calc(max(var(--y), calc(-1 * var(--y))) * var(--card-y-base));
  --r: calc((var(--m) / var(--d) * var(--card-r)) + var(--card-r-base));
  --x: calc((var(--m) / var(--d)) * -1 * var(--card-x-offset));

  transform: translateY(var(--y-abs)) translateX(var(--x)) rotate(var(--r));
  transition: 750ms cubic-bezier(0.2, 1, 0.25, 1) transform,
    750ms cubic-bezier(0.2, 1, 0.25, 1) box-shadow;
}
.cards--fanned-out .card--hoverable:hover,
.cards--fanned-out .card--hoverable:focus-visible {
  z-index: 50;
}
.cards--fanned-out .card--hoverable:hover .card__wrapper,
.cards--fanned-out .card--hoverable:focus-visible .card__wrapper {
  --y: calc(var(--card-y-base) * ((var(--card-height) * 0.25) * -1));

  transform: translateY(var(--y)) rotate(0deg) scale(1.25);
  transition-duration: 50ms;
  z-index: 50;
  box-shadow: var(--shadow-xl);
}
.cards--top {
  --card-r: -25deg;
  --card-y-base: -1;

  top: calc((var(--card-height) * 0.5) * -1);
  position: absolute;
  z-index: var(--z-index-modal);
}
.cards--bottom {
  bottom: calc((var(--card-height) * 0.1));
  position: absolute;
  z-index: var(--z-index-modal);
}
.cards--played {
  bottom: calc((var(--card-height) * 0.5) * -1);
}
/* Canvas */
.game {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  height: 100vh;
  overflow: hidden;
  border-top: 1px solid rgba(24, 24, 27, 5%);
  border-bottom: 1px solid rgba(24, 24, 27, 5%);
  background-image: url("data:image/svg+xml,<svg width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='20' height='20'><rect x='0' y='0' width='100%' height='100%' fill='hsla(0,0%,100%,1)'/><path d='M 10,-2.55e-7 V 20 Z M -1.1677362e-8,10 H 20 Z' stroke-width='1' stroke='rgba(0,0,0,0.05)' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
}
.game__canvas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.game__stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.game__stage--sm {
  max-width: 50rem;
}
.game__stage--vertical {
  flex-direction: row;
}
.game__opponent-round,
.game__player-round,
.game__scenario {
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.game__opponent-round,
.game__player-round {
  width: 35%;
}
.game__scenario {
  width: 30%;
}
.game__points {
  /* background-color: red; var(--color-border-on-accent3); */
  background-color: #fff;
  padding: 0 0.5rem;
  border-radius: 99rem;
  font-weight: 500;
  transform: translateY(200px);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}
.grid__item--lg,
.grid__item--md {
  grid-column: span 4 / span 1;
}
@media (min-width: 992px) {
  .grid__item--lg {
    grid-column: span 4 / span 1;
  }

  .grid__item--md {
    grid-column: span 2 / span 1;
  }
}
.hero {
  text-align: center;
}
@media (min-width: 576px) {
  .hero {
    width: 75%;
    text-align: start;
  }
}
@media (min-width: 768px) {
  .hero {
    width: 50%;
    text-align: start;
  }
}
.logo {
  display: block;
  text-decoration: none;
  /* color: var(--color-text-base); */
}
.logo:focus,
.logo:hover,
.logo:visited {
  text-decoration: none;
  /* color: var(--color-text-base); */
}
.logo--xs {
  width: 1.5rem;
}
.logo--lg {
  width: 15rem;
}
/* .messages {
  padding: 0 2rem;
} */
.messages__item {
  display: inline;
  transition: 250ms ease opacity;
}
.messages__actor {
  font-weight: 500;
  color: var(--color-text-muted);
}
.messages__item::after {
  content: " • ";
  color: var(--color-text-muted);
}
.messages__item:last-child::after {
  display: none;
}
.messages:hover .messages__item {
  opacity: 0.25;
}
.messages:hover .messages__item:hover {
  opacity: 1;
}
.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 0 1rem;
}
.page {
  min-width: var(--page-min-width);
  max-width: var(--page-max-width);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.page__header,
.page__footer {
  padding: var(--space-md);
}
.page__header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: end;
  min-height: 15vh;
}
.page__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-grow: 1;
  padding: 0 var(--space-md);
}
.page__footer {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
@media (min-width: 576px) {
  .page__header {
    justify-content: space-between;
  }
}
@media (min-width: 768px) {
  .page__header {
    min-height: 20vh;
  }
}
.panel {
  background-color: var(--color-bg-base-200);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border-base-100);
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  flex-shrink: 0;
  gap: var(--space-md);
  transition: 250ms height ease;
}
.panel__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0;
  margin: 0;
}
.panel__header,
.panel__body,
.panel__footer {
  padding: 0 var(--space-md);
}
.panel__body,
.panel__footer {
  flex-grow: 1;
}
.panel__header {
  padding-top: var(--space-md);
}
.panel__body {
  padding-bottom: var(--space-md);
}
.panel__footer {
  border-top: 1px solid var(--color-border-base-50);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  background-color: var(--color-bg-base-100);
  border-bottom-left-radius: var(--border-radius-sm);
  border-bottom-right-radius: var(--border-radius-sm);
}
@media (min-width: 992px) {
  .panel__body--narrow {
    width: 50%;
  }
}
.props {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.props--horizontal {
  flex-direction: column;
  margin-bottom: var(--space-md);
}
.props__cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
  font-size: var(--font-size-sm);
}
.props__label {
  font-weight: medium;
  display: block;
  color: var(--color-text-muted);
}
@media (min-width: 768px) {
  .props--horizontal {
    flex-direction: row;
    justify-content: space-between;
  }
}
.sheet {
  background-color: var(--color-bg-base-300);
  border: 1px solid var(--color-border-base-100);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
  width: 20rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet--gradient {
  background: linear-gradient(
      180deg,
      rgba(var(--sheet-gradient-color), 0.1) 1%,
      rgba(var(--sheet-gradient-color), 0) 85%
    ),
    var(--color-bg-base-300);
}
.sheet--overlay {
  position: fixed;
  left: 50%;
  bottom: 0%;
  transform: translate(-50%, 100%);
  width: 90%;
  max-width: 40rem;
  max-height: 90vh;
  min-height: 20vh;
  z-index: var(--z-index-modal);
  box-shadow: var(--shadow-xl);
}
.sheet__header,
.sheet__body,
.sheet__preview {
  padding: 0 var(--space-md);
}
.sheet__header {
  padding-top: var(--space-md);
}
.sheet__body {
  overflow: auto;
  height: 100%;
  display: none;
  padding-bottom: var(--space-md);
}
/* TODO: Not very BEMy */
.sheet--overlay .sheet__preview {
  display: none;
}
.sheet--overlay .sheet__body {
  display: block;
}
.backdrop {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-index-backdrop);
}
.skeleton {
  animation: skeleton-pulse 1s linear infinite alternate;
  background: var(--color-text-muted);
  border-radius: 0.5rem;
  display: inline-block;
  height: 1em;
  opacity: 0.5;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  width: 10em;
}
.skeleton--md {
  width: 15rem;
}
.skeleton--lg {
  width: 20rem;
}
@keyframes skeleton-pulse {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.15;
  }
}
.slider {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.slider__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0 var(--space-md);
  width: 100%;
}
.slider__body {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-grow: 1;
  gap: var(--space-md);
  overflow-x: visible;
  overflow-y: hidden;
  padding: var(--space-md) var(--space-md) 0 var(--space-md);
  position: relative;
  scroll-padding: 0 var(--space-md);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  width: 100%;
  border-radius: var(--border-radius-sm);
}
.slider__item {
  border-bottom: none !important;
  cursor: pointer;
  flex-grow: 1;
  flex-shrink: 0;
  scroll-snap-align: start;
  max-width: calc(100vw - (var(--space-md) * 4));
  /* transition: 250ms transform ease; */
}
/* .slider__item:hover {
  transform: translateY(-5%);
} */
.window {
  border: 1px solid var(--color-border-base-100);
  background-color: var(--color-bg-base-200);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.window--dialog {
  background-color: var(--color-bg-base-300);
  box-shadow: var(--shadow-xl);
  min-width: 25vw;
  width: calc(100vw * 0.85);
  max-width: 50rem;
  z-index: var(--z-index-modal);
  position: fixed;
  top: 0;
  left: 0;
}
.window__toolbar {
  border-bottom: 1px solid var(--color-border-base-100);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: var(--space-xs) var(--space-sm);
  width: 100%;
  background-color: var(--color-bg-base-200);
}
.window__toolbar--draggable {
  cursor: move;
}
.window__body {
  padding: 1rem;
  overflow: auto;
}
.window__body-inner--seamless {
  padding: 0;
}
.window__body-inner--narrow {
  max-width: 35rem;
  margin: 0 auto;
}
.window__title {
  flex-grow: 1;
  font-weight: normal;
  font-size: 0.85rem;
}
.window__loader {
  --c: 0 0 0; /* the color using the RGB format */

  width: 1.5rem;
  height: 1.5rem;
  width: 1em;
  height: 1em;
  display: grid;
  border-radius: 50%;
  background: linear-gradient(
        0deg,
        rgb(var(--c) / 50%) 30%,
        #0000 0 70%,
        rgb(var(--c) / 100%) 0
      )
      50%/5% 100%,
    linear-gradient(
        90deg,
        rgb(var(--c) / 25%) 30%,
        #0000 0 70%,
        rgb(var(--c) / 75%) 0
      )
      50%/100% 5%;
  background-repeat: no-repeat;
  animation: load 1s infinite steps(12);
}
.window__loader::before,
.window__loader::after {
  content: "";
  grid-area: 1/1;
  border-radius: 50%;
  background: inherit;
  opacity: 0.915;
  transform: rotate(30deg);
}
.window__loader::after {
  opacity: 0.83;
  transform: rotate(60deg);
}
@keyframes load {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.stack--justify-between {
  justify-content: space-between;
}
.stack__item--self-center {
  align-self: center;
}
@media (min-width: 992px) {
  .stack {
    flex-direction: row;
  }
}
