/* LettuceMeat — palette sampled from the Four-Byte Burger */
:root {
  --blue: #002ee5;
  --blue-deep: #0022ad;
  --blue-ink: #001a85;
  --bun: #ff9900;
  --bun-light: #ffcc4d;
  --bun-dark: #c46a00;
  --bun-ink: #4a2100;
  --bun-text: var(--blue);
  --patty: #8f4c26;
  --cheese: #ffc20e;
  --lettuce: #33cc33;
  --tomato: #d81e05;
  --onion: #ddffee;
    --ink: #1b1f3a;
  --muted: #666c8a;
  --line: #e3e6f2;
  --card: #ffffff;
  --slot-h: 24px;
  --slot-gap: 3px;
  --bun-top-h: 48px;
  --bun-bottom-h: 36px;
  --bun-overhang: 6px;
}

* { box-sizing: border-box; }

html { background: var(--blue); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--blue);
}

h1, h2, h3, p { margin: 0; }

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand img { image-rendering: pixelated; display: block; }
.brand b { color: var(--bun-light); font-weight: 800; }

/* ---------- buttons & inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.12s, background-color 0.12s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible, .day:focus-visible, .slot:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--bun-light);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--bun);
  color: var(--bun-ink);
  box-shadow: inset 0 -3px 0 var(--bun-dark);
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }

.btn.lettuce {
  background: var(--lettuce);
  color: #05300a;
  box-shadow: inset 0 -3px 0 #119911;
}
.btn.lettuce:hover:not(:disabled) { filter: brightness(1.08); }

.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn.plain { background: #eef0f8; color: var(--ink); }
.btn.plain:hover { background: #e2e5f2; }

.btn.wide { width: 100%; padding: 13px 18px; font-size: 17px; }

input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input[type="text"]:focus { border-color: var(--blue); outline: none; }

label, .label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.error { color: var(--tomato); font-weight: 600; font-size: 14px; min-height: 20px; }

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 10, 60, 0.35);
}

/* ---------- home ---------- */

.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 56px;
}

.hero { color: #fff; text-align: center; }
.hero img {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: 0 auto -8px;
  image-rendering: pixelated;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--bun-light); }
.hero p { margin-top: 12px; font-size: 18px; color: rgba(255, 255, 255, 0.85); }

.create { display: grid; gap: 20px; }
.create h2 { font-size: 22px; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: 17px; }
.cal-nav {
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: #eef0f8; color: var(--ink);
  font: inherit; font-size: 18px; font-weight: 700;
  cursor: pointer;
}
.cal-nav:hover:not(:disabled) { background: #e2e5f2; }
.cal-nav:disabled { opacity: 0.35; cursor: default; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  touch-action: pan-y; /* drag sideways to paint days, up/down still scrolls */
  user-select: none;
}
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.day {
  aspect-ratio: 1;
  max-height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  justify-self: center;
  width: 100%;
  max-width: 46px;
}
.day:hover:not(:disabled):not(.picked) { background: #eef0f8; }
.day.today { box-shadow: inset 0 0 0 2px var(--blue); }
/* a picked day is a tiny pixel-art burger (sprite drawn in app.js); the date sits on the top bun */
.day.picked {
  padding: 0 0 13px;
  border-radius: 0;
  background: var(--img-day) center / contain no-repeat;
  image-rendering: pixelated;
  color: var(--bun-text);
  font-weight: 800;
  box-shadow: none;
}
.day:disabled { color: #c3c7d9; cursor: default; }

/* time range burger */
.range { display: grid; gap: 3px; width: min(100%, 291px); margin: 0 auto; }
.range-bun {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 22px;
  color: var(--bun-text);
  font-weight: 700;
  font-size: 14px;
  background: center / 100% 100% no-repeat;
  image-rendering: pixelated;
}
.range-bun label { margin: 0; color: inherit; text-transform: none; letter-spacing: 0; font-size: 14px; }
.range-bun.top { height: 54px; padding: 16px 32px 0; gap: 6px; margin: 0; max-width: none; }
.range-bun.top label { font-size: 13px; white-space: nowrap; }
.range-bun.bottom { height: 42px; padding-top: 4px; }
.range-bun select {
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--bun-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mini-stack { display: grid; gap: 2px; width: 270px; max-width: 100%; margin: 0 auto; }
.mini { background: center / 100% 100% no-repeat; image-rendering: pixelated; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; }
.range-note { text-align: center; font-size: 13px; margin-top: 6px; min-height: 0; }
.range-note:empty { display: none; }

/* ---------- event page ---------- */

.event { max-width: 1120px; margin: 0 auto; padding: 8px 24px 56px; }

.event-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: #fff;
}
.event-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.event-head p { margin-top: 6px; color: rgba(255, 255, 255, 0.8); }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.event-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }

.grid-panel {
  background: var(--blue-deep);
  border-radius: 14px;
  padding: 22px 18px 22px 8px;
  overflow-x: auto;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.burgers { display: flex; gap: 22px; min-width: min-content; user-select: none; }
/* painting needs the touch; the buns, time labels and gaps still scroll the page */
.burgers.editing .slot { touch-action: none; }

.times, .burger { display: flex; flex-direction: column; gap: var(--slot-gap); }
.times { flex: none; width: 58px; }
.burger { flex: 1 1 78px; min-width: 70px; max-width: 132px; }

.times .spacer-top { height: var(--bun-top-h); }
.time { position: relative; height: var(--slot-h); }
.time span {
  position: absolute;
  right: 8px;
  top: -8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* buns: the day labels. Pixel-art sprites are drawn in app.js and passed in as --img-* variables. */
.bun {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-inline: calc(var(--bun-overhang) * -1);
  color: var(--bun-text);
  font-weight: 800;
  line-height: 1.1;
  background: center / 100% 100% no-repeat;
  image-rendering: pixelated;
}
.bun.top { height: var(--bun-top-h); padding-top: 12px; background-image: var(--img-bun-top); }
.bun.top .dow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.bun.top .date { font-size: 15px; }
.bun.bottom { height: var(--bun-bottom-h); padding-top: 4px; background-image: var(--img-bun-bottom); font-size: 12px; }

/* slots: one ingredient per 30 minutes. The sprite doubles as a mask so empty slots keep their shape. */
.slot {
  position: relative;
  display: block;
  width: 100%;
  height: var(--slot-h);
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  -webkit-mask: var(--img) center / 100% 100% no-repeat;
  mask: var(--img) center / 100% 100% no-repeat;
  image-rendering: pixelated;
  cursor: default;
}
/* The ingredient itself, revealed left to right like a progress bar: --fill is the share of people who are free. */
.slot .fill {
  position: absolute;
  inset: 0;
  background: var(--img) center / 100% 100% no-repeat;
  image-rendering: pixelated;
  clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0);
  pointer-events: none;
}
.editing .slot { cursor: pointer; }
.editing .slot:not(.on):hover { background: rgba(255, 255, 255, 0.32); }
.editing .slot.on:hover { filter: brightness(1.15); }
.slot.hovered { background: rgba(255, 255, 255, 0.32); }
.slot.hovered .fill { filter: brightness(1.15); }

.patty { --img: var(--img-patty); }
.cheese { --img: var(--img-cheese); }
.lettuce { --img: var(--img-lettuce); }
.tomato { --img: var(--img-tomato); }
.onion { --img: var(--img-onion); }

/* side panel */
.side { display: grid; gap: 14px; }
.side h3 { font-size: 17px; }
.side .when { font-weight: 700; }
.side .hint { color: var(--muted); font-size: 14px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.people li { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.people li::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lettuce);
}
.people li.out { color: #a3a8c0; text-decoration: line-through; }
.people li.out::before { background: #d5d8e6; }
.people li.me { font-weight: 700; }



.loading, .notfound { color: #fff; text-align: center; padding: 80px 24px; font-size: 18px; }
.notfound h1 { font-size: 34px; margin-bottom: 8px; }
.notfound .btn { margin-top: 20px; }

/* dialog */
dialog {
  width: min(420px, calc(100vw - 32px));
  border: 0;
  border-radius: 14px;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 10, 60, 0.5);
}
dialog::backdrop { background: rgba(0, 20, 110, 0.65); }
dialog h2 { font-size: 22px; margin-bottom: 6px; }
dialog p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .home { grid-template-columns: 1fr; gap: 20px; }
  .hero img { width: min(60%, 260px); }
  .event-body { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .top { padding: 12px 16px; }
  .brand { font-size: 22px; }
  .home, .event { padding-inline: 14px; }
  .card { padding: 18px; }
}

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

/* ---------- Kenney "UI Pack - Pixel Adventure" skin (CC0, see ui/License.txt) ----------
   Panels and buttons are 32px tiles from the pack, 9-sliced with border-image. Each tile has a 5-6px frame,
   so a slice of 6 keeps the corners crisp; panels draw at 3x and buttons at 2x. */

.card, dialog {
  border: 18px solid transparent;
  border-image: url(/ui/panel.png) 6 fill / 18px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 10px 12px;
  image-rendering: pixelated;
}
dialog { width: min(440px, calc(100vw - 32px)); }

.grid-panel {
  border: 18px solid transparent;
  border-image: url(/ui/frame.png) 6 / 18px;
  border-radius: 0;
  background: var(--blue-deep) padding-box;
  box-shadow: none;
  padding: 10px 8px 10px 0;
  image-rendering: pixelated;
}

.btn {
  border: 12px solid transparent;
  border-radius: 0;
  padding: 0 8px;
  min-height: 46px;
  background: none;
  image-rendering: pixelated;
}
.btn.primary, .btn.lettuce, .btn.ghost, .btn.plain { background: none; box-shadow: none; }
.btn.primary { border-image: url(/ui/btn-brown.png) 6 fill / 12px; color: #fff1d2; }
.btn.lettuce { border-image: url(/ui/btn-green.png) 6 fill / 12px; color: #053d0b; }
.btn.ghost, .btn.plain { border-image: url(/ui/btn-slate.png) 6 fill / 12px; color: #26303a; }
.btn.ghost:hover, .btn.plain:hover { background: none; filter: brightness(1.08); }
.btn.wide { padding: 2px 8px; }

/* small things that sat on white and now sit on the pack's cream */
input[type="text"] { border: 3px solid #a3703a; border-radius: 0; }
input[type="text"]:focus { border-color: var(--blue); }
.cal-nav { border-radius: 0; background: #c58747; color: #fff1d2; box-shadow: 0 0 0 3px #6d4b27; }
.cal-nav:hover:not(:disabled) { background: #d39a5c; }
.day:hover:not(:disabled):not(.picked) { background: rgba(163, 112, 58, 0.22); }
.day:disabled { color: #cdbd9c; }
.people li.out { color: #b3a384; }
.people li.out::before { background: #d9cba9; }

/* bun labels stay on one line even when a week of burgers squeezes the columns */
.bun { white-space: nowrap; text-align: center; }
.bun.top .date { font-size: 14px; }

/* ---------- phones ---------- */

@media (max-width: 880px) {
  .hero img { width: min(42%, 190px); }
  .hero p { font-size: 16px; }
  .home { align-items: start; padding-bottom: 32px; }

  /* tighter burgers so three days fit without sideways scrolling */
  .burgers { gap: 16px; }
  .times { width: 46px; }
  .time span { font-size: 11px; right: 6px; }
  .burger { flex-basis: 56px; min-width: 56px; }
  .bun.top .date { font-size: 13px; }
  .bun.bottom { font-size: 11px; }
  .grid-panel { padding: 8px 6px 8px 0; -webkit-overflow-scrolling: touch; }

  .event-head { align-items: stretch; }
  .event-actions { width: 100%; }
  .event-actions .btn { flex: 1; }

  /* while painting, Cancel / Continue stay reachable at the bottom of the screen */
  .event-actions.editing {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 5;
    width: auto;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--blue);
    box-shadow: 0 -4px 0 var(--blue-ink);
  }
  .event:has(.event-actions.editing) { padding-bottom: 96px; }

  /* who's free in the tapped layer, floating over the bottom of the screen */
  .side.floating {
    position: fixed;
    left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 5;
    max-height: 45vh;
    overflow-y: auto;
    filter: drop-shadow(0 6px 0 rgba(0, 10, 60, 0.45));
  }
  .side.floating .people { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .card, dialog { border-width: 15px; border-image-width: 15px; padding: 8px; }
  .day { font-size: 15px; }
  .btn { padding: 0 4px; }
  input[type="text"] { font-size: 16px; } /* below 16px iOS zooms the page on focus */
}

/* ---------- "use this button" nudge ---------- */
/* Clicking a layer before hitting Add availability wiggles the button (or a floating copy if it's off screen). */

@keyframes nudge {
  0%   { transform: scale(1) rotate(0); outline-color: var(--bun-light); }
  12%  { transform: scale(1.14) rotate(-4deg); }
  28%  { transform: scale(1.14) rotate(4deg); }
  44%  { transform: scale(1.12) rotate(-3deg); }
  60%  { transform: scale(1.1) rotate(2deg); }
  80%  { transform: scale(1.04) rotate(0); outline-color: var(--bun-light); }
  100% { transform: scale(1) rotate(0); outline-color: transparent; }
}
@keyframes nudge-drop {
  from { translate: -50% -80px; }
  to   { translate: -50% 0; }
}
.btn.nudge {
  position: relative;
  z-index: 6;
  outline: 4px solid transparent;
  outline-offset: 3px;
  animation: nudge 0.9s ease-in-out;
}
.btn.nudge-float {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  filter: drop-shadow(0 6px 0 rgba(0, 10, 60, 0.45));
  animation: nudge-drop 0.22s ease-out, nudge 0.9s ease-in-out 0.22s;
}
@media (prefers-reduced-motion: reduce) {
  /* no wiggle: just flash the ring */
  @keyframes nudge { 0%, 80% { outline-color: var(--bun-light); } 100% { outline-color: transparent; } }
  @keyframes nudge-drop { from { translate: -50% 0; } to { translate: -50% 0; } }
}

/* ---------- bun lettering ---------- */
/* Game-style caption text: cream letters with a hard dark-brown outline stay readable on the dithered buns,
   where flat blue or brown text got lost in the texture. */
.bun, .range-bun label {
  color: #fff6dc;
  text-shadow:
    1px 0 #4a2100, -1px 0 #4a2100, 0 1px #4a2100, 0 -1px #4a2100,
    1px 1px #4a2100, -1px -1px #4a2100, 1px -1px #4a2100, -1px 1px #4a2100,
    0 2px #4a2100;
  letter-spacing: 0.03em;
}
.bun.top .dow { font-size: 11px; letter-spacing: 0.1em; }
.bun.top .date { font-size: 15px; }
.bun.bottom { font-size: 12px; }
.range-bun label, .range-bun.top label { font-size: 14px; font-weight: 800; }
.range-bun select { color: var(--blue); }
@media (max-width: 880px) {
  .bun.top .date { font-size: 14px; }
}

/* ---------- pixel font ---------- */
/* Curie (SIL Open Font License, see fonts/curie-LICENSE.txt) for all text: the slightly larger sibling of
   Scientifica, with 5px-wide letters. It only ships as a bitmap font, so fonts/curie*.ttf are built from its
   BDF sources by tools/bdf2ttf.py. It is drawn at 12px, so every size is a multiple of 12 (12 / 24 / 36 / 48)
   to keep the pixels square. */
@font-face {
  font-family: "Curie";
  src: url(/fonts/curie.ttf?v=2) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Curie";
  src: url(/fonts/curieBold.ttf?v=2) format("truetype");
  font-weight: 700;
  font-display: swap;
}
body, .bun, .range-bun label, .range-bun select, .btn, input[type="text"], select, button {
  font-family: "Curie", ui-monospace, monospace;
  letter-spacing: 0;
  -webkit-font-smoothing: none;
  font-smooth: never;
}
body { font-size: 24px; line-height: 1.2; }
h1, h2, h3, strong, b, .brand, .brand b { font-weight: 700; }

.brand { font-size: 36px; }
.hero h1, .event-head h1 { font-size: 48px; font-weight: 700; letter-spacing: 0; }
.hero p, .create h2, .side h3, .side .hint, dialog h2, dialog p, .error, .range-note,
.cal-head strong, .cal-nav, .day, .people li, .loading, input[type="text"] { font-size: 24px; }
.notfound h1 { font-size: 36px; }
label, .label { font-size: 12px; letter-spacing: 0.05em; }
.cal-dow, .time span { font-size: 24px; font-weight: 400; }
.time span { top: -12px; right: 6px; }
.times { width: 68px; }
.day, .day.picked, .people li.me { font-weight: 700; }
.event-body { grid-template-columns: minmax(0, 1fr) 340px; }

/* bun labels: weekday over date, packed tight to fit under the dome */
.bun, .range-bun label { font-weight: 700; letter-spacing: 0; }
.bun.top { padding-top: 10px; line-height: 20px; }
.bun.top .dow, .bun.top .date { font-size: 24px; letter-spacing: 0; }

/* the time-range burger is sized so both labels fit beside their pickers on one line */
.range { width: min(100%, 330px); }
.mini-stack { width: 306px; }
.range-bun.top, .range-bun.bottom { padding-left: 22px; padding-right: 22px; gap: 4px; }
.range-bun label, .range-bun.top label { font-size: 24px; font-weight: 700; white-space: nowrap; }
.range-bun select { font-size: 24px; font-weight: 700; height: 32px; padding: 0 2px 0 6px; line-height: 1; }

.btn { font-size: 24px; font-weight: 700; white-space: nowrap; }
.btn.wide { font-size: 36px; }

@media (max-width: 880px) {
  .event-body { grid-template-columns: 1fr; }
  .event-actions .btn { flex: 1 1 auto; }
  .hero p { font-size: 24px; }
  .time span { font-size: 24px; right: 4px; }
  .times { width: 62px; }
  .burger { flex-basis: 64px; min-width: 64px; }
  .bun.top .dow, .bun.top .date { font-size: 24px; }
}
@media (max-width: 480px) {
  .brand { font-size: 24px; }
  .hero h1, .event-head h1 { font-size: 36px; }
  .day, input[type="text"] { font-size: 24px; }
  /* let the range burger use the card's padding so the labels still fit on one line */
  .range { width: calc(100% + 12px); margin-inline: -6px; }
  .range-bun.top, .range-bun.bottom { padding-left: 16px; padding-right: 16px; }
}

/* Curie's bold letters fill their whole cell (a bold W touches the next letter), so bold text gets one
   font-pixel of tracking: 1em/12 is exactly one pixel at every size used here. */
h1, h2, h3, strong, b, .brand, .btn, .bun, .day, .people li.me { letter-spacing: calc(1em / 12); }
.bun.top .dow, .bun.top .date { letter-spacing: calc(1em / 12); }
/* the range labels stay regular weight so both fit beside their pickers */
.range-bun label, .range-bun.top label, .range-bun select { font-weight: 400; letter-spacing: 0; }

/* day columns shrink to share the panel; only truly crowded weeks scroll sideways */
.burgers { min-width: 0; }
@media (max-width: 880px) {
  .burgers { gap: 14px; }
  .burger { flex-basis: 70px; min-width: 70px; }
}

/* ---------- one pixel size everywhere ---------- */
/* Sprites, tiles and text all use 2px art pixels: sprites are drawn at 2px (PX in app.js), Curie at 24px
   has 2px pixels, and the 32px UI tiles are drawn at 2x (their 6px frame becomes 12px). */
.card, dialog { border-width: 12px; border-image-width: 12px; padding: 14px 16px; }
.grid-panel { border-width: 12px; border-image-width: 12px; padding: 14px 10px 14px 4px; }
.cal-nav { box-shadow: 0 0 0 2px #6d4b27; }
input[type="text"] { border-width: 2px; }
.create > * { min-width: 0; }

@media (max-width: 880px) {
  .bun.top .date { letter-spacing: 0; } /* keeps "Nov 25" inside the narrower phone buns */
  .grid-panel { padding: 10px 6px 10px 0; }
}
@media (max-width: 480px) {
  .card, dialog { border-width: 12px; border-image-width: 12px; padding: 10px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 auto; }
}

/* 60s-diner bun lettering: ketchup-red letters with a white border one art pixel (2px) thick */
.bun, .range-bun label {
  color: #d81e05;
  text-shadow:
    2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
    2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff;
}
/* nudge the top-bun lettering down one art pixel */
.bun.top .dow, .bun.top .date { position: relative; top: 2px; }
