.board-frame.wide { width: min(560px, calc(100vw - 24px)); }
.logo { text-decoration: none; color: var(--ink); pointer-events: auto; font-size: 16px; padding: 6px 12px; }

.hero-title { font-family: var(--serif); font-size: 34px; line-height: 1.1; text-align: center; margin: 4px 0 8px; }
.hero-sub { text-align: center; color: var(--ink-2); margin: 0 0 18px; line-height: 1.5; }
.how { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
.how li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.4; }
.how li::before { content: counter(s); font-family: var(--pixel); min-width: 24px; height: 24px; display: inline-grid; place-items: center; border: 2px solid var(--ink); background: var(--paper-2); font-size: 13px; }

.step-label { font-family: var(--pixel); font-size: 14px; color: var(--ink-2); text-align: center; margin: 0 0 2px; }
.step-title { font-family: var(--serif); font-size: 26px; text-align: center; margin: 0 0 14px; line-height: 1.15; }

.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.preset { background: var(--paper); border: 3px solid var(--ink); padding: 6px 2px 4px; display: grid; justify-items: center; gap: 2px; box-shadow: 0 3px 0 var(--ink); }
.preset canvas { width: 40px; height: 58px; }
.preset span { font-family: var(--pixel); font-size: 11px; line-height: 1.1; text-align: center; }
.preset[aria-pressed="true"] { background: #ffe1d9; border-color: var(--red); box-shadow: 0 3px 0 var(--red); }

.customise { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; margin-bottom: 8px; }
.customise .big-av { width: 96px; height: 138px; justify-self: center; background: var(--paper-2); border: 3px solid var(--ink); }
.cyclers { display: grid; gap: 6px; }
.cycler { display: grid; grid-template-columns: 76px 30px 1fr 30px; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 14px; }
.cycler button { border: 2px solid var(--ink); background: var(--paper); height: 28px; font-family: var(--pixel); padding: 0; }
.cycler output { text-align: center; text-transform: capitalize; border-bottom: 2px dashed #d8ccb4; padding: 2px 0; }

.meme-preview { display: block; max-width: 100%; max-height: 160px; margin: 6px auto 0; border: 3px solid var(--ink); }
.q-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; max-height: 200px; overflow: auto; border: 3px solid var(--ink); background: #fff; padding: 8px; }
.q-list li { font-size: 14px; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed #d8ccb4; padding-bottom: 4px; }
.q-list li small { font-family: var(--pixel); color: var(--ink-2); white-space: nowrap; }
.warn { background: #fff3d6; border: 3px solid var(--ink); padding: 8px 10px; font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
.ok { background: #e3f0dc; border: 3px solid var(--ink); padding: 8px 10px; font-size: 14px; margin-bottom: 12px; }

.mode { display: grid; gap: 8px; margin-bottom: 12px; }
.mode .chip { font-family: var(--sans); font-size: 15px; display: grid; grid-template-columns: auto 1fr; }
.mode .chip b { font-family: var(--pixel); font-size: 17px; font-weight: 600; }
.mode .chip small { grid-column: 2; opacity: 0.8; }
.inline-n { display: flex; align-items: center; gap: 8px; margin: -2px 0 12px 4px; font-family: var(--pixel); }
.inline-n input { width: 70px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); }

.share-box { display: flex; gap: 8px; margin-bottom: 12px; }
.share-box .input { font-family: var(--pixel); font-size: 15px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.share-row .btn { font-size: 15px; text-decoration: none; color: var(--ink); }
.card.inline { box-shadow: 0 6px 0 var(--ink); margin: 0 0 14px; width: 100%; }

@media (max-width: 720px) {
  .hero-title { font-size: 28px; }
  .presets { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .preset span { display: none; }
  .customise { grid-template-columns: 1fr; }
  .cycler { grid-template-columns: 70px 30px 1fr 30px; }
}
.customise > div:first-child { justify-self: center; }
