/* ===== Grund ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-tint: #eef0fe;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-tint: #e8f8ee;
  --red: #dc2626;
  --red-tint: #fdecec;
  --amber: #d97706;
  --amber-strong: #b45309;
  --amber-tint: #fff7e0;
  --rose: #be185d;
  --rose-tint: #fdeaf3;
  --teal: #0d9488;
  --blue: #2563eb;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #faf1d4;
  --grid-line: rgba(202, 109, 16, 0.10);
  --card: #ffffff;
  --line: #e6e8f2;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(31, 41, 90, 0.07);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  /* gulaktig botten med rutmönster, à la Kexchoklad */
  background:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 26px),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  touch-action: manipulation;
  position: relative;
}

button {
  font-family: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.18rem; margin: 0 0 6px; font-weight: 800; }
h3 { font-size: 1.05rem; margin: 0 0 6px; font-weight: 800; }

.muted { color: var(--muted); font-size: 0.95rem; margin-top: 0; }
.center { text-align: center; }

/* ===== Header ===== */
.app-header {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  text-align: center;
  padding: 20px 16px 16px;
}
.app-header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
}
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 10px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  border-radius: 12px;
  cursor: pointer;
}
.home-btn:active { transform: scale(0.98); }
.home-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.logo {
  display: inline-flex;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}
.logo svg { display: block; width: 100%; height: 100%; }
.tagline { margin: 4px 0 0; opacity: 0.92; font-size: 0.95rem; }

/* ===== Flikar / navigering ===== */
.tabs {
  display: flex;
  width: calc(100% - 28px);
  max-width: 640px;
  margin: 12px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 4px;
  border: none;
  background: none;
  font-size: 0.82rem;
  color: var(--muted);
}
.tab-btn::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--tab-color, var(--muted));
  opacity: 0.45;
}
.tab-btn[data-tab="trana"]  { --tab-color: var(--primary); --tab-tint: var(--primary-tint); }
.tab-btn[data-tab="tabell"] { --tab-color: var(--green-dark); --tab-tint: var(--green-tint); }
.tab-btn[data-tab="tips"]   { --tab-color: var(--amber-strong); --tab-tint: var(--amber-tint); }
.tab-btn[data-tab="stats"]  { --tab-color: var(--rose); --tab-tint: var(--rose-tint); }
.tab-btn.active {
  color: var(--tab-color);
  font-weight: 900;
  background: var(--tab-tint);
}
.tab-btn.active::before { opacity: 1; }

/* ===== Layout ===== */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}
.view { display: none; }
.view.active { display: block; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 14px;
}

/* ===== Knappar ===== */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 12px 22px;
  box-shadow: 0 3px 8px rgba(31, 41, 90, 0.18);
  transition: transform 0.08s ease;
}
.btn:active { transform: scale(0.97); }
.btn.big { width: 100%; font-size: 1.15rem; padding: 15px 22px; margin-top: 14px; }
.btn.small { font-size: 0.9rem; padding: 9px 16px; }
.btn.secondary {
  background: var(--primary-tint);
  color: var(--primary);
  box-shadow: none;
}
.btn.memo { background: var(--amber-strong); }
.btn.gaps { background: var(--rose); }
.btn.ghost {
  background: none;
  color: var(--muted);
  box-shadow: none;
  border: 2px solid var(--line);
}
.btn.danger-ghost {
  background: none;
  color: var(--red);
  box-shadow: none;
  border: 2px solid #f5c6c6;
  font-size: 0.88rem;
  padding: 9px 16px;
}
.linkish {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.88rem;
  padding: 6px 0;
  text-decoration: underline;
}

.quick-row { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-row .btn { flex: 1 1 45%; }

/* ===== Setup ===== */
.table-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0 4px;
}
.chip {
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 10px 0;
  color: var(--muted);
}
.chip.on {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary);
}
.setup-sub { margin-top: 18px; }
.segmented { display: flex; gap: 8px; }
.segmented button {
  flex: 1;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  font-size: 1rem;
  padding: 9px 0;
  color: var(--muted);
}
.segmented button.on {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 900;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  font-size: 0.95rem;
  cursor: pointer;
}
.check-row input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }

/* ===== Quiz ===== */
.q-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.q-top .quit {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 4px 6px;
  text-decoration: underline;
}
.streak {
  background: var(--amber-tint);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 800;
  color: var(--amber-strong);
}
.progress-bar {
  height: 7px;
  background: #e4e6f1;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress-fill.green { background: var(--green); }
.round-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 10px 0 4px;
}
.q-card { text-align: center; padding-top: 24px; }
.q-display {
  font-size: clamp(2.8rem, 14vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 2px;
}
.answer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
}
.eq { font-size: 2.2rem; font-weight: 900; color: var(--muted); }
#q-input {
  width: 130px;
  font-family: inherit;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  padding: 8px 6px;
  border: 3px solid #c7cbe8;
  border-radius: 16px;
  color: var(--text);
  background: #fafbff;
}
#q-input:focus { outline: none; border-color: var(--primary); }
.q-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.feedback { min-height: 120px; margin-top: 16px; }
.fb { font-size: 1.2rem; font-weight: 800; }
.fb.ok { color: var(--green-dark); }
.fb.bad { color: var(--red); }
.fb.hint { color: var(--amber-strong); }

/* Prickmodellen: talet som rutnät av prickar, färgdelat vid femman */
.dots-wrap { margin: 12px auto 4px; text-align: center; }
.dots-grid { display: inline-grid; gap: 3px; }
.dot-cell {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary);
}
.dot-cell.over5 { background: #f59e0b; }
.dots-text { font-size: 0.92rem; margin: 8px 0 10px; }
.tip-box {
  background: var(--amber-tint);
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.45;
}
.tip-box strong {
  display: inline-block;
  margin-bottom: 2px;
  color: var(--amber-strong);
}

/* ===== Resultat ===== */
.ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, var(--green)) calc(var(--pct, 0) * 1%), #e4e6f1 0);
  display: grid;
  place-items: center;
  margin: 4px auto 10px;
  animation: pop 0.45s ease;
}
.ring-inner {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
}
.ring-big { font-size: 1.45rem; font-weight: 900; line-height: 1.1; }
.ring-small { font-size: 0.78rem; color: var(--muted); }
@keyframes pop {
  0% { transform: scale(0.2); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.result-stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pill {
  background: var(--primary-tint);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.88rem;
  font-weight: 800;
}
.work-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.work-row:last-child { border-bottom: none; }
.work-fact { font-weight: 900; font-size: 1.05rem; }
.work-tip { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.result-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.chip-tag {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: 2px;
}
.chip-bad { background: var(--red-tint); color: var(--red); }
.chip-slow { background: var(--amber-tint); color: var(--amber-strong); }
.chip-hint { background: var(--primary-tint); color: var(--primary-dark); }

/* ===== Rutnätet ===== */
.grid-wrap { overflow-x: auto; margin: 12px -2px 0; padding: 2px; }
.mul-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
  min-width: 330px;
}
.cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: clamp(0.55rem, 2.3vw, 0.8rem);
  font-weight: 700;
  color: #555;
  padding: 0;
  user-select: none;
}
.cell.head {
  background: var(--primary-tint);
  border-color: var(--primary-tint);
  color: var(--primary);
  font-weight: 900;
  font-size: clamp(0.7rem, 2.6vw, 0.95rem);
}
.cell.corner { pointer-events: none; }
.cell.mirror {
  background: #f4f5fa;
  border-color: #eef0f6;
  color: #c6c9d6;
  pointer-events: none;
}
.cell.known {
  background: var(--green-tint);
  border-color: #cdeada;
  color: #8fbda4;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* ---- Valfritt "fancy" utseende på Tabellen: 3D-svävande rutor + regnbågsfärger.
   Avstängt som standard. Slå på genom att sätta FANCY_TABLE = true i app.js
   (det lägger klassen .tbl-fancy på <body>). Sparat ifall vi vill återgå hit. ---- */
body.tbl-fancy #view-tabell .grid-wrap { padding: 10px 6px 18px; }
body.tbl-fancy #mul-grid .cell:not(.head):not(.mirror) {
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}
body.tbl-fancy #mul-grid .cell:not(.head):not(.mirror):not(.known) {
  background-color: var(--c, #ffffff);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  border-color: rgba(0, 0, 0, 0.06);
  color: #2b2f3f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(31, 41, 90, 0.2);
}
body.tbl-fancy #mul-grid .cell.known {
  background: #e6e8f1;
  border-color: #dfe2ee;
  color: #aab0c2;
  text-decoration: none;
  transform: translateY(2px) scale(0.9);
  box-shadow: inset 0 1px 3px rgba(31, 41, 90, 0.16);
}
@media (hover: hover) {
  body.tbl-fancy #mul-grid .cell:not(.head):not(.mirror):not(.known):hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 13px rgba(31, 41, 90, 0.24);
  }
}
.cell.heat-none { background: #f3f4f8; color: #b6b9c9; }
.cell.heat-good { background: #c9f1d8; border-color: #b1e8c6; color: #14532d; }
.cell.heat-mid { background: #fdeab9; border-color: #f6dd9b; color: #713f12; }
.cell.heat-bad { background: #fbd2d2; border-color: #f5baba; color: #7f1d1d; }
.grid-progress { margin-top: 14px; }
.grid-progress p { margin: 8px 0 0; font-size: 0.92rem; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
  align-items: center;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  flex-shrink: 0;
}
.dot.l-good { background: #4ade80; }
.dot.l-mid { background: #fbbf24; }
.dot.l-bad { background: #f87171; }
.dot.l-none { background: #d3d6e3; }
.note-card { font-size: 0.95rem; border-left: 4px solid var(--green); }

/* ===== Knepen ===== */
.hero-card { background: linear-gradient(135deg, #eef0fe, #f6efff); }
.shrink-steps {
  margin: 10px 0 0;
  padding-left: 8px;
  font-size: 0.95rem;
  list-style: none;
}
.shrink-steps li {
  margin-bottom: 7px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.shrink-steps .dot { width: 11px; height: 11px; align-self: center; }
.d-flip { background: var(--primary); }
.d-free { background: var(--green); }
.d-trick { background: var(--blue); }
.d-double { background: var(--teal); }
.d-memo { background: #f59e0b; }

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 5px;
  border-radius: 9px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  margin-right: 7px;
  vertical-align: -7px;
  line-height: 1;
}
.b-flip { background: var(--primary); }
.b-free { background: var(--green); }
.b-trick { background: var(--blue); }
.b-double { background: var(--teal); }
.b-memo { background: var(--amber); }

.tip-card .ex {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary-dark);
  border-radius: 10px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 0.95rem;
}
.tip-card p { margin: 6px 0 10px; }
.film-btn { margin-left: 8px; margin-top: 6px; text-decoration: none; }

/* Inbäddad film med klicka-för-att-ladda-fasad */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #14162b;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 4px;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, #1d2040, #14162b);
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.play-circle::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}
.film-facade:hover .play-circle { transform: scale(1.08); }
.star-card { border: 2px solid #fcd34d; }
.mnemo {
  background: var(--amber-tint);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
}
.mnemo-fact { font-weight: 900; font-size: 1.1rem; margin-bottom: 2px; }
.mnemo-sep { font-weight: 400; opacity: 0.4; }
.mnemo-img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 10px auto;
  border-radius: 12px;
  border: 3px solid #fff;
}
.mnemo p { margin: 0; font-size: 0.93rem; }
.star-card .btn { width: 100%; margin-top: 8px; }

/* Animerade rutnät som visar hur tabellen krymper */
.trick-anim { margin: 14px 0 4px; }
.trick-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
}
.tcell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--primary);
  transition: opacity 0.55s ease, transform 0.55s ease, background-color 0.55s ease;
}
.tcell.remain { background: var(--primary); }
.tcell.gone { background: #d9dcea; opacity: 0.35; transform: scale(0.5); }
.tcell.leaving { background: #f59e0b; }
.trick-anim.play .tcell.leaving { background: #d9dcea; opacity: 0.35; transform: scale(0.5); }
.tcell.six { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3); }
.trick-anim.play .tcell.six { animation: sixpop 0.45s ease backwards; }
@keyframes sixpop { from { transform: scale(0); } to { transform: scale(1); } }
.trick-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 0;
}

/* ===== Statistik ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tile {
  background: var(--primary-tint);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
}
.tile .val { font-size: 1.15rem; font-weight: 900; color: var(--primary-dark); }
.tile .lbl { font-size: 0.72rem; color: var(--muted); }
.weak-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.weak-row:last-of-type { border-bottom: none; }
.weak-fact { font-weight: 900; font-size: 1.05rem; }
.weak-badges { text-align: right; }
.reset-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Footer & toast ===== */
.app-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0 16px 30px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Kontakt ===== */
.contact-photo {
  display: block;
  width: 250px;
  max-width: 72%;
  height: auto;
  margin: 4px auto -40px;
  position: relative;
  z-index: 1;                 /* bakom kortet */
  pointer-events: none;
  transform: translateY(32px); /* gömd lite bakom kortet från start ... */
  transition: transform 0.7s cubic-bezier(0.18, 0.9, 0.3, 1.12);
  filter: drop-shadow(0 4px 7px rgba(31, 41, 90, 0.16));
}
.contact.in-view .contact-photo { transform: translateY(0); } /* ... kikar upp när man skrollar dit */
.contact .card { position: relative; z-index: 2; } /* kortet framför */
@media (prefers-reduced-motion: reduce) {
  .contact-photo { transform: none; }
}
.contact a { color: var(--primary); font-weight: 800; word-break: break-word; }
.field { display: block; margin: 12px 0; }
.field span { display: block; font-size: 0.9rem; font-weight: 800; margin-bottom: 5px; }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 11px 13px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fafbff;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--primary); }
.contact-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.contact-note a { color: var(--primary); font-weight: 800; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ===== Handklotter i marginalen (skrivblockskänsla) ===== */
.doodle {
  position: absolute;
  display: none;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(53, 58, 110, 0.42);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.doodle .heart { color: rgba(214, 64, 74, 0.5); }
.doodle-1 { top: 168px; left: 32px; transform: rotate(-9deg); }
.doodle-2 { bottom: 90px; right: 32px; transform: rotate(7deg); }
/* Klottret är tillfälligt dolt. Avkommentera blocket nedan för att visa det igen:
@media (min-width: 1100px) {
  .doodle { display: block; }
}
*/

/* ===== Större skärmar ===== */
@media (min-width: 720px) {
  .app-header h1 { font-size: 1.7rem; }
  .tab-btn { gap: 8px; padding: 13px 8px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
