
.rz-matrix { display: grid; grid-template-columns: repeat(3, var(--rz-cell, 84px)); gap: 8px; justify-content: center; padding: 10px; border-radius: 22px; background: #F3F6FF; box-shadow: inset 0 0 0 2px #DCE4FA; width: max-content; margin-inline: auto; }
.rz-cell { width: var(--rz-cell, 84px); height: var(--rz-cell, 84px); display: grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(18,22,58,.08), 0 0 0 1px rgba(18,22,58,.07); }
.rz-cell-missing { background: #FFF8EC; box-shadow: inset 0 0 0 2.5px #FF8A1F; }
.rz-q { display: grid; place-items: center; font-family: var(--font-display), system-ui, sans-serif; font-weight: 900; font-size: 34px; color: #A3470A; border-radius: 12px; }
.rz-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; }
.rz-pairs { gap: 14px 22px; }
.rz-pair { display: inline-flex; align-items: center; gap: 6px; padding: 6px; border-radius: 18px; background: #F3F6FF; box-shadow: inset 0 0 0 2px #DCE4FA; }
.rz-arrow { font-weight: 900; font-size: 22px; color: #4A5170; display: inline-block; }
.rz-tile { min-width: 64px; min-height: 64px; padding: 4px; display: inline-grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(18,22,58,.08), 0 0 0 1px rgba(18,22,58,.07); }
.rz-tile .rz-q { color: #A3470A; }
.rz-tile:has(.rz-q) { background: #FFF8EC; box-shadow: inset 0 0 0 2.5px #FF8A1F; }
.rz-tile-sm { min-width: 52px; min-height: 52px; }
.rz-num { font-family: var(--font-display), system-ui, sans-serif; font-weight: 900; color: #12163A; line-height: 1; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.rz-word { font-weight: 900; color: #12163A; padding: 6px 10px; text-align: center; line-height: 1.15; }
.rz-one { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rz-one-fig { position: relative; display: inline-grid; place-items: center; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(18,22,58,.08), 0 0 0 1px rgba(18,22,58,.07); }
.rz-mline { align-self: stretch; width: 0; border-inline-start: 4px dashed #6A48F0; min-height: 120px; }
.rz-mirror-h { flex-direction: column; }
.rz-mirror-h .rz-mline { min-height: 0; width: 100%; max-width: 200px; border-inline-start: 0; border-top: 4px dashed #6A48F0; align-self: center; }
.rz-diag { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); overflow: visible; }
.rz-diag line { stroke: #6A48F0; stroke-width: 3; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.rz-groups { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rz-groups { grid-template-columns: 1fr 1fr; } }
.rz-group { border-radius: 20px; padding: 10px 12px 12px; }
.rz-group-yes { background: #E7FAF1; box-shadow: inset 0 0 0 2px #9BE6C3; }
.rz-group-no { background: #FFF1F1; box-shadow: inset 0 0 0 2px #F6C4C4; }
.rz-group-h { margin: 0 0 8px; font-weight: 900; font-size: 15px; color: #12163A; }
.rz-group-items { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-opt-text { font-weight: 800; font-size: 16.5px; line-height: 1.3; color: #12163A; text-align: start; }
/* options */
.rz-opts { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .rz-opts { grid-template-columns: repeat(var(--rz-cols, 4), minmax(0, 1fr)); } }
.rz-opts-text { grid-template-columns: 1fr !important; }
.rz-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 12px 10px 10px; border: 0; border-radius: 20px; background: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(18,22,58,.06), 0 0 0 2px rgba(18,22,58,.10), 0 4px 0 rgba(18,22,58,.10); transition: transform .15s, box-shadow .15s, background-color .2s; -webkit-tap-highlight-color: transparent; color: #12163A; }
.rz-opts-text .rz-opt { flex-direction: row; justify-content: flex-start; min-height: 56px; padding: 10px 14px; }
.rz-opt:hover:not(:disabled) { box-shadow: 0 0 0 2.5px #2457F5, 0 4px 0 #1638A8; }
.rz-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 2.5px #2457F5, 0 1px 0 #1638A8; }
.rz-opt:focus-visible { outline: 3px solid #2457F5; outline-offset: 3px; }
.rz-opt:disabled { cursor: default; }
.rz-letter { position: absolute; inset-inline-start: 8px; top: 7px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: #EEF1F8; font-weight: 900; font-size: 14px; color: #4A5170; }
.rz-opts-text .rz-letter { position: static; flex: none; }
.rz-opt-right { background: #E7FAF1; box-shadow: 0 0 0 3px #23A874, 0 4px 0 #0B7A4E !important; }
.rz-opt-right .rz-letter { background: #23A874; color: #fff; }
.rz-opt-wrong { background: #FFF1F1; box-shadow: 0 0 0 3px #D9303B, 0 4px 0 #A1222B !important; }
.rz-opt-wrong .rz-letter { background: #D9303B; color: #fff; }
.rz-opt-dim { opacity: .55; }
/* grids (sudoku, cages) */
.rz-grid { display: grid; grid-template-columns: repeat(var(--n), var(--c)); width: max-content; margin-inline: auto; border: 3px solid #1B2140; border-radius: 10px; overflow: hidden; background: #1B2140; gap: 1px; direction: ltr; }
.rz-gcell { position: relative; width: var(--c); height: var(--c); display: grid; place-items: center; background: #fff; border: 0; padding: 0; font-family: var(--font-display), system-ui, sans-serif; font-weight: 800; font-size: calc(var(--c) * .5); color: #2457F5; cursor: pointer; }
.rz-gcell[data-given='1'] { color: #12163A; font-weight: 900; background: #F3F6FF; cursor: default; }
.rz-gcell[data-sel='1'] { background: #FFF4C7; box-shadow: inset 0 0 0 3px #FFC93C; }
.rz-gcell[data-bad='1'] { background: #FFE3E3; color: #A1222B; }
.rz-gcell[data-r] { }
.rz-gcell .rz-cage { position: absolute; top: 2px; inset-inline-start: 3px; font-size: 11px; font-weight: 900; color: #12163A; font-family: var(--font-body), system-ui, sans-serif; line-height: 1; }
.rz-gcell:focus-visible { outline: 3px solid #2457F5; outline-offset: -3px; z-index: 1; }
.rz-pad { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rz-key { min-width: 48px; height: 52px; padding: 0 10px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2px rgba(18,22,58,.12), 0 3px 0 rgba(18,22,58,.12); font-family: var(--font-display), system-ui, sans-serif; font-weight: 900; font-size: 22px; color: #12163A; cursor: pointer; display: inline-grid; place-items: center; }
.rz-key:active { transform: translateY(2px); box-shadow: 0 0 0 2px rgba(18,22,58,.12), 0 1px 0 rgba(18,22,58,.12); }
.rz-key:focus-visible { outline: 3px solid #2457F5; outline-offset: 2px; }
.rz-key-wide { font-size: 15px; font-family: var(--font-body), system-ui, sans-serif; }
/* code path */
.rz-board { position: relative; display: grid; grid-template-columns: repeat(var(--w), var(--c)); width: max-content; margin-inline: auto; padding: 6px; gap: 4px; border-radius: 18px; background: #DDF8EC; box-shadow: inset 0 0 0 2px #9BE6C3; direction: ltr; }
.rz-bcell { width: var(--c); height: var(--c); border-radius: 10px; background: #fff; display: grid; place-items: center; }
.rz-bcell[data-trail='1'] { background: #FFF4C7; }
.rz-bird { position: absolute; left: 6px; top: 6px; width: var(--c); height: var(--c); display: grid; place-items: center; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .rz-bird { transition: transform .32s cubic-bezier(.34,1.56,.64,1); }
  .rz-shake { animation: rz-shake .4s; }
  .rz-pop { animation: rz-pop .45s cubic-bezier(.34,1.56,.64,1); }
  .rz-in { animation: rz-in .35s ease-out; }
}
@keyframes rz-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes rz-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes rz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rz-prog { display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; align-items: center; padding: 8px; border-radius: 16px; background: #F3F6FF; box-shadow: inset 0 0 0 2px #DCE4FA; direction: ltr; }
.rz-step { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #2457F5; color: #fff; }
.rz-step[data-now='1'] { background: #FF8A1F; }
/* logic */
.rz-logic { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.rz-logic th { text-align: start; font-weight: 900; font-size: 15px; color: #12163A; padding: 0 6px; }
.rz-logic td { padding: 0 4px; vertical-align: middle; }
.rz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-chip { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2px rgba(18,22,58,.12); cursor: pointer; padding: 2px; }
.rz-chip[aria-checked='true'] { background: #E5EDFF; box-shadow: 0 0 0 3px #2457F5; }
.rz-chip[data-bad='1'] { box-shadow: 0 0 0 3px #D9303B; background: #FFF1F1; }
.rz-chip:focus-visible { outline: 3px solid #2457F5; outline-offset: 2px; }
.rz-clues { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rz-clues li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #FFFAE6; box-shadow: inset 0 0 0 2px #FFE7A3; font-weight: 700; color: #262C4A; line-height: 1.4; }
.rz-clues li > span:first-child { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #FFC93C; font-weight: 900; font-size: 13px; color: #1B2140; }
/* feedback */
.rz-feedback { border-radius: 22px; padding: 16px 18px; }
.rz-feedback-ok { background: #E7FAF1; box-shadow: inset 0 0 0 2px #9BE6C3; }
.rz-feedback-no { background: #FFF6E5; box-shadow: inset 0 0 0 2px #FFD58A; }
.rz-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.rz-dot { width: 12px; height: 12px; border-radius: 99px; background: #DCE1EE; }
.rz-dot[data-s='ok'] { background: #23A874; }
.rz-dot[data-s='no'] { background: #FF8A1F; }
.rz-dot[data-s='now'] { background: #2457F5; box-shadow: 0 0 0 3px #C5D4FF; }
.rz-sheet .rz-cell, .rz-sheet .rz-tile, .rz-sheet .rz-one-fig { box-shadow: 0 0 0 1.5px #1B2140; }
.rz-sheet .rz-matrix, .rz-sheet .rz-pair { background: #fff; box-shadow: inset 0 0 0 1.5px #1B2140; }
.rz-sheet .rz-cell-missing, .rz-sheet .rz-tile:has(.rz-q) { background: #fff; box-shadow: inset 0 0 0 2px #1B2140; }
.rz-sheet .rz-q { color: #1B2140; }
.rz-sheet .rz-mline { border-color: #1B2140; }
.rz-sheet .rz-diag line { stroke: #1B2140; }
.rz-sheet .rz-group-yes, .rz-sheet .rz-group-no { background: #fff; box-shadow: inset 0 0 0 1.5px #1B2140; }

.rz-art { display: inline-grid; place-items: center; padding: 10px; border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 10px 24px -14px rgba(18,22,58,.45), 0 0 0 1px rgba(18,22,58,.06); transform: rotate(-3deg); }
.rz-hero-art { position: relative; display: grid; place-items: center; width: 100%; min-height: 260px; }
.rz-hero-art .rz-art { position: absolute; }
.rz-hero-disc { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35) 70%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.rz-float-a { inset-inline-start: 4%; top: 6%; transform: rotate(-8deg) scale(.72) !important; }
.rz-float-b { inset-inline-end: 3%; bottom: 4%; transform: rotate(7deg) scale(.72) !important; }
.rz-float-c { inset-inline-end: 6%; top: 0; transform: rotate(10deg) scale(.66) !important; }
@media (max-width: 639px) { .rz-float-a, .rz-float-c { display: none; } .rz-float-b { inset-inline-end: 8%; bottom: 8%; } }
@media (prefers-reduced-motion: no-preference) {
  .rz-float-a { animation: rz-bob 6s ease-in-out infinite; }
  .rz-float-b { animation: rz-bob 7s ease-in-out -2s infinite; }
  .rz-float-c { animation: rz-bob 8s ease-in-out -4s infinite; }
}
@keyframes rz-bob { 50% { translate: 0 -8px; } }
.rz-daily [data-band] { display: none; }
.rz-daily [data-band='8-10'] { display: block; }
.rz-hub:has(input[name='rz-age'][value='5-7']:checked) .rz-daily [data-band] { display: none; }
.rz-hub:has(input[name='rz-age'][value='5-7']:checked) .rz-daily [data-band='5-7'] { display: block; }
.rz-hub:has(input[name='rz-age'][value='11-13']:checked) .rz-daily [data-band] { display: none; }
.rz-hub:has(input[name='rz-age'][value='11-13']:checked) .rz-daily [data-band='11-13'] { display: block; }
.rz-hub:has(input[name='rz-age'][value='14-16']:checked) .rz-daily [data-band] { display: none; }
.rz-hub:has(input[name='rz-age'][value='14-16']:checked) .rz-daily [data-band='14-16'] { display: block; }
.rz-start [data-band] { display: none; }
.rz-hub:has(input[name='rz-age'][value='5-7']:checked) .rz-start [data-band='5-7'],
.rz-hub:has(input[name='rz-age'][value='8-10']:checked) .rz-start [data-band='8-10'],
.rz-hub:has(input[name='rz-age'][value='11-13']:checked) .rz-start [data-band='11-13'],
.rz-hub:has(input[name='rz-age'][value='14-16']:checked) .rz-start [data-band='14-16'] { display: inline; }
.rz-hub:has(input[name='rz-age'][value='5-7']:checked) .rz-ages { display: none; }
.rz-hub:has(input[name='rz-age'][value='8-10']:checked) .rz-ages { display: none; }
.rz-hub:has(input[name='rz-age'][value='11-13']:checked) .rz-ages { display: none; }
.rz-hub:has(input[name='rz-age'][value='14-16']:checked) .rz-ages { display: none; }
.rz-hub:has(input[name='rz-age'][value='5-7']:checked) [data-bands]:not([data-bands~='5-7']),
.rz-hub:has(input[name='rz-age'][value='8-10']:checked) [data-bands]:not([data-bands~='8-10']),
.rz-hub:has(input[name='rz-age'][value='11-13']:checked) [data-bands]:not([data-bands~='11-13']),
.rz-hub:has(input[name='rz-age'][value='14-16']:checked) [data-bands]:not([data-bands~='14-16']) { display: none; }
.rz-filter { position: sticky; top: 8px; z-index: 5; }
