:root {
  --paper: #f3efe4;
  --ink: #1c1915;
  --muted: #5e574e;
  --line: #e3d7c4;
  --card: #fffdf8;
  --clay: #c24d22;
  --clay-soft: #f8e7dc;
  --teal: #0f6e62;
  --teal-soft: #e5f3f0;
  --gold: #8d6420;
  --gold-soft: #f8f0df;
  --shadow: 0 10px 28px rgba(28, 25, 21, 0.06);
}

.reveal-viewport { background: var(--paper); }

.reveal {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 28px;
  color: var(--ink);
}

.reveal .slides section,
.reveal .slides > section.present {
  text-align: left;
  padding: 28px 42px 46px;
  box-sizing: border-box;
  height: 100%;
}
.reveal .slides > section.present {
  display: flex !important;
  flex-direction: column;
}

.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  text-transform: none;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.28em;
}

.reveal h1 { font-size: 2.15em; }
.reveal h2 { font-size: 1.35em; }
.reveal h3 { font-size: 0.95em; margin-bottom: 0.3em; }
.reveal p { margin: 0 0 0.45em; font-size: 0.78em; line-height: 1.38; color: var(--ink); }
.reveal ul, .reveal ol { margin: 0.2em 0 0 1.15em; }
.reveal ul { list-style: disc; }
.reveal ol { list-style: decimal; }
.reveal li { margin-bottom: 0.32em; font-size: 0.78em; line-height: 1.35; }
.reveal strong { font-weight: 650; }
.reveal sup { font-size: 0.62em; line-height: 0; }
.reveal em { font-style: normal; color: var(--clay); font-weight: 650; }

.kicker {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
}

.lead { font-size: 0.92em !important; line-height: 1.35; max-width: 46rem; }

.cols { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 16px; align-items: stretch; flex: 1; min-height: 0; }
.cols.even { grid-template-columns: 1fr 1fr; }
.cols.trio { grid-template-columns: 1fr 1fr 1fr; }
.cols.quad { grid-template-columns: 1fr 1fr 1fr 1fr; }
.stack { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.reveal .slides section > .ladder,
.reveal .slides section > .card,
.reveal .slides section > table.cmp { flex: 1; }
.reveal .slides section.cover { justify-content: center; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 13px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.cols > .card,
.cols > .stack,
.cols > figure.shot,
.stack > .card { height: 100%; }
.card p, .card li { font-size: 0.74em; }
.card h3 { font-size: 0.92em; }
.card .tag {
  display: inline-block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 4px;
}

.bridge, .fix, .say {
  border-radius: 0 12px 12px 0;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.35;
  margin-top: 12px;
}
.bridge { background: var(--teal-soft); border-left: 4px solid var(--teal); }
.fix { background: var(--gold-soft); border-left: 4px solid var(--gold); }
.say { background: var(--clay-soft); border-left: 4px solid var(--clay); margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 15px;
  line-height: 1.2;
}

figure.shot { margin: 0; display: flex; flex-direction: column; min-height: 0; }
figure.shot img {
  width: 100%;
  flex: 1;
  min-height: 210px;
  max-height: 390px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: #efe8da;
  display: block;
}
figure.shot img.contain { object-fit: contain; background: #f7f4ee; }
figure.shot figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.legal { display: block; margin-top: 2px; font-size: 10px; line-height: 1.3; color: #8a8175; }
section.pair figure.shot img { max-height: 500px; min-height: 360px; }

.ladder { display: flex; flex-direction: column; gap: 8px; justify-content: space-between; }
.step {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  flex: 1;
}
.step b {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 18px;
  color: var(--clay);
}
.step span { font-size: 15px; line-height: 1.3; }

.board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  background: #1d4c63;
  padding: 8px;
  border-radius: 12px;
}
.board i {
  display: block;
  aspect-ratio: 1;
  background: #d7efe4;
  border-radius: 3px;
  font-style: normal;
  font-size: 9px;
  text-align: center;
  line-height: 1.1;
  padding-top: 4px;
  color: #1c1915;
}
.board i.mark { background: #f3d27a; }

.go {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: 250px;
  background:
    linear-gradient(#c9a36a, #c9a36a) center/100% 1px no-repeat,
    #e6c98a;
  border: 8px solid #d7b06a;
  border-radius: 6px;
  position: relative;
}
.go span {
  width: 22px; height: 22px; border-radius: 50%;
  margin: 3px auto;
}
.go .b { background: #1c1915; }
.go .w { background: #fffdf8; box-shadow: inset 0 0 0 1px #cfc3ae; }

.screen {
  background: #111;
  border-radius: 16px;
  height: 100%;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.screen .net {
  position: absolute; left: 50%; top: 12px; bottom: 12px; width: 0;
  border-left: 3px dotted rgba(255,255,255,.75);
}
.screen .pad {
  position: absolute; width: 12px; background: #fff; border-radius: 2px;
}
.screen .pad.l { left: 28px; top: 78px; height: 74px; }
.screen .pad.r { right: 36px; top: 120px; height: 74px; }
.screen .ball {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; left: 46%; top: 42%;
}
.screen.space { background: radial-gradient(circle at 50% 50%, #f2d48a 0 18px, #1a1208 19px, #07070d 70%); }
.screen .ship {
  position: absolute; width: 0; height: 0;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.screen .needle { left: 22%; top: 38%; border-left: 26px solid #d7fff2; }
.screen .wedge { right: 24%; top: 58%; border-right: 22px solid #ffd0b8; border-top-width: 11px; border-bottom-width: 11px; }

.console {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border-radius: 18px 18px 22px 22px;
  background:
    repeating-linear-gradient(90deg, #8a5a32 0 14px, #6e4524 14px 16px, #a56b3c 16px 34px);
  position: relative;
  box-shadow: var(--shadow);
}
.console .bezel {
  position: absolute; left: 18px; right: 18px; top: 28px; bottom: 22px;
  background: #1b1b1b; border-radius: 10px;
}
.console .slot {
  position: absolute; left: 50%; top: -8px; transform: translateX(-50%);
  width: 74px; height: 28px; background: #c9ccd1; border-radius: 3px 3px 0 0;
}
.console .label {
  position: absolute; left: 28px; bottom: 34px; color: #f3efe4;
  font-size: 13px; letter-spacing: 0.18em;
}
.wood-note { position: absolute; right: 24px; bottom: 34px; width: 54px; height: 16px; border-radius: 8px; background: #c24d22; }

.snakes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.snakes b {
  display: flex; align-items: center; justify-content: center;
  height: 42px; border-radius: 8px; background: #fffdf8; border: 1px solid var(--line);
  font-size: 13px;
}
.snakes b.up { background: #e5f3f0; }
.snakes b.down { background: #f8e7dc; }

.formula {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 28px;
  text-align: center;
  background: var(--ink);
  color: #f6f1e7;
  border-radius: 14px;
  padding: 14px 12px;
  margin: 4px 0 12px;
}
.formula small { display: block; font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #e7b59a; margin-bottom: 4px; }

.reveal .slides section.cover { padding: 54px 64px; }
.reveal .slides section.cover h1,
.reveal .slides section.cover h2,
.reveal .slides section.cover p,
.reveal .slides section.cover li { color: #f6f1e7; }
.reveal .slides section.cover .kicker { color: #e7b59a; }
.reveal .slides section.cover .chip { background: transparent; color: #f6f1e7; border-color: rgba(246,241,231,.35); }
.num {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 84px;
  line-height: 0.8;
  color: #e07a45;
  margin: 0 0 18px;
}

.reveal .progress { color: var(--clay); height: 4px; }
.reveal .slide-number {
  background: transparent;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 13px;
  right: 18px;
  bottom: 10px;
}
.reveal.has-dark-background .slide-number { color: #d9cbb8; }

.footline {
  position: absolute;
  left: 40px;
  bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
table.cmp th, table.cmp td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.hub { max-width: 1080px; margin: 0 auto; padding: 42px 28px 64px; color: var(--ink); font-family: "Avenir Next", "Segoe UI", sans-serif; }
.hub h1, .hub h2, .hub h3 { font-family: "Iowan Old Style", Palatino, Georgia, serif; letter-spacing: -0.03em; }
.hub h1 { font-size: 46px; margin: 8px 0 10px; }
.hub h2 { font-size: 30px; margin: 36px 0 12px; }
.hub p { line-height: 1.45; }
.hub a { color: var(--teal); }
.deckgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.deck {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; box-shadow: var(--shadow);
}
.deck:hover { border-color: #c24d22; }
.deck .kicker { margin-bottom: 8px; }
.plist { display: grid; gap: 12px; }
.plist article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.keys { display: flex; gap: 8px; flex-wrap: wrap; }
kbd { border: 1px solid var(--line); background: #fff; border-bottom-width: 3px; border-radius: 7px; padding: 2px 7px; font-family: inherit; }
