*{box-sizing:border-box}
:root{color-scheme:light;color:#2d4736;background:#697238;font-family:Georgia,"Times New Roman",serif}
html,body{margin:0;min-width:240px;overflow-x:clip}
body{overscroll-behavior-y:none}
.pen{position:relative;isolation:isolate;overflow:hidden;height:clamp(480px,87svh,960px)}
.scenery,.marks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.scenery{z-index:-1;background-position:center;background-size:100% 100%;background-repeat:no-repeat}
.show .scenery{background-image:url(art/showground.webp)}
.meadow{height:clamp(450px,85svh,900px);box-shadow:0 -3px 6px #342d2088}
.meadow .scenery{background-image:url(art/lower-pen.webp)}
.signpost{position:absolute;left:50%;top:8.3%;width:min(43vw,495px);transform:translateX(-50%) rotate(-1.3deg);z-index:2;isolation:isolate}
.signpost:before,.signpost:after{position:absolute;content:"";bottom:80%;height:38vh;width:3px;background:repeating-linear-gradient(147deg,#72583a 0 2px,#c1a074 2px 5px);box-shadow:1px 0 #534c4080;z-index:-1;transform-origin:bottom}
.signpost:before{left:8%;transform:rotate(4deg)}
.signpost:after{right:8%;transform:rotate(-3deg)}
h1{font-size:inherit;margin:0}
.board{display:block;width:100%;filter:drop-shadow(1px 4px 2px #25281555)}
.flap,.citation{color:#38513c;border:2px solid #805d37;box-shadow:inset 0 0 0 3px #ead6a7,inset 0 0 0 4px #91a07d,1px 3px 2px #2e261c66;background:linear-gradient(175deg,#ffedbd,#e1c595);text-align:center}
.flap{position:absolute;left:50%;top:96%;padding:.25em 1.08em .34em;border-radius:2px 4px 4px 5px;font-weight:bold;font-style:italic;font-size:clamp(20px,2vw,29px);transform-origin:top center;transform:translateX(-50%) rotate(2deg);animation:flip .5s ease-out both;white-space:nowrap}
.flap:before,.flap:after{content:"";position:absolute;width:3px;height:12px;background:#776c53;top:-7px}
.flap:before{left:12%}.flap:after{right:12%}
.meadow>.flap{top:23%;left:57%;font-size:clamp(17px,2vw,23px)}
@keyframes flip{from{transform:translateX(-50%) perspective(230px) rotateX(-95deg)}to{transform:translateX(-50%) perspective(230px) rotateX(0deg) rotate(2deg)}}
.animal{position:absolute;z-index:3;appearance:none;display:block;margin:0;padding:0;border:0;background:none;cursor:pointer;touch-action:pan-y pinch-zoom;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;aspect-ratio:var(--w)/var(--h);width:var(--size);transform:translateX(-50%);line-height:0}
.animal:before{content:"";position:absolute;bottom:5%;left:6%;width:88%;height:7%;background:radial-gradient(ellipse,#49361c66,transparent 72%);transform:skewX(-23deg)}
.animal img,.animal i{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.animal i{background-size:700% 100%;background-repeat:no-repeat}
.animal:focus-visible{outline:3px dashed #fbefce;outline-offset:3px;border-radius:30%}
.pig{--size:min(35%,40svh);left:24%;bottom:17%}
.cow{--size:min(41%,44svh);left:72%;bottom:20%}
.hen{--size:min(22%,23svh);left:46%;bottom:3.5%;z-index:4}
.goat{--size:min(34%,38svh);left:76%;bottom:34%}
.sheep{--size:min(36%,38svh);left:25%;bottom:44%}
.duck{--size:min(25%,26svh);left:39%;bottom:12%}
.fence{z-index:1}.foreground{z-index:4}.sign-ink{z-index:1}
.glass{position:fixed;z-index:8;overflow:visible}
.burst{position:absolute;z-index:6;pointer-events:none;overflow:visible}
.paint-unit{transform:scale(var(--unit-x,1),var(--unit-y,1))}
@media(prefers-reduced-motion:no-preference){
  .rail-fold,.glass-ribbon{transform-box:fill-box}
  .rail-fold{
    transform-origin:42% 27%;
    animation:rail-fold-twitch 340ms ease-out 860ms 1;
  }
  .glass-ribbon{
    transform-origin:80% 26%;
    animation:ribbon-tip-twitch 420ms ease-out 2720ms 1;
  }
  @keyframes rail-fold-twitch{
    0%,100%{transform:none}
    22%{transform:rotate(-4deg) scale(1.08,.83)}
    56%{transform:rotate(1deg) scale(.99,1.025)}
  }
  @keyframes ribbon-tip-twitch{
    0%,100%{transform:none}
    16%{transform:rotate(5deg) scale(.96,.98)}
    43%{transform:rotate(-1.4deg)}
  }
}
.show.awarded{isolation:auto}
.show.awarded .scenery{z-index:0}
.show.awarded .signpost{z-index:9}
.prize{position:absolute;z-index:3;top:88%;left:50%;width:max(100%,285px);max-width:96vw;display:flex;align-items:center;justify-content:center;transform:translateX(-50%) rotate(1deg);transform-origin:50% 0;animation:award .75s cubic-bezier(.22,.65,.32,1.06) both}
.prize img{width:30%;position:relative;z-index:1;filter:drop-shadow(1px 3px 1px #352b2166)}
.citation{margin-left:-8%;padding:12px 12px 14px 7%;border-radius:4px 12px 4px 8px;width:78%}
.citation strong{display:block;font-style:italic;font-size:clamp(21px,2.25vw,32px)}
.citation span{display:block;margin:.28em auto 0;line-height:1.34;font-size:clamp(16px,1.3vw,19px);max-width:19em;color:#433925}
.citation a{color:#285581;text-decoration-thickness:1px;text-underline-offset:3px}
@keyframes award{from{opacity:0;transform:translateX(-50%) perspective(300px) rotateX(-88deg)}to{opacity:1;transform:translateX(-50%) rotate(1deg)}}
[hidden]{display:none!important}.sr-only{position:absolute;overflow:hidden;clip-path:inset(50%);width:1px;height:1px}
@media(max-aspect-ratio:1/1){
 .pen{height:clamp(475px,78svh,820px)}.meadow{height:clamp(440px,75svh,800px)}
 .scenery{background-size:148% 100%}.show .scenery{background-position:48% center}.meadow .scenery{background-position:52% center}
 .signpost{width:min(83%,530px);top:11.5%}
 .pig{left:23%;--size:40%;bottom:18%}.cow{left:74%;--size:46%;bottom:21%}.hen{left:47%;--size:23%;bottom:5%}
 .goat{left:75%;--size:40%;bottom:34%}.sheep{left:24%;--size:42%;bottom:45%}.duck{left:39%;--size:29%;bottom:15%}
}
@media(max-height:480px) and (min-aspect-ratio:1/1){.pen{height:105svh;min-height:322px}.signpost{width:min(44vw,65svh)}}
@media(prefers-reduced-motion:reduce){.flap,.prize{animation-duration:.01s}}

.meadow{isolation:auto}
.meadow .scenery{z-index:0}
.rail-cue{position:absolute;z-index:9;left:50%;top:14.65%;width:clamp(72px,20vw,94px);min-height:44px;transform:translateX(-50%);touch-action:pan-y pinch-zoom;-webkit-tap-highlight-color:transparent}
.rail-cue img{display:block;width:100%;height:auto;user-select:none;pointer-events:none;transform-origin:50% 5%;filter:drop-shadow(1px 2px 1px #34281166)}
.rail-cue:focus-visible{outline:2px dashed #fff1bf;outline-offset:2px;border-radius:3px}
.pen-entry{margin:0;top:32%;left:50%}
@media(prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  .rail-cue img{animation:rail-bob .8s cubic-bezier(.4,.03,.34,1) .8s 1}
  @keyframes rail-bob{0%,100%{transform:rotate(0)}36%{transform:translateY(2px) rotate(2.8deg)}76%{transform:translateY(.3px) rotate(-.6deg)}}
}
@media(max-aspect-ratio:1/1){
  .show{height:min(71svh,820px)}
  .meadow{height:133svh}
  .meadow .scenery{background-size:cover;background-position:38% center}
  .rail-cue{width:clamp(66px,min(21vw,10svh),90px)}
}

.browse-sign{
  position:absolute;left:50%;transform:translateX(-50%) rotate(.8deg);width:max-content;
  max-width:95%;color:#fff2c7;text-align:center;text-decoration:none;
  background:repeating-linear-gradient(176deg,transparent 0 9px,#ebd79709 10px,transparent 11px 23px),linear-gradient(105deg,#244c40,#315849 63%,#25473b);
  border:2px solid #573e28;border-radius:3px 6px 3px 5px;
  box-shadow:inset 0 0 0 2px #ab8a50,inset 0 0 0 4px #27483b,1px 3px 2px #32251878;
}
.meet-sign{top:98%;z-index:2;display:flex;align-items:center;justify-content:center;gap:.72em;padding:.42rem 1.1rem .56rem;line-height:1.07;touch-action:pan-y pinch-zoom}
.meet-sign:before,.meet-sign:after{content:"";position:absolute;top:-8px;width:3px;height:12px;border-radius:4px;background:linear-gradient(90deg,#634f36,#c6aa72,#68533b)}
.meet-sign:before{left:12%}.meet-sign:after{right:12%}
.meet-sign strong,.meet-sign small{display:block}
.meet-sign strong{font-size:clamp(22px,2.2vw,30px);font-weight:bold}
.meet-sign small{margin-top:2px;font-size:clamp(15px,1.33vw,19px);font-style:italic}
.meet-sign svg{width:1.55rem;height:1.85rem;flex:none;transform:rotate(-3deg)}
.pen-invitation{top:31%;z-index:7;padding:.55em 1.2em;line-height:1.24;font-size:clamp(17px,1.7vw,22px);font-style:italic;font-weight:bold;max-width:90%}
.pen-invitation a{color:inherit;text-decoration:none;display:block;touch-action:pan-y pinch-zoom}
.meet-sign:focus-visible,.pen-invitation a:focus-visible{outline:3px dashed #ffde79;outline-offset:3px}
@media(prefers-reduced-motion:no-preference){
  .meet-sign{transform-origin:50% 0;animation:unfold-invitation .55s ease-out .25s backwards}
  @keyframes unfold-invitation{from{transform:translateX(-50%) perspective(300px) rotateX(-68deg);filter:brightness(1.34)}to{transform:translateX(-50%) rotate(.8deg);filter:brightness(1)}}
}
