/* Meiosis boards, karyotypes and chromosome tooltips (Game 1 and the IVF game). Theme colours are the
   variables in clinic.css; the chromosome, cell and ring colours are data colours and stay as they are. */
.game1-page { max-width: none; }
.parents { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-start; width: max-content; margin: 0 auto; }
.parent { flex: none; width: 596px; }
.match-bar { display: flex; justify-content: center; margin-bottom: 8px; }
.legend { text-align: center; font-size: 0.9rem; color: var(--dim); max-width: 760px; margin: 0 auto 14px; }
.parenthead { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.parenthead .zora-box { width: 96px; flex: none; }
.parenthead h2 { font-size: 1.1rem; margin-bottom: 8px; }
.parenthead .buttons { margin-top: 0; }
.parent button { padding: 8px 12px; }
.parent details.alleles { margin: 6px 0; }
.parent details.alleles summary { cursor: pointer; color: var(--ice); font-size: 0.9rem; margin-bottom: 8px; }
button:disabled { cursor: not-allowed; transform: none; box-shadow: none; }
.mate-row { display: flex; justify-content: center; margin: 16px 0 8px; }
#baby { min-height: 20px; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
#baby .baby-box { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex: 0 1 300px; min-width: 0; padding: 10px 12px; border: 2px solid var(--edge); border-radius: 10px; }
#baby .baby-box.newest { border-color: var(--gold); }
.newest-tag { color: var(--gold); font-weight: 400; font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#baby h2 { font-size: 1.1rem; margin: 0; }
#baby .baby-zora { width: 160px; }
.baby-message { font-size: 0.95rem; }
.karyotype { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; padding: 10px 0 16px; }
.karyo-group { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 24px; }
.karyo-label { font-size: 12px; color: var(--mint); }
.karyo-none { font-size: 11px; color: var(--dim); padding-top: 14px; }
.karyo-group svg { display: block; }
.pick-ring { pointer-events: none; }
.game1-page .pick-ring { animation: pick-pulse .9s infinite; }
.game1-page .pick-cell { fill: #fff3a6; }
@keyframes pick-pulse { 50% { stroke-opacity: .15; } }

/* Board */
.division { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ice); margin: 12px 0 0; padding-top: 8px; border-top: 2px solid var(--edge); }
.board .division:first-child { border-top: 0; margin-top: 4px; }
.stage { display: grid; grid-template-columns: 84px 464px; border-top: 1px dashed var(--edge); align-items: center; }
.stagename { font-size: 12px; font-weight: 600; color: var(--mint); }
.stagenote { font-size: 11px; color: var(--dim); }
.count { font-size: 11px; color: var(--dim); margin-top: 3px; }
/* The same red as the nondisjunction ring the board draws. */
.tag { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 700; color: #ff6b5c; }
.cells { display: flex; justify-content: center; align-items: center; }
.cells svg { margin: -3px -6px; flex: none; }

.chr { cursor: pointer; outline: none; }
.chr:hover .hit, .chr:focus .hit { fill: #0000000f; stroke: #333; stroke-width: 1; }
@keyframes flash { 50% { opacity: .12; } }
@keyframes halo { 50% { stroke-opacity: .15; } }
.ndj-ring { animation: flash .9s infinite; }
.chr.flash .hit { fill: #ffd54a22; stroke: #ffb300; stroke-width: 1.5; stroke-opacity: 1; animation: halo .9s infinite; }
@media (prefers-reduced-motion: reduce) {
  .ndj-ring, .chr.flash .hit, .game1-page .pick-ring { animation: none; }
}

.zora-tip { position: fixed; display: none; z-index: 10; background: var(--ink); color: var(--cream); font-size: 12px; line-height: 1.45;
  padding: 7px 10px; border-radius: 7px; pointer-events: none; max-width: 240px; box-shadow: 0 3px 10px #0006; border: 1px solid var(--gold); }
.zora-tip b { color: var(--gold); }
.zora-tip i { color: var(--mint); font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
