/* SPDX-License-Identifier: Apache-2.0 */
.page-grid.is-story > main.tell-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.tell-intro { max-width: 720px; margin-bottom: 2rem; }
.tell-intro .tell-eyebrow { color: var(--shell-accent); font-size: .85rem; font-weight: 600; letter-spacing: .06em; }
.tell-intro h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); letter-spacing: -.05em; line-height: 1.04; margin: .6rem 0 1rem; }
.tell-intro .lede { font-size: 1.2rem; line-height: 1.6; }
.tell-game { border: 1px solid var(--border-strong); border-radius: 16px; padding: 1.5rem; background: var(--surface); }
.tell-page button, .tell-page select { min-height: 46px; font: inherit; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--shell-text); background: var(--surface); padding: .65rem .85rem; }
.tell-page button { cursor: pointer; font-weight: 500; }
.tell-page button:hover { border-color: var(--shell-accent); }
.tell-page button:disabled { color: var(--shell-muted); cursor: default; }
.tell-page :is(button,select,summary,pre,a,[tabindex]):focus-visible { outline: 3px solid var(--shell-accent); outline-offset: 3px; }
.tell-setup { display: grid; grid-template-columns: minmax(0,1.5fr) auto minmax(0,1fr) minmax(0,1.4fr); gap: 1rem; align-items: end; }
.tell-choose { min-width: 0; }
.tell-choose label { display: block; font-size: .85rem; margin-bottom: .45rem; }
.tell-choose select { width: 100%; }
.tell-mode { max-width: 75ch; font-size: .95rem; }
.tell-cues { margin: 1rem 0 1.75rem; border-bottom: 1px solid var(--border-strong); padding-bottom: 1rem; }
.tell-page summary { cursor: pointer; min-height: 44px; align-content: center; }
.tell-progress { display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; }
.tell-progress p { color: var(--shell-muted); font-size: .9rem; }
.tell-progress button { font-size: .85rem; }
.tell-play h2 { font-size: clamp(1.4rem,4vw,2rem); margin: 1rem 0; }
.tell-task { margin-bottom: 1.3rem; padding: .4rem 1rem; border-radius: 8px; background: var(--sheet); color: var(--ink); border: 1px solid var(--sheet-rule); }
.tell-task [data-prompt] { max-height: 7rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; padding: .5rem 0; }
.tell-answers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.tell-card { min-width: 0; border: 1px solid var(--sheet-rule); background: var(--sheet); color: var(--ink); border-radius: 12px; padding: 1rem; }
.tell-card h3 { color: var(--ink); margin: 0 0 .8rem; font-size: .95rem; }
.tell-expand { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.tell-expand p { margin: 0; color: var(--shell-muted); font-size: var(--t-fine); }
.tell-answer { font-family: var(--sans); font-size: var(--t-body); line-height: 1.6; overflow-wrap: anywhere; max-height: 22rem; overflow: hidden; margin-bottom: 1rem; }
.tell-answers.is-expanded .tell-answer { max-height: none; overflow: visible; }
.tell-card button { width: 100%; }
.tell-card button[aria-pressed="true"] { background: var(--shell-text); color: var(--surface); border-color: var(--shell-text); }
.tell-identity { color: var(--ink); font-weight: 600; font-size: .95rem; margin-bottom: 0; }
.tell-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1rem; }
.tell-actions .tell-reveal { margin-left: auto; background: var(--shell-text); color: var(--surface); }
.tell-actions .tell-reveal:disabled { background: var(--surface); color: var(--shell-muted); }
.tell-play [data-status] { font-size: .9rem; color: var(--shell-muted); }
.tell-result { margin: 1.5rem 0; padding: 1.2rem; border: 2px solid var(--shell-accent); border-radius: 12px; }
.tell-context { border-top: 1px solid var(--border-strong); margin-top: 1.5rem; padding-top: .5rem; font-size: .9rem; color: var(--shell-muted); }
.tell-context h2 { font-size: 1.1rem; color: var(--shell-text); }
.tell-context p { max-width: 85ch; }
.tell-about { margin-top: 1.5rem; max-width: 80ch; }
.tell-page [hidden] { display: none !important; }
@media (max-width: 700px) {
  .page-grid.is-story > main.tell-page { padding: 1.4rem .8rem 3rem; }
  .tell-game { padding: .85rem; border-radius: 12px; }
  .tell-setup { grid-template-columns: minmax(0,1fr) auto; gap: .8rem; }
  .tell-choose:nth-last-child(-n+2) { grid-column: 1 / -1; }
  .tell-answers { grid-template-columns: minmax(0,1fr); gap: .8rem; }
  .tell-card { padding: .8rem; }
  .tell-answer { max-height: 17rem; }
  .tell-progress { gap: .3rem; }
  .tell-progress button { padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .tell-page *, .tell-page { scroll-behavior: auto; animation: none; transition: none; } }
