@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/NunitoSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/NunitoSans-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/NunitoSans-ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("./assets/fonts/NunitoSans-Black.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/CormorantGaramond-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/CormorantGaramond-Bold.woff2") format("woff2");
}

:root {
  --font-body: "Nunito Sans", sans-serif;
  --font-display: "Cormorant Garamond", serif;
  --paper: #fffaf1;
  --paper-deep: #f4eadc;
  --ink: #3f372f;
  --muted: #75695d;
  --sage: #a8b99f;
  --moss: #62795b;
  --cedar: #8b5e45;
  --rose: #e8b9a9;
  --sky: #c9e0e2;
  --honey: #dfbf79;
  --blush: var(--rose);
  --blue: var(--sky);
  --wheat: var(--honey);
  --cream: #fffdf8;
  --line: #dac5a9;
  --shadow: 0 22px 58px rgba(70, 55, 38, 0.16);
  --soft-shadow: 0 12px 28px rgba(70, 55, 38, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(98, 121, 91, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(139, 94, 69, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #f7ecdc 0%, #eff2e5 48%, #fae9df 100%);
  background-size: 38px 38px, 38px 38px, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  position: relative;
  min-height: 44px;
  padding: 0 18px;
  overflow: hidden;
  color: #fffdf8;
  background: linear-gradient(135deg, var(--moss), #76906d);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 9px 18px rgba(98, 121, 91, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.32) 45%, transparent 56% 100%);
  transform: translateX(-120%);
}

button:hover {
  box-shadow: 0 13px 24px rgba(98, 121, 91, 0.32);
  filter: saturate(1.05);
  transform: translateY(-1px);
}

button:hover::after {
  animation: buttonSheen 720ms ease;
}

button:active {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
  padding: 28px;
}

.workspace,
.print-area {
  max-width: 1180px;
  margin: 0 auto;
}

.surface,
.hero {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(218, 197, 169, 0.78);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.72fr);
  gap: 34px;
  min-height: 420px;
  padding: 34px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 16px;
  border: 1px solid rgba(218, 197, 169, 0.5);
}

.hero::after {
  right: 28px;
  bottom: 26px;
  width: 220px;
  height: 18px;
  background: repeating-linear-gradient(90deg, rgba(98, 121, 91, 0.2) 0 12px, transparent 12px 22px);
  opacity: 0.7;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 690px;
  animation: riseIn 620ms ease both;
}

.kicker,
.panel-label {
  margin: 0;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.7vw, 74px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  padding-bottom: 0.06em;
}

.hero-lede {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-badges,
.actions,
.caller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  padding: 9px 12px;
  color: #5e5246;
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid rgba(218, 197, 169, 0.82);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  font-size: 13px;
  font-weight: 800;
}

.product-stage {
  position: relative;
  z-index: 1;
  min-height: 350px;
  animation: floatShelf 5.8s ease-in-out infinite;
}

.art-frame {
  position: absolute;
  inset: 0 0 auto 34px;
  height: 330px;
  padding: 15px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.62), rgba(255, 253, 248, 0.2)),
    var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(70, 55, 38, 0.14);
  transform: rotate(1.2deg);
}

.product-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
}

.pack-stack {
  position: absolute;
  right: 6px;
  bottom: 0;
  width: min(250px, 58%);
  height: 210px;
}

.pack-sheet,
.pack-ribbon {
  position: absolute;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(70, 55, 38, 0.16);
}

.pack-sheet {
  width: 180px;
  height: 138px;
  padding: 16px;
  background: #fffdf8;
}

.pack-sheet span {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.pack-sheet i {
  display: inline-block;
  width: 30px;
  height: 24px;
  margin: 0 4px 6px 0;
  background: #edf3e8;
  border: 1px solid #d2c0a5;
}

.pack-sheet-a {
  right: 28px;
  bottom: 44px;
  transform: rotate(-5deg);
}

.pack-sheet-b {
  right: 0;
  bottom: 12px;
  background: #f9efe6;
  transform: rotate(4deg);
}

.pack-ribbon {
  right: 118px;
  bottom: 0;
  padding: 10px 14px;
  color: #fffdf8;
  background: var(--cedar);
  border-color: rgba(139, 94, 69, 0.4);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #64584d;
  font-size: 13px;
  font-weight: 800;
}

select,
input[type="number"],
input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.title-field {
  grid-column: span 2;
}

.toggle-row {
  align-items: end;
  grid-auto-flow: column;
  justify-content: start;
}

.play-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: rgba(218, 197, 169, 0.74);
  border: 1px solid rgba(218, 197, 169, 0.74);
  box-shadow: var(--soft-shadow);
}

.play-flow div {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 18px 20px 18px 72px;
  background: rgba(255, 253, 248, 0.92);
}

.play-flow span {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fffdf8;
  background: var(--moss);
  border-radius: 50%;
  font-weight: 900;
}

.play-flow strong {
  font-family: var(--font-display);
  font-size: 23px;
}

.play-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.play-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 1.18fr);
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
}

.panel {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.7), rgba(255, 253, 248, 0.96)),
    var(--cream);
  border: 1px solid rgba(218, 197, 169, 0.7);
}

.called-word {
  min-height: 86px;
  display: grid;
  place-items: center;
  margin: 10px 0 14px;
  padding: 14px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(232, 185, 169, 0.18), rgba(201, 224, 226, 0.2)),
    #fff8ee;
  border: 1px dashed var(--line);
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.2vw, 38px);
  text-align: center;
}

.called-word.is-drawing {
  animation: callPop 540ms ease both;
}

.called-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  max-height: 230px;
  margin: 16px 0 0;
  padding-left: 22px;
  overflow: auto;
  color: var(--muted);
  font-size: 13px;
}

.bingo-card {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 24px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 250, 242, 0.9), rgba(255, 250, 242, 0.9)),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(70, 55, 38, 0.11);
}

.live-card .bingo-card {
  animation: cardBreath 6s ease-in-out infinite;
}

.bingo-card::before {
  position: absolute;
  content: "";
  pointer-events: none;
}

.bingo-card::before {
  inset: 12px;
  border: 1px solid rgba(218, 197, 169, 0.54);
}

.corner-decoration {
  position: absolute;
  right: -16px;
  bottom: -10px;
  z-index: 2;
  width: 132px;
  height: auto;
  pointer-events: none;
  opacity: 0.58;
  object-fit: contain;
  transform: rotate(-6deg);
}

.card-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-align: center;
}

.animal-mark {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(70, 55, 38, 0.09));
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.card-subtitle {
  margin: 6px 0 0;
  color: #75685a;
  font-size: 12px;
}

.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fffdf8;
}

.cell {
  aspect-ratio: 1 / 0.72;
  display: grid;
  place-items: center;
  padding: 6px;
  color: #51473d;
  background: #fbf3e7;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  cursor: default;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button.cell {
  min-height: auto;
  padding: 6px;
  color: #51473d;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

button.cell::after {
  display: none;
}

button.cell:hover {
  background: #f7e0d4;
  transform: translateY(-1px);
}

.cell:nth-child(5n + 1),
.cell:nth-child(5n + 4) {
  background: #e9f0e4;
}

.cell:nth-child(5n + 2) {
  background: #f8e8dd;
}

.cell:nth-child(5n + 3) {
  background: #e5f0f1;
}

.cell.free {
  color: #fffdf8;
  background: var(--moss);
}

.cell.marked {
  background: rgba(168, 185, 159, 0.38);
}

.cell.marked::after {
  content: "\2713";
  color: var(--moss);
  font-size: 22px;
  font-weight: 900;
}

.cell.called-match {
  color: #fffdf8;
  background: var(--cedar) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.82), 0 8px 20px rgba(139, 94, 69, 0.22);
  animation: matchPulse 850ms ease both;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: rgba(218, 197, 169, 0.72);
}

.summary > div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.84);
}

.summary strong {
  font-family: var(--font-display);
  font-size: 24px;
}

.summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.preview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-top: 18px;
  padding: 18px;
}

.preview-copy {
  display: grid;
  gap: 6px;
}

.preview-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
}

.preview-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.preview-actions {
  display: flex;
  gap: 10px;
}

button:disabled {
  opacity: 0.44;
  cursor: not-allowed;
  transform: none;
}

.preview-frame {
  grid-column: 1 / -1;
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 22px;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(98, 121, 91, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(139, 94, 69, 0.05) 1px, transparent 1px),
    rgba(255, 250, 241, 0.74);
  background-size: 28px 28px;
  border: 1px solid rgba(218, 197, 169, 0.72);
}

.preview-frame .print-page {
  width: min(100%, 880px);
  margin: 0;
}

.preview-frame .print-page.two-up {
  width: min(100%, 980px);
  min-height: 0;
  aspect-ratio: 11 / 8.5;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 0;
  place-items: center;
  padding: 18px;
}

.preview-frame .print-page.two-up .bingo-card {
  width: calc(100% - 12px);
  max-width: none;
  padding: 14px;
}

.preview-frame .print-page.two-up .card-top {
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 8px;
  margin-bottom: 8px;
}

.preview-frame .print-page.two-up .animal-mark {
  width: 42px;
  height: 42px;
}

.preview-frame .print-page.two-up .corner-decoration {
  right: -10px;
  bottom: -8px;
  width: 78px;
  height: auto;
}

.preview-frame .print-page.two-up .card-title {
  font-size: 20px;
}

.preview-frame .print-page.two-up .card-subtitle {
  font-size: 10px;
}

.preview-frame .print-page.two-up .cell {
  aspect-ratio: 1 / 0.62;
  padding: 4px;
  font-size: 11px;
  line-height: 1.08;
}

.print-area {
  display: none;
  margin-top: 28px;
}

.print-page {
  margin: 0 auto 20px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.print-page.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-page {
  color: var(--ink);
  line-height: 1.5;
}

.info-page h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 30px;
  overflow-wrap: anywhere;
}

.caller-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.caller-chip {
  padding: 8px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
}

.ink .bingo-card {
  background: #fff;
}

.ink .corner-decoration {
  display: none;
}

.ink .cell.free {
  color: var(--ink);
  background: #f0f0f0;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatShelf {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-0.3deg);
  }
}

@keyframes buttonSheen {
  to {
    transform: translateX(120%);
  }
}

@keyframes cardBreath {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes callPop {
  0% {
    transform: scale(0.96);
  }
  58% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes matchPulse {
  0% {
    transform: scale(0.96);
  }
  55% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding: 14px;
  }

  .hero,
  .play-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 24px;
  }

  .product-stage {
    min-height: 330px;
  }

  .art-frame {
    left: 0;
  }

  .controls,
  .play-flow,
  .summary,
  .preview-panel {
    grid-template-columns: 1fr;
  }

  .title-field {
    grid-column: auto;
  }

  .preview-actions {
    width: 100%;
  }

  .preview-actions button {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .hero {
    min-width: 0;
    padding: 20px;
  }

  .hero-copy,
  .product-stage {
    min-width: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-badges span {
    max-width: 100%;
  }

  .product-stage {
    min-height: 280px;
    overflow: hidden;
  }

  .art-frame {
    height: 250px;
  }

  .pack-stack {
    display: none;
  }

  .card-top {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .animal-mark {
    width: 46px;
    height: 46px;
  }

  .corner-decoration {
    right: -12px;
    bottom: -8px;
    width: 102px;
    height: auto;
  }

  .bingo-card {
    padding: 16px;
  }

  .cell {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .workspace {
    display: none;
  }

  .app-shell,
  .print-area,
  .print-page {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .print-page {
    break-after: auto;
    break-before: auto;
    page-break-after: auto;
    page-break-before: auto;
    padding: 0.25in;
  }

  .print-page + .print-page {
    break-before: page;
    page-break-before: always;
  }

  .print-area {
    display: block;
  }

  .print-page.two-up {
    height: 100vh;
    gap: 0;
    place-items: center;
  }

  .bingo-card {
    max-width: none;
    box-shadow: none;
  }

  .print-page:not(.info-page):not(.two-up) {
    display: grid;
    height: 100vh;
    overflow: hidden;
    place-items: center;
  }

  .print-page:not(.info-page):not(.two-up) .bingo-card {
    width: min(100%, 7.1in);
    padding: 0.18in;
  }

  .print-page:not(.info-page):not(.two-up) .card-top {
    grid-template-columns: 0.55in minmax(0, 1fr) 0.55in;
    gap: 0.1in;
    margin-bottom: 0.1in;
  }

  .print-page:not(.info-page):not(.two-up) .animal-mark {
    width: 0.5in;
    height: 0.5in;
  }

  .print-page:not(.info-page):not(.two-up) .corner-decoration {
    right: -0.08in;
    bottom: -0.06in;
    width: 0.94in;
    height: auto;
  }

  .print-page:not(.info-page):not(.two-up) .card-title {
    font-size: 18pt;
  }

  .print-page:not(.info-page):not(.two-up) .card-subtitle {
    font-size: 8.5pt;
  }

  .print-page:not(.info-page):not(.two-up) .cell {
    aspect-ratio: 1 / 0.62;
    padding: 0.05in;
    font-size: 8.8pt;
    line-height: 1.08;
  }

  .print-page.two-up .bingo-card {
    width: min(100%, 6.15in);
    padding: 0.14in;
  }

  .print-page.two-up .card-top {
    grid-template-columns: 0.46in minmax(0, 1fr) 0.46in;
    gap: 0.08in;
    margin-bottom: 0.08in;
  }

  .print-page.two-up .animal-mark {
    width: 0.42in;
    height: 0.42in;
  }

  .print-page.two-up .corner-decoration {
    right: -0.08in;
    bottom: -0.06in;
    width: 0.82in;
    height: auto;
  }

  .print-page.two-up .card-title {
    font-size: 16pt;
  }

  .print-page.two-up .card-subtitle {
    font-size: 8pt;
  }

  .print-page.two-up .cell {
    padding: 0.035in;
    font-size: 7.8pt;
    line-height: 1.08;
  }
}

@media print and (orientation: portrait) {
  .print-page.two-up {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-content: stretch;
    justify-items: center;
  }

  .print-page.two-up .bingo-card {
    max-width: 6.15in;
  }

  .print-page.two-up .cell {
    aspect-ratio: 1 / 0.5;
  }
}

@media print and (orientation: landscape) {
  .print-page.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
  }

  .print-page.two-up .bingo-card {
    width: calc(100% - 0.18in);
    max-width: 5.35in;
  }

  .print-page.two-up .cell {
    aspect-ratio: 1 / 0.62;
  }
}

/* ---------- Night hangar frame ----------
   With <html data-gh-scheme="night"> the page is a printed sheet taped to a workbench in the
   dark hangar: the light paper keeps its look, the surroundings take the site's night. */
@media screen {
  :root[data-gh-scheme="night"] body {
    background:
      radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 241, 214, 0.07), transparent 70%),
      var(--gh-night);
  }

  :root[data-gh-scheme="night"] body::before {
    display: none;
  }

  :root[data-gh-scheme="night"] .app-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 24px));
    min-height: 0;
    margin: clamp(26px, 3.4vw, 48px) auto 0;
    padding: clamp(16px, 2.4vw, 28px);
    border-radius: 18px;
    background:
      linear-gradient(90deg, rgba(98, 121, 91, 0.07) 1px, transparent 1px),
      linear-gradient(180deg, rgba(139, 94, 69, 0.07) 1px, transparent 1px),
      linear-gradient(135deg, #f7ecdc 0%, #eff2e5 48%, #fae9df 100%);
    background-size: 38px 38px, 38px 38px, auto;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.6),
      0 60px 120px -40px rgba(0, 0, 0, 0.95),
      0 0 160px -60px rgba(255, 241, 214, 0.35);
  }

  /* Two strips of tape hold the sheet down. */
  :root[data-gh-scheme="night"] .app-shell::before,
  :root[data-gh-scheme="night"] .app-shell::after {
    content: "";
    position: absolute;
    top: -12px;
    z-index: 2;
    width: 110px;
    height: 26px;
    background: rgba(255, 214, 107, 0.62);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    pointer-events: none;
  }

  :root[data-gh-scheme="night"] .app-shell::before {
    left: 6%;
    transform: rotate(-4deg);
  }

  :root[data-gh-scheme="night"] .app-shell::after {
    right: 6%;
    transform: rotate(3deg);
  }

  @media (max-width: 560px) {
    :root[data-gh-scheme="night"] .app-shell {
      width: calc(100% - 16px);
      border-radius: 12px;
    }

    :root[data-gh-scheme="night"] .app-shell::before,
    :root[data-gh-scheme="night"] .app-shell::after {
      width: 70px;
      height: 18px;
      top: -8px;
    }
  }
}
