.playing { background: #17271b; color: #fff3cd; min-height: calc(100dvh - 66px); }
.playing-stage {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(100%, 375px);
  height: min(177.87vw, 667px);
  margin: auto;
  display: flex;
  background: #426a27;
}
#playing-art, .playing-shade { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#playing-art .scene-layer { position: absolute; }
#playing-art .scene-terrain { inset: 0; width: 100%; height: 100%; object-fit: fill; }
#playing-art .scene-marker, #playing-art .scene-signature { filter: drop-shadow(2px 4px 2px #17260099); }
#playing-art .scene-ball, .playing-ball-word {
  position: absolute;
  width: 24%;
  aspect-ratio: 1;
  transform: translateX(-50%);
}
#playing-art .scene-ball { border-radius: 50%; box-shadow: 3px 9px 8px #17240099; }
.playing-ball-word {
  display: grid;
  place-items: center;
  white-space: nowrap;
  font-size: var(--letter-size, 5cqw);
  font-style: italic;
  color: #173e26;
  text-shadow: 0 1px #fff, 0 2px 2px #17240080;
}
.playing-shade { background: linear-gradient(transparent 65%, #102b10aa); }
.playing-ball-word-stacked { align-content: center; line-height: 1.05; }
.playing-ui {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 12px 10px 14px;
  gap: 6px;
}
.playing-gold {
  color: #fff3cd;
  border: 2px solid #e6bd61;
  border-radius: 16px;
  background: linear-gradient(#286344, #0c3b24 55%, #092b19);
  box-shadow: inset 0 0 0 1px #80521e, 0 2px 4px #0008;
  text-shadow: 0 1px 2px #000;
}
button.playing-gold { min-height: 44px; cursor: pointer; }
.playing-crest, .playing-sign { align-self: center; text-align: center; }
.playing-crest { padding: 5px 18px 4px; border-radius: 45% 45% 12px 12px; font-weight: bold; font-size: 7cqw; line-height: 1; color: #ffe4a0; text-transform: uppercase; }
.playing-crest b { display: block; font-size: 5cqw; color: #eac46a; }
.playing-crest small { display: block; font-size: 3.5cqw; letter-spacing: 2px; margin-top: 4px; }
.playing-sign { padding: 4px 16px 6px; font-size: 4.6cqw; font-style: italic; z-index: 1; }
.playing-answer { display: block; font-size: 4.1cqw; font-style: normal; letter-spacing: .13em; margin-top: 4px; }
.playing-answer[hidden] { display: none; }
.playing-details {
  position: absolute;
  inset: 0 0 auto;
  max-height: 100%;
  display: grid;
  align-content: start;
  overflow: auto;
  overscroll-behavior: contain;
  grid-template-columns: 23% minmax(0, 1fr);
  gap: 7px;
  background: linear-gradient(125deg, #fff4cf, #ead39a);
  color: #23301c;
  border: 3px double #9a692c;
  border-radius: 9px;
  padding: 9px 6px 6px;
  box-shadow: 0 3px 5px #0007;
}
.playing-details[hidden] { display: none; }
.playing-details img { width: 100%; height: 116px; object-fit: cover; border: 2px solid #b78b45; border-radius: 4px; }
.playing-stats { display: flex; justify-content: space-around; text-align: center; font-size: .8rem; }
.playing-stats b { display: block; font-size: 1.15rem; }
.playing-clue-label { margin-top: 4px; text-align: center; font-size: .75rem; letter-spacing: 2px; font-weight: bold; }
.playing-details p { margin: 4px 5px 8px; overflow-wrap: anywhere; text-align: center; font-size: 1rem; line-height: 1.25; font-style: italic; }
.playing-space { position: relative; flex: 1; min-height: 0; }
.playing-stage.details-open :is(.scene-ball, .playing-ball-word) { visibility: hidden; }
.playing-lie { position: absolute; left: 5%; top: 69%; padding: 3px 10px; font-size: .875rem; }
.playing-controls, .playing-equipment { display: grid; gap: 6px; }
.playing-equipment-row, .playing-bottom { display: flex; align-items: stretch; justify-content: space-between; gap: 5px; }
.playing-equipment-row > *, .playing-bottom button { padding: 6px 8px; text-align: center; }
.playing-ball-stock, .playing-bag { display: grid; place-content: center; font-weight: bold; }
.playing-ball-stock small { font-size: .65rem; }
.playing-bag { position: relative; cursor: pointer; }
.playing-bag:focus-within { outline: 2px solid white; outline-offset: 2px; }
.playing-bag select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 1rem; }
.playing-selected { flex: 1; min-width: 0; align-content: center; overflow-wrap: anywhere; color: #26381c; background: linear-gradient(#fff1c6, #e8c578); border: 2px solid #b47b2e; border-radius: 12px; font-weight: bold; }
.playing-selected small { display: block; font-size: .65rem; }
.playing-availability { text-align: center; text-shadow: 0 1px 2px #000; }
.playing-shot { width: 80%; justify-self: center; font-size: 7cqw; font-weight: bold; }
.playing-guess { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.answer-slots { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.answer-slots > * {
  width: clamp(25px, 8cqw, 34px); min-width: 0; height: 42px;
  text-align: center; border: 1px solid #b47b2e; border-radius: 5px;
  background: #fff4cf; color: #23301c; font: bold 1rem Georgia, serif;
}
.answer-slots input { padding: 0; }
.answer-locked { display: grid; place-items: center; background: #d6c18e; }
.answer-slots input:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.playing-shot:disabled { opacity: .72; cursor: default; }
.playing-bottom button { flex: 1; }
.answer-hybrid { display: inline-block; width: 1.15em; height: .65em; margin-right: .35em; vertical-align: baseline; transform: skew(-15deg); border-radius: 50% 45% 25% 25%; border: 1px solid #253326; background: linear-gradient(#dbe0d9, #738276); }
.answer-hybrid::before { content: ""; position: absolute; width: 2px; height: .8em; bottom: 85%; right: 15%; transform: rotate(25deg); transform-origin: bottom; background: #253326; }
.playing-feedback { margin: 0 auto; padding: 8px 12px; width: min(100%, 375px); min-height: 2.4rem; }
.playing .hole-complete { background: #fff4cf; color: #23301c; padding: 12px; }
.playing .hole-complete h2 { font-size: 1.6rem; }
#round-dialog { width: min(95vw, 420px); border: 2px solid #b47b2e; background: #fff4cf; color: #23301c; }
#round-dialog .scorecard { margin: 0 0 10px; padding: 12px; }
#round-dialog::backdrop { background: #0009; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
#round-setup { display: grid; gap: 10px; max-width: 25rem; }
#round-setup label { display: grid; gap: 4px; }
#round-setup select { min-height: 44px; width: 100%; padding: 6px 10px; }
.round-scores { border-collapse: collapse; width: 100%; text-align: center; }
.round-scores th, .round-scores td { padding: 6px 4px; border-bottom: 1px solid #a58b54; }
#ball-dialog, #performance-dialog {
  width: min(95vw, 420px);
  border: 2px solid #b47b2e;
  background: #fff4cf;
  color: #23301c;
}
#ball-dialog::backdrop, #performance-dialog::backdrop { background: #0009; }
.playing-answer { overflow-wrap: anywhere; }
.playing-sign { max-width: 100%; }
.playing-theme { display: block; font-size: .75rem; font-style: normal; }
.puzzle-tools { width: min(100%, 375px); margin: auto; padding: 0 10px; }
.puzzle-tools button { padding-inline: 14px; }
#puzzle-feedback { width: min(92vw, 420px); background: #fff4cf; color: #23301c; border: 2px solid #b47b2e; }
#puzzle-feedback label { display: grid; margin-bottom: 12px; gap: 5px; }
#puzzle-feedback :is(select, textarea) { width: 100%; font: inherit; }
#puzzle-feedback::backdrop { background: #0009; }
.club-vowel { color: #743500; font-weight: 800; text-decoration: underline; text-underline-offset: .13em; }
#preferences-dialog { width: min(92vw, 380px); background: #fff4cf; color: #23301c; border: 2px solid #b47b2e; }
#preferences-dialog::backdrop { background: #0009; }
@supports (appearance: base-select) {
  .playing-bag select, .playing-bag select::picker(select) { appearance: base-select; }
  .playing-bag select::picker(select) { background: #fff4cf; color: #23301c; border: 1px solid #b47b2e; }
  .playing-bag option { display: block; padding: .5rem; }
}
