/* Макет колоды 10×15 см — лицо (цвет) + оборот (текст) */

@page {
  size: 100mm 150mm;
  margin: 0;
}

:root {
  --trim-w: 100mm;
  --trim-h: 150mm;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #e8e4dc;
  color: #111;
  font-family: var(--serif);
}

.mockup-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1a1524;
  color: #f3ead7;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  font-family: system-ui, sans-serif;
  font-size: 14px;
}

.mockup-toolbar a {
  color: #d4af37;
  text-decoration: none;
}

.mockup-spec {
  margin: 16px auto;
  max-width: 920px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.mockup-spec table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.mockup-spec th,
.mockup-spec td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.mockup-spec th {
  width: 42%;
  color: #555;
  font-weight: 600;
}

.mockup-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 24px 16px 80px;
}

.mockup-sheet {
  position: relative;
  width: var(--trim-w);
  min-height: var(--trim-h);
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  outline: 1px dashed rgba(200, 60, 60, 0.45);
  outline-offset: 0;
  overflow: hidden;
}

.mockup-sheet.is-color {
  background: #050408;
}

.mockup-face,
.mockup-cover-card {
  width: 100%;
  height: var(--trim-h);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.mockup-face img,
.mockup-cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mockup-back {
  width: 100%;
  min-height: var(--trim-h);
  padding: 5mm 4.8mm 5mm;
  font-size: 7.8pt;
  line-height: 1.4;
  color: #111;
}

.mockup-back .card-back-short {
  color: #111;
}

.mockup-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 2mm 4mm;
  font-family: system-ui, sans-serif;
  font-size: 7pt;
  color: #888;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.92));
  pointer-events: none;
}

.mockup-sheet.is-color .mockup-foot {
  color: #aaa;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.mockup-label {
  position: absolute;
  top: 3mm;
  right: 3mm;
  font-family: system-ui, sans-serif;
  font-size: 7pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 6px;
  border-radius: 3px;
}

.mockup-sheet.is-bw .mockup-label {
  color: #666;
  background: rgba(255, 255, 255, 0.85);
}

@media print {
  .mockup-toolbar,
  .mockup-spec {
    display: none;
  }
  .mockup-pages {
    gap: 0;
    padding: 0;
  }
  .mockup-sheet {
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }
}
