@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --cream: #f8f3e4;
  --ink: #272f25;
  --serif: "Instrument Serif", Georgia, serif;
  background: #242c23;
  color: var(--cream);
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { position: relative; isolation: isolate; margin: 0; }
.valley { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.valley picture { display: block; position: absolute; inset: -8px; }
.valley img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 51% 46%; }
.valley::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(12 21 17 / .91), rgb(14 22 18 / .63) 25%, transparent 69%),
              linear-gradient(100deg, rgb(16 26 23 / .2), transparent 70%);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .valley picture { transform: translate(var(--x, 0px), var(--y, 0px)); transition: transform .4s ease-out; }
}
main {
  width: min(100%, 110rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(6rem, 25vh, 15rem) clamp(1.2rem, 5.2vw, 6rem) clamp(2rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 23.5rem);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
}
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(5rem, 10.6vw, 12rem); letter-spacing: -.055em; line-height: 1; }
.intro p { max-width: 32rem; margin-top: .7rem; line-height: 1.55; font-size: clamp(1.05rem, 1.5vw, 1.35rem); text-wrap: pretty; }
.game {
  padding: clamp(1.15rem, 2.3vw, 2rem);
  color: var(--ink);
  background: var(--cream);
  border-radius: .35rem;
  box-shadow: 0 12px 42px rgb(0 0 0 / .2);
}
.game h2 { font-size: clamp(2.15rem, 3vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
#round { line-height: 1.45; font-size: .95rem; margin: .6rem 0 1.25rem; min-height: 2.9em; }
.moves { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
button {
  min-height: 4.2rem;
  padding: .45rem .15rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .45rem;
  border: 1px solid #b5b8a3;
  border-radius: .25rem;
  background: #eeeede;
  color: var(--ink);
  font: 600 .87rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
@media (hover:hover) { button:hover { background: #dce4c7; border-color: #737f61; } }
button:active { background: #c6d3ae; }
button:focus-visible { outline: 3px solid #456339; outline-offset: 2px; }
.move-icon { height: 1.4rem; width: 1.55rem; display: grid; place-items: center; }
.rock::before {
  content: ""; width: 1.5rem; height: 1.18rem;
  clip-path: polygon(0 68%, 18% 24%, 54% 0, 86% 23%, 100% 67%, 78% 98%, 22% 94%);
  background: conic-gradient(from 20deg at 48% 44%, #83916e 0deg 107deg, #44543e 108deg 227deg, #a7b295 228deg 360deg);
}
.paper::before {
  content: ""; width: 1rem; height: 1.28rem; border: 1px solid #66775a;
  background: linear-gradient(45deg, transparent 76%, #859675 77%) top right / .5rem .5rem no-repeat, #f9f7e9;
  transform: rotate(8deg);
}
.scissors { font: 1.9rem/1 "DejaVu Sans", sans-serif; color: #46573f; }
.score { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #c8cbb8; margin-top: 1rem; padding-top: .7rem; font-size: .85rem; }
.score span { display: inline-flex; align-items: baseline; gap: .5rem; }
.score b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
@media (max-width: 760px) {
  main { grid-template-columns: 1fr; align-content: end; gap: 1.5rem; padding-top: clamp(7rem, 27svh, 14rem); padding-bottom: max(1.3rem, env(safe-area-inset-bottom)); }
  h1 { font-size: clamp(4.8rem, 15vw, 7rem); }
  .intro p { max-width: 31rem; margin-top: .25rem; }
  .game { width: min(100%, 26rem); }
  #round { min-height: 0; }
  .valley::after { background: linear-gradient(0deg, #18211c 0%, rgb(16 25 20 / .84) 48%, rgb(16 25 20 / .35) 72%, transparent 95%); }
}
