@import url(
  "https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Libre+Baskerville:wght@400;700&display=swap"
);

:root {
  --background: #05060a;
  --background-deep: #020307;

  --cream: #f3e2bd;
  --cream-muted: rgba(243, 226, 189, 0.68);

  --gold: #d99d3e;
  --gold-light: #f6d486;
  --gold-dark: #704117;

  --red: #aa2c23;
  --red-dark: #410908;

  --purple: #743a9e;
  --blue: #275b91;

  --wood-light: #a96b32;
  --wood: #633719;
  --wood-dark: #2d1508;

  --content-width: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;

  margin: 0;

  overflow-x: hidden;

  color: var(--cream);

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(100, 42, 131, 0.2),
      transparent 38rem
    ),
    linear-gradient(
      180deg,
      #090a10,
      var(--background) 46%,
      var(--background-deep)
    );

  font-family:
    "Libre Baskerville",
    Georgia,
    serif;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color:
    transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  clip:
    rect(
      0,
      0,
      0,
      0
    );

  white-space: nowrap;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.page-atmosphere {
  position: fixed;
  z-index: -20;

  inset: 0;

  overflow: hidden;
  pointer-events: none;
}

.atmosphere-glow {
  position: absolute;

  width: 65vw;
  height: 65vw;

  border-radius: 50%;

  opacity: 0.16;

  filter:
    blur(90px);

  animation:
    atmosphere-drift
    24s
    ease-in-out
    infinite
    alternate;
}

.atmosphere-glow--purple {
  top: -34vw;
  left: -18vw;

  background: #6a2b98;
}

.atmosphere-glow--ember {
  right: -24vw;
  bottom: -38vw;

  background: #9a421f;

  animation-delay: -10s;
}

.floating-embers {
  position: absolute;

  inset: 0;
}

.floating-embers span {
  position: absolute;

  bottom: -20px;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  opacity: 0;

  background: #ffb34a;

  box-shadow:
    0 0 8px
      rgba(255, 168, 56, 0.88),
    0 0 18px
      rgba(255, 86, 29, 0.42);

  animation:
    ember-rise
    18s
    linear
    infinite;
}

.floating-embers span:nth-child(1) {
  left: 8%;
  animation-delay: -2s;
}

.floating-embers span:nth-child(2) {
  left: 17%;
  animation-delay: -9s;
}

.floating-embers span:nth-child(3) {
  left: 28%;
  animation-delay: -14s;
}

.floating-embers span:nth-child(4) {
  left: 38%;
  animation-delay: -5s;
}

.floating-embers span:nth-child(5) {
  left: 48%;
  animation-delay: -11s;
}

.floating-embers span:nth-child(6) {
  left: 58%;
  animation-delay: -1s;
}

.floating-embers span:nth-child(7) {
  left: 68%;
  animation-delay: -15s;
}

.floating-embers span:nth-child(8) {
  left: 77%;
  animation-delay: -6s;
}

.floating-embers span:nth-child(9) {
  left: 87%;
  animation-delay: -12s;
}

.floating-embers span:nth-child(10) {
  left: 95%;
  animation-delay: -4s;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;

  display: grid;

  grid-template-columns:
    minmax(230px, 1fr)
    auto
    minmax(230px, 1fr);

  align-items: center;

  gap: 24px;

  min-height: 78px;

  padding:
    10px
    clamp(
      18px,
      3vw,
      48px
    );

  border-bottom:
    1px solid
    rgba(220, 159, 59, 0.22);

  background:
    linear-gradient(
      180deg,
      rgba(7, 8, 12, 0.97),
      rgba(7, 8, 12, 0.87)
    );

  box-shadow:
    0 8px 28px
    rgba(0, 0, 0, 0.44);

  backdrop-filter:
    blur(14px);
}

.site-brand {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  text-decoration: none;
}

.site-brand__logo {
  width: 54px;
  height: 54px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 0 11px
      rgba(218, 153, 55, 0.4)
    );
}

.site-brand__copy {
  display: flex;
  flex-direction: column;

  line-height: 1.12;
}

.site-brand__copy strong {
  color: var(--gold-light);

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 1.15rem;
}

.site-brand__copy small {
  margin-top: 4px;

  color:
    rgba(244, 226, 187, 0.62);

  font-size: 0.65rem;
}

.main-navigation {
  display: flex;

  justify-content: center;

  gap:
    clamp(
      16px,
      2vw,
      32px
    );
}

.main-navigation a {
  position: relative;

  padding: 10px 1px;

  color: #e5c680;

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 0.72rem;
  font-weight: 600;

  text-decoration: none;
  white-space: nowrap;
}

.main-navigation a::after {
  position: absolute;

  right: 50%;
  bottom: 2px;
  left: 50%;

  height: 1px;

  content: "";

  background: var(--gold);

  box-shadow:
    0 0 8px
    rgba(225, 159, 57, 0.76);

  transition:
    right 0.2s ease,
    left 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after,
.main-navigation a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

.site-header #auth-buttons,
.site-header .auth-actions {
  position: static !important;

  display: flex !important;

  align-items: center;
  justify-content: flex-end;

  width: auto !important;

  gap: 10px;

  justify-self: end;
}

.site-header .auth-button,
.site-header #auth-buttons .btn {
  width: auto !important;
  min-width: 78px;
  min-height: 40px;

  padding: 10px 14px;

  border:
    1px solid
    rgba(225, 164, 64, 0.42);

  border-radius: 7px;

  color: #f3dfb7;

  background:
    linear-gradient(
      180deg,
      #26160e,
      #0c0b0d
    );

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 0.68rem;
  font-weight: 700;

  cursor: pointer;
}

.site-header .auth-button--primary {
  color: #291706;

  background:
    linear-gradient(
      180deg,
      #f2ca71,
      #b97922
    );
}

/* =========================================================
   HERO
   ========================================================= */

.deck-hero {
  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, 0.9fr);

  align-items: center;

  min-height:
    min(
      760px,
      calc(100svh - 78px)
    );

  overflow: hidden;

  border-bottom:
    1px solid
    rgba(218, 155, 52, 0.23);

  background: #05060a;
}

.deck-hero__art {
  position: relative;

  align-self: stretch;

  min-height: 600px;

  overflow: hidden;
}

.deck-hero__image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 60% 48%;
}

.deck-hero__art::after {
  position: absolute;

  inset: 0;

  content: "";

  background:
    linear-gradient(
      90deg,
      transparent 58%,
      rgba(5, 6, 10, 0.4)
    ),
    linear-gradient(
      180deg,
      transparent 72%,
      #05060a
    );
}

.deck-hero__glow {
  position: absolute;

  top: 44%;
  right: 23%;

  width: 160px;
  height: 160px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 75, 46, 0.32),
      rgba(139, 38, 121, 0.18) 44%,
      transparent 72%
    );

  filter:
    blur(18px);

  mix-blend-mode: screen;

  animation:
    skull-glow
    4.5s
    ease-in-out
    infinite
    alternate;
}

.deck-hero__content {
  padding:
    clamp(
      44px,
      6vw,
      86px
    )
    clamp(
      24px,
      5vw,
      70px
    );
}

.eyebrow {
  margin:
    0
    0
    13px;

  color: var(--gold);

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.17em;

  text-transform: uppercase;
}

.deck-hero h1 {
  margin: 0;

  color: #f3e2bb;

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size:
    clamp(
      3.1rem,
      5.5vw,
      6rem
    );

  line-height: 0.93;

  letter-spacing: -0.045em;

  text-shadow:
    0 3px 2px
      rgba(28, 10, 4, 0.9),
    0 0 24px
      rgba(210, 141, 47, 0.22);
}

.deck-hero h1 span {
  display: block;

  color: var(--gold-light);

  font-size: 0.8em;
}

.deck-hero__dnd-logo {
  width:
    min(
      320px,
      65%
    );

  max-height: 106px;

  margin:
    20px
    0
    18px;

  object-fit: contain;
  object-position: left center;
}

.deck-hero__description {
  max-width: 620px;

  margin: 0;

  color:
    rgba(244, 227, 190, 0.83);

  font-size:
    clamp(
      0.94rem,
      1.3vw,
      1.08rem
    );

  line-height: 1.75;
}

.greeting {
  color: var(--gold-light);

  font-family:
    "Cinzel",
    Georgia,
    serif;
}

.greeting:empty {
  display: none;
}

/* =========================================================
   WORKSPACE
   ========================================================= */

.deck-workspace {
  width:
    min(
      calc(100% - 36px),
      var(--content-width)
    );

  margin: 0 auto;

  padding:
    78px
    0
    110px;
}

.deck-workspace__heading {
  max-width: 840px;

  margin:
    0
    auto
    34px;

  text-align: center;
}

.deck-workspace__heading h2 {
  margin: 0;

  color: #f0ce7d;

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size:
    clamp(
      2.1rem,
      4vw,
      4rem
    );

  line-height: 1.05;
}

.deck-workspace__heading > p:last-child {
  max-width: 650px;

  margin:
    15px
    auto
    0;

  color: var(--cream-muted);

  line-height: 1.7;
}

/* =========================================================
   ATTACK SELECTOR
   ========================================================= */

.attack-selector {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 16px;

  margin: 0;
  padding: 0;

  border: 0;
}

.attack-option {
  position: relative;

  cursor: pointer;
}

.attack-option input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.attack-option__panel {
  position: relative;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  min-height: 220px;

  padding: 24px 16px;

  overflow: hidden;

  border:
    1px solid
    rgba(190, 126, 49, 0.36);

  border-radius: 5px;

  background:
    linear-gradient(
      180deg,
      rgba(32, 18, 11, 0.96),
      rgba(9, 8, 9, 0.98)
    );

  box-shadow:
    inset 0 0 0 1px
      rgba(255, 216, 137, 0.04),
    0 16px 28px
      rgba(0, 0, 0, 0.46);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.attack-option__panel img {
  position: relative;
  z-index: 2;

  width: 90px;
  height: 90px;

  margin-bottom: 15px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 0 13px
      rgba(233, 174, 77, 0.26)
    );
}

.attack-option__panel strong {
  position: relative;
  z-index: 2;

  color: #f2d9a5;

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 1rem;
}

.attack-option__panel small {
  position: relative;
  z-index: 2;

  margin-top: 7px;

  color:
    rgba(243, 224, 185, 0.58);

  font-size: 0.7rem;

  text-align: center;
}

.attack-option__glow {
  position: absolute;

  top: 45%;
  left: 50%;

  width: 150px;
  height: 150px;

  border-radius: 50%;

  opacity: 0;

  background:
    radial-gradient(
      circle,
      rgba(162, 67, 209, 0.34),
      transparent 70%
    );

  filter: blur(15px);

  transform:
    translate(-50%, -50%);

  transition:
    opacity 0.2s ease;
}

.attack-option:hover
.attack-option__panel {
  transform:
    translateY(-5px);
}

.attack-option input:checked
+ .attack-option__panel {
  border-color: var(--gold-light);

  box-shadow:
    inset 0 0 0 1px
      rgba(255, 216, 137, 0.12),
    0 0 22px
      rgba(208, 139, 43, 0.36),
    0 18px 30px
      rgba(0, 0, 0, 0.54);

  transform:
    translateY(-6px);
}

.attack-option input:checked
+ .attack-option__panel
.attack-option__glow {
  opacity: 1;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.deck-controls {
  display: flex;
  flex-wrap: wrap;

  justify-content: center;

  gap: 14px;

  margin:
    30px
    0;
}

.fantasy-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  min-width: 220px;
  min-height: 52px;

  padding: 13px 22px;

  border:
    1px solid
    var(--gold-dark);

  color: #f8e5b8;

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 0.76rem;
  font-weight: 700;

  cursor: pointer;

  clip-path:
    polygon(
      12px 0,
      calc(100% - 12px) 0,
      100% 12px,
      100% calc(100% - 12px),
      calc(100% - 12px) 100%,
      12px 100%,
      0 calc(100% - 12px),
      0 12px
    );

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.fantasy-button--draw {
  background:
    linear-gradient(
      180deg,
      #a4271e,
      #70120f 54%,
      #3d0808
    );
}

.fantasy-button--reset {
  background:
    linear-gradient(
      180deg,
      #295e91,
      #153a62 54%,
      #071629
    );
}

.fantasy-button:hover,
.fantasy-button:focus-visible {
  box-shadow:
    0 0 0 1px
      rgba(255, 219, 137, 0.36),
    0 0 11px
      rgba(238, 177, 73, 0.72),
    0 14px 26px
      rgba(0, 0, 0, 0.5);

  outline: none;

  transform:
    translateY(-4px)
    scale(1.025);
}

.fantasy-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =========================================================
   CARD DISPLAY
   ========================================================= */

.critical-display {
  position: relative;

  max-width: 900px;

  min-height: 430px;

  margin:
    0
    auto;

  padding:
    clamp(
      20px,
      3vw,
      34px
    );

  overflow: hidden;

  border:
    2px solid
    #75431d;

  background:
    linear-gradient(
      135deg,
      rgba(66, 34, 15, 0.98),
      rgba(23, 13, 8, 0.99) 30%,
      rgba(14, 10, 9, 0.99)
    );

  box-shadow:
    inset 0 0 0 4px
      rgba(153, 87, 31, 0.17),
    inset 0 0 75px
      rgba(0, 0, 0, 0.65),
    0 28px 65px
      rgba(0, 0, 0, 0.62);
}

.critical-display::before,
.critical-display::after {
  position: absolute;

  width: 70px;
  height: 70px;

  content: "";

  border:
    2px solid
    rgba(218, 155, 56, 0.36);
}

.critical-display::before {
  top: 12px;
  left: 12px;

  border-right: 0;
  border-bottom: 0;
}

.critical-display::after {
  right: 12px;
  bottom: 12px;

  border-top: 0;
  border-left: 0;
}

.critical-display__runes {
  position: absolute;

  inset: 0;

  opacity: 0.08;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 20% 30%,
      #ca8a38 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 80% 70%,
      #8f4ac5 0 2px,
      transparent 3px
    );

  background-size:
    42px 42px,
    54px 54px;
}

.critical-display__header {
  position: relative;
  z-index: 2;

  display: flex;

  justify-content: space-between;

  gap: 16px;

  padding-bottom: 17px;

  border-bottom:
    1px solid
    rgba(220, 159, 59, 0.25);
}

.deck-status,
.cards-remaining {
  color: #ddb667;

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 0.73rem;
  font-weight: 700;
}

.critical-card {
  position: relative;
  z-index: 2;

  display: grid;

  min-height: 315px;

  place-items: center;

  padding:
    28px
    clamp(
      10px,
      4vw,
      50px
    );
}

.critical-card__empty {
  display: flex;
  flex-direction: column;

  align-items: center;

  max-width: 540px;

  text-align: center;
}

.critical-card__empty > span {
  color: #d89b42;

  font-size: 3.2rem;

  text-shadow:
    0 0 18px
    rgba(225, 151, 52, 0.52);
}

.critical-card__empty strong {
  margin-top: 13px;

  color: var(--gold-light);

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size:
    clamp(
      1.3rem,
      3vw,
      2rem
    );
}

.critical-card__empty p {
  color: var(--cream-muted);

  line-height: 1.65;
}

.critical-card__empty--error
> span {
  color: #e65747;
}

.drawn-card {
  display: flex;
  flex-direction: column;

  align-items: center;

  width: 100%;

  opacity: 0;

  text-align: center;

  transform:
    translateY(14px)
    scale(0.98);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.drawn-card--visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.drawn-card__attack {
  margin:
    0
    0
    12px;

  color: #d9983b;

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.drawn-card__title {
  margin: 0;

  color: #f3d27e;

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size:
    clamp(
      1.8rem,
      4vw,
      3.3rem
    );

  line-height: 1.08;

  text-shadow:
    0 0 18px
    rgba(203, 126, 40, 0.27);
}

.drawn-card__effect {
  max-width: 690px;

  margin:
    22px
    auto
    0;

  color:
    rgba(248, 231, 198, 0.88);

  font-size:
    clamp(
      0.95rem,
      1.7vw,
      1.15rem
    );

  line-height: 1.8;
}

.drawn-card__metadata {
  display: flex;

  justify-content: center;

  gap: 12px;

  margin-top: 28px;
}

.drawn-card__metadata span {
  padding:
    7px
    12px;

  border:
    1px solid
    rgba(218, 157, 58, 0.32);

  color: #d8ae61;

  background:
    rgba(6, 6, 8, 0.52);

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 0.67rem;
}

.drawn-card--dangerous
.drawn-card__title {
  color: #f0ae50;
}

.drawn-card--deadly
.drawn-card__title {
  color: #e5604b;
}

.drawn-card--life-threatening
.drawn-card__title {
  color: #e2487b;

  text-shadow:
    0 0 20px
    rgba(226, 48, 109, 0.4);
}

/* =========================================================
   RESOURCE NAVIGATION
   ========================================================= */

.resource-navigation {
  display: flex;
  flex-wrap: wrap;

  justify-content: center;

  gap:
    12px
    22px;

  margin-top: 34px;
}

.resource-navigation a {
  color: #ddb15e;

  font-family:
    "Cinzel",
    Georgia,
    serif;

  font-size: 0.68rem;

  text-decoration: none;
}

.resource-navigation a:hover,
.resource-navigation a:focus-visible {
  color: var(--gold-light);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  width:
    min(
      calc(100% - 36px),
      var(--content-width)
    );

  margin: 0 auto;

  padding:
    28px
    0
    38px;

  border-top:
    1px solid
    rgba(219, 158, 54, 0.22);

  color:
    rgba(243, 224, 185, 0.56);

  font-size: 0.68rem;
}

.site-footer__brand {
  display: flex;

  align-items: center;

  gap: 11px;

  text-decoration: none;
}

.site-footer__brand img {
  width: 42px;
  height: 42px;

  object-fit: contain;
}

.site-footer__brand span {
  display: flex;
  flex-direction: column;
}

.site-footer__brand strong {
  color: var(--gold-light);

  font-family:
    "Cinzel",
    Georgia,
    serif;
}

.site-footer__brand small {
  margin-top: 3px;
}

.site-footer > a {
  color: #ddb15e;

  text-decoration: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns:
      1fr
      auto;
  }

  .main-navigation {
    display: none;
  }

  .deck-hero {
    grid-template-columns:
      1fr
      1fr;
  }

  .attack-selector {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}

/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 700px) {
  .site-header {
    position: relative;

    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;

    min-height: 0;

    gap: 10px;

    padding:
      10px
      12px;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand__logo {
    width: 46px;
    height: 46px;
  }

  .site-brand__copy strong {
    font-size: 1rem;
  }

  .site-brand__copy small {
    display: none;
  }

  .site-header #auth-buttons,
  .site-header .auth-actions {
    display: flex !important;

    justify-content: flex-end;

    width: auto !important;

    gap: 7px;
  }

  .site-header .auth-button,
  .site-header #auth-buttons .btn {
    min-width: 68px;
    min-height: 38px;

    padding:
      8px
      10px;

    font-size: 0.62rem;
  }

  /* Keep the artwork and text beside each other. */
  .deck-hero {
    display: grid;

    grid-template-columns:
      minmax(0, 54%)
      minmax(0, 46%);

    align-items: stretch;

    min-height: 430px;
  }

  .deck-hero__art {
    width: 100%;
    height: 430px;
    min-height: 0;

    overflow: hidden;
  }

  .deck-hero__image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
      Move the visible area upward and slightly right
      so Tippy's head and upper body remain visible.
    */
    object-position: 56% 25%;

    transform: none;
  }

  .deck-hero__art::after {
    background:
      linear-gradient(
        90deg,
        transparent 72%,
        rgba(5, 6, 10, 0.92)
      ),
      linear-gradient(
        180deg,
        transparent 80%,
        rgba(5, 6, 10, 0.65)
      );
  }

  .deck-hero__glow {
    top: 28%;
    right: 10%;

    width: 95px;
    height: 95px;
  }

  .deck-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding:
      22px
      18px
      22px
      14px;

    text-align: left;
  }

  .deck-hero__content .eyebrow {
    margin-bottom: 8px;

    font-size: 0.56rem;
    letter-spacing: 0.11em;
  }

  .deck-hero h1 {
    font-size:
      clamp(
        1.75rem,
        7vw,
        2.75rem
      );

    line-height: 0.98;
  }

  .deck-hero h1 span {
    margin-top: 4px;
  }

  .deck-hero__dnd-logo {
    width:
      min(
        190px,
        95%
      );

    max-height: 70px;

    margin:
      14px
      0
      12px;

    object-position: left center;
  }

  .deck-hero__description {
    max-width: none;

    margin: 0;

    font-size: 0.78rem;
    line-height: 1.55;
  }

  .greeting {
    margin-bottom: 0;

    font-size: 0.72rem;
  }

  .deck-workspace {
    width:
      calc(100% - 20px);

    padding:
      44px
      0
      68px;
  }

  .deck-workspace__heading {
    margin-bottom: 26px;

    padding:
      0
      10px;
  }

  .deck-workspace__heading h2 {
    font-size:
      clamp(
        1.8rem,
        8vw,
        2.8rem
      );
  }

  .deck-workspace__heading > p:last-child {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .attack-selector {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .attack-option__panel {
    display: grid;

    grid-template-columns:
      76px
      1fr;

    grid-template-rows:
      auto
      auto;

    min-height: 112px;

    column-gap: 15px;

    padding:
      14px
      18px;

    text-align: left;
  }

  .attack-option__panel img {
    grid-row:
      1 / 3;

    width: 68px;
    height: 68px;

    margin: 0;
  }

  .attack-option__panel strong,
  .attack-option__panel small {
    text-align: left;
  }

  .attack-option__panel strong {
    align-self: end;
  }

  .attack-option__panel small {
    align-self: start;
  }

  .deck-controls {
    display: grid;

    grid-template-columns: 1fr;

    width:
      min(
        100%,
        360px
      );

    margin-inline: auto;
    margin-bottom: 30px;
  }

  .fantasy-button {
    width: 100%;
  }

  .critical-display {
    min-height: 390px;

    padding:
      18px
      10px;
  }

  .critical-display__header {
    flex-direction: column;

    align-items: center;

    gap: 7px;

    text-align: center;
  }

  .critical-card {
    min-height: 290px;

    padding:
      24px
      8px;
  }

  .drawn-card__metadata {
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;

    text-align: center;
  }

  .floating-embers span:nth-child(even) {
    display: none;
  }
}

/*
  Very narrow phones need the hero stacked because the
  text column becomes too narrow below approximately 480px.
*/

@media (max-width: 480px) {
  .site-header {
    display: flex;
    flex-direction: column;
  }

  .site-header #auth-buttons,
  .site-header .auth-actions {
    justify-content: center;

    width: 100% !important;
  }

  .deck-hero {
    display: flex;
    flex-direction: column;

    min-height: 0;
  }

  .deck-hero__art {
    height:
      clamp(
        320px,
        92vw,
        430px
      );
  }

  .deck-hero__image {
    object-position: 56% 22%;
  }

  .deck-hero__art::after {
    background:
      linear-gradient(
        180deg,
        transparent 70%,
        #05060a
      );
  }

  .deck-hero__content {
    padding:
      24px
      18px
      38px;

    text-align: center;
  }

  .deck-hero__dnd-logo {
    margin-inline: auto;

    object-position: center;
  }

  .deck-hero__description {
    margin-inline: auto;
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes atmosphere-drift {
  from {
    transform:
      translate3d(
        -4%,
        -2%,
        0
      )
      scale(0.94);
  }

  to {
    transform:
      translate3d(
        7%,
        6%,
        0
      )
      scale(1.08);
  }
}

@keyframes ember-rise {
  0% {
    opacity: 0;

    transform:
      translate3d(
        0,
        0,
        0
      )
      scale(0.6);
  }

  18% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;

    transform:
      translate3d(
        28px,
        -110vh,
        0
      )
      scale(1.25);
  }
}

@keyframes skull-glow {
  from {
    opacity: 0.62;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (
  prefers-reduced-motion:
  reduce
) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      1ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      1ms !important;
  }
}
/* =========================================================
   FAIL DECK THEME
   Loaded after pchdStyle.css
   ========================================================= */

.fail-deck-page {
  --gold: #b981d8;
  --gold-light: #e3bcf4;
  --gold-dark: #58276d;

  --red: #7c1c3d;
  --red-dark: #26040f;

  background:
    radial-gradient(
      circle at 48% 0,
      rgba(90, 31, 115, 0.32),
      transparent 40rem
    ),
    linear-gradient(
      180deg,
      #09070d,
      #040307 48%,
      #010103
    );
}

/* Header */

.fail-deck-page .site-header {
  border-bottom-color:
    rgba(174, 91, 207, 0.28);

  background:
    linear-gradient(
      180deg,
      rgba(10, 6, 14, 0.98),
      rgba(7, 4, 10, 0.91)
    );
}

.fail-deck-page .main-navigation a,
.fail-deck-page .site-brand__copy strong {
  color: #d6a6eb;
}

.fail-deck-page .main-navigation a::after {
  background: #a34bc6;

  box-shadow:
    0 0 10px
    rgba(166, 73, 205, 0.9);
}

/* Hero */

.fail-deck-page .deck-hero {
  border-bottom-color:
    rgba(152, 58, 180, 0.28);

  background:
    radial-gradient(
      circle at 70% 42%,
      rgba(103, 27, 126, 0.2),
      transparent 38%
    ),
    #040307;
}

.fail-deck-page .deck-hero__art::after {
  background:
    linear-gradient(
      90deg,
      transparent 54%,
      rgba(4, 3, 7, 0.72)
    ),
    linear-gradient(
      180deg,
      transparent 72%,
      #040307
    );
}

.fail-deck-page .deck-hero__glow {
  top: 58%;
  right: 18%;

  background:
    radial-gradient(
      circle,
      rgba(187, 55, 219, 0.42),
      rgba(102, 23, 136, 0.22) 46%,
      transparent 72%
    );

  animation-name:
    fail-glow;
}

.fail-deck-page .eyebrow {
  color: #b675d0;
}

.fail-deck-page .deck-hero h1 {
  color: #eadbf0;

  text-shadow:
    0 3px 2px
      rgba(19, 4, 24, 0.95),
    0 0 27px
      rgba(160, 64, 190, 0.25);
}

.fail-deck-page .deck-hero h1 span {
  color: #c77be3;
}

/* Attack choices */

.fail-deck-page .attack-option__panel {
  border-color:
    rgba(144, 69, 168, 0.38);

  background:
    linear-gradient(
      180deg,
      rgba(34, 17, 40, 0.97),
      rgba(10, 6, 13, 0.99)
    );
}

.fail-deck-page
.attack-option__glow {
  background:
    radial-gradient(
      circle,
      rgba(172, 56, 211, 0.46),
      transparent 70%
    );
}

.fail-deck-page
.attack-option input:checked
+ .attack-option__panel {
  border-color: #d798ef;

  box-shadow:
    inset 0 0 0 1px
      rgba(231, 177, 250, 0.12),
    0 0 25px
      rgba(151, 56, 190, 0.43),
    0 18px 30px
      rgba(0, 0, 0, 0.58);
}

/* Buttons */

.fail-deck-page
.fantasy-button--draw {
  background:
    linear-gradient(
      180deg,
      #8d285c,
      #571438 54%,
      #270619
    );

  border-color: #9d477c;
}

.fail-deck-page
.fantasy-button--reset {
  background:
    linear-gradient(
      180deg,
      #523168,
      #301640 54%,
      #13081b
    );

  border-color: #704285;
}

/* Card chamber */

.fail-deck-page .fail-display {
  border-color: #663375;

  background:
    linear-gradient(
      135deg,
      rgba(54, 22, 62, 0.99),
      rgba(22, 10, 27, 0.99) 32%,
      rgba(8, 5, 11, 0.99)
    );

  box-shadow:
    inset 0 0 0 4px
      rgba(132, 53, 157, 0.16),
    inset 0 0 80px
      rgba(0, 0, 0, 0.72),
    0 28px 70px
      rgba(0, 0, 0, 0.7);
}

.fail-deck-page
.critical-display::before,
.fail-deck-page
.critical-display::after {
  border-color:
    rgba(193, 103, 220, 0.4);
}

.fail-deck-page
.critical-display__header {
  border-bottom-color:
    rgba(181, 87, 207, 0.28);
}

.fail-deck-page
.deck-status,
.fail-deck-page
.cards-remaining {
  color: #c98cde;
}

.fail-deck-page
.critical-card__empty > span {
  color: #b866d2;

  text-shadow:
    0 0 22px
    rgba(173, 70, 207, 0.65);
}

.fail-deck-page
.critical-card__empty strong {
  color: #dba6ed;
}

.fail-deck-page
.drawn-card__attack {
  color: #b96ed4;
}

.fail-deck-page
.drawn-card__title {
  color: #d6a0e8;

  text-shadow:
    0 0 20px
    rgba(177, 70, 210, 0.35);
}

/* Fail severity colors */

.fail-deck-page
.drawn-card--setback
.drawn-card__title {
  color: #d7b0e4;
}

.fail-deck-page
.drawn-card--blunder
.drawn-card__title {
  color: #e486b6;
}

.fail-deck-page
.drawn-card--ruin
.drawn-card__title {
  color: #ff526f;

  text-shadow:
    0 0 24px
    rgba(255, 53, 90, 0.48);
}

.fail-deck-page
.drawn-card--ruin {
  animation:
    ruin-shake
    0.42s
    ease-out;
}

/* Purple smoke particles */

.fail-deck-page
.floating-embers span {
  background: #bc62e1;

  box-shadow:
    0 0 9px
      rgba(198, 105, 234, 0.9),
    0 0 20px
      rgba(110, 38, 151, 0.55);
}

.fail-deck-page
.atmosphere-glow--purple {
  background: #762694;
}

.fail-deck-page
.atmosphere-glow--ember {
  background: #73183e;
}

/* =========================================================
   FAIL DECK PHONE IMAGE FRAMING
   ========================================================= */

@media (max-width: 700px) {
  .fail-deck-page .deck-hero__image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 52% 24%;

    transform: none;
  }

  .fail-deck-page .deck-hero__art::after {
    background:
      linear-gradient(
        90deg,
        transparent 72%,
        rgba(4, 3, 7, 0.92)
      ),
      linear-gradient(
        180deg,
        transparent 80%,
        rgba(4, 3, 7, 0.65)
      );
  }

  .fail-deck-page .deck-hero__glow {
    top: 30%;
    right: 10%;
  }
}

@media (max-width: 480px) {
  .fail-deck-page .deck-hero__image {
    object-position: 52% 22%;
  }

  .fail-deck-page .deck-hero__art::after {
    background:
      linear-gradient(
        180deg,
        transparent 68%,
        #040307
      );
  }
}