body{background:#faf5ec}
.leaf-hunt{max-width:1320px;margin:0 auto;padding:26px clamp(16px,3vw,40px) 36px;color:#49372c;font-family:Arial,Helvetica,sans-serif}
.hunt-top,.clue-top,.hunt-bottom,.clue-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.hunt-top h1{font:700 clamp(29px,4vw,49px)/1.15 Georgia,serif;margin:7px 0 15px;color:#694126}
.lesson-label{font-size:14px;letter-spacing:.06em;margin:0}
.hunt-button,.team-score,.leaf-tile,.text-button{font:inherit;cursor:pointer;touch-action:manipulation}
.hunt-button{padding:12px 20px;min-height:48px;border:2px solid #61472f;border-radius:13px;background:#684a30;color:#fffdf4;font-weight:700;box-shadow:0 3px 0 #49311f}
.hunt-button.secondary{background:#fff9ed;color:#57412f;box-shadow:0 3px 0 #d9c6ac}
.hunt-button:disabled{opacity:.6;cursor:default;box-shadow:none}
.hunt-button:focus-visible,.team-score:focus-visible,.leaf-tile:focus-visible,.text-button:focus-visible,summary:focus-visible{outline:4px solid #214f65;outline-offset:5px}
.hunt-help{margin:10px 0 18px;max-width:900px;font-size:16px;line-height:1.7}
.hunt-help summary{cursor:pointer;font-weight:700;width:fit-content}
.hunt-help ol{padding-left:24px}
.tree-board{background:#e8c58b url('/jeopardy/autumn-tree.png') center/cover no-repeat;border:2px solid #d1b283;border-radius:28px;padding:clamp(14px,3vw,32px);box-shadow:0 7px 0 #d8c5a8}
.category-headings,.leaf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.8vw,22px)}
.category-headings{margin-bottom:12px}
.category-headings h3{font-size:clamp(15px,1.9vw,24px);margin:0;padding:14px 6px;border-radius:12px;background:#fff9e9f2;text-align:center;color:#513921;border:1px solid #b99a71;display:grid;align-items:center;min-height:64px}
.leaf-grid{row-gap:14px}
.leaf-tile{position:relative;isolation:isolate;display:grid;place-items:center;min-height:clamp(90px,12vw,145px);padding:10px;border:0;background:transparent;font-size:clamp(30px,4vw,51px);font-weight:800;color:#3f2a1e;filter:drop-shadow(0 5px 0 #63452f70);transition:transform .15s}
.leaf-tile::before{content:"";position:absolute;inset:2px 3px;z-index:-1;background:var(--leaf);border:2px solid #7b542b;clip-path:polygon(50% 0,61% 17%,81% 8%,80% 29%,100% 29%,87% 48%,99% 61%,74% 70%,73% 85%,55% 88%,52% 100%,46% 100%,44% 88%,26% 86%,25% 70%,2% 61%,14% 48%,0 29%,20% 29%,18% 8%,39% 17%);box-shadow:inset 0 12px 20px #fff5ce50}
.leaf-tile[data-column="0"]{--leaf:#eab26f}
.leaf-tile[data-column="1"]{--leaf:#deb1a1}
.leaf-tile[data-column="2"]{--leaf:#edcf73}
.leaf-tile[data-column="3"]{--leaf:#c4d394}
.leaf-tile:hover:not(:disabled){transform:translateY(-4px)}
.leaf-tile.played{filter:none;color:#6c604e;font-size:clamp(19px,2vw,26px);opacity:.72;cursor:default}
.leaf-tile.played::before{background:#f4eee0ba}
.board-progress{margin:18px auto 0;padding:8px 16px;background:#fffbefe8;border-radius:20px;width:fit-content;font-weight:700;font-size:15px}
.scoreboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px;margin:24px auto 18px;gap:18px}
.team-score{display:flex;flex-direction:column;align-items:center;gap:5px;border:2px solid #c8b69d;background:#fffaf0;color:#604b39;border-radius:18px;padding:12px 18px;min-height:136px}
.team-score[aria-pressed="true"]{border:3px solid #8c4a31;background:#fff1ce;box-shadow:0 4px 0 #bc9571;padding:11px 17px}
.team-score>span:first-child{font-size:clamp(19px,2.5vw,27px);font-weight:700}
.team-score strong{font-size:37px}
.turn-label{min-height:18px;font-size:14px;font-weight:700}
.hunt-bottom{justify-content:center;margin:12px auto}
.text-button{color:#6b5747;background:transparent;border:0;text-decoration:underline;padding:12px;min-height:44px;font-size:14px}
.reset-confirm{text-align:center;border:1px solid #c6ab8e;background:#fffaf1;border-radius:16px;padding:16px;margin:20px auto;max-width:520px}
.reset-confirm .hunt-button{margin:4px}
.hunt-source{text-align:center;font-size:13px;margin:24px 0 0}
.hunt-source a{color:#6b5747}
.clue-dialog{width:min(1140px,calc(100% - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;border:2px solid #af8863;border-radius:24px;background:#fffaf0;color:#49372c;box-shadow:0 20px 80px #24130660}
.clue-dialog::backdrop{background:#2b2119bd;backdrop-filter:blur(5px)}
.clue-sheet{padding:clamp(20px,4vw,44px)}
.clue-top>p{font-weight:700;font-size:18px;margin:0}
.clue-team{font-weight:700;color:#80513d;margin:20px 0 8px}
.clue-sheet h2{font:700 clamp(24px,3.5vw,42px)/1.2 Georgia,serif;margin:12px 0}
.clue-prompt{font-size:clamp(25px,4vw,46px);line-height:1.4;margin:22px 0 26px}
.clue-actions{justify-content:flex-start}
.dictation-prompt{background:#f3e7d2;border-radius:10px;padding:10px 14px;margin:15px 0;font-size:16px}
.dictation-prompt summary{cursor:pointer;font-weight:700}
.dictation-prompt p{font-size:25px;margin:12px 0}
.answer-area{margin:18px 0 0;border-top:2px solid #ddc8a7;padding-top:20px}
.answer-area h3,.golden-area h3{font-size:19px;margin:0 0 12px}
#clueAnswer,#goldenChain{font-size:clamp(31px,5vw,56px);line-height:1.3;margin:12px 0 20px}
.er-highlight{background:#f8dd8c;color:#483022;border-bottom:4px solid #a05725;border-radius:4px;padding:0 .03em}
#answerNote{font-size:18px;line-height:1.6}
.golden-area{margin-top:28px;border:2px solid #b88c24;background:#fff0bc;border-radius:18px;padding:20px}
.golden-area h3{font-size:27px;color:#704a0d}
.golden-area p{line-height:1.5}
.audio-status{font-size:14px;min-height:18px}
[hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:650px){.leaf-hunt{padding:18px 12px 25px}.hunt-top{align-items:flex-start}.hunt-top h1{font-size:31px}.category-headings,.leaf-grid{gap:7px}.category-headings h3{font-size:13px;padding:8px 3px;min-height:70px;overflow-wrap:anywhere}.leaf-tile{min-height:93px}.tree-board{padding:14px 8px;border-radius:18px}.team-score{padding:12px 7px}.scoreboard{gap:10px}.clue-actions .hunt-button{flex:1 1 180px}.clue-top .hunt-button{padding:9px 12px;font-size:14px}.clue-sheet{padding:19px}.clue-prompt{font-size:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.leaf-tile{transition:none}}
.leaf-tile{box-shadow:none;border-radius:0}
.leaf-hunt .leaf-tile,.leaf-hunt .leaf-tile:hover,.leaf-hunt .leaf-tile:disabled{background:transparent;box-shadow:none;color:#3f2a1e}
.leaf-hunt .leaf-tile.played{color:#6c604e}
.leaf-hunt .hunt-button:hover{background:#79583a;color:#fffdf4}
.leaf-hunt .hunt-button.secondary:hover{background:#f5ead6;color:#57412f}
.leaf-hunt .text-button:hover{background:transparent;color:#49372c;box-shadow:none}

/* Fit the classroom board to the available display without stretching its leaves. */
body.leaf-presenting { overflow: hidden; }
.leaf-hunt.is-presenting {
  position: fixed;
  inset: 0;
  z-index: 100;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  width: 100%;
  height: 100dvh;
  min-height: 540px;
  max-width: none;
  overflow: auto;
  padding: 14px max(18px, calc((100vw - 1200px) / 2));
  background: #ead2a1 url('/jeopardy/autumn-tree.png') center / cover no-repeat;
}
.is-presenting .hunt-top {
  padding: 10px 18px;
  border: 1px solid #d1b283;
  border-radius: 16px;
  background: #fff9efef;
  gap: 8px;
}
.is-presenting .hunt-top h1 {
  font-size: clamp(25px, 3vw, 37px);
  margin: 3px 0 0;
}
.is-presenting .lesson-label { font-size: 12px; }
.is-presenting .hunt-help,
.is-presenting .hunt-source,
.is-presenting .curriculum-expectations { display: none; }
.is-presenting .tree-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.is-presenting .category-headings { margin: 0; }
.is-presenting .category-headings h3 {
  min-height: 44px;
  padding: 8px 5px;
  font-size: clamp(14px, 1.7vw, 22px);
}
.is-presenting .leaf-grid {
  container-type: size;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-height: 0;
  row-gap: 4px;
}
.is-presenting .leaf-tile {
  justify-self: center;
  align-self: center;
  width: min(100%, 230px, calc((100cqh - 8px) * .533333));
  height: auto;
  aspect-ratio: 1.6;
  min-height: 0;
  max-height: 100%;
  padding: 6px;
  font-size: clamp(25px, 3.3vw, 43px);
}
.is-presenting .leaf-tile.played { font-size: clamp(17px, 2vw, 25px); }
.is-presenting .board-progress {
  margin: 0 auto;
  padding: 5px 14px;
  font-size: 13px;
}
.is-presenting .scoreboard {
  width: min(100%, 680px);
  max-width: none;
  margin: 0 auto;
  gap: 16px;
}
.is-presenting .team-score {
  min-height: 90px;
  padding: 6px 18px;
  gap: 1px;
}
.is-presenting .team-score[aria-pressed="true"] { padding: 5px 17px; }
.is-presenting .team-score strong { font-size: 29px; }
.is-presenting .team-score > span:first-child { font-size: 21px; }
.is-presenting .hunt-bottom { margin: 0; }
.is-presenting .hunt-bottom .text-button {
  background: #fff9eeeb;
  border-radius: 10px;
}
@media (max-width: 650px) {
  .leaf-hunt.is-presenting { padding: 10px; gap: 8px; }
  .is-presenting .hunt-top { padding: 10px; }
  .is-presenting .hunt-top h1 { font-size: 25px; }
  .is-presenting .category-headings h3 { font-size: 12px; min-height: 62px; }
  .is-presenting .scoreboard { gap: 10px; }
  .is-presenting .team-score > span:first-child { font-size: 18px; }
}
