:root {
  --ink: #171512;
  --green-deep: #0B3B2E;
  --green: #14523E;
  --green-light: #1E7A5E;
  --gold: #E3A82B;
  --cream: #F6E3B8;
  --vermilion: #C0392B;
  --paper: #F4EFE2;
  --wood: #6b421d;
  --font-display: 'Shrikhand', 'Baloo Da 2', serif;
  --font-bn: 'Baloo Da 2', 'Noto Sans Bengali', sans-serif;
  --font-text: 'Noto Sans Bengali', 'Baloo Da 2', sans-serif;
  --deal-ms: 480ms;
  --play-ms: 420ms;
  --pulse-ms: 1200ms;
  --wallet-ms: 520ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--font-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.felt {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.corner {
  position: fixed;
  width: clamp(28px, 4.4vw, 62px);
  height: auto;
  z-index: 1;
  opacity: 0.88;
  pointer-events: none;
  user-select: none;
}
.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; transform: scaleX(-1); }
.corner-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner-br { bottom: 0; right: 0; transform: scale(-1, -1); }

.board {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 8px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- title and wallet ---------- */

.topbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.title-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 272;
  filter: drop-shadow(0 4px 0 rgba(23, 21, 18, 0.28));
}

.title-plaque {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
}

.title {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 2%;
  bottom: 2%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(16px, 5.1vw, 30px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cream);
  -webkit-text-stroke: 1.2px var(--ink);
  text-shadow: 0 2px 0 rgba(23, 21, 18, 0.35);
  text-align: center;
}

.wallet {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 3px 9px 3px 5px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 3px 0 rgba(23, 21, 18, 0.3);
  position: relative;
  overflow: hidden;
}

.rupee-token {
  width: 27px;
  height: 27px;
  object-fit: contain;
  flex: none;
}

.wallet-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.wallet-label {
  font-family: var(--font-bn);
  font-weight: 700;
  font-size: 8px;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}

.wallet-value {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.1;
}

.rupee-mark {
  position: absolute;
  right: 6%;
  bottom: -18%;
  width: 34%;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- game choice menu ---------- */

.menu {
  display: flex;
  flex-direction: row;
  gap: 6px;
  height: 54px;
}

.menu-card {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 3px 0 rgba(23, 21, 18, 0.3);
  color: var(--ink);
  font-family: var(--font-bn);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.menu-card + .menu-card { margin-left: 0; }

.menu-card.selected {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), inset 0 0 16px rgba(246, 227, 184, 0.9), 0 5px 0 rgba(23, 21, 18, 0.25);
}

.menu-card:active { transform: translateY(0); }

.menu-icon {
  width: 32%;
  height: 92%;
  object-fit: contain;
  flex: none;
  user-select: none;
}

.menu-label {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  line-height: 1.05;
  overflow-wrap: break-word;
}

/* ---------- scoreboard ---------- */

.scoreboard {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(23, 21, 18, 0.3);
  padding: 4px 8px;
  color: var(--ink);
}

.scoreboard::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed rgba(227, 168, 43, 0.9);
  border-radius: 2px;
  pointer-events: none;
}

.score-head {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-family: var(--font-bn);
  font-weight: 700;
  font-size: 8px;
  color: var(--green-deep);
  position: relative;
  z-index: 1;
}

.score-divider,
.score-stitch { display: none; }

.score-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  position: relative;
  z-index: 1;
}

.score-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 1px 1px;
  border-left: 1px solid rgba(227, 168, 43, 0.55);
}

.score-row:first-child { border-left: 0; }

.score-row.active {
  background: rgba(246, 227, 184, 0.6);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.stitch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 3px;
  margin-left: -7px;
  border-radius: 2px;
  background: var(--vermilion);
  opacity: 0;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 1px rgba(23, 21, 18, 0.25);
}

.score-row.active .stitch { opacity: 1; }

.score-name {
  font-family: var(--font-bn);
  font-weight: 700;
  font-size: 8px;
  line-height: 1;
  color: var(--green-deep);
  white-space: nowrap;
}

.score-value {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
}

.score-value.pop { animation: scorePop 500ms ease-out 1; }

/* ---------- table ---------- */

.table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "c1 c2"
    "play play"
    "you you";
  gap: 4px;
  position: relative;
}

.seat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.seat-c1 { grid-area: c1; height: 108px; }
.seat-c2 { grid-area: c2; height: 108px; }

.avatar-box {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 64px;
  position: relative;
}

.avatar {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 0 rgba(23, 21, 18, 0.25));
  user-select: none;
}

.nameplate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  background: var(--gold);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(23, 21, 18, 0.28);
  font-family: var(--font-bn);
  font-weight: 700;
  font-size: 8px;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  position: relative;
  z-index: 4;
}

.seat-c1 .nameplate,
.seat-c2 .nameplate { margin-top: 1px; }

.fan {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fan.empty .hand-tag { display: none; }

.hand-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-bn);
  font-weight: 700;
  font-size: 7px;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(23, 21, 18, 0.3);
}

.cards {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 7px;
  min-width: 0;
}

.seat-c1 .cards,
.seat-c2 .cards { padding-top: 7px; }

.card-slot {
  position: relative;
  flex: none;
  transform: rotate(var(--rot, 0deg)) translateY(var(--y, 0px));
  transform-origin: 50% 100%;
  transition: transform 160ms ease;
}

.seat-you .card-slot { width: clamp(52px, 8vw, 116px); }
.seat-c1 .card-slot,
.seat-c2 .card-slot { width: clamp(19px, 4.2vw, 58px); }

.seat-you .card-slot + .card-slot { margin-left: clamp(-30px, -2.2vw, -14px); }
.seat-c1 .card-slot + .card-slot,
.seat-c2 .card-slot + .card-slot { margin-left: clamp(-16px, -2.1vw, -6px); }

.seat-you .card-slot:hover {
  transform: rotate(0deg) translateY(calc(var(--y, 0px) - 8px));
  z-index: 60 !important;
}

.seat-you .card-slot:hover .card { filter: brightness(1.06); }

/* ---------- the play area ---------- */

.play-area {
  grid-area: play;
  position: relative;
  width: 100%;
  height: 104px;
  margin: 0 auto;
}

.play-mat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  filter: drop-shadow(0 4px 0 rgba(23, 21, 18, 0.2));
}

.deck {
  position: absolute;
  right: 1%;
  top: 28%;
  width: 11%;
  aspect-ratio: 688 / 1024;
  z-index: 2;
  filter: drop-shadow(0 2px 0 rgba(23, 21, 18, 0.3));
}

.deck-card {
  position: absolute;
  inset: 0;
  transform: translate(calc(var(--i, 0) * 1.5px), calc(var(--i, 0) * -2px)) rotate(calc(var(--i, 0) * 1.2deg));
}

.trick {
  position: absolute;
  inset: 7% 7% 21% 7%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3%;
  z-index: 3;
}

.trick .card { transition-duration: var(--play-ms); }

.trick-slot {
  width: clamp(44px, 7vw, 100px);
  flex: none;
  transform: rotate(var(--rot, 0deg));
  transform-origin: 50% 90%;
}

.message {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  margin: 0;
  z-index: 5;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(9px, 1.1vw, 15px);
  line-height: 1.25;
  text-align: center;
  color: var(--cream);
  text-shadow: 0 1px 0 var(--ink), 0 0 5px rgba(11, 59, 46, 0.95);
}

/* ---------- player seat and hand ---------- */

.seat-you {
  grid-area: you;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  height: 84px;
  gap: 2px;
}

.seat-you .avatar-box {
  width: 23%;
  height: 78px;
  flex: none;
  align-items: flex-end;
}

.seat-you .avatar { height: 100%; }

.seat-you .nameplate {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
}

.seat-you .fan {
  flex: 1;
  height: 100%;
  align-items: flex-end;
}

.seat-you .cards { padding-top: 9px; }

/* ---------- cards ---------- */

.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  container-type: inline-size;
  user-select: none;
  transition: transform var(--deal-ms) cubic-bezier(0.2, 0.75, 0.3, 1.08), opacity 160ms ease, filter 160ms ease;
}

.card.face {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(23, 21, 18, 0.35), inset 0 0 0 1px rgba(246, 227, 184, 0.8);
  overflow: hidden;
}

.card.face::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 21, 18, 0.055) 0.7px, transparent 1.1px);
  background-size: 3px 3px;
  opacity: 0.5;
  pointer-events: none;
}

.card.back {
  background: url("../elements/card_back.webp") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(23, 21, 18, 0.3);
}

.rank {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27cqw;
  line-height: 1;
  z-index: 2;
  color: var(--ink);
}

.card.red .rank { color: var(--vermilion); }

.rank-tl { top: 4%; left: 7%; }
.rank-br { bottom: 4%; right: 7%; transform: rotate(180deg); }

.pip {
  position: absolute;
  display: block;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.pip-tl { width: 16%; top: 27%; left: 7%; }
.pip-br { width: 16%; bottom: 27%; right: 7%; transform: rotate(180deg); }
.pip-centre {
  width: 48%;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}

.card.ace .pip-centre { width: 66%; }
.card.court .pip-centre { width: 55%; }
.card.court::before {
  content: "";
  position: absolute;
  inset: 20% 16%;
  border: 1px solid rgba(227, 168, 43, 0.9);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(246, 227, 184, 0.65);
  z-index: 0;
}

/* ---------- painted controls ---------- */

.controls {
  position: relative;
  z-index: 35;
  display: flex;
  flex-direction: row;
  gap: 6px;
  height: 52px;
}

.paint-btn {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 90ms ease, filter 90ms ease;
}

.btn-plate {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  filter: drop-shadow(0 3px 0 rgba(23, 21, 18, 0.28));
}

.btn-label {
  position: absolute;
  left: 17%;
  right: 20%;
  top: 27%;
  bottom: 21%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bn);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1;
  color: var(--green-deep);
  text-align: center;
  pointer-events: none;
}

.paint-btn:active { transform: translateY(2px); filter: brightness(0.95); }
.paint-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.menu-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--wood);
  border-top: 2px solid var(--ink);
  box-shadow: inset 0 1px 0 rgba(227, 168, 43, 0.25);
  color: rgba(246, 227, 184, 0.76);
  font-family: var(--font-text);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  margin: 0 -10px 0;
}

.footer-flourish {
  width: 18px;
  height: auto;
  opacity: 0.5;
  flex: none;
}

/* ---------- animation ---------- */

.card.is-dealing {
  opacity: 0;
  transform: translate(var(--dx, 28vw), var(--dy, -16vh)) rotate(14deg) scale(0.8);
}

.from-deck-0 { --dx: 30vw; --dy: -16vh; }
.from-deck-1 { --dx: 14vw; --dy: -14vh; }
.from-deck-2 { --dx: -12vw; --dy: -14vh; }

.card.is-flying {
  opacity: 0;
  transform: translate(var(--fx, 0), var(--fy, 18vh)) rotate(10deg) scale(0.85);
}

.from-seat-0 { --fx: 0; --fy: 20vh; }
.from-seat-1 { --fx: -20vw; --fy: -13vh; }
.from-seat-2 { --fx: 20vw; --fy: -13vh; }

.card-slot.winner .card {
  animation: goldPulse var(--pulse-ms) ease-out 1;
}

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 168, 43, 0), 0 2px 0 rgba(23, 21, 18, 0.35); }
  30% { box-shadow: 0 0 0 4px rgba(227, 168, 43, 0.95), 0 0 14px rgba(227, 168, 43, 0.85), 0 2px 0 rgba(23, 21, 18, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(227, 168, 43, 0), 0 2px 0 rgba(23, 21, 18, 0.35); }
}

@keyframes scorePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* ---------- wide / landscape layout ---------- */

@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .board {
    max-width: 1600px;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    display: block;
    margin: 0 auto;
  }

  .topbar { display: contents; }

  .title-wrap {
    position: absolute;
    left: 21%;
    top: 0.8%;
    width: 58%;
    height: 13%;
  }

  .title { font-size: clamp(24px, 2.65vw, 46px); -webkit-text-stroke: 1.6px var(--ink); }

  .wallet {
    position: absolute;
    top: 1.6%;
    right: 3%;
    width: 15%;
    height: 8%;
    align-self: auto;
    padding: 2% 2.4%;
    gap: 6%;
    border-radius: 5px;
  }

  .rupee-token { width: 35%; height: auto; max-height: 100%; }
  .wallet-label { font-size: clamp(8px, 0.78vw, 13px); }
  .wallet-value { font-size: clamp(15px, 1.6vw, 26px); }

  .menu {
    position: absolute;
    left: 3%;
    top: 14%;
    width: 20%;
    height: 42%;
    flex-direction: column;
    gap: 3%;
  }

  .menu-card {
    flex: 1;
    width: 100%;
    height: auto;
    padding: 3% 4%;
    gap: 3%;
  }

  .menu-card + .menu-card { margin-left: 0; margin-top: 0; }
  .menu-icon { width: 38%; height: 82%; }
  .menu-label { font-size: clamp(11px, 1.05vw, 18px); line-height: 1.1; }

  .scoreboard {
    position: absolute;
    right: 3%;
    top: 16.5%;
    width: 19%;
    height: 32%;
    padding: 2.2% 2.4%;
    display: flex;
    flex-direction: column;
  }

  .scoreboard::before { inset: 6px; border-width: 2px; }

  .score-head {
    font-size: clamp(9px, 0.86vw, 14px);
    padding: 0 2%;
    min-height: 9%;
    align-items: center;
  }

  .score-divider {
    display: block;
    width: 46%;
    height: auto;
    margin: 3% auto 2%;
    opacity: 0.9;
  }

  .score-rows {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
  }

  .score-row {
    flex: 1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 4%;
    padding: 0 4%;
    border-left: 0;
    border-top: 1px solid rgba(227, 168, 43, 0.55);
  }

  .score-row:first-child { border-top: 0; }
  .score-row.active { box-shadow: inset 3px 0 0 var(--gold); }
  .stitch { top: 50%; left: 2%; margin-top: -4px; margin-left: 0; width: 9px; height: 8px; }
  .score-name { flex: 1; font-size: clamp(10px, 0.95vw, 16px); white-space: normal; }
  .score-value { font-size: clamp(18px, 1.55vw, 26px); }

  .score-stitch {
    display: block;
    width: 55%;
    height: auto;
    margin: 2% auto 0;
    opacity: 0.65;
  }

  .table { display: contents; }

  .seat {
    position: absolute;
  }

  .seat-c1 {
    left: 27%;
    top: 14%;
    width: 18%;
    height: 31%;
  }

  .seat-c2 {
    left: 54%;
    top: 14%;
    width: 18%;
    height: 31%;
  }

  .seat-c1 .avatar-box,
  .seat-c2 .avatar-box { flex: 1; height: auto; min-height: 0; width: 100%; }
  .seat-c1 .nameplate,
  .seat-c2 .nameplate { margin-top: 1%; font-size: clamp(9px, 0.95vw, 15px); padding: 1% 6%; }
  .seat-c1 .fan,
  .seat-c2 .fan { flex: none; height: 24%; }
  .seat-c1 .cards,
  .seat-c2 .cards { padding-top: 3%; }
  .seat-c1 .hand-tag,
  .seat-c2 .hand-tag { font-size: clamp(7px, 0.7vw, 11px); padding: 0 3%; }
  .seat-c1 .card-slot,
  .seat-c2 .card-slot { width: clamp(22px, 3vw, 48px); }
  .seat-c1 .card-slot + .card-slot,
  .seat-c2 .card-slot + .card-slot { margin-left: clamp(-18px, -1.8vw, -8px); }

  .seat-you {
    left: 4%;
    bottom: 8.5%;
    width: 58%;
    height: 26%;
    gap: 0;
  }

  .seat-you .avatar-box { width: 23%; height: 100%; }
  .seat-you .nameplate {
    left: 0;
    bottom: 0;
    width: 23%;
    font-size: clamp(9px, 0.95vw, 15px);
    padding: 1% 0;
    border-radius: 999px;
  }

  .seat-you .fan { height: auto; }
  .seat-you .cards { padding-top: 4%; }
  .seat-you .card-slot { width: clamp(58px, 7.7vw, 118px); }
  .seat-you .card-slot + .card-slot { margin-left: clamp(-36px, -2.2vw, -14px); }
  .seat-you .hand-tag { font-size: clamp(8px, 0.8vw, 12px); padding: 0 3%; }

  .play-area {
    position: absolute;
    left: 23%;
    top: 45.5%;
    width: 56%;
    height: 23%;
    margin: 0;
  }

  .trick { inset: 9% 7% 13% 7%; gap: 2.5%; }
  .trick-slot { width: clamp(54px, 6.7vw, 104px); }
  .message { bottom: 0; font-size: clamp(10px, 1.02vw, 16px); }

  .deck {
    right: -20%;
    top: 22%;
    width: 13%;
  }

  .controls {
    position: absolute;
    right: 3%;
    bottom: 8.5%;
    width: 25%;
    height: 24%;
    flex-direction: column;
    gap: 2%;
  }

  .paint-btn { flex: 1; height: auto; }
  .btn-label { font-size: clamp(11px, 1.05vw, 18px); }

  .footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7.5%;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    font-size: clamp(10px, 0.82vw, 14px);
  }

  .footer-flourish { width: 3.2%; max-width: 50px; }
}

/* ---------- narrow / portrait felt ---------- */

@media (max-aspect-ratio: 5/4) {
  .felt { object-fit: cover; object-position: center; }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    border: 2px solid rgba(227, 168, 43, 0.75);
    pointer-events: none;
    z-index: 6;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
