/* Scoped to the authored AI game master page. */
.gm-page { --gm-space: clamp(3.5rem, 7vw, 6.5rem); }
.gm-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-bottom: 3rem; }
.gm-hero h1 { font-size: clamp(2.4rem, 4.2vw, 4.05rem); line-height: 1.12; margin: .3rem 0 1.5rem; }
.gm-hero h1 em { color: var(--accent); font-style: normal; }
.gm-hero .lead { font-size: 1.05rem; margin-bottom: 1.8rem; }
.gm-quiet-link { display: inline-block; margin: 1rem 0 1rem 1.2rem; font-size: .9rem; }
.gm-hero-note { margin: 1rem 0 0; color: var(--dim); font-size: .8rem; }
.gm-hero-art { position: relative; overflow: hidden; border-radius: 45% 45% 6px 6px; border: 1px solid var(--border); background: var(--surface); }
.gm-hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 37% center; }
.gm-hero-art figcaption { position: absolute; inset: auto 0 0; padding: 3rem 1.5rem 1.5rem; background: linear-gradient(transparent, #100e0ced); color: var(--text); font-size: .85rem; }
.gm-section { margin: var(--gm-space) 0; scroll-margin-top: 1.5rem; }
.gm-section-intro h2, .gm-section-heading h2 { margin: 0 0 1.5rem; }
.gm-section-intro p, .gm-section-heading p { color: var(--muted); max-width: 60ch; }
.gm-section-intro .eyebrow, .gm-section-heading .eyebrow { color: var(--accent); }
.gm-action-section, .gm-rules-section, .gm-start, .gm-questions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); }
.gm-intents { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 2px solid var(--accent); }
.gm-example-context { color: var(--muted); font-size: .85rem; }
.gm-intents dl { margin: 0; }
.gm-intents dl > div { padding: 1.2rem 0; border-top: 1px solid var(--border); }
.gm-intents dt { font-size: .75rem; font-weight: 600; color: var(--accent); margin-bottom: .5rem; }
.gm-intents dd { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; line-height: 1.55; }
.gm-section-heading { max-width: 760px; margin-bottom: 2rem; }
.gm-screen { border: 1px solid var(--border); border-radius: 6px; padding: clamp(.5rem, 1.5vw, 1.25rem); background: #14110e; }
.gm-screen img { width: 100%; }
.gm-screen figcaption { font-size: .78rem; line-height: 1.6; color: var(--dim); padding: 1rem .6rem .25rem; }
.gm-media-link { margin-top: 1.4rem; }
.gm-rules article { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.gm-rules article:first-child { padding-top: 0; border-top: 0; }
.gm-rule-number { color: var(--accent); font-size: .75rem; font-variant-numeric: tabular-nums; padding-top: .35rem; }
.gm-rules h3, .gm-steps h3, .gm-answers h3 { font-size: 1.4rem; margin: 0 0 .8rem; }
.gm-rules p, .gm-steps p, .gm-answers p { color: var(--muted); margin-bottom: .8rem; }
.gm-rules a, .gm-steps a { font-size: .85rem; }
.gm-start { border-block: 1px solid var(--border); padding-block: 2.5rem; }
.gm-steps { list-style: none; padding: 0; margin: 0; counter-reset: gm-step; }
.gm-steps li { counter-increment: gm-step; position: relative; padding: 0 0 2rem 3rem; }
.gm-steps li:last-child { padding-bottom: 0; }
.gm-steps li::before { content: '0' counter(gm-step); position: absolute; top: .1rem; left: 0; color: var(--accent); font-size: .85rem; font-variant-numeric: tabular-nums; }
.gm-answers section { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.gm-answers section:first-child { padding-top: 0; }
.gm-answers p { margin: 0; }
.gm-final { padding: clamp(2rem, 4vw, 4rem); background: var(--surface); border-top: 2px solid var(--accent); }
.gm-final h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 0 0 1rem; }
.gm-final > p { color: var(--muted); }
.gm-final .eyebrow { color: var(--accent); }
.gm-final-note { margin: 1.5rem 0 0; font-size: .85rem; }
.gm-answer { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); border-block: 1px solid var(--border); padding: 2.4rem 0; margin-bottom: 2rem; }
.gm-answer h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.2; margin: 0; }
.gm-answer p { color: var(--muted); }
.gm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 1.5rem 0 0; }
.gm-facts dt { color: var(--accent); font-size: .72rem; margin-bottom: .65rem; }
.gm-facts dd { margin: 0; font-size: .82rem; line-height: 1.65; color: var(--muted); }
@media (max-width: 900px) {
  .gm-answer { grid-template-columns: 1fr; }
  .gm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 1.7rem; }
  .gm-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
  .gm-quiet-link { margin-left: 0; margin-right: 1rem; }
  .gm-action-section, .gm-rules-section, .gm-start, .gm-questions { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 620px) {
  .gm-facts { grid-template-columns: 1fr; gap: 0; }
  .gm-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: .8rem 0; border-top: 1px solid var(--border); }
  .gm-hero { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 1.5rem; }
  .gm-hero h1 { font-size: clamp(2.25rem, 8vw, 3rem); }
  .gm-hero-art { border-radius: 6px; }
  .gm-hero-art img { aspect-ratio: 16 / 10; object-position: center; }
  .gm-hero-art figcaption { padding: 3rem 1rem 1rem; }
  .gm-hero .button, .gm-final .button { width: 100%; }
  .gm-quiet-link { margin: 1rem 0 0; }
  .gm-hero-note { margin-top: 1.2rem; }
}
