/* Udder Love v2 — a light style pass on top of the existing farm.
   Keeps the house colours, fonts and logo. Adds a little barn, fence
   and meadow, tidies type/spacing/buttons/cards, and finishes the
   public identity (no "Rebuild Preview" language). */

/* ---- type and buttons, farm-wide ---- */
#udderRealHome button,
#udderRealHome .uh-outline{
  min-height:44px;
  padding:13px 20px;
  letter-spacing:.01em;
  transition:transform .12s, box-shadow .12s, background .12s;
}
#udderRealHome button:hover{transform:translateY(-1px);box-shadow:0 4px 0 #173d2c22}
#udderRealHome button:focus-visible,
#twixLiveConnect:focus-visible,
.cowinfo button:focus-visible,
header a:focus-visible{
  outline:3px solid #b9ef72;
  outline-offset:2px;
}
#udderRealHome .uh-copy p{font-size:clamp(16px,1.7vw,18px);line-height:1.7}

/* Hero: keep the green, sit a fence on the meadow at the bottom */
.uh-hero{
  position:relative;
  padding-bottom:100px !important;
  overflow:hidden;
}
.uh-hero::after{
  /* fence posts + two rails, made of CSS so we don't add an asset */
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:52px;
  pointer-events:none;
  background:
    repeating-linear-gradient(90deg,
      #5a3318 0 11px,
      transparent 11px 46px),
    linear-gradient(transparent 10px, #8b5a2b 10px 16px, transparent 16px 28px, #6b3f1f 28px 34px, transparent 34px),
    linear-gradient(#3b8362, #2a5a42);
  box-shadow:0 -8px 16px #143e2e55;
}

/* Mint offer — honest, checkout still off */
#udderMintOffer{
  margin-top:22px !important;
  padding:20px 22px !important;
  background:#ffffff16 !important;
  border:1px solid #ffffff40 !important;
  border-radius:16px !important;
  max-width:480px !important;
}
#udderMintOffer .umo-kicker{
  font-size:12px;letter-spacing:1.6px;font-weight:800;opacity:.85;
}
#udderMintOffer .umo-price{
  font-size:36px;font-weight:900;line-height:1.15;margin:4px 0;
}
#udderMintOffer .umo-status{
  display:inline-block;
  background:#c1ef8f;
  color:#173a29;
  font-weight:800;
  font-size:13px;
  padding:4px 10px;
  border-radius:999px;
  margin:4px 0 8px;
}
#udderMintOffer p{font-size:14px;margin:8px 0 0;color:#e1eee3}

/* Cards: a little hay-coloured warmth, a gentle lift */
.uh-grid article{
  border-color:#d9c9a0 !important;
  box-shadow:0 6px 24px #153d2c0a, 0 1px 0 #f0e6c8 !important;
  transition:transform .15s, box-shadow .15s;
}
.uh-grid article:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px #153d2c18, 0 1px 0 #f0e6c8 !important;
}
.uh-grid p{min-height:0 !important;margin-bottom:16px}
.uh-grid button{width:100%}
@media(max-width:850px){
  .uh-hero{padding-bottom:80px !important}
}

/* Farm Board teaser — a strip of barn-door wood between the intro and the cards */
.fb-teaser{
  max-width:1250px;
  margin:10px auto 8px;
  padding:0 25px;
  display:block;
  text-decoration:none;
  color:inherit;
}
.fb-teaser-wood{
  background:
    repeating-linear-gradient(90deg, #7a4a28 0 2px, #8b5a2b 2px 52px, #6e4322 52px 54px);
  border:8px solid #6b3f1f;
  box-shadow:inset 0 0 0 3px #e8d5a3, 0 8px 24px #153d2c22;
  border-radius:6px;
  padding:22px 26px 24px;
  color:#fff9e8;
  position:relative;
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:center;
}
.fb-teaser-wood .fb-pin{
  width:14px;height:14px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #fff, #c23b3b 55%, #7a1a1a);
  position:absolute;top:8px;left:50%;transform:translateX(-50%);
  box-shadow:0 2px 2px #0004;
}
.fb-teaser-wood h2{
  margin:8px 0 6px;
  font-size:clamp(22px,3vw,32px);
  color:#fff9e8;
  letter-spacing:-.3px;
}
.fb-teaser-wood p{margin:0;max-width:640px;line-height:1.6;color:#f4e4bc}
.fb-teaser-wood .fb-go{
  background:#b9ef72;
  color:#173a29;
  font-weight:800;
  padding:13px 18px;
  border-radius:11px;
  white-space:nowrap;
}
.fb-teaser:hover .fb-teaser-wood{filter:brightness(1.04)}
@media(max-width:650px){
  .fb-teaser{padding:0 16px}
  .fb-teaser-wood{grid-template-columns:1fr;padding:20px 16px 18px}
}

/* Playable tour — Duck Hunt and Farm Explorer, honest and fun */
.uh-playable{
  max-width:1250px;
  margin:0 auto;
  padding:8px 25px 10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.uh-playable a{
  background:#fff;
  border:1px solid #d9c9a0;
  color:#173d2c;
  text-decoration:none;
  font-weight:800;
  padding:12px 16px;
  border-radius:11px;
  box-shadow:0 2px 0 #e9dbc5;
}
.uh-playable a:hover{background:#e0f5d1}

/* Footer: a fence along the top, legal links, still the same punchline */
.uh-footer{
  position:relative;
  padding-top:80px !important;
}
.uh-footer::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:28px;
  background:
    repeating-linear-gradient(90deg, #5a3318 0 11px, transparent 11px 46px),
    linear-gradient(transparent 6px, #8b5a2b 6px 11px, transparent 11px 17px, #6b3f1f 17px 22px, transparent 22px);
}
.uh-footer .uh-legal{
  margin-top:22px;
  letter-spacing:0 !important;
  font-size:13px !important;
  opacity:.9;
}
.uh-footer .uh-legal a{color:#c1ef8f;text-decoration:none;font-weight:700;margin:0 8px}
.uh-footer .uh-legal a:hover{text-decoration:underline}

/* What's on the farm (was Build Status / Rebuild) */
#about.inner h1{font-size:clamp(28px,4vw,48px)}
#about.inner p{line-height:1.7;max-width:720px;font-size:17px}

/* Legal pages */
body.legal-page{background:#fff7e7;color:#241d19;margin:0;font-family:system-ui,-apple-system,sans-serif}
body.legal-page header{height:66px;background:#173d2c;color:#fff;display:flex;align-items:center;padding:0 20px}
body.legal-page .udder-home{color:#fff;text-decoration:none}
body.legal-page .udder-home span{color:#b9ef72}
body.legal-page .legal{max-width:760px}
body.legal-page .legal h1{font-size:clamp(28px,4vw,48px);margin:0 0 12px}
body.legal-page .legal h2{margin:28px 0 8px;color:#173d2c}
body.legal-page .legal p, body.legal-page .legal li{line-height:1.7}
body.legal-page .crumb{margin-bottom:8px}
body.legal-page .fine{color:#615b55;font-size:13px;margin-top:32px}

/* Drawer: Farm Board entry already in the HTML; keep buttons comfortable */
aside#drawer button{min-height:48px;font-size:16px}
aside#drawer a.drawer-link{
  display:block;
  padding:15px;
  text-align:left;
  border:0;
  border-radius:12px;
  background:#2c624a;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

/* Gertrude: rounded, a little barn-shadow */
.uh-image img{
  box-shadow:0 18px 40px #0a1f1680;
}

/* Reduce motion */
@media(prefers-reduced-motion:reduce){
  #udderRealHome button, .uh-grid article, .fb-teaser:hover .fb-teaser-wood{
    transition:none;transform:none;
  }
}

/* Wallet button in the header: keep it compact, especially on a phone */
header #udderWalletButton,
header #twixLiveConnect{
  font-size:14px !important;
  padding:8px 12px !important;
  white-space:nowrap;
  flex-shrink:0;
  line-height:1.2;
}
header #udderWalletInfo,
header #twixLiveStatus{
  font-size:12px;
  max-width:22vw;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:700px){
  header #udderWalletButton,
  header #twixLiveConnect{
    font-size:12px !important;
    padding:7px 10px !important;
  }
  header #udderWalletInfo,
  header #twixLiveStatus{max-width:28vw}
}
