﻿.ideas-grid .activity-launch {
  display: inline-block;
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid #c8202e;
  background: #c8202e;
  color: #fff;
  font: 700 13px 'DM Sans', sans-serif;
  cursor: pointer;
}
.ideas-grid article > a { display: block; }
.activities-privacy { margin: -15px 0 30px; color: #6c6b68; font-size: 13px; line-height: 1.7; }
.activity-dialog {
  width: min(760px, 94vw);
  max-height: 88vh;
  padding: 32px;
  border: 0;
  background: #fff;
  color: #171718;
  overflow-y: auto;
  font: 16px 'DM Sans', sans-serif;
}
.activity-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.activity-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.activity-head h2 { margin: 10px 0; font: 600 clamp(30px, 4vw, 42px)/1.05 Oswald, sans-serif; }
.activity-dialog > p { color: #6c6b68; line-height: 1.7; }
.activity-close { flex: 0 0 auto; width: 44px; height: 44px; border: 0; background: transparent; color: #171718; font-size: 30px; cursor: pointer; }
.activity-launch:focus-visible, .activity-dialog button:focus-visible, .activity-dialog input:focus-visible, .activity-dialog textarea:focus-visible { outline: 3px solid #f4af28; outline-offset: 3px; }
.activity-dialog label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 700; }
.activity-dialog textarea, .activity-dialog input { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #bbb9b3; background: white; color: #171718; font: 16px 'DM Sans', sans-serif; }
.activity-dialog textarea { resize: vertical; }
.activity-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.activity-options button { min-height: 42px; padding: 10px 14px; border: 1px solid #c4c2bb; background: #fff; color: #171718; font: 700 13px 'DM Sans', sans-serif; cursor: pointer; }
.activity-options button[aria-pressed="true"] { border-color: #c8202e; background: #c8202e; color: #fff; }
.activity-card { margin: 20px 0; padding: 22px; background: #f4f1ed; line-height: 1.7; }
.activity-card h3 { margin: 10px 0; font: 600 24px Oswald, sans-serif; }
.activity-eyebrow { color: #c8202e; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.activity-action { min-height: 44px; padding: 12px 16px; border: 1px solid #c8202e; background: #c8202e; color: #fff; font: 700 13px 'DM Sans', sans-serif; cursor: pointer; }
.activity-action[hidden] { display: none; }
.activity-note { color: #6c6b68; font-size: 13px; line-height: 1.6; }
.manga-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
.haiku-preview { min-height: 5em; white-space: pre-wrap; }
.katakana-output { min-height: 56px; padding: 15px; background: #f4f1ed; font-size: 22px; overflow-wrap: anywhere; }
.katakana-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.katakana-grid button { min-height: 50px; padding: 7px 3px; border: 1px solid #d4d2cd; background: #fff; font: 600 17px 'DM Sans', sans-serif; cursor: pointer; }
.katakana-grid button span { display: block; margin-top: 3px; color: #6c6b68; font-size: 11px; }
.pattern-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: min(100%, 360px); gap: 4px; margin: 22px 0; }
.pattern-grid button { aspect-ratio: 1; min-width: 0; border: 1px solid #cbbfbd; background: #f4f1ed; cursor: pointer; }
.pattern-grid button[aria-pressed="true"] { background: #c8202e; border-color: #a91d2a; }
@media (max-width: 600px) {
  .activity-dialog { padding: 22px; }
  .manga-grid { grid-template-columns: 1fr; }
  .katakana-grid { gap: 4px; }
}
