/* BUGSKILL: room for the interaction clips and the story behind them. */
.bugskill-page .project-intro{padding-bottom:36px}
.role-context{max-width:38ch;margin-top:12px;color:#999}
.project-links{display:flex;flex-wrap:wrap;gap:12px 30px;font-family:dosis,sans-serif;font-size:18px;color:#d6d0f3}
.project-links a{border-bottom:1px dotted #d6d0f380}
.trailer-frame{position:relative;aspect-ratio:16/9;background:#101010}
.trailer iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.bugskill-page .story-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:42px;align-items:start;margin-bottom:12px}
.clip-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.mechanic{display:grid;grid-template-rows:auto 1fr auto;gap:18px}
.bugskill-page h3{color:#d6d0f3}
.mechanic>p{color:#ccc}
.clip-frame{aspect-ratio:16/9;background:#111;overflow:hidden}
.clip-frame video,.clip-frame .video-toggle{display:block;width:100%;height:100%;object-fit:cover}
.bugskill-page .clip-frame:has(video[data-silent]) .video-sound-toggle{display:none}
.room-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:42px;padding-top:18px}
.room-story>p{color:#ccc}
.powerup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.system-note{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:42px;padding-top:14px;color:#bbb}
.shop-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:42px;align-items:start;padding-top:35px}
.round-flow{display:flex;justify-content:space-between;align-items:center;gap:16px;color:#d6d0f3;font:500 24px/1.3 dosis,sans-serif;padding:22px 0}
.round-flow [aria-hidden]{color:#777}
.project-background{max-width:75ch;padding-bottom:70px}
.project-background p{color:#ccc}
@media(max-width:800px){.bugskill-page .story-intro,.room-story,.system-note,.shop-story{grid-template-columns:minmax(0,1fr);gap:24px}.powerup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.powerup-grid figure:last-child{grid-column:1/-1;width:calc(50% - 12px);justify-self:center}.round-flow{font-size:20px;gap:10px}}
@media(max-width:540px){.clip-pair,.powerup-grid{grid-template-columns:minmax(0,1fr);gap:32px}.powerup-grid figure:last-child{grid-column:auto;width:auto;justify-self:stretch}.mechanic{display:block}.mechanic>p{margin:14px 0 20px}.round-flow{display:grid;grid-template-columns:1fr auto 1fr;text-align:center;row-gap:22px}.round-flow span:nth-child(4){grid-column:1/-1;transform:rotate(90deg)}.bugskill-page .project-role{gap:26px}.project-background{padding-bottom:42px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.powerup-highlights{display:grid;gap:48px}.powerup-highlight{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:42px;align-items:center}.powerup-highlight p{color:#ccc}.powerup-highlight .clip-frame{aspect-ratio:1}.powerup-highlight figure{width:100%;max-width:480px;justify-self:end}@media(max-width:640px){.powerup-highlight{grid-template-columns:minmax(0,1fr);gap:22px}.powerup-highlight figure{max-width:none}.powerup-highlights{gap:38px}}

/* Power-up highlights: two across on desktop, one across on small screens. */
.powerup-highlights{grid-template-columns:repeat(2,minmax(0,1fr));gap:42px 32px}
.powerup-highlight{display:flex;flex-direction:column;align-items:stretch;gap:22px}
.powerup-highlight .prose{flex:1;align-content:start}
.powerup-highlight figure{max-width:none}
@media(max-width:700px){.powerup-highlights{grid-template-columns:minmax(0,1fr);gap:38px}}

/* Keep individual power-ups subordinate to the main case-study text. */
.powerup-highlight h3{font-size:24px;line-height:1.2}
.powerup-highlight .prose{gap:12px}
.powerup-highlight .prose p{font:400 16px/1.65 'DM Sans',sans-serif;color:#ccc}
.powerup-highlight{gap:18px}

@media(max-width:640px){.powerup-highlight .prose p{font-size:15px}}

/* One shared type scale for gameplay highlights throughout the page. */
.mechanic h3{font-size:24px;line-height:1.2}
.mechanic>p{font:400 16px/1.65 'DM Sans',sans-serif;color:#ccc}
.mechanic{gap:12px}
.mechanic>figure{margin-top:6px}
@media(max-width:640px){.mechanic>p{font-size:15px}}

.dodge-highlight{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:42px;align-items:start;padding-top:16px}.dodge-highlight h3{font-size:24px;line-height:1.2}.dodge-highlight .prose>p{font:400 16px/1.65 'DM Sans',sans-serif;color:#ccc}.dodge-highlight .prose{gap:12px}.dodge-highlight .damage-sidenote{margin-top:6px}@media(max-width:700px){.dodge-highlight{grid-template-columns:minmax(0,1fr);gap:22px}}@media(max-width:640px){.dodge-highlight .prose>p{font-size:15px}}

.shop-story .clip-frame{aspect-ratio:1}
