/* Question Jar — risograph party object.
   Recovered + cleaned from the shipped app's CSS module (dehashed class
   names, same rules). Visual language: hard 3px ink borders, offset drop
   shadows, dotted paper background, hand-tilted cards. */

* { box-sizing: border-box; }
html { min-width: 320px; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.questionJar {
  min-height: 100svh;
  background: #f4d9b4;
  color: #2c1731;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  background-image: radial-gradient(#ddbc91 1px, transparent 1px);
  background-size: 9px 9px;
}

.jarHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 3px solid #2c1731;
  padding: 14px 18px;
  background: #ff7049;
  box-shadow: 7px 7px 0 #2c1731;
  font: 800 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.jarShelf {
  max-width: 1280px;
  margin: 6vh auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 7vw;
  align-items: center;
}

.jarShelf aside {
  background: #fff3d9;
  border: 3px solid #2c1731;
  padding: 25px;
  box-shadow: 8px 8px 0 #fc3e81;
  transform: rotate(-1deg);
}

.jarShelf aside h1 {
  font-size: 2.4rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0 0 20px;
}

.deckTabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.deckTabs button {
  border: 2px solid #2c1731;
  background: #f8dfb8;
  padding: 9px;
  font-weight: 800;
}
.deckTabs .deckActive {
  background: #47b9a4;
  color: #101f25;
  box-shadow: 3px 3px 0 #2c1731;
}

.jarShelf aside > label {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  font-weight: 800;
}
.jarShelf select {
  padding: 11px;
  border: 2px solid #2c1731;
  background: #fff;
}
.jarShelf fieldset {
  border: 2px solid #2c1731;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  margin: 0;
}
.jarShelf legend { font-weight: 800; padding: 0 6px; }
.jarShelf fieldset label,
.kidToggle {
  font: 600 0.7rem ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jarPlay {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 40px;
  align-items: center;
}

.paperJar {
  height: 440px;
  border: 5px solid #2c1731;
  border-radius: 40px 40px 100px 100px;
  background: rgba(174, 225, 215, 0.67);
  display: grid;
  place-items: center;
  position: relative;
  transform: rotate(-4deg);
  box-shadow: inset 0 -90px 0 #47b9a4;
}
.paperJar::before {
  content: "";
  position: absolute;
  top: -22px;
  width: 75%;
  height: 28px;
  border: 5px solid #2c1731;
  background: #f4d9b4;
}
.paperJar span { font: 900 8rem Impact, "Arial Black", sans-serif; color: #2c1731; }
.paperJar i {
  position: absolute;
  width: 60%;
  height: 35px;
  background: #ff7049;
  border: 2px solid #2c1731;
  transform: rotate(8deg);
}
.paperJar i:nth-child(2) { background: #fc3e81; transform: rotate(-12deg) translateY(60px); }
.paperJar i:nth-child(3) { background: #ffe752; transform: rotate(3deg) translateY(-65px); }

.questionSlip {
  min-height: 400px;
  background: #fff9e9;
  border: 3px solid #2c1731;
  padding: clamp(25px, 5vw, 55px);
  box-shadow: 14px 14px 0 #fc3e81;
  transform: rotate(1deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}
.questionSlip > span,
.questionSlip small {
  font: 700 0.66rem ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.questionSlip h2 {
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 22px 0;
}
.questionSlip > div { display: flex; gap: 8px; }
.questionSlip button {
  border: 2px solid #2c1731;
  background: #ffe752;
  padding: 13px;
  font-weight: 900;
}
.questionSlip button + button { background: #fff; }
.questionSlip small { margin-top: 18px; color: #76596e; display: block; }

.jarFootnote {
  max-width: 1280px;
  margin: 0 auto 4vh;
  padding: 0 4px;
  font: 500 0.68rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #7a5b3f;
  text-align: center;
}

@media (max-width: 780px) {
  .jarShelf, .jarPlay { grid-template-columns: 1fr; }
  .jarHeader span { display: none; }
  .jarShelf { gap: 45px; margin: 4vh auto; }
  .paperJar { width: 70%; height: 300px; margin: auto; }
  .questionSlip { min-height: 350px; }
  .questionSlip > div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .questionSlip, .paperJar, .jarShelf aside { transform: none; }
}
