/* lrg.css — page layer for /left-right-game/. The shell (header, controls, buttons, explainer, footer)
   is /assets/polyatic.css; this adds the cutting-mat stage with the story sheet on it, the LEFT/RIGHT
   marks, the big-text reading mode and the print preview. The story sheet is paper-white in both themes:
   it is an object on the mat. */
.lr-noscript{margin:1rem;padding:.875rem 1rem;border:1px solid var(--line);border-left:.25rem solid var(--accent);border-radius:.625rem;background:var(--surface)}
.lr-head h1{margin-bottom:.25rem}
.lr-head .sub{margin-bottom:.625rem}
.lr-quick{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin-bottom:.75rem}
.lr-pick{display:flex;align-items:center;gap:.5rem;flex:1 1 14rem;min-width:0}
.lr-pick select{flex:1;padding:.5rem .625rem;font-weight:600}
.lr-qk{font-family:var(--mono);font-size:.6875rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.lr-len{margin:0;flex:1 1 12rem}
.lr-len button{padding:.4375rem .25rem}
.lr-len small{font-weight:500;opacity:.75}

/* ---------- the stage ---------- */
.duo.lr-duo>.pane-result{position:static}
@media(min-width:920px){
  .duo.lr-duo{grid-template-columns:minmax(0,1.25fr) minmax(19rem,.75fr);grid-template-areas:"side main"}
}
.lr-stage{background:radial-gradient(120% 80% at 50% 0%,rgba(255,196,120,.16),transparent 60%),linear-gradient(180deg,var(--mat),var(--mat-2));
  color:var(--mat-ink);border-radius:var(--r);padding:.75rem .75rem 1rem;box-shadow:var(--shadow);min-width:0}
.lr-paper{background:#fffdf8;color:#1f2328;border-radius:.375rem;padding:.875rem 1rem .25rem;box-shadow:0 1px 0 rgba(0,0,0,.1),0 18px 40px -16px rgba(0,0,0,.6)}
.lr-kicker{margin:0;font-family:var(--mono);font-size:.6875rem;text-transform:uppercase;letter-spacing:.08em;color:#5c6168}
.lr-title{margin:.125rem 0 .375rem;font-size:1.375rem;line-height:1.15;letter-spacing:-.02em;color:#1f2328}
.lr-counts{display:flex;flex-wrap:wrap;align-items:baseline;gap:.125rem .625rem;margin:0 0 .5rem;padding:.375rem .5rem;background:#f3f1ea;border-radius:.375rem;font-size:.8125rem;color:#5c6168}
.lr-counts b{font-size:1rem}
.lr-text{font-family:Georgia,"Times New Roman",Times,"Liberation Serif",serif;font-size:1rem;line-height:1.6;max-height:clamp(13rem,35vh,30rem);overflow:auto;padding:0 .25rem .75rem 0;
  -webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 2rem),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 2rem),transparent)}
.lr-text:focus-visible{outline:2px solid #1b5e9e;outline-offset:2px}
.lr-text p{margin:0 0 .75rem}
.lr-text .nm{font-weight:700}
.lr-L,.lr-R{font-family:var(--sans);font-weight:800;font-size:1.2em;letter-spacing:.01em}
.lr-L{color:#b42318}
.lr-R{color:#1b5e9e}
.lr-counts .lr-L,.lr-counts .lr-R{font-size:1rem}
.lr-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0 0}
.lr-actions .btn{flex:1 1 9rem}
.lr-stage .btn.ghost{color:var(--mat-ink);border-color:rgba(255,255,255,.4);background:transparent}
.lr-stage .btn:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.btn:disabled{opacity:.6;cursor:progress}
.lr-msg{margin:.5rem 0 0;text-align:center;font-size:.875rem;color:var(--mat-ink);font-weight:600}
.lr-msg:empty{display:none}

/* ---------- the form ---------- */
.lr-form-h{margin:0;font-size:1.1875rem}
.lr-form .controls{margin-top:.75rem}
.lr-form textarea{min-height:6.5rem;font-family:var(--sans);font-size:.9375rem}
.lr-hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--muted);line-height:1.45}
.lr-linkbtn{border:0;background:none;padding:0;color:var(--accent);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;text-decoration:underline}
.lr-linkbtn[hidden]{display:none}
.lr-form .modes{margin-bottom:0}
.lr-dl{display:flex;flex-wrap:wrap;gap:.5rem}
.lr-dl .btn{flex:1 1 11rem}
.lr-sheet{margin:.75rem auto 0;max-width:20rem;line-height:0}
.lr-sheet canvas{display:block;width:100%;height:auto;background:#fff;border:1px solid var(--line);border-radius:2px;box-shadow:var(--shadow)}

/* ---------- big-text reading mode ---------- */
.lr-reader{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;background:#fffdf8;color:#1f2328}
.lr-reader[hidden]{display:none}
.lr-rbar{display:flex;align-items:center;gap:.375rem;padding:.5rem .75rem;padding-top:max(.5rem,env(safe-area-inset-top));background:#1f2328;color:#fff}
.lr-rbar b{flex:1;min-width:0;font-size:.9375rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lr-rcount{font-family:var(--mono);font-size:.75rem;color:#c9cfc8;white-space:nowrap}
.lr-rbtn{min-width:2.5rem;min-height:2.5rem;border:1px solid rgba(255,255,255,.35);border-radius:.4375rem;background:transparent;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.lr-rbtn:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.lr-close{padding:0 .75rem}
.lr-rtext{flex:1;overflow:auto;padding:1rem 1.125rem 4rem;font-family:Georgia,"Times New Roman",Times,"Liberation Serif",serif;font-size:var(--lr-fs,1.5rem);line-height:1.55;-webkit-overflow-scrolling:touch}
.lr-rtext p{margin:0 0 1em;max-width:38ch}
.lr-rtext .nm{font-weight:700}
.lr-rtext .lr-L,.lr-rtext .lr-R{font-size:1.25em;padding:0 .12em;border-radius:.2em}
.lr-rtext .lr-L{background:#fde4e1}
.lr-rtext .lr-R{background:#dfeaf6}
.lr-rtext .lr-end{font-family:var(--sans);font-size:.75em;color:#5c6168}
@media (min-width:56rem){.lr-rtext{padding:2rem 3rem 4rem}.lr-rtext p{margin-left:auto;margin-right:auto}}
.lr-tot{font-size:.75rem}
@media(min-width:920px){.lr-text{max-height:min(50vh,42rem)}}
