.quote-launch {
  display: block;
  margin-top: .7em;
  padding: .45em .75em;
  border: 1px solid var(--ink);
  border-radius: 2em;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.game-promos .quote-launch:has(img) {
  width: min(100%, 270px);
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}
.game-promos .quote-launch img { display: block; width: 100%; height: auto; }
.quote-game {
  --pine: #235144;
  --berry: #a12743;
  --gold: #e8bf74;
  --quote-size: clamp(1.2rem, min(3.3vw, 5.4dvh), 2rem);
  box-sizing: border-box;
  width: min(55rem, calc(100% - 1.25rem));
  height: min(38rem, calc(100dvh - 1.25rem));
  overflow: hidden;
  border: clamp(5px, 1vw, 10px) solid transparent;
  border-radius: 1.5rem;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    repeating-linear-gradient(135deg, var(--pine) 0 18px, var(--gold) 18px 21px, var(--berry) 21px 39px, var(--gold) 39px 42px) border-box;
  color: var(--ink);
  padding: clamp(.75rem, 2.3dvh, 1.25rem) clamp(.75rem, 3vw, 2.25rem);
  box-shadow: 0 1rem 4rem #0006;
}
.quote-game::backdrop { background: #111b19a6; }
.quote-score {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .9rem;
  font-size: .9em;
  font-weight: 600;
  margin-inline-end: 3rem;
}
.quote-percent { font-variant-numeric: tabular-nums; }
.quote-score meter { width: 100%; height: .85rem; accent-color: var(--pine); }
.quote-score meter::-webkit-meter-optimum-value { background: var(--pine); }
.quote-score meter::-moz-meter-bar { background: var(--pine); }
.quote-game[open] {
  display: flex;
  flex-direction: column;
}
.quote-game header {
  margin-top: .5rem;
}
.quote-game header > .quote-holly {
  display: block;
  margin-inline: auto;
}
.quote-close {
  position: absolute;
  top: .35rem;
  right: .35rem;
  margin: 0;
}
.quote-game .quote-close button {
  min-width: 44px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}
.quote-holly {
  position: relative;
  width: 4rem;
  height: 1.75rem;
}
.quote-holly::before, .quote-holly::after {
  content: '';
  position: absolute;
  top: .3rem;
  width: 2rem;
  height: 1.1rem;
  background: #407958;
  clip-path: polygon(0 43%, 21% 30%, 29% 3%, 48% 22%, 65% 6%, 76% 30%, 100% 46%, 80% 68%, 68% 97%, 47% 76%, 27% 94%, 21% 65%);
}
.quote-holly::before { left: .15rem; transform: rotate(24deg); }
.quote-holly::after { right: .15rem; transform: rotate(-24deg); }
.quote-holly i {
  position: absolute;
  z-index: 1;
  top: .65rem;
  left: 1.65rem;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--berry);
  box-shadow: .38rem 0 var(--berry), .19rem .32rem var(--berry);
}
.quote-game h2 {
  margin: 0;
  font-size: clamp(1.5rem, min(4.5vw, 7dvh), 2.65rem);
  line-height: 1.15;
  text-align: center;
}
.quote-game button {
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--card);
  color: var(--ink);
  min-height: 44px;
  padding: .4em .8em;
  font: inherit;
  cursor: pointer;
}
.quote-game button:hover { border-color: var(--accent); background: var(--slot); }
.quote-game :focus-visible, .quote-launch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.quote-mode {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: .5rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.quote-mode legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.quote-mode label {
  padding: .35em .75em;
  border: 1px solid var(--rule);
  border-radius: 2em;
  cursor: pointer;
}
.quote-mode label:has(:checked) { background: var(--pine); color: white; }
.quote-mode input { accent-color: var(--pine); }
.quote-prompt {
  display: grid;
  place-items: center;
  min-height: 2.65em;
  margin: .65rem 0 clamp(.75rem, 2.5dvh, 1.25rem);
  padding: .5em .75em;
  overflow-wrap: anywhere;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--card);
  text-align: center;
  font-size: var(--quote-size);
  line-height: 1.25;
}
.quote-options:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
.quote-game .quote-options button, .quote-type input {
  font-size: calc(var(--quote-size) * .88);
  line-height: 1.25;
}
.quote-game .quote-options button {
  padding: .32em .5em;
  overflow-wrap: anywhere;
}
.quote-type:not([hidden]), .quote-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}
.quote-type input {
  box-sizing: border-box;
  min-width: 0;
  width: min(100%, 16rem);
  min-height: 44px;
  padding: .35em .65em;
  border: 1px solid var(--muted);
  border-radius: .6rem;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
}
.quote-type button, .quote-game .quote-next { background: var(--pine); color: white; }
.quote-type button:hover, .quote-game .quote-next:hover { background: #163a30; }
.quote-result { margin-top: .8rem; }
.quote-result:has(.quote-feedback:empty):has(.quote-next[hidden]) { display: none; }
.quote-status { text-align: center; }
.quote-feedback { margin: 0; }
.quote-status:empty, .quote-feedback:empty, .quote-game [hidden] { display: none; }
.quote-score, .quote-pools { flex: none; }
.quote-play {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  padding: .25rem .35rem .5rem;
}
.quote-play > * { flex-shrink: 0; }
.quote-play .quote-prompt { flex-grow: 2; }
.quote-play .quote-options,
.quote-play .quote-type,
.quote-play .quote-result { flex-grow: 1; }
.quote-type, .quote-result { align-content: center; }
.quote-pools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.25rem, 1vw, .5rem);
  padding-top: .45rem;
  border-top: 1px solid var(--rule);
}
.quote-game .quote-pools button {
  font-size: clamp(.8rem, 2.1vw, 1.05rem);
  line-height: 1.15;
  padding: .25em;
  overflow-wrap: anywhere;
}
.quote-game .quote-pools [aria-pressed="true"] {
  background: var(--pine);
  color: white;
}
@media (max-width: 40rem) {
  .quote-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote-mode h2 {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}
@media (max-height: 30rem) {
  .quote-game[open] { overflow: auto; }
  .quote-play {
    flex: 1 0 auto;
    overflow: visible;
  }
}
@media print {
  .quote-game[open] { display: none; }
}
