/* WINDTHROW preview page. Palette from src/view/renderer.js; the game's serif-on-paper card look. */
:root {
  --bg: #111513;
  --bg2: #1c2220;
  --verge: #4f6a3f;
  --paper: #efe6d2;
  --ink: #2a2622;
  --dim: #7b7266;
  --hud: #e9dfc9;
  --mute: #a99f8c;
  --gold: #e9c45a;
  --bad: #f08a6a;
  --green: #7fc294;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Helvetica Neue", Arial, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--hud);
  font: 18px/1.6 var(--sans);
}
a {
  color: var(--gold);
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(17, 21, 19, 0.94);
  border-bottom: 1px solid #2e3632;
}
.brand {
  font: 700 20px var(--serif);
  letter-spacing: 0.04em;
  color: var(--hud);
  text-decoration: none;
}
.top-cta,
.btn,
.go {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  font: 700 16px var(--sans);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.top-cta {
  padding: 7px 14px;
  font-size: 15px;
}
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 20px;
}
.kicker {
  color: var(--mute);
  font-size: 15px;
  margin: 0 0 10px;
}
h1 {
  font: 700 clamp(30px, 4.4vw, 52px)/1.12 var(--serif);
  margin: 0 0 16px;
  max-width: 22ch;
  color: #f4ecd8;
}
h2 {
  font: 700 clamp(26px, 3vw, 34px)/1.2 var(--serif);
  margin: 0 0 14px;
  color: #f4ecd8;
}
.sub {
  font-size: 20px;
  max-width: 62ch;
  margin: 0 0 12px;
  color: #ddd3bd;
}
.sub.small,
.under {
  font-size: 16px;
  color: var(--mute);
}
.under {
  margin-top: 10px;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
main section {
  padding: 44px 0 8px;
  border-top: 1px solid #2a312d;
}
main p {
  margin: 0 0 16px;
}
blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  background: #2f4a3a;
  border-left: 4px solid var(--green);
  border-radius: 4px;
  color: #f4efe2;
  font-family: var(--serif);
  font-size: 19px;
}
.reasons {
  padding-left: 20px;
}
.reasons li {
  margin-bottom: 12px;
}
.quotes {
  list-style: none;
  padding: 0;
}
.quotes li {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}
th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #333b36;
  vertical-align: top;
}
th {
  color: var(--mute);
  font-weight: 600;
  font-size: 14px;
}
.hands-big td:nth-child(n + 2),
.hands-big th:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}
.hands-big tr:nth-child(2) td {
  color: #f4ecd8;
  font-weight: 700;
}
dt {
  font-weight: 700;
  color: #f4ecd8;
  margin-top: 14px;
}
dd {
  margin: 4px 0 0;
}
.close {
  text-align: left;
}
.close .btn {
  font-size: 19px;
  padding: 14px 26px;
  margin: 6px 0 10px;
}
.small {
  font-size: 15px;
  color: var(--mute);
}
.ps {
  margin-top: 26px;
}
.foot-page {
  text-align: center;
  color: var(--dim);
  font-size: 14px;
  padding: 30px 20px 50px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------------------------------------------------------------- the hero box */
#hd {
  position: relative;
  margin-top: 18px;
  background: var(--bg2);
  border: 1px solid #333b36;
  border-radius: 10px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
}
#hd .bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
  padding: 10px 14px;
  background: #151a18;
  border-bottom: 1px solid #2c3330;
}
#hd .months span {
  margin-right: 10px;
  color: var(--mute);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
}
#hd .months .past {
  color: #6f6a5f;
}
#hd .months .cur {
  color: #f2e8d0;
  border-bottom: 2px solid #f2e8d0;
}
#hd .days i {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 4px;
  background: #3e4440;
  vertical-align: -2px;
}
#hd .days i.d {
  background: var(--gold);
}
#hd .claims {
  margin-left: auto;
  color: var(--mute);
}
#hd .claims.bad {
  color: var(--bad);
}
#hd .body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}
#hd .streets {
  padding: 8px 12px 12px;
}
#hd .st {
  margin-bottom: 6px;
}
#hd .sth {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d9cfb9;
  padding: 4px 2px;
}
#hd .rep i {
  display: inline-block;
  width: 7px;
  height: 11px;
  margin-left: 2px;
  background: #3e4440;
}
#hd .rep i.lo {
  background: #d0563c;
}
#hd .rep i.mid {
  background: #d6b33a;
}
#hd .rep i.hi {
  background: var(--green);
}
#hd .rep em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--mute);
  margin-left: 8px;
  font-size: 12px;
}
#hd .row6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  background: linear-gradient(#26302b 0 70%, var(--verge) 70% 84%, #7d786d 84%);
  border-radius: 6px;
  padding: 6px;
}
#hd .tr {
  position: relative;
  height: 92px;
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}
#hd .tr.on {
  border-color: #f6e27a;
  background: rgba(246, 226, 122, 0.08);
}
#hd .tr .crown {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 44px;
  height: 40px;
  margin-left: -22px;
  border-radius: 50% 50% 46% 46%;
  background: var(--c);
  transform: scale(var(--s));
  transform-origin: 50% 100%;
}
#hd .tr .trunk {
  position: absolute;
  left: 50%;
  top: 46px;
  width: 6px;
  height: 22px;
  margin-left: -3px;
  background: #3b2f24;
}
#hd .tr.stump .crown {
  display: none;
}
#hd .tr.stump .trunk {
  top: 60px;
  height: 8px;
  width: 12px;
  margin-left: -6px;
}
#hd .tr.down .crown {
  background: #6b6a3a;
  transform: translate(24px, 34px) scale(0.8, 0.5);
}
#hd .tr.down .trunk {
  transform: translate(14px, 14px) rotate(80deg);
}
#hd .tr .rt {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
}
#hd .tr .rt b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
#hd .tr .gone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  font-size: 11px;
  color: #d9cfb9;
}
#hd .tr .rib {
  position: absolute;
  left: 50%;
  top: 52px;
  width: 12px;
  height: 5px;
  margin-left: -6px;
  background: #e8c43a;
}
#hd .tr .cab {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background: #cfc6a8;
}
#hd .mk {
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 700 11px var(--sans);
  padding: 1px 5px;
  border-radius: 3px;
  color: #fff;
}
#hd .mk.sure {
  background: #c8362c;
}
#hd .mk.maybe {
  background: #c98a1f;
}
#hd .hint,
#hd .tip {
  margin: 8px 2px 0;
  color: #ddd3bd;
}
#hd .tip {
  background: #2f4a3a;
  border-left: 3px solid var(--green);
  padding: 6px 10px;
  border-radius: 4px;
}
#hd .card {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 16px;
}
#hd .card h3 {
  font: 700 21px/1.2 var(--serif);
  margin: 0;
}
#hd .card .sub {
  font-size: 14px;
  color: var(--dim);
  margin: 2px 0 8px;
}
#hd .signs {
  margin: 0 0 8px;
  padding-left: 18px;
}
#hd .band {
  margin: 0 0 6px;
}
#hd .rate {
  margin: 0 0 8px;
  font-size: 13px;
  color: #574f45;
}
#hd .chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
#hd .chips span {
  text-align: center;
  padding: 5px 0;
  font-weight: 700;
  font-size: 13px;
  background: #ddd3be;
  color: #a59c8b;
  border-radius: 3px;
}
#hd .chips .lit {
  background: var(--c);
  color: #fff;
}
#hd .verbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
#hd .verbs button {
  background: #fff8ea;
  color: var(--ink);
  border: 1px solid #d6cbb3;
  border-radius: 4px;
  padding: 9px 6px;
  font: 600 14px var(--sans);
  cursor: pointer;
  min-height: 44px;
}
#hd .verbs button.off {
  opacity: 0.4;
}
#hd .verbs button.armed {
  background: #c8362c;
  color: #fff;
  border-color: #c8362c;
}
#hd .foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #2c3330;
  background: #151a18;
}
#hd .go {
  font-size: 16px;
}
#hd .ghost {
  background: none;
  border: 1px solid #6a726c;
  color: var(--hud);
  border-radius: 5px;
  padding: 6px 10px;
  font: 600 14px var(--sans);
  cursor: pointer;
}
#hd .watch {
  color: var(--mute);
  font-size: 14px;
}
#hd .toast {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  max-width: 92%;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  z-index: 6;
  text-align: center;
}
#hd .toast[hidden] {
  display: none;
}
#hd .pn {
  position: absolute;
  inset: 46px 0 0 0;
  z-index: 5;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  padding: 18px 22px 22px;
}
#hd .pn h3 {
  font: 700 26px/1.2 var(--serif);
  margin: 0 0 10px;
}
#hd .pn h4 {
  margin: 14px 0 4px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
#hd .pn ul {
  padding-left: 18px;
  margin: 0 0 10px;
}
#hd .pn li {
  margin-bottom: 5px;
}
#hd .pn .bad {
  color: #b0301f;
  font-weight: 600;
}
#hd .pn .barks li,
#hd .pn .lines li {
  font-family: var(--serif);
  font-size: 16px;
}
#hd .pn .small {
  color: var(--dim);
}
#hd .pn .budget {
  font-size: 20px;
  margin: 12px 0 2px;
}
#hd .pn .stars {
  color: #c98a1f;
  letter-spacing: 2px;
}
#hd .pn .go {
  background: var(--ink);
  color: var(--paper);
  margin-top: 8px;
}
#hd .pn .ghost {
  color: var(--ink);
  border-color: #9c927e;
  margin-top: 8px;
}
#hd .pn .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#hd .pn.storm {
  background: #e4d9c1;
}
#hd table.hands {
  font-size: 14px;
  margin-top: 12px;
}
#hd table.hands caption {
  text-align: left;
  font-size: 13px;
  color: var(--dim);
  padding-bottom: 4px;
}
#hd table.hands th {
  color: var(--dim);
}
#hd table.hands td,
#hd table.hands th {
  border-color: #d6cbb3;
  padding: 5px 6px;
}
#hd table.hands td:nth-child(n + 2),
#hd table.hands th:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}
#hd table.hands tr.you td {
  font-weight: 700;
  background: #fff3c4;
}

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }
  .hero {
    padding-top: 22px;
  }
  #hd .body {
    grid-template-columns: 1fr;
  }
  #hd .streets {
    padding: 6px;
  }
  #hd .row6 {
    gap: 2px;
    padding: 4px 2px;
  }
  #hd .tr {
    height: 78px;
  }
  #hd .tr .crown {
    width: 34px;
    height: 32px;
    margin-left: -17px;
    top: 12px;
  }
  #hd .tr .trunk {
    top: 42px;
    height: 18px;
  }
  #hd .mk {
    font-size: 9px;
    padding: 1px 3px;
  }
  #hd .rep em {
    display: none;
  }
  #hd .bar {
    gap: 4px 12px;
    font-size: 14px;
  }
  #hd .months span {
    margin-right: 6px;
    font-size: 12px;
  }
  #hd .pn {
    padding: 14px;
    inset: 0;
  }
  #hd .pn h3 {
    font-size: 22px;
  }
  #hd table.hands th:nth-child(2),
  #hd table.hands td:nth-child(2) {
    display: none;
  }
  .hands-big th:nth-child(2),
  .hands-big td:nth-child(2) {
    display: none;
  }
  table {
    font-size: 14px;
  }
  th,
  td {
    padding: 6px 5px;
  }
}

#hd .now { margin: 0 0 8px; padding: 6px 9px; border-radius: 4px; font-size: 14px; font-weight: 600; }
#hd .now.sure { background: #f6d6cf; color: #8a2216; }
#hd .now.maybe { background: #f6e6c4; color: #7a5410; }
#hd .now.ok { background: #e3e8d6; color: #3c5a32; font-weight: 400; }
#hd .legend { margin: 4px 2px 0; font-size: 13px; color: var(--mute); }
#hd, #hd .card, #hd .pn { scroll-margin-top: 72px; }
.touch-only { display: none; }
@media (pointer: coarse) { .touch-only { display: inline-block; } .desk-only { display: none; } }

.standing { margin: 0 0 22px; }
.standing .sr { display: grid; grid-template-columns: 210px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 15px; }
.standing .cells { display: grid; grid-template-columns: repeat(18, 1fr); gap: 2px; }
.standing .cells i { height: 16px; background: #3a2f26; border-radius: 2px; }
.standing .cells i.on { background: #5f8a3f; border-radius: 50% 50% 3px 3px; }
.standing b { text-align: right; }
.standing figcaption { font-size: 14px; color: var(--mute); margin-top: 6px; }
@media (max-width: 820px) { .standing .sr { grid-template-columns: 1fr 34px; } .standing .sn { grid-column: 1 / -1; } }
