
:root {
  --ink: #030712;
  --ink-2: #07101f;
  --panel: rgba(4, 8, 18, .94);
  --panel-soft: rgba(9, 14, 26, .92);
  --gold: #d9a83c;
  --gold-light: #f2d27c;
  --gold-deep: #8f6117;
  --cream: #f7efd8;
  --muted: #c8bea8;
  --line: rgba(217, 168, 60, .32);
  --line-strong: rgba(217, 168, 60, .7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(circle at 15% 5%, rgba(42, 62, 100, .22), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(88, 52, 103, .15), transparent 28rem),
    linear-gradient(180deg, #02050c, #050914 55%, #02050b);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(240,199,100,.5) 0 1px, transparent 1.2px);
  background-size: 79px 79px, 137px 137px;
  background-position: 13px 19px, 42px 68px;
  z-index: -1;
}

.announcement {
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(217,168,60,.22);
  background: #02050b;
  letter-spacing: .24em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .68rem;
}

.site-header {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 18px max(4vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 16, .95);
}

.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 260px;
}

.brand-mark {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(218,168,60,.12), transparent 56%),
    #07101d;
  box-shadow: 0 0 30px rgba(217,168,60,.13), inset 0 0 18px rgba(217,168,60,.12);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(217,168,60,.28);
  border-radius: 50%;
}
.brand-mark::after { inset: 15px; }

.moon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  box-shadow: -7px 1px 0 1px var(--gold-light);
  transform: translateX(4px);
}
.brand-mark .star {
  position: absolute;
  top: 8px;
  right: 12px;
  color: var(--gold-light);
  font-size: .7rem;
}

.brand-copy strong {
  display: block;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: .16em;
  line-height: .95;
}
.brand-copy small {
  display: block;
  color: var(--gold);
  margin-top: 8px;
  letter-spacing: .42em;
  font-size: .68rem;
}

.site-nav {
  display: flex;
  gap: clamp(17px, 2.4vw, 35px);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.site-nav a {
  position: relative;
  color: #f4ecd9;
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .17em;
  padding: 18px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  transition: right .2s ease;
}
.site-nav a:hover::after { right: 0; }

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 28px;
  padding: 28px max(5vw, 34px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(2,6,15,.97) 0%, rgba(2,6,15,.84) 48%, rgba(2,6,15,.45) 100%),
    radial-gradient(circle at 76% 41%, rgba(47,71,115,.45), transparent 18rem),
    radial-gradient(circle at 82% 35%, rgba(197,154,74,.13), transparent 31rem),
    #030711;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  right: 9%;
  top: -2%;
  border-radius: 50%;
  border: 1px solid rgba(217,168,60,.2);
  box-shadow:
    0 0 0 34px rgba(217,168,60,.035),
    0 0 0 72px rgba(217,168,60,.025),
    inset 0 0 70px rgba(98,119,173,.13);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 135px;
  height: 135px;
  right: 17%;
  top: 13%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 36%, #fff3c6 0 3%, #d7c59e 18%, #8e867c 41%, #161d2c 43%, #06101f 64%);
  box-shadow: 0 0 52px rgba(222,194,116,.26);
  opacity: .75;
}

.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow {
  color: var(--gold);
  letter-spacing: .42em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  margin: 0 0 12px;
}
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4.7vw, 4.5rem);
  line-height: .88;
  letter-spacing: .04em;
  font-weight: 600;
  text-shadow: 0 3px 28px rgba(0,0,0,.7);
}
.page-hero h1 span { color: var(--gold-light); }
.hero-text {
  max-width: 630px;
  line-height: 1.8;
  color: #eee6d4;
  margin-top: 16px;
  font-size: .96rem;
}

.celestial {
  position: absolute;
  color: rgba(217,168,60,.3);
  font-family: Georgia, serif;
}
.celestial-one { left: 44%; top: 18%; font-size: 2rem; }
.celestial-two { left: 58%; bottom: 9%; font-size: 5rem; opacity: .22; }
.hero-orbit {
  position: absolute;
  left: 35%;
  top: 22%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(217,168,60,.08);
  border-radius: 50%;
}

.hero-card-stack {
  position: relative;
  z-index: 3;
  height: 220px;
  min-width: 260px;
}
.preview-card {
  position: absolute;
  width: 145px;
  aspect-ratio: 2/3;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 33%, rgba(232,200,114,.18), transparent 20%),
    repeating-radial-gradient(circle at 50% 35%, transparent 0 31px, rgba(217,168,60,.14) 32px 33px),
    linear-gradient(160deg, #0c1628, #030711 67%);
  box-shadow: 0 25px 45px rgba(0,0,0,.65), inset 0 0 30px rgba(217,168,60,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--gold-light);
  text-align: center;
}
.preview-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(217,168,60,.48);
  border-radius: 8px;
}
.preview-back { left: 10%; top: 2px; transform: rotate(-7deg); opacity: .9; }
.preview-front { right: 8%; top: 28px; transform: rotate(5deg); }
.preview-moon {
  font-size: 3.55rem;
  line-height: 1;
  text-shadow: 0 0 25px rgba(217,168,60,.25);
}
.preview-stars { margin: 10px 0; letter-spacing: .22em; }
.preview-title {
  font-family: Georgia, serif;
  letter-spacing: .18em;
  font-size: .72rem;
}
.preview-title small { color: var(--gold); font-size: .42rem; letter-spacing: .22em; }

.reader-wrap {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 58px 0 70px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  text-align: center;
  margin-bottom: 34px;
}
.section-heading > span { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.section-heading > span:last-child { background: linear-gradient(90deg, var(--line-strong), transparent); }
.section-heading h2 {
  margin: 4px 0 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .15em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(12,18,32,.96), rgba(2,6,15,.98)),
    var(--panel);
  box-shadow: 0 22px 55px rgba(0,0,0,.42), inset 0 0 45px rgba(217,168,60,.025);
  padding: 30px;
  margin-bottom: 26px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(217,168,60,.09);
  pointer-events: none;
}

.panel-corner {
  position: absolute;
  color: var(--gold);
  font-size: .8rem;
}
.corner-tl { top: 8px; left: 10px; }
.corner-tr { top: 8px; right: 10px; }
.corner-bl { bottom: 8px; left: 10px; }
.corner-br { bottom: 8px; right: 10px; }

.section-label {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: .22em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
}

label {
  display: block;
  color: var(--gold-light);
  margin-bottom: 9px;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
}

textarea, select {
  width: 100%;
  color: var(--cream);
  background: rgba(1, 4, 11, .9);
  border: 1px solid rgba(217,168,60,.38);
  border-radius: 0;
  padding: 15px;
  font: inherit;
}
textarea::placeholder { color: #766f63; }
textarea:focus, select:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(217,168,60,.06);
}

.control-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-top: 20px;
}
.toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 13px;
  white-space: nowrap;
  color: var(--muted);
}
.toggle input { accent-color: var(--gold); }

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 23px;
}
button {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 0;
  font: 700 .72rem Arial, sans-serif;
  letter-spacing: .14em;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary {
  background: linear-gradient(180deg, #f2cc72, #c58e27);
  color: #110d06;
}
.secondary {
  background: transparent;
  color: var(--gold-light);
}
.secondary:hover { background: rgba(217,168,60,.08); }
.ghost {
  background: transparent;
  color: var(--muted);
  border-color: #5c5546;
}
#status {
  color: var(--muted);
  margin-top: 16px;
  min-height: 1.2em;
  font-family: Georgia, serif;
  font-style: italic;
}

.spread-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 24px;
  align-items: start;
}
.spread-grid.empty {
  min-height: 255px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(217,168,60,.2);
  background: rgba(1,4,10,.4);
}
.empty-symbol {
  color: var(--gold);
  font-size: 4rem;
  margin-bottom: -12px;
  text-shadow: 0 0 25px rgba(217,168,60,.22);
}
.card-slot { text-align: center; }
.position {
  min-height: 2.6em;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: .93rem;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.card {
  position: relative;
  margin: auto;
  width: min(100%, 180px);
  aspect-ratio: 3 / 5;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: #111;
  box-shadow: 0 18px 34px rgba(0,0,0,.62),
              0 0 0 5px rgba(217,168,60,.05);
}
.card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(242,210,124,.38);
  pointer-events: none;
}
.card img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#111;
}
.card.reversed img { transform: rotate(180deg); }
.card-name {
  margin: 13px 0 4px;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 1.02rem;
}
.orientation {
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.missing-image {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--gold-light);
  text-align: center;
  line-height: 1.5;
}
.reading-panel textarea {
  line-height: 1.65;
  min-height: 330px;
  color: #f0e8d6;
  font-family: Georgia, "Times New Roman", serif;
}
.reading-panel button { margin-top: 13px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #030711;
  padding: 22px max(4vw, 28px);
}
.trust-strip > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 3px 28px;
  border-right: 1px solid rgba(217,168,60,.18);
}
.trust-strip > div:last-child { border-right: 0; }
.trust-strip b { color: var(--gold); font-size: 1.3rem; }
.trust-strip strong {
  display: block;
  color: var(--gold-light);
  font-size: .68rem;
  letter-spacing: .13em;
}
.trust-strip small {
  display: block;
  margin-top: 5px;
  color: #9e9584;
  font-family: Georgia, serif;
  font-size: .72rem;
}

.site-footer {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: #02050b;
  border-top: 1px solid rgba(217,168,60,.13);
}
.footer-mark {
  color: var(--gold);
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.site-footer strong {
  color: var(--gold-light);
  font-family: Georgia, serif;
  letter-spacing: .18em;
  font-weight: 500;
}
.site-footer p { color: #918979; font-size: .8rem; margin-top: 16px; }

@media (max-width: 950px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-nav { justify-content: flex-start; }
  .page-hero { grid-template-columns: 1fr; }
  .hero-card-stack { display: none; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div { margin: 8px 0; }
}

@media (max-width: 720px) {
  .announcement { font-size: .5rem; letter-spacing: .14em; }
  .site-header { padding: 18px; }
  .brand { min-width: 0; }
  .brand-mark { width: 54px; height: 54px; flex: 0 0 54px; }
  .brand-copy strong { font-size: 1.45rem; }
  .brand-copy small { letter-spacing: .24em; }
  .site-nav { gap: 14px 20px; }
  .page-hero { padding: 28px 24px; min-height: 260px; }
  .page-hero h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .control-row { grid-template-columns: 1fr; gap: 14px; }
  .toggle { padding: 0; }
  .panel { padding: 22px 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .section-heading > span { display: none; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { border-right: 0; border-bottom: 1px solid rgba(217,168,60,.14); padding: 14px 4px; }
  .trust-strip > div:last-child { border-bottom: 0; }
}


/* ---- Midnight Dream Oracle Logo ---- */

.site-logo{
    width:68px;
    height:68px;
    object-fit:contain;
    display:block;
}

.preview-card{
    overflow:hidden;
}

.preview-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.footer-logo{
    width:72px;
    height:auto;
    display:block;
    margin-bottom:12px;
}

/* =========================================================
   SIX-DECK SELECTOR — CHOOSE YOUR DESTINY
   ========================================================= */

.deck-selector {
  margin-bottom: 46px;
}

.deck-heading {
  margin-bottom: 30px;
}

.deck-heading > div {
  max-width: 760px;
}

.deck-intro {
  max-width: 670px;
  margin: 13px auto 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .98rem;
  line-height: 1.7;
  letter-spacing: .02em;
}

.deck-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 150px));
  justify-content: center;
  gap: 18px;
  align-items: start;
}

.deck-choice {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(217,168,60,.25);
  background:
    linear-gradient(145deg, rgba(12,18,32,.97), rgba(2,6,15,.99));
  box-shadow: 0 14px 30px rgba(0,0,0,.34);
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.deck-choice::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(217,168,60,.08);
  pointer-events: none;
}

.deck-choice:hover {
  transform: translateY(-4px);
  border-color: rgba(242,210,124,.72);
  box-shadow:
    0 24px 50px rgba(0,0,0,.55),
    0 0 26px rgba(217,168,60,.08);
}

.deck-choice.selected {
  border-color: var(--gold-light);
  box-shadow:
    0 0 0 2px rgba(217,168,60,.18),
    0 22px 50px rgba(0,0,0,.52),
    0 0 32px rgba(217,168,60,.13);
}

.deck-choice.selected::after {
  content: "SELECTED";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  padding: 6px 9px;
  color: #130d04;
  background: linear-gradient(180deg, #f2d27c, #bd8220);
  font: 700 .58rem Arial, sans-serif;
  letter-spacing: .14em;
}

.deck-flip {
  position: relative;
  width: 130px;
  max-width: 100%;
  aspect-ratio: 3 / 5;
  margin: 0 auto;
  perspective: 1200px;
}

.deck-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(242,210,124,.65);
  background: #030711;
  box-shadow: 0 16px 34px rgba(0,0,0,.6);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.65,.25,1);
}

.deck-face::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(242,210,124,.24);
  pointer-events: none;
}

.deck-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.deck-front {
  transform: rotateY(0deg);
}

.deck-preview {
  transform: rotateY(180deg);
}

.deck-choice:hover .deck-front,
.deck-choice.preview-open .deck-front {
  transform: rotateY(-180deg);
}

.deck-choice:hover .deck-preview,
.deck-choice.preview-open .deck-preview {
  transform: rotateY(0deg);
}

.hover-note {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 13px;
  z-index: 4;
  padding: 8px 7px;
  color: var(--gold-light);
  border: 1px solid rgba(217,168,60,.42);
  background: rgba(2,5,12,.84);
  text-align: center;
  font: 700 .59rem Arial, sans-serif;
  letter-spacing: .17em;
}

.deck-details {
  position: relative;
  z-index: 2;
  padding: 12px 2px 2px;
  text-align: center;
}

.deck-details h3 {
  min-height: 2.4em;
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .09em;
}

.deck-details p {
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  color: #bdb3a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .76rem;
  line-height: 1.45;
  transition: opacity .2s ease, max-height .25s ease, margin .25s ease;
}

.deck-choice:hover .deck-details p,
.deck-choice.selected .deck-details p {
  max-height: 7em;
  opacity: 1;
  margin: 8px 0 10px;
}

.choose-deck {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid var(--gold);
  font-size: .56rem;
  letter-spacing: .1em;
}

.deck-choice.selected .choose-deck {
  color: #130d04;
  background: linear-gradient(180deg, #f2cc72, #c58e27);
}

.selected-deck-line {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .84rem;
  letter-spacing: .16em;
}

.selected-deck-line strong {
  color: var(--gold-light);
  font-weight: 500;
}

@media (max-width: 950px) {
  .deck-gallery {
    grid-template-columns: repeat(3, minmax(0, 150px));
  }
}

@media (max-width: 620px) {
  .deck-gallery {
    grid-template-columns: repeat(2, minmax(0, 145px));
    gap: 16px;
  }

  .deck-choice {
    width: 100%;
    margin: 0;
  }

  .deck-flip {
    width: 125px;
  }

  .deck-details p {
    min-height: 0;
  }

  .selected-deck-line {
    line-height: 1.7;
  }
}

@media (hover: none) {
  .hover-note {
    content: "TAP TO PREVIEW";
  }
}



/* ===== DEPLOYMENT-SAFE IMAGE FALLBACKS ===== */
.asset-missing {
  display: none !important;
}

.site-logo.asset-missing + .brand-copy {
  margin-left: 0;
}

.preview-card:has(.asset-missing),
.deck-face:has(.asset-missing) {
  background:
    radial-gradient(circle at 50% 37%, rgba(242,210,124,.2), transparent 17%),
    repeating-radial-gradient(circle at 50% 38%, transparent 0 30px, rgba(217,168,60,.16) 31px 32px),
    linear-gradient(155deg, #0c1628, #030711 70%);
}

.preview-card:has(.asset-missing)::after {
  content: "MIDNIGHT\A DREAM ORACLE";
  white-space: pre;
  position: absolute;
  z-index: 5;
  color: var(--gold-light);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
  line-height: 1.65;
  letter-spacing: .14em;
}

.deck-face:has(.asset-missing)::before {
  content: "CARD ART";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font: 600 .65rem Georgia, "Times New Roman", serif;
  letter-spacing: .18em;
}

/* Keep the page attractive even if the main website logo is not present yet. */
.brand-copy {
  min-width: 220px;
}

/* Fix mobile navigation wrapping and prevent horizontal overflow. */
body {
  overflow-x: hidden;
}

@media (max-width: 520px) {
  .site-nav {
    width: 100%;
  }

  .site-nav a {
    font-size: .64rem;
  }

  .deck-gallery {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================================================
   COMPACT APP LAYOUT
   ========================================================= */

.site-header {
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-logo {
  width: 50px;
  height: 50px;
}

.brand {
  gap: 12px;
}

.brand-copy strong {
  font-size: clamp(1.15rem, 2.3vw, 1.75rem);
}

.brand-copy small {
  margin-top: 5px;
  font-size: .56rem;
}

.site-nav a {
  padding: 9px 0;
}

.compact-intro {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 24px 0 12px;
  text-align: center;
}

.compact-intro .eyebrow {
  margin-bottom: 7px;
}

.compact-intro h1 {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  letter-spacing: .12em;
}

.compact-intro p:last-child {
  margin: 9px auto 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
}

.reader-wrap {
  padding-top: 18px;
  padding-bottom: 32px;
}

.compact-section-title {
  margin-bottom: 16px;
  text-align: center;
}

.compact-section-title .eyebrow {
  margin-bottom: 5px;
}

.compact-section-title h2 {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: .13em;
}

.deck-selector {
  margin-bottom: 20px;
}

.deck-gallery {
  grid-template-columns: repeat(5, minmax(0, 128px));
  gap: 12px;
}

.deck-choice {
  padding: 8px;
}

.deck-flip {
  width: 108px;
}

.deck-details {
  padding-top: 8px;
}

.deck-details h3 {
  min-height: 2.2em;
  font-size: .72rem;
}

.deck-details p,
.deck-choice:hover .deck-details p,
.deck-choice.selected .deck-details p {
  display: none;
}

.choose-deck {
  min-height: 32px;
  font-size: .49rem;
}

.hover-note {
  left: 8px;
  right: 8px;
  bottom: 9px;
  padding: 6px 4px;
  font-size: .49rem;
}

.selected-deck-line {
  margin-top: 14px;
}

.panel {
  padding: 22px;
  margin-bottom: 18px;
}

.controls {
  scroll-margin-top: 88px;
}

.control-row {
  margin-top: 14px;
}

.buttons {
  margin-top: 16px;
}

.spread-grid.empty {
  min-height: 160px;
}

.reading-panel textarea {
  min-height: 240px;
}

.site-footer.compact-footer {
  min-height: 62px;
  padding: 14px 20px;
}

.site-footer.compact-footer p {
  margin: 0;
}

@media (max-width: 950px) {
  .deck-gallery {
    grid-template-columns: repeat(3, minmax(0, 128px));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
  }

  .compact-intro {
    padding-top: 18px;
  }

  .reader-wrap {
    padding-top: 10px;
  }
}

@media (max-width: 620px) {
  .deck-gallery {
    grid-template-columns: repeat(2, minmax(0, 128px));
  }

  .deck-flip {
    width: 106px;
  }
}
