@font-face { font-family: Archivo; src: url("fonts/NearcastText.ttf") format("truetype"); }
@font-face { font-family: Fell; src: url("fonts/NearcastDisplay.ttf") format("truetype"); }

body {
  background: #211628;
  color: #fff0d5;
  font: 14px/1.4 Archivo, sans-serif;
}

#s {
  display: inline-block;
  padding: 4px 8px;
  background: #211628;
}

/* 2026-12-04: the launcher shows this notice before the wizard enters a shard. */
.party-refusal h1 { font: 25px Fell, Georgia, serif; margin: 0 0 10px; }
.party-refusal p { margin: 0 0 18px; }
.party-refusal a { color: inherit; }
.illustrated-entry {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: #f1e5cf;
  background: radial-gradient(ellipse at 43% 40%, #353732 0%, #1c2221 45%, #101414 95%);
}
.illustrated-entry #s.party-refusal {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  width: min(680px, calc(100% - 32px));
  /* 2026-12-05, D199: use the illustrated window's mitred iron around the live contents. */
  padding: 0;
  border: 16px solid transparent;
  border-image: url("/assets/packs/grimdark/invitation-iron.webp") 16 / 16px round;
  background: #252927 padding-box;
  filter: drop-shadow(0 9px 14px #090d0d99);
}
.illustrated-entry .party-refusal::before {
  content: "";
  background: center / cover url("/assets/packs/grimdark/spent-invitation.webp");
  box-shadow: inset 0 0 0 1px #b49e7359, inset 0 0 22px #17171266;
}
.invitation-copy {
  padding: clamp(16px, 2.8vw, 30px);
  border-left: 2px ridge #746047;
  background: linear-gradient(130deg, #343734, #232626 68%);
}
.invitation-copy .invitation-kind {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c7af81;
  font: 600 12px/1.4 Archivo, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.invitation-kind::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, #897657, transparent);
}
.illustrated-entry .party-refusal h1 { font-size: clamp(24px, 3.6vw, 33px); line-height: 1.07; }
.invitation-copy p { color: #d3cdbf; margin: 0 0 16px; }
.illustrated-entry .party-refusal a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  width: 212px;
  max-width: 100%;
  min-height: 64px;
  padding: 9px 21px 13px;
  color: #f3e6c8;
  font: bold 20px/1.1 Fell, Georgia, serif;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 -1px 1px #100e0c, 0 1px 1px #191713;
}
.illustrated-entry .party-refusal a::before,
.illustrated-entry .party-refusal a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: top / 100% 200% no-repeat url("/assets/packs/grimdark/invitation-slate.webp");
}
.illustrated-entry .party-refusal a::after {
  background-position: bottom;
  opacity: 0;
  transition: opacity 145ms ease-out;
}
.illustrated-entry .party-refusal a:hover { color: #fff6de; }
.illustrated-entry .party-refusal a:active::after { opacity: 1; transition-duration: 90ms; }
.illustrated-entry .party-refusal a:focus-visible {
  outline: none;
  filter: drop-shadow(1px 1px 0 #f2ddb0) drop-shadow(-1px -1px 0 #f2ddb0);
}
@media (forced-colors: active) {
  .illustrated-entry .party-refusal a:focus-visible { outline: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  .illustrated-entry .party-refusal a::after { transition: none; }
}
@media (max-width: 490px) {
  .illustrated-entry #s.party-refusal { grid-template-columns: 1fr; }
  .illustrated-entry .party-refusal::before { height: clamp(94px, 27dvh, 210px); background-position: center 60%; }
  .invitation-copy { border-left: 0; border-top: 1px solid #766549; }
}

.illustrated-entry #s.shard-refusal { grid-template-columns: 32% minmax(0, 1fr); }
.illustrated-entry .shard-refusal::before {
  background: center / auto 79% no-repeat url("/assets/packs/grimdark/shard-gate.webp"),
              radial-gradient(ellipse, #39413e, #1b2020 76%);
}
.shard-refusal .invitation-copy { align-content: center; }
@media (max-width: 490px) {
  .illustrated-entry #s.shard-refusal { grid-template-columns: 1fr; }
  .illustrated-entry .shard-refusal::before { height: clamp(88px, 19dvh, 148px); }
}
