/* polish.css — legibility and layout refinements layered over style.css (loaded after it) */

/* entry animations only fill backwards: once they end, inline transforms (shuffle jitter, drag) apply again */
.fadein, .popin, .slidein, .dropin { animation-fill-mode: backwards; }
.stamp.popin, .hex .ln.new { animation-fill-mode: backwards; }

/* title prompt: room for the pulse */
.title .prompt { left: 6%; right: 6%; }

/* minimum readable sizes on phones */
.ttl small { font-size: .72em; }
.bz .gd.sm2, .bz .ny { font-size: max(12px, .62em); }
.grid4.hours .opt .d { font-size: max(12px, .64em); letter-spacing: -.02em; }
.hexs .hx .lb, .luck small { font-size: max(12px, .75em); }
.plines .opt .d { font-size: max(12px, .72em); }
.mcard .d { font-size: max(12px, .74em); }
.btn small { font-size: max(12px, .74em); }
.tcard .pn { font-size: max(12px, .74em); }

/* temple oracle poem: one column per line, read right to left, one glyph per cell (no writing-mode: fonts without vertical metrics squash it) */
.qpaper .in { container-type: size; }
.qpaper .poem { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: row-reverse; justify-content: center; align-items: center; gap: .55em; margin: .5em 0;
  writing-mode: horizontal-tb; white-space: normal; font-size: 1em; line-height: 1; letter-spacing: 0; }
.qpaper .poem .pc { display: flex; flex-direction: column; align-items: center; gap: .12em; font-weight: 900; font-size: 1.4em; font-size: min(1.4em, 8.6cqh); line-height: 1.12; color: #1c0904;
  text-shadow: 0 1px 0 rgba(255, 220, 170, .25); }
.qpaper .poem .pc i { display: block; font-style: normal; }

/* Celtic Cross: position numbers as badges on each card's corner, clear of the neighbours */
.tcard.cel .pn { left: -.5em; top: -.5em; bottom: auto; transform: none; width: 1.75em; height: 1.75em; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 3;
  font-size: max(12px, .78em); line-height: 1; font-weight: 900; color: #ffe6a6; background: radial-gradient(circle at 40% 35%, #a3261b, #4e0b08 75%); border: 1.5px solid var(--gold); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.tcard.cel.cross .pn { left: auto; right: calc(var(--cw) * -0.25 - .5em); top: calc(50% - var(--cw) * 0.5 - .5em); }
.tcard.cel .nm { display: none; }
