/* Chanukah games and Kids' Corner (dreidel, menorah, quiz). Loaded by mu-plugins/kit-games.php only on pages that use them. */
.jo-games { --jg-copper: #94562a; --jg-copper-dk: #7a4622; --jg-gold: #c9a45c; --jg-cream: #faf6f0; --jg-line: #ecdcc4; --jg-ink: #2E2C27; --jg-muted: #6B6A63; --jg-ok: #1d7a46; --jg-err: #b3261e;
  max-width: 820px; margin: 0 0 28px; color: var(--jg-ink); font-size: 1.04rem; line-height: 1.7; }
.jo-games *, .jo-games *::before, .jo-games *::after { box-sizing: border-box; }
.jo-games h2 { margin: 30px 0 12px; padding: 0 0 6px; border-bottom: 2px solid var(--jg-line); font-family: Lora, Georgia, serif; font-weight: 600; font-size: 1.45rem; line-height: 1.25; color: #1f1b16; text-transform: none; letter-spacing: normal; }
.jo-games p { margin: 0 0 14px; }
.jo-games a { color: var(--jg-copper); }
.jo-games .jg-lead { font-family: Lora, Georgia, serif; font-size: 1.18rem; line-height: 1.6; color: #1f1b16; }
.jo-games .jg-eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--jg-copper); }
.jo-games .jg-note, .jo-games .small, .jo-games .muted { color: var(--jg-muted); }
.jo-games .small { font-size: .9rem; }
.jo-games .jg-list { margin: 0 0 16px; padding-inline-start: 24px; }
.jo-games .jg-list li { margin: 0 0 6px; }

.jo-games .jg-card { margin: 0 0 16px; padding: 20px; background: #fff; border: 1px solid var(--jg-line); border-radius: 12px; box-shadow: 0 2px 10px rgba(31, 27, 22, .06); }

/* buttons: real buttons and links, with the site's copper */
.jo-games .jg-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.jo-games .jg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1.5px solid var(--jg-copper); border-radius: 999px; background: var(--jg-copper); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: normal; text-decoration: none; cursor: pointer; box-shadow: none; }
.jo-games a.jg-btn { color: #fff; }
.jo-games .jg-btn:hover { background: var(--jg-copper-dk); border-color: var(--jg-copper-dk); color: #fff; }
.jo-games .jg-btn.ghost, .jo-games a.jg-btn.ghost { background: transparent; color: var(--jg-copper); }
.jo-games .jg-btn.ghost:hover { background: var(--jg-cream); color: var(--jg-copper-dk); }
.jo-games .jg-btn[disabled] { opacity: .6; cursor: default; }
.jo-games .jg-btn[hidden], .jo-games [hidden] { display: none !important; }
.jo-games button:focus-visible, .jo-games a:focus-visible { outline: 3px solid var(--jg-gold); outline-offset: 2px; }

/* ---------- Spin the dreidel ---------- */
.jo-games .dreidel-game { text-align: center; padding: 24px 16px; background: radial-gradient(circle at 50% 30%, #fff8e6, #fff 70%); }
.jo-games .dr-stage { height: 190px; display: grid; place-items: center; perspective: 600px; }
.jo-games .dreidel { position: relative; width: 112px; height: 132px; border-radius: 16px 16px 50% 50% / 16px 16px 60% 60%; background: linear-gradient(135deg, #2b4f9a, #1b2d52 60%, #c8962a); box-shadow: inset -10px -10px 0 rgba(0, 0, 0, .18), 0 14px 18px -10px rgba(0, 0, 0, .45); display: grid; place-items: center; }
.jo-games .dreidel::before { content: ""; position: absolute; top: -34px; left: 50%; width: 16px; height: 40px; margin-left: -8px; border-radius: 8px; background: linear-gradient(90deg, #a87418, #e7bb55, #a87418); }
.jo-games .dr-letter { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", "David", serif; font-size: 4rem; font-weight: 700; color: #fff; line-height: 1; margin-top: -8px; }
.jo-games .dreidel.spinning { animation: jg-drspin .25s linear infinite; }
.jo-games .dreidel.landed { animation: jg-drland .5s ease-out; }
@keyframes jg-drspin { 0% { transform: rotate(-8deg) rotateY(0); } 50% { transform: rotate(8deg) rotateY(180deg); } 100% { transform: rotate(-8deg) rotateY(360deg); } }
@keyframes jg-drland { 0% { transform: rotate(14deg); } 40% { transform: rotate(-8deg); } 70% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .jo-games .dreidel.spinning, .jo-games .dreidel.landed { animation: none; } }
.jo-games .dr-msg { font-family: Lora, Georgia, serif; font-style: italic; font-size: 1.35rem; color: var(--jg-copper); min-height: 2.6em; margin: 6px 0; line-height: 1.3; }
.jo-games .dr-score { display: flex; justify-content: center; gap: 28px; }
.jo-games .dr-score b { font-size: 1.7rem; display: block; color: var(--jg-ink); line-height: 1.2; }
.jo-games .dr-score span { color: var(--jg-muted); }
.jo-games .dreidel-game .jg-btns { justify-content: center; }
.jo-games .dr-rules { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.jo-games .dr-rules .he { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", "David", serif; font-size: 1.6rem; display: inline-block; width: 1.4em; color: var(--jg-copper); text-align: center; }

/* ---------- Light the menorah ---------- */
.jo-games .mn-tonight { margin: 0 0 16px; padding: 12px 16px; background: var(--jg-cream); border-inline-start: 4px solid var(--jg-copper); border-radius: 8px; font-size: 1.08rem; }
.jo-games .menorah-game { text-align: center; }
.jo-games .mn-nights { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.jo-games .jg-chip { min-height: 40px; padding: 7px 14px; border: 1px solid var(--jg-line); border-radius: 999px; background: var(--jg-cream); color: var(--jg-ink); font: inherit; font-size: .95rem; line-height: 1.2; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none; }
.jo-games .jg-chip:hover { border-color: var(--jg-copper); }
.jo-games .jg-chip.on { background: var(--jg-copper); color: #fff; border-color: var(--jg-copper); }
.jo-games .mn-stage { padding: 54px 4px 0; }
.jo-games .mn-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 2.4vw, 16px); min-height: 110px; }
.jo-games .mn-c { position: relative; width: clamp(18px, 6vw, 26px); min-width: 0; height: 64px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 4px 4px 2px 2px; cursor: pointer; font-size: 0; line-height: 0;
  background: repeating-linear-gradient(135deg, #f7f1e3 0 6px, #e9dcc0 6px 9px); box-shadow: inset 0 0 0 1px #d9c8a3; }
.jo-games .mn-c:hover:not(.mn-off) { box-shadow: inset 0 0 0 1px var(--jg-copper); }
.jo-games .mn-c.mn-off { height: 10px; background: var(--jg-line); box-shadow: none; cursor: default; }
.jo-games .mn-c.mn-off::before { display: none; }
.jo-games .mn-shamash { height: 92px; background: repeating-linear-gradient(135deg, #fbf3d9 0 6px, #ecd9a6 6px 9px); }
.jo-games .mn-c::before { content: ""; position: absolute; left: 50%; top: -7px; width: 2px; height: 7px; background: #4a3b2a; transform: translateX(-50%); }
.jo-games .mn-hit { position: absolute; inset: 0 -9px; }
.jo-games .mn-flame { position: absolute; left: 50%; bottom: calc(100% + 6px); width: 16px; height: 26px; transform: translateX(-50%) scale(0); transform-origin: 50% 100%;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff7c2 0 25%, #ffc93c 45%, #ff8a1f 80%); box-shadow: 0 0 18px 6px rgba(255, 190, 60, .55); transition: transform .35s ease-out; }
.jo-games .mn-c.lit .mn-flame { transform: translateX(-50%) scale(1); animation: jg-flicker 1.6s ease-in-out infinite alternate; }
@keyframes jg-flicker { 0% { transform: translateX(-50%) scale(1) rotate(-2deg); } 100% { transform: translateX(-50%) scale(1.06, .96) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .jo-games .mn-c.lit .mn-flame { animation: none; } .jo-games .mn-flame { transition: none; } }
.jo-games .mn-base { height: 12px; margin: 0 auto; width: min(100%, 380px); border-radius: 0 0 40px 40px; background: linear-gradient(#e2c27e, var(--jg-gold)); }
.jo-games .mn-msg { min-height: 3.4em; margin: 14px 0 4px; font-size: 1.05rem; }
.jo-games .menorah-game .jg-btns { justify-content: center; }
.jo-games .mn-bless .he { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", "David", serif; font-size: 1.35rem; line-height: 1.8; margin: 0 0 8px; text-align: right; }
.jo-games .mn-bless.mn-dim { opacity: .55; }
.jo-games .mn-bless p:last-child { margin-bottom: 0; }

/* ---------- The Chanukah quiz ---------- */
.jo-games .qz-bar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 12px; background: var(--jg-cream); border: 1px solid var(--jg-line); border-radius: 999px; padding: 6px 16px; margin: 0 0 16px; }
.jo-games .qz-prog { flex: 1; height: 8px; background: var(--jg-line); border-radius: 99px; overflow: hidden; }
.jo-games .qz-prog i { display: block; height: 100%; width: 0; background: var(--jg-gold); transition: width .3s; }
@media (prefers-reduced-motion: reduce) { .jo-games .qz-prog i { transition: none; } }
.jo-games .qz-bar b { white-space: nowrap; font-size: .95rem; }
.jo-games .qz-q { min-width: 0; margin: 0 0 16px; scroll-margin-top: 80px; }
.jo-games .qz-q legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-family: Lora, Georgia, serif; font-weight: 600; font-size: 1.12rem; line-height: 1.4; color: #1f1b16; }
.jo-games[dir="rtl"] .qz-q legend { float: right; }
.jo-games .qz-n { margin-inline-end: 4px; color: var(--jg-copper); font-weight: 700; font-size: .95rem; }
.jo-games .qz-a { display: grid; gap: 8px; clear: both; }
@media (min-width: 560px) { .jo-games .qz-a { grid-template-columns: 1fr 1fr; } }
.jo-games .qz-b { text-align: start; min-height: 48px; padding: 12px 14px; border: 1px solid var(--jg-line); border-radius: 12px; background: var(--jg-cream); color: var(--jg-ink); font: inherit; font-size: 1rem; line-height: 1.4; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none; }
.jo-games .qz-b:hover:not(:disabled) { border-color: var(--jg-copper); }
.jo-games .qz-b:disabled { cursor: default; opacity: .75; }
.jo-games .qz-b.qz-right { background: #e3f1e7; border-color: var(--jg-ok); opacity: 1; font-weight: 600; color: #1b4d31; }
.jo-games .qz-b.qz-wrong { background: #f8e5e3; border-color: var(--jg-err); opacity: 1; color: #6e1a15; }
.jo-games .qz-why { margin: 12px 0 0; }
.jo-games .qz-mark { font-weight: 700; }
.jo-games .qz-end { text-align: center; padding: 24px 16px; }
.jo-games .qz-end .jg-btns { justify-content: center; }
.jo-games .qz-score { margin: 0 0 4px; font-family: Lora, Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--jg-copper); }

/* ---------- Kids' Corner ---------- */
.jo-games .jg-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 0 0 8px; }
.jo-games .jg-grid.jg-three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 18px 0; }
.jo-games a.jg-guide, .jo-games a.jg-cta { display: flex; flex-direction: column; gap: 4px; margin: 0; color: var(--jg-ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.jo-games a.jg-guide:hover, .jo-games a.jg-cta:hover { transform: translateY(-2px); border-color: var(--jg-copper); }
.jo-games a.jg-guide strong { font-family: Lora, Georgia, serif; font-size: 1.05rem; line-height: 1.35; color: #1f1b16; }
.jo-games a.jg-guide span:not(.jg-tag) { color: var(--jg-muted); font-size: .92rem; line-height: 1.5; }
.jo-games a.jg-cta { border-color: var(--jg-gold); background: linear-gradient(120deg, #fff8e6, #fff); }
.jo-games a.jg-cta strong { font-family: Lora, Georgia, serif; font-size: 1.3rem; color: var(--jg-copper); }
.jo-games a.jg-cta span:last-child { color: var(--jg-muted); }
.jo-games a.jg-next { border-color: var(--jg-copper); background: var(--jg-cream); }
.jo-games .jg-tag { align-self: flex-start; padding: 1px 10px; border-radius: 999px; background: var(--jg-copper); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .jo-games a.jg-guide, .jo-games a.jg-cta { transition: none; } .jo-games a.jg-guide:hover, .jo-games a.jg-cta:hover { transform: none; } }

/* ---------- The link row on the Chanukah Holiday Guide ---------- */
.jo-fun-row { margin: 0 0 16px; padding: 10px 16px; background: #faf6f0; border-inline-start: 4px solid #94562a; border-radius: 8px; font-size: 1.02rem; }
.jo-fun-row a { color: #94562a; font-weight: 600; }
.jo-fun-row a:hover { color: #7a4622; }
