:root {
  color-scheme: light;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: #382417;
  background: #eac58b;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100svh;
  background: #eac58b url('art/cove.webp') center / cover no-repeat;
}
main { width: min(100%, 82rem); margin: auto; min-height: 100svh; display: flex; flex-direction: column; }
nav { display: flex; gap: .5rem; align-items: center; padding: .8rem clamp(.65rem, 3vw, 2.5rem); }
nav a { color: #3b2b1b; background: #fff1d8ed; text-decoration: none; font: 700 .9rem/1.15 system-ui; border: 1px solid #795632; border-radius: 2rem; padding: .6rem .9rem; }
nav a:last-child { margin-left: auto; }
nav a:hover { text-decoration: underline; }
.cabinet { flex: 1; display: flex; flex-direction: column; }
.beach { position: relative; isolation: isolate; overflow: clip; flex: 1; min-height: 19rem; }
h1 {
  pointer-events: none; position: absolute; z-index: 1; top: 3%; left: 0; right: 0; margin: 0;
  text-align: center; font: italic 1000 clamp(3.8rem, 9.6vw, 8rem)/1.16 Georgia, serif;
  letter-spacing: -.08em; color: #fff0c6; transform: rotate(-4deg);
  -webkit-text-stroke: .065em #123637; paint-order: stroke fill;
  text-shadow: .02em .055em #137372, .035em .08em #123637, .04em .095em #123637;
}
#stage { position: absolute; inset: 0; }
#stage canvas { display: block; }
.picks { position: absolute; inset: 49% 2% 15%; display: grid; grid-template-columns: repeat(4, 1fr); }
.picks[hidden] { display: none; }
.picks button { position: relative; color: #fff4cc; background: transparent; border: 0; border-radius: 35%; padding: 0; cursor: pointer; touch-action: manipulation; }
.picks span {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 50%;
  display: grid; place-items: center; width: 1.85em; height: 1.85em; border: 2px solid #ffecb7;
  background: #194442; font: 800 clamp(.76rem, 2vw, 1rem)/1 system-ui; box-shadow: 0 2px 0 #153332;
}
.picks button:hover span, .picks button:focus-visible span { background: #913d25; }
:focus-visible { outline: 3px solid #ffbf4b; outline-offset: 2px; }
.controls { align-self: center; min-height: 6.8rem; padding: .7rem 1rem 1.4rem; display: flex; gap: clamp(1rem, 4vw, 4rem); align-items: center; justify-content: center; text-shadow: 0 1px 1px #ffe3aa; }
h2 { margin: 0; font: 800 clamp(1.35rem, 3vw, 2rem)/1.1 Georgia, serif; }
p { margin: .35rem 0 0; line-height: 1.4; font-weight: 600; }
#start { flex: none; min-height: 48px; padding: .7rem 1.5rem; background: #ffcc64; color: #34281b; border: 2px solid #372d22; border-radius: .7rem; box-shadow: inset 0 2px #ffedb4, 0 4px #9c622f; font: 800 1.05rem system-ui; cursor: pointer; }
#start:hover:enabled { background: #ffda83; }
#start:active:enabled { transform: translateY(2px); }
#start:disabled { opacity: .75; }
#next-level { padding: .7rem 1rem; border-radius: .7rem; background: #fff1d8; color: #382417; font-weight: 800; }
@media (max-width: 540px) {
  h1 { top: 6%; }
  .controls { display: grid; width: 100%; min-height: 9rem; justify-items: center; text-align: center; align-content: center; gap: .7rem; }
  nav { gap: .3rem; padding: .6rem .4rem; }
  nav a { font-size: .78rem; padding: .6rem .55rem; }
}
