/* =====================================
   FINAL RIGHT-COLUMN + COUNTER LOCK
   - stable counter
   - readable trip box
   - smaller bottom-right photo
   - no weird gap between World Cup and time
   - do NOT touch Stardew layout
===================================== */

/* right column compact but not crushed */
body.home-page .retro-right {
  gap: 4px !important;
  row-gap: 4px !important;
}

body.home-page .retro-right .retro-box {
  margin: 0 !important;
}

body.home-page .retro-right .retro-title {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  min-height: 18px !important;
  line-height: 1.05 !important;
}

/* ---------- top-right counter ---------- */
body.home-page .dating-badge.counter-lock-badge {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px 10px !important;
}

body.home-page .counter-lock-since {
  color: #8f5f86 !important;
  font-family: monospace !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.home-page .counter-lock-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  line-height: 1 !important;
}

body.home-page .counter-lock-heart {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 22px !important;
  background: #e8a2ca !important;
  border: 1px solid #c67eaa !important;
  border-radius: 50% 50% 45% 45% !important;
  color: #fff !important;
  font-family: monospace !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.home-page .counter-lock-heart::before {
  content: "♥" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #e8a2ca !important;
  font-size: 28px !important;
  z-index: 0 !important;
}

body.home-page .counter-lock-heart > span {
  position: relative !important;
  z-index: 1 !important;
}

body.home-page .counter-lock-word {
  color: #557d9a !important;
  font-family: monospace !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

/* ---------- trip / hello kitty box ---------- */
body.home-page .trip-panel .trip-list,
body.home-page .trip-panel-fixed .trip-list {
  padding: 6px 8px !important;
  gap: 4px !important;
}

body.home-page .trip-panel .trip-row,
body.home-page .trip-panel-fixed .trip-row {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 46px !important;
  align-items: center !important;
  column-gap: 7px !important;

  min-height: 40px !important;
  height: 40px !important;
  padding: 3px 7px !important;
  margin: 0 !important;

  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.home-page .trip-panel .trip-icon,
body.home-page .trip-panel-fixed .trip-icon {
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home-page .trip-panel .trip-icon img,
body.home-page .trip-panel-fixed .trip-icon img {
  max-width: 26px !important;
  max-height: 26px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

body.home-page .trip-label-lock {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  color: #5f688e !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.home-page .trip-count-lock {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: end !important;
  align-self: center !important;

  width: 44px !important;
  height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;

  background: rgba(255,255,255,.92) !important;
  border: 1px solid #a994c8 !important;
  border-radius: 2px !important;
  color: #735f96 !important;
  font-family: monospace !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* hide old leftover trip pieces */
body.home-page .trip-panel .trip-info,
body.home-page .trip-panel .trip-pill-final,
body.home-page .trip-panel .trip-dday-mini,
body.home-page .trip-panel .trip-label-clean,
body.home-page .trip-panel .trip-count-clean,
body.home-page .trip-panel .trip-label-final,
body.home-page .trip-panel .trip-count-final,
body.home-page .trip-panel-fixed .trip-info,
body.home-page .trip-panel-fixed .trip-pill-final,
body.home-page .trip-panel-fixed .trip-dday-mini,
body.home-page .trip-panel-fixed .trip-label-clean,
body.home-page .trip-panel-fixed .trip-count-clean,
body.home-page .trip-panel-fixed .trip-label-final,
body.home-page .trip-panel-fixed .trip-count-final {
  display: none !important;
}

/* ---------- world cup -> time ---------- */
body.home-page .world-cup-panel,
body.home-page .world-cup-panel-fixed {
  margin-bottom: 0 !important;
}

body.home-page .time-panel-fixed,
body.home-page .time-panel,
body.home-page .clock-panel {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 4px !important;
}

/* soccer divider INSIDE time box top so there is no empty outside gap */
body.home-page .soccer-divider-inline {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 1px 0 2px 0 !important;
  padding: 0 !important;
}

body.home-page .soccer-divider-inline img {
  width: 11px !important;
  height: 11px !important;
  object-fit: contain !important;
}

body.home-page .time-panel-fixed [class*="time"],
body.home-page .time-panel-fixed [class*="clock"],
body.home-page .time-panel [class*="time"],
body.home-page .time-panel [class*="clock"],
body.home-page .clock-panel [class*="time"],
body.home-page .clock-panel [class*="clock"] {
  margin: 2px 6px 0 6px !important;
  padding: 8px 6px !important;
}

/* ---------- calendar a little taller ---------- */
body.home-page .calendar-final-month,
body.home-page .hard-calendar-month,
body.home-page .calendar-fix-month {
  background: #dfecc0 !important;
  border: 1px solid #bfd19e !important;
  color: #64718d !important;
}

body.home-page .calendar-final-cell,
body.home-page .hard-calendar-cell,
body.home-page .calendar-fix-cell {
  min-height: 22px !important;
}

/* ---------- bottom-right photo slightly smaller ---------- */
body.home-page .boba-final-clean img,
body.home-page .hard-boba-panel img,
body.home-page .boba-right-panel img,
body.home-page .locked-boba-photo {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
