.penguin-feast.full-game {
  color: #eef9ff;
  background: radial-gradient(ellipse at top, #254b67, #081827 70%);
}

.feast-layout, .feast-ready {
  width: min(calc(100% - 1rem), 35rem);
  margin: .5rem auto 1rem;
  display: grid;
  justify-items: center;
  gap: .45rem;
}

.feast-ready {
  text-align: center;
  gap: .7rem;
  padding: 1rem;
  background: #10253de6;
  border: 1px solid #9bd3e480;
  border-radius: 1.1rem;
}

.feast-ready p, .feast-ready h3, .feast-ready h4 {
  margin: 0;
}

.feast-ready img:not(.roster-avatar img) {
  width: min(9rem, 34vw);
  filter: drop-shadow(0 .5rem .6rem #040c19aa);
}

.feast-primary, .feast-secondary {
  min-height: 44px;
  padding: .55rem 1rem;
  border-radius: .7rem;
  border: 1px solid #ffdfaa;
  background: linear-gradient(135deg,#ffefb9,#e7ac53);
  color: #211609;
  font: inherit;
  font-weight: 800;
}

.feast-secondary {
  background: #173854;
  color: #eaf8ff;
  border-color: #85bdd5;
}

.feast-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .4rem;
}

.feast-stat {
  display: grid;
  justify-items: center;
  padding: .25rem .15rem .4rem;
  border: 1px solid #8fcde45e;
  border-radius: .75rem;
  background: #102641;
}

.feast-stat strong {
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  color: #ffe4a5;
  line-height: 1.12;
}

.feast-stat span {
  font-size: .875rem;
}

.feast-hurry .feast-stat:first-child strong {
  color: #ffc18d;
}

.feast-timer {
  width: 100%;
  height: .3rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #38576c;
}

.feast-timer span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,#86e0fa,#ffde93);
  transform-origin: left;
}

.feast-field {
  position: relative;
  width: 100%;
  height: clamp(16.8rem,calc(100dvh - 12.5rem),36rem);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #9fe1f485;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg,#0b213222,#22536a15 50%,#102e4eb0),
    url("./village-art/penguin.webp") center 45% / cover,
    #4c819e;
  box-shadow: inset 0 0 2rem #08233f8c,0 .4rem 1.75rem #060f23a0;
}

.feast-spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(4.1rem,24%,7.4rem);
  aspect-ratio: 1.05;
  transform: translate(-50%,-23%);
  clip-path: inset(-48% -14% 6%);
  pointer-events: none;
}

.feast-boulder {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 100%;
  height: 55%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 .16rem .15rem #122b4b83);
}

.feast-pond {
  position: absolute;
  top: 49%;
  left: 2.5%;
  width: 95%;
  aspect-ratio: 2.95;
  z-index: 7;
  background: url("./fish-feast-art/pond.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 .22rem .19rem #17395070);
  pointer-events: none;
}

.feast-pond .feast-spot {
  top: auto;
  bottom: var(--y);
  width: clamp(4.1rem,23%,7.1rem);
  transform: translateX(-50%);
  clip-path: inset(-48% -14% 12%);
}

.feast-pond .feast-spot .feast-target { bottom: 4%; }

.feast-water-ripple {
  position: absolute;
  left: 13%;
  bottom: 11%;
  width: 74%;
  height: 17%;
  border-radius: 50%;
  box-shadow: 0 0 0 .09rem #c5f1f9b8, inset 0 0 .45rem #77d4f3;
  opacity: 0;
}

.feast-pool[data-state="hungry"] .feast-water-ripple {
  animation: feast-ripple .74s ease-out;
}

@keyframes feast-ripple {
  0% { transform: scale(.5); opacity: .9; }
  70% { opacity: .42; }
  100% { transform: scale(1.31); opacity: 0; }
}

.feast-spot .feast-target {
  position: absolute;
  left: 0;
  bottom: 16%;
  display: grid;
  place-items: center;
  width: 100%;
  height: 83%;
  border: 0;
  border-radius: .7rem;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transition: opacity .11s;
}

.feast-target img {
  display: block;
  width: 88%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  translate: 0 72%;
  scale: .86;
  transition: translate .13s ease-in, scale .13s ease-in;
  filter: drop-shadow(0 0 .23rem #feeea5) drop-shadow(0 .14rem .18rem #103050c0);
}

.feast-spot[data-state="hungry"] .feast-target,
.feast-spot[data-state="fed"] .feast-target {
  opacity: 1;
}

.feast-spot:is([data-state="hungry"],[data-state="fed"]) .feast-target img {
  translate: 0 0;
  scale: 1;
  transition: translate .15s ease-out, scale .15s ease-out;
}

.feast-spot[data-state="hungry"] .feast-target { pointer-events: auto; }

.feast-target:focus-visible {
  outline: 2px solid #ffde8d;
  outline-offset: -2px;
}

.feast-catching img {
  animation: feast-catch .43s ease both;
}

@keyframes feast-catch {
  29% { transform: translateY(-12%) rotate(-7deg); }
  51% { transform: translateY(-15%) rotate(5deg) scale(1.09); filter: drop-shadow(0 0 .55rem #ffe893); }
  100% { transform: translateY(15%) scale(.91); }
}

/* Keep the right penguin's face and tap area above the taller rock. */
.feast-spot.feast-right-rock .feast-target { bottom: 32%; }
.feast-spot.feast-right-rock .feast-target img {
  width: 96%;
  filter: drop-shadow(0 0 .32rem #fff0be) drop-shadow(0 .14rem .2rem #102745e0);
}

.feast-pool[data-state="warning"] .feast-water-ripple {
  animation: feast-pond-warning .24s ease-out both;
}

@keyframes feast-pond-warning {
  from { transform: scale(.55); opacity: .92; }
  to { transform: scale(1.18); opacity: .8; }
}

.feast-snow-puff {
  position: absolute;
  left: 49%;
  bottom: 46%;
  width: .38rem;
  height: .38rem;
  background: #f1fdff;
  border-radius: 50%;
  box-shadow: -.7rem .28rem 0 #ecfaff, .6rem .22rem 0 #dcf5fa,
    .32rem -.28rem 0 #f8feff, -.33rem -.2rem 0 #e5faff;
  opacity: 0;
  pointer-events: none;
}

.feast-right-rock .feast-snow-puff { bottom: 55%; }
.feast-rock[data-state="warning"] .feast-snow-puff { animation: feast-snow-warning .24s ease-out both; }

@keyframes feast-snow-warning {
  from { transform: translateY(.22rem) scale(.6); opacity: .9; }
  to { transform: translateY(-.45rem) scale(1.25); opacity: .82; }
}

.feast-creel {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 2rem;
  border: 2px solid #f8d29b;
  border-radius: .35rem .35rem .9rem .9rem;
  background: repeating-linear-gradient(0deg,#54361f 0 3px,#b4834f 3px 7px);
  box-shadow: 0 .2rem .45rem #0d2138ad;
}

.feast-fish {
  position: relative;
  width: 1.35rem;
  height: .75rem;
  border-radius: 50% 42% 42% 50%;
  background: radial-gradient(circle at 70% 38%,#203c57 0 1px,transparent 1.7px),
    linear-gradient(145deg,#f5fbff,#71bbc7 55%,#326981);
}

.feast-fish::before {
  content: "";
  position: absolute;
  right: 92%;
  top: 4%;
  width: 45%;
  height: 92%;
  background: #7dc8dd;
  clip-path: polygon(0 0,100% 48%,0 100%,21% 50%);
}

.feast-flying-fish {
  position: absolute;
  z-index: 12;
  width: clamp(2rem,8vw,2.75rem);
  height: clamp(.95rem,3.8vw,1.28rem);
  border-radius: 58% 42% 45% 55% / 57% 51% 49% 43%;
  background:
    radial-gradient(circle at 78% 39%,#fff 0 4%,#143847 6% 10%,transparent 12%),
    radial-gradient(ellipse at 63% 45%,#effbf4a1,transparent 46%),
    linear-gradient(165deg,#27617c 6%,#5c9faf 30%,#cbefea 56%,#eff7dc 65%,#6c9ebb 91%);
  pointer-events: none;
  filter: drop-shadow(0 .12rem .13rem #0b3a5e) drop-shadow(0 0 .21rem #dbf8fd);
}

.feast-flying-fish::before { content: none; }
.feast-flying-fish::after {
  content: "";
  position: absolute;
  right: 20%;
  top: 24%;
  width: 23%;
  height: 58%;
  border-radius: 50%;
  border-left: 1px solid #225968bb;
  transform: rotate(-13deg);
}

.feast-fish-tail, .feast-fish-fin {
  position: absolute;
  background: linear-gradient(143deg,#96d9df,#477c99 54%,#b3dae6);
}

.feast-fish-tail {
  left: -27%;
  width: 38%;
  height: 112%;
  top: -6%;
  clip-path: polygon(0 0,38% 20%,100% 43%,100% 58%,38% 78%,0 100%,18% 48%);
  transform-origin: 91% 50%;
  animation: feast-tail .13s ease-in-out infinite alternate;
}

.feast-fish-fin {
  left: 31%;
  width: 25%;
  height: 48%;
  top: -34%;
  clip-path: polygon(0 100%,18% 53%,67% 0,100% 100%);
}

.feast-fish-sparkle {
  position: absolute;
  z-index: 11;
  width: .33rem;
  aspect-ratio: 1;
  margin: -.16rem;
  border-radius: 50%;
  background: #effcff;
  box-shadow: 0 0 .32rem #9cf1fa;
  opacity: 0;
  pointer-events: none;
}

@keyframes feast-tail {
  to { transform: scaleY(.62) rotate(-9deg); }
}

.feast-message {
  margin: 0;
  min-height: 1.4rem;
  text-align: center;
  color: #ffe8ac;
  font-weight: 750;
}

.feast-results {
  overflow: hidden;
  padding: .65rem .8rem 1rem;
  background: linear-gradient(160deg,#203f60,#12263f 43%,#0c2035);
}

.feast-results.feast-record {
  border-color: #f4ce83;
  box-shadow: 0 0 1.8rem #f4ce8330;
}

.feast-finale {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(10rem,33dvh,17rem);
  overflow: hidden;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: .25rem .5rem .5rem;
  border-radius: .8rem;
  background:
    radial-gradient(ellipse at 50% 92%,#ffe5a876,transparent 56%),
    linear-gradient(0deg,#102643aa,transparent 38%),
    url("./village-art/penguin.webp") center 40% / cover;
}

.feast-results .feast-finale img {
  position: relative;
  width: min(29%,8rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 .45rem .48rem #0c172eaa);
  animation: feast-victory-hop 1.5s .04s both;
}

.feast-results .feast-finale img:nth-child(2) {
  width: min(35%,9.5rem);
  z-index: 1;
  animation-delay: .16s;
}

.feast-results .feast-finale img:nth-child(3) { animation-delay: .28s; }

@keyframes feast-victory-hop {
  0% { transform: translateY(85%) scale(.9); opacity: 0; }
  18% { opacity: 1; }
  36% { transform: translateY(-20%) rotate(-9deg); }
  55% { transform: translateY(0) rotate(0); }
  73% { transform: translateY(-13%) rotate(6deg); }
  100% { transform: translateY(0) rotate(0); }
}

.feast-results .feast-record-banner {
  margin: 0;
  padding: .25rem .85rem;
  border-radius: 2rem;
  background: #ffe3a2;
  color: #492a0d;
  font-weight: 850;
}

.feast-results h3 {
  color: #ffe2a2;
  font-size: clamp(1.65rem,6.8vw,2.65rem);
  line-height: 1.07;
  text-shadow: 0 .16rem .45rem #0a193a;
  outline: 0;
}

.feast-medal-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin: 0;
}

.feast-medal-stats div {
  flex: 1 1 7rem;
  max-width: 10rem;
  padding: .35rem .4rem;
  border: 1px solid #9ed7e34f;
  border-radius: .65rem;
  background: #0d2038a0;
}

.feast-medal-stats dt { font-size: .9rem; }
.feast-medal-stats dd { margin: .13rem 0 0; color: #ffe9af; font-size: 1.22rem; font-weight: 800; }

.feast-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.feast-results ol {
  width: min(100%,22rem);
  margin: 0;
  padding-left: 1.5rem;
  text-align: left;
}

.feast-results li { padding: .4rem; overflow-wrap: anywhere; }
.feast-results li strong { float: right; margin-inline-start: .55rem; }

@media (prefers-reduced-motion: reduce) {
  .feast-target, .feast-spot .feast-target img { transition: none !important; }
  .feast-results .feast-finale img { animation: none; }
  .feast-catching img, .feast-spot[data-state="warning"] :is(.feast-water-ripple,.feast-snow-puff),
  .feast-pool[data-state="hungry"] .feast-water-ripple { animation: none; }
  .feast-spot[data-state="warning"] :is(.feast-water-ripple,.feast-snow-puff) { opacity: .9; }
}
