:root {
  --sky: #e3f0f7;
  --sky-deep: #cfe4f0;
  --sky-blue: #b7d6e7;
  --paper: #f5ecd7;
  --paper-light: #fbf6e8;
  --paper-deep: #e9dcc0;
  --ink: #3e3023;
  --ink-soft: #65533f;
  --muted: #88745b;
  --line: #c8b692;
  --line-soft: #dbceb0;
  --honey: #b37a23;
  --honey-dark: #8a5a12;
  --honey-soft: #f1e3bf;
  --berry: #994c39;
  --berry-dark: #783626;
  --berry-soft: #f0d9cf;
  --sage: #607458;
  --sage-dark: #4b5d45;
  --sage-soft: #e0e8d8;
  --shadow-sm: 0 3px 10px rgba(76, 58, 32, 0.08);
  --shadow-md: 0 18px 42px rgba(72, 55, 32, 0.14);
  --shadow-lg: 0 28px 65px rgba(65, 51, 32, 0.18);
  --serif: "EB Garamond", Garamond, "Palatino Linotype", Georgia, serif;
  --display: "IM Fell English", "EB Garamond", Garamond, Georgia, serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 8% 2%, rgba(255, 255, 255, 0.8), transparent 33%),
    radial-gradient(ellipse at 92% 12%, rgba(255, 255, 255, 0.65), transparent 30%),
    linear-gradient(180deg, var(--sky) 0%, #dcebf3 48%, #d3e5ef 100%);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--berry);
  text-decoration-color: rgba(153, 76, 57, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

::selection {
  background: var(--honey-soft);
  color: var(--ink);
}

.sky-cloud {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(4px);
}

.sky-cloud--one {
  top: -140px;
  left: -130px;
  width: 480px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.85), transparent 70%);
  transform: rotate(-8deg);
}

.sky-cloud--two {
  top: 130px;
  right: -160px;
  width: 520px;
  height: 270px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.7), transparent 70%);
  transform: rotate(6deg);
}

.sky-cloud--three {
  bottom: -120px;
  left: 26%;
  width: 620px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.45), transparent 70%);
}

.book {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 0 21px;
  border-bottom: 1px solid rgba(62, 48, 35, 0.23);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251, 246, 232, 0.72);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--honey-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
}

.brand-tagline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.edition-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.edition-rule {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--line);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: 48px;
  min-height: 535px;
  padding: 50px 0 34px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--honey-dark);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow-star {
  color: var(--honey);
  font-size: 13px;
  line-height: 1;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7.2vw, 90px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero h1 em {
  display: block;
  color: var(--berry);
  font-weight: 400;
}

.dedication {
  max-width: 480px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.4;
}

.dedication::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  margin: 0 10px 5px 0;
  background: var(--honey);
}

.hero-intro {
  max-width: 550px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.65;
}

.hero-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-intro em {
  display: block;
  margin-top: 6px;
  color: var(--berry);
  font-family: var(--display);
  font-size: 1.08em;
  font-style: italic;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 600px;
  margin-top: 34px;
}

.stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px 11px;
  border: 1px solid rgba(200, 182, 146, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 55%),
    var(--paper);
  box-shadow: var(--shadow-sm);
  transform: rotate(-0.8deg);
}

.stat:nth-child(2) {
  transform: rotate(0.7deg);
}

.stat:nth-child(3) {
  transform: rotate(-0.4deg);
  border-color: rgba(153, 76, 57, 0.33);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.stat--lost strong {
  color: var(--berry);
}

.plate {
  position: relative;
  width: min(100%, 390px);
  margin: 0 0 0 auto;
  padding: 18px 18px 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.6), transparent 38%),
    linear-gradient(135deg, var(--paper-light), var(--paper));
  box-shadow: var(--shadow-md);
  transform: rotate(1.4deg);
}

.plate::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(138, 90, 18, 0.32);
  pointer-events: none;
}

.plate-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 24px;
  background: rgba(219, 203, 163, 0.72);
  box-shadow: 0 1px 2px rgba(62, 48, 35, 0.05);
  transform: translateX(-50%) rotate(-2deg);
  clip-path: polygon(2% 8%, 98% 0, 100% 90%, 1% 100%);
}

.plate-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 8px;
  border: 1px solid rgba(200, 182, 146, 0.55);
  background: rgba(255, 252, 242, 0.38);
}

.pooh-image {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: sepia(0.18) contrast(1.02);
}

.plate figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px 1px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.plate figcaption span:first-child {
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.bee {
  position: absolute;
  fill: none;
  stroke: var(--honey-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  opacity: 0.75;
}

.bee--one {
  top: 31px;
  right: 33%;
  width: 42px;
  height: 42px;
  transform: rotate(14deg);
}

.story-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 0 52px;
}

.story-divider > span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.story-divider svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--honey-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  opacity: 0.8;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(35px, 4.2vw, 50px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-subtitle {
  max-width: 350px;
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.5;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: start;
  gap: 21px;
}

.calendar-book {
  position: relative;
  padding: 27px 27px 15px;
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.65), transparent 32%),
    radial-gradient(circle at 92% 92%, rgba(179, 122, 35, 0.06), transparent 38%),
    repeating-linear-gradient(0deg, rgba(76, 58, 32, 0.018) 0 1px, transparent 1px 5px);
  box-shadow:
    var(--shadow-lg),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.calendar-book::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(138, 90, 18, 0.25);
  pointer-events: none;
}

.calendar-topline {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 0 4px 15px;
  border-bottom: 1px solid rgba(200, 182, 146, 0.8);
}

.calendar-month-name {
  font-family: var(--display);
  font-size: 37px;
  letter-spacing: -0.035em;
  line-height: 1;
}

.calendar-year {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.edition-mark {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding-top: 17px;
}

.weekdays span {
  padding: 0 9px 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(108px, auto);
  border-top: 1px solid rgba(200, 182, 146, 0.95);
  border-left: 1px solid rgba(200, 182, 146, 0.95);
}

.calendar-loading,
.prediction-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

.day-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 108px;
  padding: 8px 8px 9px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(200, 182, 146, 0.95);
  border-bottom: 1px solid rgba(200, 182, 146, 0.95);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.day-cell:hover {
  z-index: 1;
  background: rgba(255, 253, 244, 0.7);
  box-shadow: inset 0 0 0 1px rgba(138, 90, 18, 0.24);
}

.day-cell:focus-visible {
  z-index: 2;
  outline: 2px solid var(--berry);
  outline-offset: -3px;
}

.day-cell.has-events {
  background: rgba(255, 253, 244, 0.34);
}

.day-cell.is-empty {
  background: rgba(62, 48, 35, 0.012);
}

.day-cell.is-outside {
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 8px,
      rgba(62, 48, 35, 0.025) 8px 9px
    );
}

.day-cell.is-lost {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 253, 244, 0.2) 0 8px,
      rgba(153, 76, 57, 0.035) 8px 9px
    );
}

.day-cell.is-live {
  background: rgba(241, 227, 191, 0.55);
  box-shadow: inset 0 0 0 2px rgba(179, 122, 35, 0.52);
}

.day-cell.is-won {
  background: rgba(224, 232, 216, 0.75);
  box-shadow: inset 0 0 0 2px rgba(96, 116, 88, 0.6);
}

.day-cell.is-lost::after {
  content: "×";
  position: absolute;
  top: 4px;
  right: 8px;
  color: rgba(153, 76, 57, 0.55);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
}

.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 23px;
}

.day-number {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
}

.is-today .day-number {
  border: 1.5px solid var(--berry);
  color: var(--berry-dark);
  transform: rotate(-5deg);
}

.is-lost .day-number {
  color: var(--muted);
}

.today-label {
  color: var(--berry);
  font-family: var(--hand);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transform: rotate(-2deg);
}

.cell-events {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.event-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 0 2px 1px;
  border-bottom: 1px dotted rgba(101, 83, 63, 0.28);
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.event-chip::before {
  display: none;
}

.event-chip > svg {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  fill: none;
  stroke: var(--person-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.event-chip svg + span::before {
  content: "";
}

.is-lost .event-chip {
  color: var(--muted);
  opacity: 0.62;
}

.cell-dots {
  display: none;
}

.calendar-page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 8.5px;
  font-style: italic;
  letter-spacing: 0.07em;
}

.ledger {
  position: sticky;
  top: 18px;
  padding: 23px 22px 150px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(160deg, var(--paper-light), var(--paper));
  box-shadow: var(--shadow-md);
  transform: rotate(0.35deg);
}

.ledger::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(138, 90, 18, 0.2);
  pointer-events: none;
}

.ledger .eyebrow {
  margin-bottom: 9px;
}

.ledger h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.ledger-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 20px 0 21px;
  padding: 13px 0;
  border-top: 1px solid rgba(200, 182, 146, 0.8);
  border-bottom: 1px solid rgba(200, 182, 146, 0.8);
}

.ledger-summary > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.ledger-summary > div + div {
  padding-left: 11px;
  border-left: 1px solid var(--line-soft);
}

.ledger-summary strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.ledger-summary span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ledger-summary-lost strong {
  color: var(--berry);
}

.ledger-group + .ledger-group {
  margin-top: 23px;
}

.ledger-group h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ledger-line {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.person-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 7px 3px 5px;
  border: 1px solid rgba(200, 182, 146, 0.7);
  border-radius: 999px;
  background: var(--person-soft);
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
}

.person-pill > .avatar {
  width: 23px;
  height: 23px;
}

.person-list--lost .person-pill {
  border-color: rgba(153, 76, 57, 0.18);
  background: rgba(153, 76, 57, 0.055);
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(153, 76, 57, 0.4);
}

.person-list--lost .person-pill > .avatar {
  opacity: 0.45;
}

.person-pill--won {
  border-color: rgba(96, 116, 88, 0.45);
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.person-pill--won > .avatar {
  border-color: var(--sage);
}

.ledger-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-style: italic;
  line-height: 1.45;
}

.ledger-note {
  margin: 22px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(200, 182, 146, 0.55);
  color: var(--muted);
  font-size: 10.5px;
  font-style: italic;
  line-height: 1.4;
}

.piglet-figure {
  position: absolute;
  right: 13px;
  bottom: 6px;
  width: 105px;
  margin: 0;
  opacity: 0.78;
  transform: rotate(-4deg);
}

.piglet-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.16);
}

.predictions-section {
  padding: 78px 0 48px;
}

.section-heading--stacked {
  align-items: flex-end;
}

.count-pill {
  flex: 0 0 auto;
  margin-bottom: 3px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: rgba(251, 246, 232, 0.58);
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: rotate(-0.7deg);
}

.prediction-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.prediction-entry {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.prediction-entry:nth-child(odd) {
  transform: rotate(-0.18deg);
}

.prediction-entry:nth-child(even) {
  transform: rotate(0.18deg);
}

.prediction-card {
  position: relative;
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 17px 17px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.4), transparent 55%),
    var(--paper-light);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 3px 0 0 var(--person-color),
    var(--shadow-sm);
  transition:
    box-shadow 170ms ease,
    transform 170ms ease,
    background-color 170ms ease;
}

.prediction-card:hover {
  z-index: 1;
  background-color: #fffaf0;
  box-shadow:
    inset 3px 0 0 var(--person-color),
    0 13px 28px rgba(75, 58, 33, 0.11);
  transform: translateY(-2px);
}

.prediction-card:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}

.prediction-card.is-lost {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.26) 0 9px,
      rgba(153, 76, 57, 0.03) 9px 10px
    ),
    var(--paper);
  box-shadow: var(--shadow-sm);
}

.prediction-card.is-lost .prediction-head,
.prediction-card.is-lost .prediction-date,
.prediction-card.is-lost .prediction-note {
  opacity: 0.6;
}

.prediction-card.is-live {
  border-color: rgba(179, 122, 35, 0.7);
  box-shadow:
    inset 3px 0 0 var(--person-color),
    inset 0 0 0 1px rgba(179, 122, 35, 0.25),
    var(--shadow-sm);
}

.prediction-card.is-won {
  border-color: rgba(96, 116, 88, 0.72);
  background:
    linear-gradient(150deg, rgba(224, 232, 216, 0.75), transparent 60%),
    var(--paper-light);
}

.prediction-head {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding-right: 74px;
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(62, 48, 35, 0.12);
  border-radius: 50%;
  overflow: hidden;
  background: var(--person-soft);
  color: var(--person-color);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.avatar-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-chip > .avatar {
  width: 18px;
  height: 18px;
}

.event-chip .avatar-art {
  flex: 0 0 auto;
  margin: 0;
  stroke: none;
}

.prediction-name {
  min-width: 0;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.prediction-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
}

.prediction-date::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--person-color);
}

.prediction-note {
  margin: 4px 0 0 11px;
  color: var(--muted);
  font-size: 11.5px;
  font-style: italic;
  line-height: 1.35;
}

.prediction-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px 12px;
  padding: 3px 8px 0;
}

.prediction-action-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.prediction-action-status.is-error {
  color: var(--berry-dark);
}

.prediction-action-status.is-success {
  color: var(--sage-dark);
}

.status-stamp {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 2px 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--sage-dark);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-4deg);
  opacity: 0.82;
}

.status-stamp--live {
  color: var(--honey-dark);
}

.status-stamp--pending {
  color: var(--muted);
}

.status-stamp--lost {
  color: var(--berry);
}

.status-stamp--won {
  color: var(--sage-dark);
}

.messages-section {
  padding: 24px 0 72px;
}

.messages-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 21px;
}

.message-form-card {
  position: relative;
  padding: 25px 25px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.45), transparent 60%),
    var(--paper-light);
  box-shadow: var(--shadow-lg);
}

.message-form-card h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message-field > span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.message-field input,
.message-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.bet-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.message-field textarea {
  min-height: 130px;
  resize: vertical;
}

.message-field input:focus-visible,
.message-field textarea:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}

.message-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-form-footer--end {
  justify-content: flex-end;
}

.message-chars {
  color: var(--muted);
  font-size: 10.5px;
}

.message-submit {
  padding: 11px 17px;
  border: 1px solid var(--honey-dark);
  background: var(--honey-dark);
  color: #fffaf0;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.message-submit:hover:not(:disabled) {
  border-color: var(--berry);
  background: var(--berry);
  transform: translateY(-1px);
}

.message-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.message-cancel {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.message-cancel:hover:not(:disabled) {
  border-color: var(--berry);
  color: var(--berry);
}

.message-cancel:disabled {
  cursor: wait;
  opacity: 0.65;
}

.message-status {
  min-height: 1.1em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-style: italic;
}

.message-status.is-error {
  color: var(--berry);
}

.message-status.is-success {
  color: var(--sage-dark);
}

.message-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  padding-right: 4px;
  overflow-y: auto;
}

.message-card {
  padding: 17px 18px 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.42), transparent 58%),
    var(--paper-light);
  box-shadow:
    inset 3px 0 0 var(--person-color),
    var(--shadow-sm);
}

.message-card:nth-child(odd) {
  transform: rotate(-0.12deg);
}

.message-card:nth-child(even) {
  transform: rotate(0.12deg);
}

.message-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.message-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--person-soft);
  color: var(--person-color);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.message-author-block {
  min-width: 0;
}

.message-author {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.message-date {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.message-day-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border: 1px solid rgba(138, 90, 18, 0.35);
  border-radius: 2px;
  background: var(--honey-soft);
  color: var(--honey-dark);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.message-body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.message-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0 31px;
  border-top: 1px solid rgba(62, 48, 35, 0.23);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--honey-dark);
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-credit {
  text-align: center;
}

.footer-date {
  color: var(--muted);
  font-family: var(--display);
  font-size: 12px;
  font-style: italic;
  white-space: nowrap;
}

.day-dialog {
  --dialog-top-gap: max(16px, env(safe-area-inset-top, 0px));
  position: fixed;
  inset: var(--dialog-top-gap) 0 auto;
  width: min(540px, calc(100% - 32px));
  max-height: min(
    740px,
    calc(
      100dvh - var(--dialog-top-gap) -
        max(16px, env(safe-area-inset-bottom, 0px))
    )
  );
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.day-dialog::backdrop {
  background: rgba(55, 72, 77, 0.5);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  max-height: inherit;
  padding: 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-padding-block: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 255, 255, 0.65), transparent 32%),
    var(--paper-light);
  box-shadow: var(--shadow-lg);
}

.dialog-card .eyebrow {
  margin-bottom: 10px;
}

.dialog-card h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.dialog-close:hover {
  border-color: var(--line);
  background: var(--paper-deep);
}

.dialog-close:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}

.dialog-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.dialog-person {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px dotted rgba(101, 83, 63, 0.35);
}

.dialog-person:first-child {
  padding-top: 0;
  border-top: 0;
}

.dialog-person:last-child {
  padding-bottom: 0;
}

.dialog-person .avatar {
  width: 42px;
  height: 42px;
  font-size: 11px;
}

.dialog-person h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.dialog-person p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.dialog-person .dialog-note {
  margin-top: 5px;
  padding-left: 9px;
  border-left: 2px solid var(--person-color);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-style: italic;
}

.dialog-status {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--sage-dark);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dialog-status--live {
  color: var(--honey-dark);
}

.dialog-status--pending {
  color: var(--muted);
}

.dialog-status--lost {
  color: var(--berry);
}

.dialog-status--won {
  color: var(--sage-dark);
}

.dialog-empty {
  margin: 0;
  padding: 8px 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

.dialog-action-status {
  min-height: 1.1em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  font-style: italic;
  line-height: 1.4;
}

.dialog-action-status:empty {
  display: none;
}

.dialog-action-status.is-error {
  color: var(--berry);
}

.dialog-action-status.is-success {
  color: var(--sage-dark);
}

.dialog-action-status:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
}

.dialog-person-copy {
  flex: 1;
  min-width: 0;
}

.dialog-person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
}

.dialog-person-action {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--honey-dark);
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: rgba(138, 90, 18, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

.dialog-person-action:hover:not(:disabled) {
  color: var(--berry);
  text-decoration-color: currentColor;
}

.dialog-person-action:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}

.dialog-person-action--danger {
  color: var(--berry);
  text-decoration-color: rgba(153, 76, 57, 0.35);
}

.dialog-person-action:disabled {
  cursor: wait;
  opacity: 0.5;
}

.dialog-section {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid rgba(200, 182, 146, 0.8);
}

.dialog-section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 11px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dialog-count {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.dialog-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialog-messages .message-card {
  padding: 13px 14px 12px;
}

.dialog-section--forms {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dialog-disclosure {
  scroll-margin-block: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.28);
}

.dialog-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}

.dialog-disclosure summary:hover {
  background: rgba(241, 227, 191, 0.32);
}

.dialog-disclosure summary::-webkit-details-marker {
  display: none;
}

.dialog-disclosure summary::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-inline-end: 3px;
  border-right: 1.5px solid var(--honey-dark);
  border-bottom: 1.5px solid var(--honey-dark);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.dialog-disclosure[open] summary::after {
  transform: rotate(225deg);
}

.dialog-disclosure[open] summary {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(241, 227, 191, 0.2);
}

.dialog-disclosure summary:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: -3px;
}

.dialog-disclosure .message-form {
  padding: 3px 13px 14px;
  gap: 12px;
}

.dialog-disclosure .message-field textarea {
  min-height: 92px;
}

.dialog-hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  line-height: 1.45;
}

.error-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 40px);
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(153, 76, 57, 0.4);
  background: var(--paper-light);
  box-shadow: var(--shadow-md);
}

.error-banner[hidden] {
  display: none;
}

.error-banner p {
  margin: 0;
  color: var(--berry-dark);
  font-size: 12px;
}

.error-banner button {
  padding: 6px 12px;
  border: 0;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(55px, 7.8vw, 78px);
  }

  .plate {
    padding: 15px 15px 10px;
  }

  .plate-frame {
    min-height: 280px;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .ledger {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0 32px;
    padding: 24px 26px 27px;
    transform: none;
  }

  .ledger .eyebrow,
  .ledger h2,
  .ledger-summary {
    grid-column: 1;
  }

  .ledger-summary {
    margin-bottom: 0;
  }

  .ledger-group {
    grid-column: 2;
  }

  .ledger-group:nth-of-type(1) {
    grid-row: 1 / span 3;
    margin-top: 29px;
  }

  .ledger-group:nth-of-type(2) {
    grid-row: 4 / span 4;
    margin-top: 18px;
  }

  .ledger-note {
    grid-column: 1;
    margin-top: 18px;
  }

  .piglet-figure {
    right: 22px;
    bottom: 12px;
    width: 90px;
  }

  .prediction-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .book {
    width: min(100% - 40px, 740px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding-top: 38px;
  }

  .hero h1 {
    font-size: clamp(54px, 11.5vw, 78px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .plate {
    width: min(100%, 330px);
    margin: 38px auto 0;
  }

  .plate-frame {
    min-height: 265px;
  }

  .bee--one {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading--stacked {
    flex-direction: row;
    align-items: flex-end;
    gap: 15px;
  }

  .section-subtitle {
    max-width: 520px;
  }

  .calendar-book {
    padding: 21px 20px 13px;
  }

  .calendar-grid {
    grid-auto-rows: minmax(96px, auto);
  }

  .day-cell {
    min-height: 96px;
  }

  .predictions-section {
    padding-top: 62px;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .message-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .calendar-book {
    padding: 14px 11px 11px;
  }

  .calendar-book::before {
    inset: 5px;
  }

  .calendar-topline {
    padding: 0 3px 11px;
  }

  .calendar-month-name {
    font-size: 29px;
  }

  .calendar-grid {
    grid-auto-rows: minmax(54px, auto);
  }

  .weekdays span {
    padding: 0 0 6px;
    font-size: 8px;
    text-align: center;
  }

  .day-cell {
    align-items: center;
    gap: 2px;
    min-height: 54px;
    padding: 5px 2px 4px;
    text-align: center;
  }

  .day-top {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-height: 0;
  }

  .day-number {
    width: 23px;
    height: 23px;
    font-size: 14px;
  }

  .today-label {
    font-size: 10px;
  }

  .cell-events {
    display: none;
  }

  .cell-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 6px;
    margin-top: auto;
  }

  .cell-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--person-color);
  }

  .is-lost .cell-dot {
    opacity: 0.35;
  }

  .calendar-page-foot {
    display: none;
  }

  .ledger {
    display: block;
    padding: 22px 22px 115px;
  }

  .ledger .eyebrow,
  .ledger h2,
  .ledger-summary,
  .ledger-group,
  .ledger-note {
    grid-column: auto;
    grid-row: auto;
  }

  .ledger-summary {
    margin-bottom: 20px;
  }

  .ledger-group:nth-of-type(1) {
    margin-top: 0;
  }

  .ledger-group:nth-of-type(2) {
    margin-top: 22px;
  }
}

@media (max-width: 640px) {
  .book {
    width: calc(100% - 28px);
  }

  .masthead {
    padding: 17px 0 15px;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
  }

  .brand-mark svg {
    width: 26px;
    height: 26px;
  }

  .brand-name {
    font-size: clamp(19px, 5vw, 24px);
  }

  .brand-tagline {
    font-size: 8px;
  }

  .edition-badge {
    display: none;
  }

  .hero {
    padding: 31px 1px 20px;
  }

  .hero h1 {
    font-size: clamp(46px, 13.5vw, 65px);
    line-height: 0.97;
  }

  .dedication {
    margin-top: 20px;
    font-size: 17px;
  }

  .dedication::before {
    width: 22px;
    margin-right: 7px;
  }

  .hero-intro {
    margin-top: 13px;
    font-size: 14.5px;
    line-height: 1.6;
  }

  .hero-stats {
    gap: 6px;
    margin-top: 26px;
  }

  .stat {
    padding: 10px 9px 9px;
  }

  .stat strong {
    font-size: 24px;
  }

  .stat span {
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }

  .plate {
    width: min(100%, 280px);
    margin-top: 31px;
    padding: 12px 12px 8px;
  }

  .plate-frame {
    min-height: 206px;
    padding: 5px;
  }

  .plate figcaption {
    padding-top: 8px;
    font-size: 7.5px;
  }

  .plate figcaption span:first-child {
    font-size: 11px;
  }

  .story-divider {
    padding: 10px 0 42px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-heading--stacked {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .count-pill {
    margin: 0;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .ledger h2 {
    font-size: 29px;
  }

  .predictions-section {
    padding: 56px 0 37px;
  }

  .messages-section {
    padding: 12px 0 52px;
  }

  .message-form-card {
    padding: 20px 18px 18px;
  }

  .message-form-card h3 {
    font-size: 24px;
  }

  .message-form-footer {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .message-submit,
  .message-cancel {
    width: 100%;
  }

  .bet-date-fields {
    grid-template-columns: 1fr;
  }

  .message-card:nth-child(odd),
  .message-card:nth-child(even) {
    transform: none;
  }

  .prediction-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .prediction-card {
    padding: 15px 15px 14px;
  }

  .prediction-entry:nth-child(odd),
  .prediction-entry:nth-child(even) {
    transform: none;
  }

  .prediction-head {
    padding-right: 55px;
  }

  .prediction-name {
    font-size: 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 21px 0 27px;
  }

  .footer-credit {
    text-align: left;
  }

  .footer-date {
    display: none;
  }

  .day-dialog {
    --dialog-top-gap: max(12px, env(safe-area-inset-top, 0px));
    width: calc(100% - 24px);
    max-height: calc(
      100dvh - var(--dialog-top-gap) - max(12px, env(safe-area-inset-bottom, 0px))
    );
  }

  .dialog-card {
    padding: 27px 22px 23px;
  }

  .dialog-card h2 {
    padding-right: 34px;
    font-size: 29px;
  }

  .dialog-close {
    top: 13px;
    right: 13px;
  }
}

@media (max-width: 390px) {
  .hero-stats {
    gap: 4px;
  }

  .stat {
    padding: 9px 7px 8px;
  }

  .stat strong {
    font-size: 21px;
  }

  .stat span {
    font-size: 7px;
  }

  .calendar-month-name {
    font-size: 26px;
  }

  .calendar-year {
    font-size: 9px;
  }

  .edition-mark {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
