﻿:root {
  color-scheme: dark;
  --bg: #0e0e0e;
  --panel: #1d1d1d;
  --border: #535353;
  --text: #e1e1e1;
  --muted: #acacac;
  --accent: #b9b9b9;
  --heading-font:
    'Goudy Medieval', 'Goudy Medieval Std', 'Goudy Old Style', 'Palatino Linotype', serif;
  --body-font: 'Plantin', 'Plantin MT Pro', 'Book Antiqua', Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 25%, #27272766, transparent 55%), var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 17px;
}
button,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
header {
  max-width: 1320px;
  margin: auto;
  padding: 27px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.brand > span:last-child {
  color: var(--accent);
}
.mark {
  display: grid;
  place-items: center;
  margin-right: 12px;
  width: 30px;
  height: 35px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  font-size: 27px;
  transform: rotate(-8deg);
}
.tagline {
  color: var(--muted);
  font-size: 13px;
}
main {
  max-width: 1000px;
  padding: 0 24px 72px;
  margin: auto;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 36px auto 49px;
  display: flex;
  justify-content: center;
  gap: 36px;
  color: var(--muted);
  font-size: 14px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.steps li + li::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--border);
  margin-right: 20px;
}
.steps b {
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.steps [aria-current] {
  color: var(--accent);
}
.steps [aria-current] b {
  border-color: #919191;
  background: #b9b9b910;
}
.intro {
  text-align: center;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 2.4px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: -2.8px;
  margin: 0;
  font-weight: 750;
}
h1 span {
  color: var(--accent);
}
.intro > p:last-child {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  margin: 22px 0 32px;
}
.panel {
  max-width: 640px;
  margin: auto;
  padding: 28px;
  background: linear-gradient(140deg, #282828, var(--panel));
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 18px 60px #0003;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}
h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.panel-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  margin: 7px 0 0;
}
.panel-heading > span {
  font: 14px var(--body-font);
  margin-top: 5px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  font-size: 14px;
}
.toolbar label {
  font-weight: 600;
}
.text-button {
  border: 0;
  padding: 4px 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
}
.text-button:hover {
  text-decoration: underline;
}
textarea {
  display: block;
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border: 1px solid #5a5a5a;
  border-radius: 8px;
  background: #111111;
  color: var(--text);
  padding: 18px;
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1.8;
}
textarea::placeholder {
  color: #787878;
  opacity: 1;
}
textarea:focus {
  outline: 2px solid #b9b9b928;
  border-color: var(--accent);
}
textarea.dragging {
  outline: 2px dashed var(--accent);
  background: #292929;
}
textarea[aria-invalid='true'] {
  border-color: #b3b3b3;
}
.helper {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.upload-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 23px;
}
.upload-row > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.secondary {
  padding: 10px 14px;
  border: 1px solid #686868;
  background: #ffffff03;
  border-radius: 2px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}
.secondary:hover {
  background: #ffffff0b;
  border-color: #a8a8a8;
}
#import-status {
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0 12px;
  line-height: 1.6;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 19px;
  background: var(--accent);
  color: #e3e3e3;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
}
.primary:hover {
  background: #373737;
}
.primary span {
  font-size: 20px;
  line-height: 1;
}
.under-panel {
  color: #a0a0a0;
  text-align: center;
  font-size: 13px;
  margin: 20px 0 0;
}
.errors {
  padding: 14px;
  border: 1px solid #626262;
  border-radius: 2px;
  color: #cccccc;
  margin-bottom: 15px;
  font-size: 14px;
}
.errors h3 {
  margin: 0;
  font-size: 13px;
}
.errors ul {
  padding-left: 18px;
  margin-bottom: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.preview {
  max-width: 740px;
}
.preview h2 {
  font-size: 30px;
}
.preview {
  max-width: 950px;
}
.flow-next {
  margin-top: 24px;
}
#selection-status {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.picker-shortcut {
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: #b9b9b910;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
.art-choice {
  touch-action: manipulation;
}
.picker-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.art-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: #111111;
  color: var(--text);
  text-align: left;
}
.art-choice:hover {
  border-color: #a3a3a3;
}
.art-choice[aria-pressed='true'] {
  border-color: var(--accent);
  background: #353535;
  box-shadow: 0 0 0 2px #b9b9b930;
}
.art-choice img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.choice-caption {
  font-size: 14px;
  width: 100%;
  line-height: 1.5;
}
.choice-artist {
  color: var(--muted);
  font-size: 13px;
  width: 100%;
}
.image-unavailable {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--muted);
}
.picker-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 0;
  position: sticky;
  bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.picker-controls .primary {
  width: auto;
}
.export-label {
  display: block;
  margin: 24px 0 10px;
}
.deck-review h2 {
  font-size: 32px;
}
.review-help {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.review-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.65fr) auto;
  align-items: center;
  gap: 18px;
}
.review-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.review-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.quantity-badge {
  flex-shrink: 0;
  border-radius: 2px;
  background: #b9b9b91a;
  color: var(--accent);
  padding: 4px 9px;
  font-weight: 700;
}
.review-images {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: min(330px, 40vw);
  max-height: 80vh;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--accent);
  background: var(--panel);
  box-shadow: 0 12px 40px #000c;
  z-index: 10;
}
.review-images img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.review-printing {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.review-card > button {
  width: auto;
  font-size: 14px;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
summary {
  cursor: pointer;
  color: var(--accent);
}
.artwork-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
  min-width: 160px;
  max-width: 380px;
}
.artwork-gallery figure {
  margin: 0;
}
.artwork-gallery img {
  width: 100%;
  max-width: 146px;
  height: auto;
  border-radius: 3px;
}
.artwork-gallery figcaption {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}
td.missing-card {
  color: #cccccc;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
td,
th {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
}
td:first-child {
  color: var(--accent);
  width: 55px;
}
td:nth-child(2) {
  overflow-wrap: anywhere;
}
td:last-child {
  color: var(--muted);
}
.preview-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 22px 0 0;
}
footer {
  max-width: 1224px;
  margin: auto;
  padding: 23px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #a0a0a0;
  font-size: 13px;
}
@media (max-width: 600px) {
  header {
    padding: 22px 20px;
  }
  .tagline {
    display: none;
  }
  main {
    padding: 0 16px 45px;
  }
  .steps {
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0 38px;
    font-size: 14px;
  }
  .steps li {
    gap: 6px;
  }
  .steps li + li::before {
    display: none;
  }
  .steps b {
    width: 22px;
    height: 22px;
  }
  h1 {
    letter-spacing: -1.8px;
  }
  .intro > p:last-child {
    font-size: 14px;
  }
  .intro br {
    display: initial;
  }
  .panel {
    padding: 20px;
  }
  .upload-row {
    align-items: flex-start;
  }
  .helper {
    font-size: 14px;
  }
  .preview .panel-heading {
    flex-direction: column;
  }
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.6;
  }
}

/* Fantasy typography and framed panels. */
body {
  background:
    radial-gradient(ellipse at 50% 0, #46464640, transparent 65%),
    repeating-linear-gradient(94deg, #d0d0d010 0, transparent 1px, transparent 7px),
    repeating-linear-gradient(4deg, #00000018 0, transparent 2px, transparent 5px), var(--bg);
}
h1,
h2,
.brand,
.review-card h3 {
  font-family: var(--heading-font);
  font-weight: 400;
  letter-spacing: 0.02em;
}
header {
  border-bottom: 3px double var(--border);
  background: linear-gradient(#191919c9, #0f0f0fbf);
}
.brand {
  font-size: 29px;
  letter-spacing: 0.025em;
  text-shadow: 0 2px 2px #000;
}
.mark {
  border-radius: 0;
  transform: rotate(0);
  border: 3px double var(--accent);
  background: #292929;
}
.tagline {
  font-style: italic;
  font-size: 16px;
}
main {
  max-width: 1140px;
}
.steps {
  gap: 18px;
  font-size: 15px;
}
.steps li + li::before {
  width: 22px;
  margin-right: 10px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.steps b {
  border-radius: 2px;
  background: #191919;
  font-family: var(--heading-font);
}
.steps [aria-current] b {
  border-color: var(--accent);
  background: #333333;
}
.intro {
  position: relative;
  padding-bottom: 8px;
}
.intro::before {
  content: '◆ ─── ✦ ─── ◆';
  display: block;
  color: #868686;
  margin-bottom: 22px;
  letter-spacing: 5px;
  font-size: 16px;
}
h1 {
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 1.12;
  text-shadow: 0 3px 2px #000;
}
h1 span {
  color: #c2c2c2;
}
.intro > p:last-child {
  font-size: 19px;
  line-height: 1.65;
}
.eyebrow {
  letter-spacing: 0.18em;
  font-size: 13px;
}
h2,
.preview h2,
.deck-review h2 {
  font-size: 32px;
  color: #d8d8d8;
}
.panel,
.review-card {
  border: 1px solid #858585;
  outline: 1px solid #3c3c3c;
  outline-offset: 4px;
  background:
    radial-gradient(ellipse at top, #44444438, transparent 70%),
    repeating-linear-gradient(0deg, #ffffff02 0, #ffffff02 1px, transparent 1px, transparent 4px),
    var(--panel);
  box-shadow:
    inset 0 0 0 4px #0d0d0d55,
    0 12px 35px #0008;
}
.panel-heading {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.panel-heading p:not(.eyebrow) {
  font-size: 16px;
}
textarea {
  background: radial-gradient(ellipse at center, #d1d1d1, #a3a3a3);
  color: #202020;
  border: 1px solid #757575;
  border-radius: 2px;
  box-shadow: inset 0 2px 14px #33333355;
  font-size: 17px;
  line-height: 1.65;
  caret-color: #323232;
}
textarea::placeholder {
  color: #575757;
}
textarea.dragging {
  background: #cacaca;
}
textarea:focus {
  outline: 2px solid #b9b9b966;
  outline-offset: 2px;
}
.toolbar,
.text-button,
.secondary,
.helper,
.upload-row > span,
#import-status,
.under-panel {
  font-size: 15px;
}
.primary {
  background: linear-gradient(#434343, #272727);
  border: 1px solid #9a9a9a;
  border-radius: 2px;
  color: #e1e1e1;
  box-shadow:
    inset 0 0 0 3px #10101055,
    0 3px 6px #0006;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px #000;
}
.primary:hover {
  background: linear-gradient(#555555, #333333);
  border-color: #cfcfcf;
}
.secondary {
  background: linear-gradient(#2f2f2f, #1c1c1c);
  color: #d7d7d7;
  box-shadow: inset 0 0 0 2px #0d0d0d44;
}
.secondary:hover {
  background: #3c3c3c;
  border-color: #b9b9b9;
}
.art-choice {
  border-radius: 3px;
  background: linear-gradient(#2a2a2a, #121212);
  box-shadow: 0 4px 12px #0007;
}
.art-choice[aria-pressed='true'] {
  background: #373737;
  border-color: #cacaca;
  box-shadow:
    0 0 0 2px #787878,
    0 5px 18px #0008;
}
.choice-caption {
  font-size: 16px;
}
.choice-artist,
.review-printing,
.artwork-gallery figcaption {
  font-size: 14px;
}
.picker-controls {
  background: #1c1c1c;
  border-top: 3px double #6f6f6f;
  padding: 16px 12px;
  gap: 16px;
  z-index: 1;
  box-shadow: 0 -6px 15px #0004;
}
.review-card h3 {
  font-size: 25px;
  line-height: 1.25;
  color: #e1e1e1;
}
.review-card-heading {
  border: 0;
  padding: 0;
  margin: 0;
  align-items: center;
}
.review-name {
  padding: 4px 0;
  border: 0;
  background: none;
  color: #e1e1e1;
  text-align: left;
  font: 22px var(--heading-font);
  line-height: 1.3;
  text-decoration: underline dotted #7a7a7a;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.review-name:hover {
  color: var(--accent);
}
.review-printing {
  margin: 0;
}
.quantity-badge {
  background: #2b2b2b;
  border: 1px solid #7a7a7a;
  border-radius: 2px;
}
.review-help,
.preview-note {
  font-size: 17px;
}
.review-card > button {
  font-size: 16px;
}
table {
  font-size: 16px;
}
th {
  font-size: 15px;
  color: #bfbfbf;
  background: #2d2d2d;
}
footer {
  border-top: 3px double var(--border);
  font-size: 14px;
}
::selection {
  background: #5f5f5f;
  color: #f1f1f1;
}
@media (max-width: 600px) {
  .review-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .review-card-heading {
    grid-column: 1 / -1;
  }
  .review-name {
    font-size: 21px;
  }
  .review-images {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-height: 65vh;
    box-shadow: none;
  }
  .brand {
    font-size: 25px;
  }
  .steps {
    gap: 12px 16px;
    font-size: 13px;
  }
  .steps li {
    flex: 0 1 calc(50% - 16px);
  }
  h1 {
    letter-spacing: 0.01em;
  }
  .intro > p:last-child {
    font-size: 17px;
  }
  h2,
  .preview h2,
  .deck-review h2 {
    font-size: 28px;
  }
  .panel {
    padding: 20px 16px;
  }
  .helper {
    font-size: 13px;
  }
  .upload-row {
    flex-wrap: wrap;
  }
  .picker-controls {
    padding: 12px 8px;
  }
}

/* Black page over the supplied background, with red accents. */
:root {
  --bg: #080808;
  --panel: #171717;
  --border: #424242;
  --text: #f2f2f2;
  --muted: #b9b9b9;
  --accent: #ef7777;
}
body {
  background: #080808 url('/img/background.png') center top / cover fixed no-repeat;
  min-height: 100vh;
}
header,
main,
footer {
  background: rgba(0, 0, 0, 0.82);
}
header,
footer {
  max-width: 1140px;
}
main {
  display: flow-root;
  min-height: calc(100vh - 180px);
  border-inline: 1px solid #292929;
  box-shadow: 0 0 70px #000b;
}
header {
  border-bottom: 3px double #633030;
}
footer {
  border-top: 3px double #633030;
}
.intro::before {
  content: none;
}
h1 {
  font-size: clamp(40px, 5.5vw, 64px);
}
h1 span,
h2,
.preview h2,
.deck-review h2,
.review-name {
  color: #f2f2f2;
}
.brand > span:last-child,
.eyebrow {
  color: var(--accent);
}
.mark,
.steps [aria-current] b {
  background: #301414;
  border-color: #b34949;
}
.panel,
.review-card {
  background: #171717;
  border-color: #555;
  outline-color: #303030;
  box-shadow:
    inset 0 0 0 4px #0d0d0d,
    0 12px 35px #0008;
}
textarea {
  background: #0a0a0a;
  color: #eee;
  border-color: #555;
  caret-color: #fff;
  box-shadow: inset 0 2px 12px #0008;
}
textarea::placeholder {
  color: #999;
}
textarea:focus {
  border-color: var(--accent);
  outline-color: #ef777744;
}
textarea.dragging {
  background: #291515;
}
.primary {
  background: linear-gradient(#8b2929, #5e1b1b);
  border-color: #c65d5d;
  color: #fff;
}
.primary:hover {
  background: linear-gradient(#a43636, #742323);
  border-color: #f18b8b;
}
.secondary {
  background: linear-gradient(#303030, #1b1b1b);
  color: #eee;
  border-color: #606060;
}
.secondary:hover {
  background: #383838;
  border-color: #b9b9b9;
}
.art-choice {
  background: #131313;
  border-color: #444;
}
.art-choice:hover {
  border-color: #c65d5d;
}
.art-choice[aria-pressed='true'] {
  background: #2b1515;
  border-color: #ef7777;
  box-shadow:
    0 0 0 2px #863737,
    0 5px 18px #0008;
}
.picker-shortcut {
  background: #291515;
  border-color: #c65d5d;
}
.picker-controls {
  background: #111;
  border-top-color: #633030;
}
.quantity-badge {
  background: #292929;
  border-color: #666;
  color: #fff;
}
.review-name {
  text-decoration-color: #999;
}
.review-name:hover {
  color: var(--accent);
}
th {
  background: #252525;
  color: #eee;
}
.errors,
td.missing-card {
  color: #ffaaaa;
}
.errors {
  border-color: #a94d4d;
}
::selection {
  background: #8b2929;
  color: #fff;
}
@media (max-width: 600px) {
  body {
    background-attachment: scroll;
  }
}

#export-status {
  white-space: pre-line;
}

.export-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.export-tabs button {
  background: #202020;
  border: 1px solid #555;
  color: var(--text);
  padding: 12px 16px;
}
.export-tabs button[aria-selected='true'] {
  background: #541f1f;
  border-color: var(--accent);
  box-shadow: inset 0 -3px var(--accent);
}
.foil-cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.foil-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  background: #101010;
  border: 1px solid var(--border);
}
.foil-images {
  display: grid;
  gap: 8px;
}
.foil-images img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.foil-card h3 {
  font-family: var(--heading-font);
  font-size: 24px;
  margin: 0 0 16px;
}
.foil-card label {
  display: block;
  margin-bottom: 8px;
}
.finish-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.finish-buttons button {
  padding: 10px 18px;
  background: #222;
  color: #fff;
  border: 1px solid #777;
  font: inherit;
}
.finish-buttons button[aria-pressed='true'] {
  background: #541f1f;
  border-color: var(--accent);
  box-shadow: inset 0 -3px var(--accent);
  font-weight: 700;
}
.finish-buttons button:focus-visible {
  outline: 2px solid var(--accent);
}
@media (max-width: 600px) {
  .foil-card {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
  }
  .foil-card h3 {
    font-size: 20px;
  }
}

button[aria-busy='true']::after {
  content: '.....';
  display: inline-block;
  width: 1.5em;
  clip-path: inset(0 100% 0 0);
  animation: loading-dots 1.5s steps(6, end) infinite;
}

@keyframes loading-dots {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  button[aria-busy='true']::after {
    animation: none;
    clip-path: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bug-link {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid #777;
  border-radius: 3px;
  color: #eee;
  text-decoration: none;
  background: #202020;
}
.bug-link:hover {
  background: #383030;
}
.bug-page {
  max-width: 800px;
}
#bug-form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
#bug-title {
  width: 100%;
  padding: 0.8rem;
  color: #eee;
  background: #161616;
  border: 1px solid #777;
  font: inherit;
  box-sizing: border-box;
}
#bug-details {
  width: 100%;
  box-sizing: border-box;
}
#bug-status {
  color: #ffb4b4;
}

.legal-footer {
  display: block;
  padding: 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
  color: #bbb;
}
.legal-footer p {
  margin: 0 0 0.75rem;
}
.legal-footer a,
.legal-page a,
#bug-form p a {
  color: #eee;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.legal-page {
  max-width: 900px;
  line-height: 1.7;
}
.legal-page h2 {
  margin-top: 1.5rem;
}

@font-face {
  font-family: 'MTG Goudy';
  src: url('/fonts/goudy-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MTG Goudy';
  src: url('/fonts/goudy-demibold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MTG Plantin';
  src: url('/fonts/plantin-italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --heading-font: 'MTG Goudy', 'Palatino Linotype', serif;
  --body-font: 'MTG Plantin', Georgia, serif;
}

.brand-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.brand:has(.brand-logo) {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .brand-logo {
    width: 60px;
    height: 60px;
  }
}

.brand {
  gap: 0.65rem;
}
.brand-name {
  font-family: var(--heading-font);
  white-space: nowrap;
}
.brand-mtg {
  color: #fff;
}
.brand-artpick {
  color: #d44848;
}

/* Keep the import action close to the editor on the opening screen. */
body:has(#deck-import:not([hidden])) header {
  padding-top: 12px;
  padding-bottom: 12px;
}
.steps {
  margin: 16px auto 20px;
  gap: 14px;
}
#deck-import .intro {
  padding-bottom: 0;
}
#deck-import .eyebrow {
  margin-bottom: 8px;
}
#deck-import h1 {
  font-size: clamp(32px, 4vw, 48px);
}
#deck-import .intro > p:last-child {
  margin: 8px 0 16px;
  font-size: 17px;
  line-height: 1.35;
}
#deck-import .intro br {
  display: none;
}
#import-form {
  padding: 18px 22px;
}
#import-form .panel-heading {
  padding-bottom: 8px;
  margin-bottom: 10px;
}
#import-form .panel-heading h2 {
  font-size: 26px;
}
#import-form .panel-heading p {
  margin: 4px 0 0;
}
#decklist {
  height: 184px;
  min-height: 140px;
  padding: 10px 12px;
  line-height: 1.25;
  overflow-y: auto;
}
#import-form .toolbar {
  margin: 6px 0;
}
#import-form .upload-row {
  margin: 8px 0;
}
#import-status {
  margin: 8px 0;
}
#deck-import .under-panel {
  margin-top: 12px;
}
@media (max-width: 600px) {
  .steps {
    gap: 8px;
    margin: 12px auto 16px;
    flex-wrap: wrap;
  }
  .steps li + li::before {
    display: none;
  }
  #import-form {
    padding: 14px;
  }
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.site-header .brand {
  justify-self: start;
}
.site-header .explore-link {
  justify-self: center;
  text-align: center;
}
.site-header .report-link {
  justify-self: end;
  padding: 0.4rem 0.65rem;
  font-size: 14px;
}
.explore-page {
  padding-top: 28px;
}
#art-search {
  margin: 24px 0;
}
.search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
}
#card-name {
  display: block;
  width: 100%;
  min-height: 48px;
  min-width: 0;
  background: #161616;
  color: #eee;
  border: 1px solid #777;
  padding: 12px;
  font: inherit;
}
#search-art {
  width: auto;
  justify-self: start;
  margin-top: 0;
}
#card-name:focus-visible {
  outline: 2px solid #d44848;
  outline-offset: 3px;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}
.explore-art {
  max-width: 380px;
  padding: 12px;
  background: #171717;
  border: 1px solid #535353;
}
.explore-art h2 {
  font-size: 24px;
  margin: 0 0 12px;
}
.explore-art figure {
  margin: 0 0 12px;
}
.explore-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.explore-art figcaption {
  margin-top: 8px;
}
@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }
  .site-header .explore-link {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .site-header .report-link {
    grid-column: 2;
    grid-row: 1;
  }
  .search-controls {
    flex-direction: column;
  }
}

/* Use spare height for breathing room; retain the compact form on short screens. */
main:has(#deck-import:not([hidden])) {
  padding-bottom: 28px;
}
@media (min-width: 761px) and (min-height: 800px) {
  main:has(#deck-import:not([hidden])) {
    --import-space: clamp(0px, calc((100vh - 800px) / 20), 8px);
  }
  main:has(#deck-import:not([hidden])) .steps {
    margin-top: calc(16px + var(--import-space));
    margin-bottom: calc(20px + var(--import-space));
  }
  #deck-import .intro > p:last-child {
    margin-top: calc(8px + var(--import-space));
    margin-bottom: calc(16px + var(--import-space));
    line-height: 1.45;
  }
  #import-form {
    padding-block: calc(18px + var(--import-space));
  }
  #import-form .panel-heading {
    padding-bottom: calc(8px + var(--import-space));
  }
  #import-form .upload-row,
  #import-status {
    margin-block: calc(8px + var(--import-space) / 2);
  }
}

@font-face {
  font-family: 'MTG Goudy Alternate';
  src: url('/fonts/goudy-alternate.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
#import-form .panel-heading h2 {
  font-family: 'MTG Goudy Alternate', var(--heading-font);
  font-weight: 400;
}

/* Texture only action controls; utility controls retain their original styles. */
body .card-textured,
body .card-textured:hover {
  --card-button-image: url('/img/border_medium.png');
  --card-button-size: 104% 108%;
  background: transparent var(--card-button-image) center / var(--card-button-size) no-repeat;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  color: #fff5e5;
  font-family: 'MTG Goudy Alternate', var(--heading-font);
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 3px #000,
    0 0 6px #000;
  padding: 12px 24px;
  min-height: 46px;
  text-align: center;
  text-decoration: none;
}
body .primary.card-textured {
  justify-content: center;
  gap: 10px;
}
#import-deck.card-textured,
#start-picker.card-textured,
#submit-bug.card-textured {
  --card-button-image: url('/img/border_long.png');
  --card-button-size: 100% 160%;
}
#next-card.card-textured,
#copy-deck.card-textured,
body .report-link.card-textured {
  --card-button-image: url('/img/border_short.png');
  --card-button-size: 116% 160%;
}
body .report-link.card-textured {
  font-size: 14px;
  min-height: 34px;
  padding: 8px 16px;
}
body .card-textured:hover:not(:disabled) {
  filter: brightness(1.15);
}
body .card-textured:active:not(:disabled) {
  filter: brightness(0.9);
}
body .card-textured:disabled {
  opacity: 0.55;
  filter: grayscale(0.65);
  cursor: not-allowed;
}
body .card-textured[aria-busy='true'] {
  cursor: wait;
}
/* A focus ring appears only for keyboard navigation. */
body .card-textured:focus-visible {
  outline: 2px solid #fff0ce;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  body .card-textured {
    font-size: 16px;
    padding: 11px 18px;
  }
  #import-deck.card-textured,
  #start-picker.card-textured,
  #submit-bug.card-textured {
    --card-button-image: url('/img/border_medium.png');
    --card-button-size: 104% 108%;
  }
}

/* Dense review list with full-sized artwork previews on hover or tap. */
#deck-review .review-gallery {
  gap: 3px;
}
#deck-review .review-card {
  padding: 6px 10px;
  gap: 10px;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.65fr) auto;
}
#deck-review .review-card-heading {
  margin: 0;
  gap: 8px;
  grid-column: auto;
}
#deck-review .review-name {
  font-size: 18px;
  line-height: 1.2;
  padding: 2px 0;
  text-underline-offset: 3px;
}
#deck-review .quantity-badge {
  padding: 1px 5px;
  font-size: 13px;
}
#deck-review .review-printing {
  font-size: 13px;
  line-height: 1.25;
}
#deck-review .review-card > button {
  padding: 5px 9px;
  min-height: 30px;
  font-size: 13px;
  line-height: 1.2;
}
@media (max-width: 600px) {
  #deck-review .review-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
  }
  #deck-review .review-card-heading {
    grid-column: 1;
    grid-row: 1;
  }
  #deck-review .review-printing {
    grid-column: 1;
    grid-row: 2;
  }
  #deck-review .review-card > button {
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 40px;
  }
}

.legal-footer .creator-credit {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.split-art-option {
  min-width: 0;
}
.split-art-option .art-choice {
  width: 100%;
}
.split-art-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
}
.split-art-option input {
  width: 76px;
  padding: 8px;
  background: #161616;
  color: #fff;
  border: 1px solid #999;
  font: inherit;
}

#card-suggestions {
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid #777;
  background: #171717;
  max-height: 300px;
  overflow-y: auto;
}
#card-suggestions [role='option'] {
  padding: 9px 12px;
  cursor: pointer;
}
#card-suggestions [role='option']:hover,
#card-suggestions [aria-selected='true'] {
  background: #542323;
  color: #fff;
}
#suggestion-status:empty {
  display: none;
}
