/* TP ToDo – Dithering / 1-Bit Design-Tokens & Komponenten */

@font-face {
  font-family: 'Press Start 2P';
  src: url('../assets/fonts/press-start-2p.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'VT323';
  src: url('../assets/fonts/vt323.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --card: #fdfcf8;
  --ink: #141414;
  --accent: #0b8a2d;
  --font-pixel: 'Press Start 2P', ui-monospace, monospace;
  --font-body: 'VT323', ui-monospace, 'Courier New', monospace;
  --nav-h: 64px;
}
[data-theme='dark'] {
  --paper: #101010;
  --card: #1b1b1b;
  --ink: #f2f0e9;
}

/* ---- Dither-Dichten (Bayer 4x4-Kacheln als Maske, Farbe via background) ---- */
.d00 { --durl: none; }
.d06 { --durl: url('../assets/dither/dither-06.png'); }
.d12 { --durl: url('../assets/dither/dither-12.png'); }
.d19 { --durl: url('../assets/dither/dither-19.png'); }
.d25 { --durl: url('../assets/dither/dither-25.png'); }
.d31 { --durl: url('../assets/dither/dither-31.png'); }
.d38 { --durl: url('../assets/dither/dither-38.png'); }
.d44 { --durl: url('../assets/dither/dither-44.png'); }
.d50 { --durl: url('../assets/dither/dither-50.png'); }
.d56 { --durl: url('../assets/dither/dither-56.png'); }
.d62 { --durl: url('../assets/dither/dither-62.png'); }
.d69 { --durl: url('../assets/dither/dither-69.png'); }
.d75 { --durl: url('../assets/dither/dither-75.png'); }
.d81 { --durl: url('../assets/dither/dither-81.png'); }
.d88 { --durl: url('../assets/dither/dither-88.png'); }
.d94 { --durl: url('../assets/dither/dither-94.png'); }
.d100 { --durl: none; }

/* Fläche mit Dither-Füllung (Farbe = background-color, Muster = Maske) */
.dither-fill {
  background-color: var(--ink);
  -webkit-mask-image: var(--durl, none);
  mask-image: var(--durl, none);
  -webkit-mask-size: 8px 8px;
  mask-size: 8px 8px;
}
/* "Klare Darstellung": Muster aus */
[data-clear='true'] .dither-fill,
[data-clear='true'] .dither-bg::before,
[data-clear='true'] .ex-row.done::before,
[data-clear='true'] .wg-cell.done::before,
[data-clear='true'] body::before,
[data-clear='true'] .modal-overlay::before {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.3;
  min-height: 100vh;
}
/* dezentes Dither-Raster über die ganze Seite */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: var(--ink);
  opacity: 0.045;
  -webkit-mask-image: var(--durl, none);
  mask-image: url('../assets/dither/dither-50.png');
  -webkit-mask-size: 8px 8px;
  mask-size: 8px 8px;
  pointer-events: none;
  z-index: 0;
}
body.modal-open { overflow: hidden; }

::selection { background: var(--accent); color: #101010; }

canvas { image-rendering: pixelated; }

h1, h2, h3, .num, .chip-num, .btn, .nav-btn, .ex-sub, .tag, .bar-label, .rec-val, .wg-day, .badge-date {
  font-family: var(--font-pixel);
}

button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.app-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 6px;
  background: var(--ink);
  -webkit-mask-image: url('../assets/dither/dither-25.png');
  mask-image: url('../assets/dither/dither-25.png');
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 13px; margin: 0; letter-spacing: 1px; }
#brand-icon { width: 26px; height: 26px; }
.icon-btn {
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1;
}
.icon-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.icon-btn.small { padding: 2px 7px; font-size: 16px; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }

/* ---------- Main ---------- */
main {
  position: relative; z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 14px calc(var(--nav-h) + 28px);
}

.card {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 14px;
  margin-bottom: 18px;
}

.head-date-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.head-kitty { width: 48px; height: 48px; image-rendering: pixelated; flex: 0 0 auto; }
.head-card .head-date { font-family: var(--font-pixel); font-size: 11px; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  display: flex; align-items: center; gap: 7px;
  border: 2px solid var(--ink);
  padding: 5px 9px 5px 6px;
  background: var(--card);
}
.chip canvas { width: 24px; height: 24px; }
.chip-num { font-size: 11px; color: var(--accent); }
.chip-label { font-family: var(--font-body); font-size: 18px; }

.bar { position: relative; height: 22px; border: 3px solid var(--ink); background: var(--paper); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background-color: var(--accent); }
.bar-label { font-size: 8px; margin-top: 8px; opacity: .85; }

.sec-title { font-size: 12px; margin: 0 0 2px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec-sub { font-size: 18px; opacity: .8; margin-bottom: 12px; }
.morgen-list { border: 2px dashed var(--ink); padding: 8px 12px; margin: 4px 0 10px; }
.morgen-item { font-size: 21px; padding: 2px 0; }
.group-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px dashed var(--ink);
  margin: 10px 0 8px; padding-bottom: 4px;
}
.group-head h3 { margin: 0; font-family: var(--font-pixel); font-size: 9px; text-transform: uppercase; }

/* ---------- Übungszeilen ---------- */
.ex-row {
  position: relative;
  display: flex; align-items: stretch; gap: 10px;
  border: 2px solid var(--ink);
  background: var(--card);
  margin-bottom: 8px;
  padding: 8px 10px 8px 16px;
}
.ex-row.done::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 9px;
  background: var(--accent);
  -webkit-mask-image: url('../assets/dither/dither-50.png');
  mask-image: url('../assets/dither/dither-50.png');
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
}
.ex-row.done .ex-name { color: var(--accent); }

.checkbox {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  align-self: center;
  border: 3px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 26px;
  line-height: 1;
  color: transparent;
}
.checkbox.checked { background: var(--accent); color: #101010; border-color: var(--ink); }

.ex-main {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: none; border: none; padding: 2px 0;
  text-align: left;
  min-height: 44px;
}
.ex-name { font-size: 24px; }
.ex-sub { font-size: 8px; opacity: .75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 9px;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 12px;
  margin: 4px 4px 4px 0;
}
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn.small { font-size: 8px; padding: 6px 8px; box-shadow: 3px 3px 0 var(--ink); border-width: 2px; }
.btn.danger { color: #c81e1e; }
[data-theme='dark'] .btn.danger { color: #ff5252; }
.btn-done { width: 100%; margin: 0 0 12px; }
.btn-done.is-done { background: var(--accent); color: #101010; }
.btn-row { display: flex; flex-wrap: wrap; }
.btn-row.center { justify-content: center; gap: 10px; }

/* ---------- Confirm-Popup (app-eigen, zentriert) ---------- */
.confirm-ov { align-items: center; padding: 20px; }
.confirm { max-width: 430px; text-align: center; }
.confirm .cel-title { margin-bottom: 12px; }
.confirm-msg { font-size: 19px; line-height: 1.55; margin-bottom: 16px; }

/* ---------- Woche ---------- */
.week-grid {
  display: grid;
  grid-template-columns: minmax(104px, 1.3fr) repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.wg-corner { }
.wg-day { font-size: 7px; text-align: center; padding: 3px 0; border-bottom: 2px solid var(--ink); }
.wg-day.today { color: var(--accent); }
.wg-name { font-size: 17px; padding: 4px 4px 4px 0; display: flex; flex-direction: column; justify-content: center; }
.wg-group { font-family: var(--font-pixel); font-size: 7px; color: var(--accent); }
.wg-ex { overflow: hidden; text-overflow: ellipsis; }
.wg-cell {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  background: var(--paper);
  min-width: 0;
  padding: 0;
}
.wg-cell.today { outline: 3px solid var(--accent); outline-offset: -3px; }
.wg-cell.done::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  -webkit-mask-image: url('../assets/dither/dither-75.png');
  mask-image: url('../assets/dither/dither-75.png');
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
}
.wg-check { position: relative; font-size: 20px; color: #101010; }
.wg-sets { position: absolute; right: 2px; bottom: 0; font-size: 13px; font-family: var(--font-pixel); font-size: 7px; opacity: .8; }

/* ---------- Monat ---------- */
.month-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.month-head .sec-title { font-size: 11px; }
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}
.m-dow { font-family: var(--font-pixel); font-size: 7px; text-align: center; opacity: .7; padding-bottom: 4px; }
.m-cell {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--ink);
  padding: 0;
  min-width: 0;
}
.m-cell.empty { border: none; background: none; }
.m-cell.today { outline: 3px solid var(--accent); outline-offset: -3px; }
.m-cell.l1::before, .m-cell.l2::before, .m-cell.l3::before, .m-cell.full::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  pointer-events: none;
}
.m-cell.l1::before {
  -webkit-mask-image: url('../assets/dither/dither-12.png');
  mask-image: url('../assets/dither/dither-12.png');
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
}
.m-cell.l2::before {
  -webkit-mask-image: url('../assets/dither/dither-38.png');
  mask-image: url('../assets/dither/dither-38.png');
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
}
.m-cell.l3::before {
  -webkit-mask-image: url('../assets/dither/dither-69.png');
  mask-image: url('../assets/dither/dither-69.png');
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
}
.m-cell.full::before {
  -webkit-mask-image: none; mask-image: none;
}
.m-cell.full { color: #101010; }
.month-stats { margin-top: 10px; font-family: var(--font-pixel); font-size: 8px; opacity: .85; }
[data-clear='true'] .m-cell.l1::before, [data-clear='true'] .m-cell.l2::before,
[data-clear='true'] .m-cell.l3::before, [data-clear='true'] .m-cell.full::before {
  -webkit-mask-image: none !important; mask-image: none !important;
}
[data-clear='true'] .m-cell.l1::before { opacity: .3; }
[data-clear='true'] .m-cell.l2::before { opacity: .55; }
[data-clear='true'] .m-cell.l3::before { opacity: .8; }

/* ---------- Abzeichen-Feier (Pixel-Katzen) ---------- */
.celebrate { text-align: center; }
.celebrate-ov { z-index: 70; }
.cel-title { font-family: var(--font-pixel); font-size: 10px; color: var(--accent); margin-bottom: 10px; }
.cel-canvas { width: 192px; height: 192px; image-rendering: pixelated; }
.cel-badge { display: flex; align-items: center; gap: 12px; text-align: left; margin: 12px 0; }
.cel-badge canvas { width: 48px; height: 48px; flex: 0 0 auto; }
.cel-name { font-family: var(--font-pixel); font-size: 10px; margin-bottom: 6px; }
.cel-desc { font-size: 19px; opacity: .85; }
.celebrate .btn { margin-top: 6px; }

/* ---------- Übungs-Editor ---------- */
.ed-list { margin-bottom: 10px; }
.ed-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ed-move { display: flex; flex-direction: column; gap: 2px; }
.ed-name {
  flex: 1 1 130px; min-width: 120px;
  font-family: var(--font-body); font-size: 20px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 6px 8px;
}
.ed-sel {
  font-family: var(--font-body); font-size: 18px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 5px 6px;
}
.ed-add { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 2px dashed var(--ink); padding-top: 10px; }

/* ---------- Verlauf ---------- */
.day { border: 2px solid var(--ink); margin-bottom: 8px; background: var(--card); }
.day-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  width: 100%; background: none; border: none; padding: 8px 10px; text-align: left;
}
.day-date { font-size: 20px; flex: 1 1 auto; }
.day-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 7px; border: 2px solid var(--ink); padding: 3px 5px; }
.tag.ok { background: var(--accent); color: #101010; }
.day-del { font-size: 16px; padding: 2px 4px; }
.day-body { display: none; border-top: 2px dashed var(--ink); padding: 6px 8px; }
.day.open .day-body { display: block; }
.day-line {
  display: flex; justify-content: space-between; gap: 8px; width: 100%;
  background: none; border: none; padding: 6px 4px; font-size: 20px; text-align: left;
  border-bottom: 1px dashed var(--ink);
}
.day-line.done .dl-name { color: var(--accent); }
.dl-sets { font-family: var(--font-pixel); font-size: 8px; align-self: center; }

/* ---------- Abzeichen ---------- */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.badge { position: relative; border: 2px solid var(--ink); padding: 10px; text-align: center; background: var(--card); }
.badge > * { position: relative; }
.badge canvas { width: 48px; height: 48px; margin-bottom: 8px; }
.badge.locked canvas { opacity: .55; }
.badge-name { font-family: var(--font-pixel); font-size: 8px; margin-bottom: 6px; }
.badge-desc { font-size: 17px; opacity: .85; min-height: 44px; }
.badge-date { font-size: 7px; margin-top: 6px; opacity: .7; }
/* errungene Abzeichen: volle Akzent-Füllung wie "volle" Tage im Monat */
.badge.got::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  pointer-events: none;
}
.badge.got .badge-name, .badge.got .badge-desc, .badge.got .badge-date { color: #101010; }
.badge.got .badge-desc { opacity: .85; }
.badge.got .badge-date { opacity: .75; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: transparent;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: var(--ink); opacity: .8;
  -webkit-mask-image: url('../assets/dither/dither-75.png');
  mask-image: url('../assets/dither/dither-75.png');
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
  pointer-events: none;
}
.modal {
  position: relative;
  width: 100%; max-width: 720px;
  max-height: 86vh; overflow-y: auto;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 8px 0 0 var(--ink);
  padding: 16px;
}
.modal-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { font-size: 12px; margin: 0; flex: 1 1 auto; line-height: 1.5; }
.modal-sub { font-size: 18px; opacity: .75; margin-top: 6px; flex: 1 1 auto; }
.modal-head .icon-btn { flex: 0 0 auto; }

.hint { font-size: 18px; opacity: .75; margin: 8px 0; }

.plan-editor { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 2px dashed var(--ink); padding: 8px; margin-bottom: 8px; }
.plan-label, .plan-x { font-family: var(--font-pixel); font-size: 8px; }
.num {
  width: 64px; padding: 6px 8px;
  font-family: var(--font-pixel); font-size: 11px;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
}

.sets-head { font-family: var(--font-pixel); font-size: 9px; margin: 12px 0 6px; }
.set-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.set-nr { font-family: var(--font-pixel); font-size: 8px; width: 52px; }
.set-x { font-size: 18px; opacity: .8; }
.set-field { display: inline-flex; align-items: center; gap: 6px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.step-btn {
  width: 42px; height: 42px; padding: 0; cursor: pointer;
  font-family: var(--font-pixel); font-size: 13px;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.step-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.step-val {
  min-width: 58px; text-align: center; padding: 10px 4px;
  font-family: var(--font-pixel); font-size: 11px;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
}

.records { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.rec-item { border: 2px solid var(--ink); padding: 8px; }
.rec-label { font-family: var(--font-pixel); font-size: 7px; opacity: .75; margin-bottom: 5px; }
.rec-val { font-size: 10px; color: var(--accent); }

/* ---------- Einstellungen ---------- */
.set-label { font-family: var(--font-pixel); font-size: 9px; margin: 16px 0 8px; }
.seg { display: flex; border: 3px solid var(--ink); width: max-content; }
.seg-btn { border: none; background: var(--card); padding: 9px 14px; font-family: var(--font-pixel); font-size: 9px; }
.seg-btn + .seg-btn { border-left: 3px solid var(--ink); }
.seg-btn.active { background: var(--accent); color: #101010; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 34px; height: 34px; border: 3px solid var(--ink); }
.swatch.active { outline: 3px solid var(--ink); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; gap: 10px; font-size: 21px; cursor: pointer; }
.toggle-row input { width: 26px; height: 26px; accent-color: var(--accent); }

/* ---------- Empty State ---------- */
.empty { text-align: center; padding: 18px 0 6px; }
.empty pre { font-family: var(--font-pixel); font-size: 8px; line-height: 1.9; display: inline-block; text-align: left; opacity: .8; }

/* ---------- Landing (Desktop: nur QR-Code) ---------- */
body.landing-mode .app-header, body.landing-mode #view, body.landing-mode #nav,
body.landing-mode #modal-root, body.landing-mode #toast-root { display: none; }
#landing {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.land-card {
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 24px 20px;
  max-width: 360px; width: 100%;
  text-align: center;
}
.land-logo { width: 84px; height: 84px; image-rendering: pixelated; }
.land-title { font-size: 16px; margin: 10px 0 6px; letter-spacing: 1px; }
.land-sub { font-size: 19px; opacity: .85; margin-bottom: 14px; }
.land-qr { width: 232px; height: 232px; background: #fff; padding: 10px; border: 3px solid var(--ink); }
.land-url { font-family: var(--font-pixel); font-size: 9px; margin: 12px 0 4px; color: var(--accent); }
.land-hint { font-size: 16px; opacity: .75; line-height: 1.5; margin-top: 6px; }
.land-hint code { font-family: var(--font-pixel); font-size: 9px; }
#btn-install-desktop { margin-top: 14px; }
.land-inst { margin-top: 10px; width: 100%; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 14px); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 10px 14px;
  font-size: 20px;
  transform: translateY(16px); opacity: 0;
  transition: transform .25s, opacity .25s;
  max-width: min(92vw, 480px);
}
.toast.show { transform: none; opacity: 1; }
.toast-icon { width: 24px; height: 24px; flex: 0 0 auto; }

/* ---------- Bottom-Nav ---------- */
#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--paper);
  border-top: 3px solid var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; padding: 8px 0 7px;
  font-family: var(--font-pixel); font-size: 6px; text-transform: uppercase;
  color: var(--ink); opacity: .75;
  position: relative;
}
.nav-btn canvas { width: 22px; height: 22px; }
.nav-btn.active { opacity: 1; color: var(--accent); }
.nav-btn.active::after {
  content: ''; position: absolute; top: -3px; left: 20%; right: 20%; height: 3px;
  background: var(--accent);
}

@media (min-width: 720px) {
  .modal-overlay { align-items: center; }
  .modal { border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); margin-bottom: 5vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
