/* Dog Bar Jim — local draft. Dense neon / PS1 / zine / Maine grit. */
:root {
  --bg: #0c0a12;
  --bg-2: #16121c;
  --ink: #f3ead8;
  --ink-dim: #c9c0a8;
  --paper: #efe4c6;
  --paper-ink: #1a120c;
  --magenta: #ff2bd6;
  --cyan: #2af0ff;
  --lime: #c8ff2a;
  --amber: #ffb000;
  --rust: #c45c1a;
  --rust-deep: #8a3d10;
  --granite: #2a2e38;
  --line: #3a3344;
  --font-ui: "Press Start 2P", ui-monospace, monospace;
  --font-term: "VT323", ui-monospace, monospace;
  --font-poster: Anton, Impact, "Arial Black", sans-serif;
  --font-zine: "Special Elite", "Courier New", Courier, monospace;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 5.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.18) 3px),
    radial-gradient(1200px 600px at 10% -10%, #3a1540 0%, transparent 50%),
    radial-gradient(900px 500px at 110% 10%, #0a3a44 0%, transparent 45%),
    var(--bg);
  min-height: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
a:hover { color: var(--lime); }
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: .5rem;
  top: -4rem;
  background: var(--lime);
  color: #111;
  padding: .5rem 1rem;
  z-index: 1000;
  font-weight: 600;
}
.skip:focus { top: .5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .45rem .8rem;
  background: rgba(8, 6, 12, .92);
  border-bottom: 3px solid var(--magenta);
  box-shadow: 0 0 24px rgba(255, 43, 214, .25);
  backdrop-filter: blur(8px);
}
.brand {
  display: block;
  flex: 0 0 auto;
  background: var(--paper);
  padding: .2rem .35rem .15rem;
  transform: rotate(0);
  box-shadow: 3px 3px 0 #000;
  border: 2px solid #111;
}
.brand img { width: 5.4rem; height: auto; }
.nav-toggle {
  margin-left: auto;
  width: 2.8rem;
  height: 2.8rem;
  border: 2px solid var(--ink);
  background: #111;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .28rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--lime);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  align-items: center;
  justify-content: flex-end;
}
.site-nav[hidden] { display: none; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-term);
  font-size: 1.25rem;
  letter-spacing: .04em;
}
.site-nav a:hover { color: var(--magenta); }
.header-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-left: auto;
  justify-content: flex-end;
}
.header-ctas .btn-gifts[aria-current="page"] { outline: 2px solid var(--amber); }

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-family: var(--font-ui);
  font-size: .55rem;
  line-height: 1.35;
  letter-spacing: .02em;
  padding: .55rem .7rem;
  border: 3px solid;
  text-align: center;
  box-shadow: 3px 3px 0 #000;
}
.btn-gifts {
  background: var(--magenta);
  color: #1a0014 !important;
  border-color: #ffd1f5;
  text-shadow: none;
}
.btn-gifts:hover { background: #ff6ae3; color: #1a0014 !important; }
.btn-dash {
  background: #062226;
  color: var(--cyan) !important;
  border-color: var(--cyan);
}
.btn-dash:hover { background: var(--cyan); color: #062226 !important; }
.btn-lg { font-size: .7rem; padding: .85rem 1.1rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[hidden] {
    display: flex;
    position: static;
    flex: 1;
  }
  .header-ctas { margin-left: 0; }
  .brand img { width: 6.2rem; }
}

@media (max-width: 899px) {
  .site-header { flex-wrap: wrap; }
  .header-ctas { order: 3; flex: 1 0 100%; justify-content: stretch; }
  .header-ctas .btn { flex: 1; font-size: .48rem; padding: .45rem .35rem; }
  .site-nav:not([hidden]) {
    display: flex;
    order: 4;
    flex: 1 0 100%;
    background: #110e16;
    border-top: 1px solid var(--cyan);
    padding: .5rem .2rem .6rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem 1rem;
  }
}

/* Hero / Kowloon sign wall */
.hero {
  position: relative;
  padding: 1rem .7rem 1.2rem;
  overflow: hidden;
}
.sign-wall {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  padding: .4rem 0 1rem;
}
.sign {
  position: relative;
  margin: 0;
  padding: .35rem .6rem;
  line-height: .95;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 rgba(0,0,0,.65);
  border: 3px solid;
}
.sign-name {
  font-family: var(--font-poster);
  font-size: clamp(3rem, 14vw, 8.2rem);
  letter-spacing: .01em;
  color: var(--paper);
  background: #120018;
  border-color: var(--magenta);
  text-shadow:
    0 0 6px var(--magenta),
    0 0 18px var(--magenta),
    3px 3px 0 #000;
  padding: .1rem .35rem .2rem;
  transform: rotate(0);
  z-index: 5;
  align-self: stretch;
  text-align: left;
}
.sign-tag {
  font-family: var(--font-zine);
  font-size: clamp(1.2rem, 4vw, 2rem);
  text-transform: lowercase;
  background: var(--paper);
  color: var(--paper-ink);
  border-color: #111;
  transform: rotate(2deg);
  z-index: 6;
  margin-left: 8%;
}
.sign-location {
  font-family: var(--font-ui);
  font-size: clamp(.5rem, 2.4vw, .78rem);
  color: var(--lime);
  background: #081208;
  border-color: var(--lime);
  box-shadow: 0 0 18px rgba(200,255,42,.35), 4px 4px 0 #000;
  transform: rotate(0);
  z-index: 4;
  align-self: flex-end;
  margin-right: 2%;
}
.sign-hours-neon {
  font-family: var(--font-term);
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  color: var(--amber);
  background: #1a1200;
  border-color: var(--amber);
  box-shadow: 0 0 16px rgba(255,176,0,.4), 4px 4px 0 #000;
  transform: rotate(0);
  z-index: 7;
  text-transform: none;
}
.sign-hours-neon em { color: var(--paper); font-style: normal; display: block; font-size: .85em; }
.sign-street {
  font-family: var(--font-poster);
  font-size: clamp(1.4rem, 6vw, 2.4rem);
  background: #111;
  color: #fff;
  border-color: #fff;
  transform: rotate(2.5deg);
  z-index: 6;
}
.sign-gifts {
  font-family: var(--font-ui);
  font-size: clamp(.55rem, 2.3vw, .72rem);
  width: min(15rem, 92%);
  text-align: center;
  text-decoration: none;
  color: #1a0014;
  background: var(--magenta);
  border-color: #ffd1f5;
  transform: rotate(0);
  z-index: 8;
  animation: buzz 4s steps(2, end) infinite;
  align-self: flex-end;
}
.sign-gifts:hover { background: #ff9aee; color: #1a0014; }
.sign-dash {
  font-family: var(--font-ui);
  font-size: clamp(.5rem, 2.1vw, .65rem);
  width: min(16rem, 92%);
  text-align: center;
  text-decoration: none;
  color: var(--cyan);
  background: #03181c;
  border-color: var(--cyan);
  transform: rotate(0);
  z-index: 8;
  align-self: flex-end;
  margin-right: 4%;
}
.sign-dash:hover { background: var(--cyan); color: #03181c; }
.sign-photo {
  width: min(18rem, 86%);
  padding: .35rem;
  background: #111;
  border-color: #888;
  transform: rotate(2deg);
  z-index: 3;
  align-self: flex-end;
}
.sign-photo img { filter: contrast(1.1) saturate(0); width: 100%; }
.sign-logo-sticker {
  width: 6.4rem;
  background: var(--paper);
  border-color: #111;
  padding: .25rem;
  transform: rotate(0);
  z-index: 9;
  box-shadow: 4px 4px 0 #000;
}
.sign-vertical {
  display: none;
}
.sign-logo-sticker { order: -5; }
.sign-location { order: -4; }
.sign-name { order: -3; }
.sign-gifts { order: -2; }
.sign-tag { order: -1; }


@keyframes buzz {
  0%, 96%, 100% { filter: brightness(1); }
  97% { filter: brightness(1.35); }
  98% { filter: brightness(.7); }
  99% { filter: brightness(1.2); }
}

@keyframes blink { 50% { opacity: 0; } }

@media (min-width: 800px) {
  .hero { padding: 1rem .6rem 2.5rem; min-height: auto; }
  .sign-wall {
    display: block;
    min-height: 40rem;
    padding: 0 0 3.5rem;
  }
  .sign { position: absolute; }
  .sign-logo-sticker { left: 1.5%; top: 1.5%; width: 7.2rem; }
  .sign-location { right: 5%; top: 5%; }
  .sign-name { left: 3%; top: 14%; width: auto; }
  .sign-gifts { right: 4%; top: 16%; }
  .sign-dash { right: 8%; top: 36%; }
  .sign-tag { left: 16%; top: 51%; }
  .sign-hours-neon { left: 7%; top: 63%; }
  .sign-street { left: 48%; top: 56%; }
  .sign-photo { left: 56%; top: 66%; width: 17.5rem; }
  .sign-vertical {
    display: block;
    left: 0;
    top: 24%;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-ui);
    font-size: .52rem;
    color: var(--cyan);
    background: transparent;
    border: none;
    box-shadow: none;
    letter-spacing: .2em;
    z-index: 2;
  }
}

/* PS1 window / hours */
.panel { padding: 3rem 1rem; max-width: 1100px; margin: 0 auto; }
.hours-panel { padding-top: 1.5rem; }
.ps1-window {
  background: #d6d2c8;
  color: #111;
  border: 4px solid #3a3a3a;
  box-shadow:
    inset 2px 2px 0 #fff,
    inset -2px -2px 0 #7a7a7a,
    8px 8px 0 rgba(0,0,0,.5);
}
.ps1-title {
  background: linear-gradient(#3a5a9a, #1c2e6a);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .55rem;
  padding: .45rem .6rem;
  letter-spacing: .04em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.hours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
  font-family: var(--font-term);
  font-size: 1.45rem;
  line-height: 1.3;
}
.hours-grid h2 {
  font-family: var(--font-ui);
  font-size: .58rem;
  margin: 0 0 .4rem;
  color: #1c2e6a;
}
.hours-grid .big { font-size: 2.1rem; margin: 0; }
.hours-grid a { color: #102060; font-weight: 600; }
@media (min-width: 720px) {
  .hours-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.section-head { margin-bottom: 1.4rem; }
.pix-label {
  font-family: var(--font-ui);
  font-size: .52rem;
  color: var(--lime);
  letter-spacing: .08em;
  margin: 0 0 .4rem;
  text-transform: uppercase;
}
.section-head h2, .story-panel h2, .how-to h2, .gift-form h2, .gifts-hero h1 {
  font-family: var(--font-poster);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: .95;
  margin: 0 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.lede { max-width: 38rem; color: var(--ink-dim); }

/* Menu */
.jims-pick {
  background: #140018;
  border: 3px solid var(--amber);
  box-shadow: 0 0 20px rgba(255,176,0,.25), 5px 5px 0 #000;
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 1.5rem;
  transform: rotate(0);
}
.jims-pick h3 {
  font-family: var(--font-poster);
  font-size: 2rem;
  margin: .2rem 0 .3rem;
  color: var(--amber);
  text-transform: uppercase;
}
.jims-pick .fine {
  font-size: .85rem;
  color: var(--ink-dim);
  font-style: italic;
  margin: .4rem 0 0;
}
.menu-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.menu-kicker {
  font-family: var(--font-zine);
  font-size: 1.5rem;
  color: var(--magenta);
  margin: 0 0 .6rem;
  border-bottom: 2px dashed var(--magenta);
  padding-bottom: .2rem;
}
.menu-col article { margin-bottom: 1.1rem; }
.menu-col h4 {
  font-family: var(--font-poster);
  font-size: 1.55rem;
  margin: 0 0 .2rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.menu-col p { margin: 0; color: var(--ink-dim); }
.menu-block { margin: 0 0 1.6rem; }
.menu-block > p { color: var(--ink-dim); margin: 0 0 .6rem; }
.day-menu {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border: 3px solid var(--line);
  background: #100c16;
}
.day-menu li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: .6rem;
  padding: .55rem .7rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-dim);
}
.day-menu li:first-child { border-top: 0; }
.day-menu span {
  font-family: var(--font-ui);
  font-size: .45rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime);
  padding-top: .2rem;
}
@media (max-width: 520px) {
  .day-menu li { grid-template-columns: 1fr; gap: .2rem; }
}
.drinks-menu { margin: 0 0 1.6rem; }
.drinks-menu article { margin-bottom: 1.1rem; }
.drinks-menu h4 {
  font-family: var(--font-poster);
  font-size: 1.55rem;
  margin: 0 0 .2rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.drinks-menu p { margin: 0; color: var(--ink-dim); }
.chu-drink { overflow: visible; }
.chu-drink::after {
  content: "";
  display: table;
  clear: both;
}
.chu-drink figure {
  float: right;
  width: 104px;
  margin: .15rem 0 .2rem .7rem;
  padding: 6px 6px 0;
  background: var(--paper);
  box-shadow: 3px 3px 0 #000;
  transform: rotate(3.2deg);
}
.chu-drink img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  object-position: 50% 62%;
  display: block;
}
.chu-drink figcaption {
  font-family: var(--font-zine);
  font-size: .7rem;
  line-height: 1.2;
  padding: .22rem 0 .28rem;
  color: var(--paper-ink);
  text-align: center;
}
@media (min-width: 800px) {
  .chu-drink figure {
    width: 132px;
    margin: .1rem 0 .15rem 1rem;
    padding: 7px 7px 0;
    transform: rotate(2.8deg);
  }
  .chu-drink img { height: 112px; }
}
.menu-cta { margin: 1.5rem 0 .6rem; font-family: var(--font-zine); }

/* Story */
.story-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
.whos-jim {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 1.2rem 1.2rem 1.4rem;
  transform: rotate(0);
  box-shadow: 6px 6px 0 #000;
  border: 2px solid #111;
}
.whos-jim .pix-label { color: var(--rust-deep); }
.whos-jim h2 { color: #111; }
.whos-jim a { color: var(--rust-deep); }
/* Photos */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
@media (min-width: 800px) {
  .photo-grid { grid-template-columns: 1fr 1fr 1fr; gap: .7rem; }
  .photo-grid .wide { grid-column: span 3; }
}
.photo-grid figure {
  margin: 0;
  background: #111;
  border: 3px solid #222;
  overflow: hidden;
}
.photo-grid figure:not(.wide) {
  position: relative;
  aspect-ratio: 1;
}
.photo-grid figure:not(.wide) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-grid .wide {
  grid-column: span 2;
}
.photo-grid .wide img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-grid figcaption {
  font-family: var(--font-term);
  font-size: 1.05rem;
  padding: .35rem .5rem .5rem;
  color: var(--ink-dim);
}
@media (min-width: 800px) {
  .photo-grid .wide {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
  }
  .photo-grid .wide figcaption { padding: .8rem 1rem; }
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--cyan);
  padding: 2rem 1rem 3rem;
  background: #07060a;
  text-align: center;
}
.footer-name {
  font-family: var(--font-poster);
  font-size: 2rem;
  margin: 0 0 .3rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer p { margin: .25rem 0; color: var(--ink-dim); }
.footer-links { margin-top: .8rem !important; }

/* Gifts */
.gifts-hero {
  padding: 2.5rem 1rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.gifts-hero h1 {
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(255,43,214,.45);
}
.gifts-hero .lede { margin: .6rem auto 0; }
.cert-panel {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 860px) {
  .cert-panel { grid-template-columns: 1fr 1fr; }
}
.cert {
  background: var(--paper);
  color: var(--paper-ink);
  border: 8px double var(--rust);
  padding: 1.4rem 1.2rem 1.2rem;
  transform: rotate(0);
  box-shadow: 10px 10px 0 #000;
  font-family: var(--font-zine);
}
.cert-eyebrow {
  font-family: var(--font-ui);
  font-size: .45rem;
  margin: 0 0 .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cert-title {
  font-family: var(--font-poster);
  font-size: 2.6rem;
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: .9;
}
.cert-line { margin: .4rem 0; font-size: 1.15rem; }
.cert-line span { border-bottom: 1px solid #333; }
.cert-stamp { margin: 1.2rem 0 0; font-size: .95rem; }

.gift-form { min-width: 0; }
.gift-form h2 { margin-bottom: .35rem; }
.form-intro { color: var(--ink-dim); margin: 0 0 1.1rem; }
.amount-picks {
  border: 3px solid var(--amber);
  background: #140018;
  padding: .8rem .8rem 1rem;
  margin: 0 0 1.1rem;
}
.amount-picks legend {
  font-family: var(--font-ui);
  font-size: .52rem;
  color: var(--amber);
  padding: 0 .35rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.amount-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
@media (min-width: 520px) {
  .amount-row { grid-template-columns: repeat(4, 1fr); }
}
.amount-btn {
  display: block;
  cursor: pointer;
  margin: 0;
}
.amount-btn input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.amount-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  font-family: var(--font-poster);
  font-size: 1.6rem;
  letter-spacing: .02em;
  color: var(--paper);
  background: #0c0a12;
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 #000;
}
.amount-btn input:checked + span {
  background: var(--magenta);
  color: #1a0014;
  border-color: #ffd1f5;
}
.amount-btn input:focus-visible + span {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.custom-amount {
  margin: .85rem 0 0;
  font-family: var(--font-zine);
  font-size: 1.05rem;
  line-height: 1.4;
}
.custom-amount a { color: var(--lime); }
.godaddy-hooks[hidden] { display: none !important; }
.field {
  display: block;
  margin: 0 0 .85rem;
}
.field span {
  display: block;
  font-family: var(--font-ui);
  font-size: .48rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .35rem;
}
.field span em {
  font-style: normal;
  color: var(--ink-dim);
  font-family: var(--font-term);
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
}
.field input,
.field textarea {
  width: 100%;
  font: 1.05rem var(--font-body);
  color: var(--paper-ink);
  background: var(--paper);
  border: 3px solid #111;
  padding: .55rem .65rem;
  box-shadow: 3px 3px 0 #000;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.gift-form .btn { margin-top: .3rem; width: 100%; }
@media (min-width: 600px) {
  .gift-form .btn { width: auto; }
}
.form-error {
  color: #ffb4c8;
  font-weight: 600;
  margin: 0 0 .7rem;
}
.form-error[hidden],
.form-confirm[hidden] { display: none !important; }
.form-confirm {
  margin: 1rem 0 0;
  padding: .8rem .9rem;
  background: #081208;
  border: 3px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-zine);
  font-size: 1.1rem;
  box-shadow: 3px 3px 0 #000;
}

.gift-column { min-width: 0; }
.address-fields {
  border: 0;
  margin: 0 0 .35rem;
  padding: 0;
}
.address-fields legend {
  font-family: var(--font-ui);
  font-size: .48rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0;
  margin: 0 0 .55rem;
}
.address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .7rem;
}
.address-row .field-city { grid-column: 1 / -1; }
@media (min-width: 520px) {
  .address-row {
    grid-template-columns: 1fr 5.2rem 7.2rem;
  }
  .address-row .field-city { grid-column: auto; }
}
.custom-amount-label {
  display: block;
  margin: .85rem 0 0;
  cursor: pointer;
  position: relative;
}
.custom-amount-label > input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.custom-amount-ui {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .8rem;
  padding: .65rem .7rem;
  background: #0c0a12;
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 #000;
}
.custom-amount-label > input[type="radio"]:checked + .custom-amount-ui {
  border-color: #ffd1f5;
  background: #2a001f;
}
.custom-amount-label > input[type="radio"]:focus-visible + .custom-amount-ui {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.custom-amount-title {
  font-family: var(--font-zine);
  font-size: 1.05rem;
  color: var(--paper);
  flex: 1 1 auto;
}
.custom-amount-input {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 3px solid #111;
  box-shadow: 2px 2px 0 #000;
  min-width: 8rem;
  flex: 0 1 10rem;
}
.custom-dollar {
  font-family: var(--font-poster);
  font-size: 1.35rem;
  color: var(--paper-ink);
  padding: 0 .15rem 0 .55rem;
  line-height: 1;
}
.custom-amount-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--paper-ink);
  font: 1.15rem var(--font-body);
  padding: .4rem .5rem .4rem .15rem;
  border-radius: 0;
}
.custom-amount-input input:focus { outline: none; }
.custom-amount-input:focus-within {
  outline: 3px solid var(--lime);
  outline-offset: 0;
}
.field-error {
  display: block;
  color: #ffb4c8;
  font-size: .95rem;
  font-weight: 600;
  margin: .3rem 0 0;
}
.field-error[hidden] { display: none !important; }
.field input.is-invalid,
.field textarea.is-invalid,
.custom-amount-input.is-invalid {
  border-color: #c45c6a;
  box-shadow: 3px 3px 0 #3a1018;
}
.amount-picks.is-invalid {
  border-color: #c45c6a;
}

.gift-confirm[hidden] { display: none !important; }
.gift-confirm {
  min-width: 0;
}
.gift-confirm:focus,
.gift-confirm:focus-visible {
  outline: none;
}
.gift-confirm h2 {
  margin-bottom: .7rem;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
}
.pay-name-note {
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.45;
}
.gift-confirm .btn {
  width: 100%;
  margin: 0 0 .85rem;
  cursor: pointer;
}
.mailto-fallback {
  margin: .2rem 0 1rem;
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.45;
}
.mailto-fallback[hidden] { display: none !important; }
.start-over-wrap { margin: .2rem 0 0; text-align: left; }
.start-over {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cyan);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.start-over:hover { color: var(--lime); }
button.btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Boot easter egg */

/* DoorDash button: official logo on its own white chip, unaltered */
.btn-dash { flex-direction: row; gap: .55rem; flex-wrap: wrap; }
.dash-text { font-family: var(--font-ui); }
.dash-logo {
  display: block;
  height: 1.7rem;
  width: auto;
  background: #fff;
  border-radius: 3px;
}
.btn-lg .dash-logo { height: 2.2rem; }
.sign-dash {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.sign-dash .dash-logo { height: 2.1rem; }
.menu-cta + .btn-dash { margin-top: .2rem; }

/* Gifts small print */
.small-print {
  max-width: 38rem;
  margin: .4rem auto .9rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ink-dim);
}
.small-print s { text-decoration-thickness: 2px; }

/* Sandwich list under the baguette/focaccia item */
.sandwich-list {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
}
.sandwich-list li {
  margin: 0 0 .65rem;
  padding-left: .8rem;
  border-left: 3px solid var(--magenta);
  color: var(--ink-dim);
}
.sandwich-list strong { color: var(--ink); font-weight: 700; }

/* Sunday row */
.day-menu .sunday div { color: var(--ink-dim); }
.day-menu .sunday strong { color: var(--ink); }
.day-menu .sunday s { text-decoration-thickness: 2px; }

/* NES-style controller */
.pad-wrap {
  padding: 2.4rem 1rem 2.6rem;
  display: flex;
  justify-content: center;
  background: #07060a;
}
.nes {
  width: min(24rem, 100%);
  background: #cfcdc4;
  border-radius: 10px;
  padding: .5rem;
  box-shadow: 0 6px 0 #8f8d86, 0 10px 0 #000;
  user-select: none;
  -webkit-user-select: none;
}
.nes-badge {
  font-family: var(--font-ui);
  font-size: .5rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #6a1b1b;
  text-align: right;
  padding: .1rem .5rem .35rem;
}
.nes-body {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  align-items: center;
  gap: .4rem;
  background: #1c1b1a;
  border-radius: 6px;
  padding: .9rem .8rem 1.1rem;
}
.nes-dpad {
  display: grid;
  grid-template-columns: repeat(3, 2rem);
  grid-template-rows: repeat(3, 2rem);
  justify-content: center;
}
.nes-hub { grid-column: 2; grid-row: 2; background: #0c0c0b; }
.nes-btn {
  background: #0c0c0b;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nes-up { grid-column: 2; grid-row: 1; border-radius: 4px 4px 0 0; }
.nes-left { grid-column: 1; grid-row: 2; border-radius: 4px 0 0 4px; }
.nes-right { grid-column: 3; grid-row: 2; border-radius: 0 4px 4px 0; }
.nes-down { grid-column: 2; grid-row: 3; border-radius: 0 0 4px 4px; }
.nes-btn::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  border: .32rem solid transparent;
}
.nes-up::after { border-bottom-color: #3a3937; border-top-width: 0; }
.nes-down::after { border-top-color: #3a3937; border-bottom-width: 0; }
.nes-left::after { border-right-color: #3a3937; border-left-width: 0; }
.nes-right::after { border-left-color: #3a3937; border-right-width: 0; }
.nes-mid {
  display: flex;
  justify-content: center;
  gap: .7rem;
}
.nes-pill-wrap, .nes-round-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.nes-pill-wrap span, .nes-round-wrap span {
  font-family: var(--font-ui);
  font-size: .42rem;
  color: #e6d8b4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nes-pill {
  width: 2.1rem;
  height: .62rem;
  background: #7c1d1d;
  border: 0;
  border-radius: 99px;
  box-shadow: 0 2px 0 #3d0e0e;
  cursor: pointer;
}
.nes-ab { display: flex; justify-content: center; gap: .7rem; }
.nes-round {
  width: 2.2rem;
  height: 2.2rem;
  background: #c8252b;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 3px 0 #6a1015;
  cursor: pointer;
}
.nes-ab .nes-round-wrap:last-child { margin-top: -.9rem; }
.nes button { -webkit-tap-highlight-color: transparent; }
.nes button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.nes-btn:active, .nes-btn.is-down { background: #000; }
.nes-pill:active, .nes-pill.is-down { transform: translateY(2px); box-shadow: none; }
.nes-round:active, .nes-round.is-down { transform: translateY(3px); box-shadow: none; }

/* QR popup */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.82);
  padding: 1rem;
}
.qr-overlay[hidden] { display: none !important; }
.qr-card {
  background: #fff;
  color: #111;
  padding: 1rem 1rem .9rem;
  border: 4px solid var(--lime);
  box-shadow: 8px 8px 0 #000;
  text-align: center;
}
.qr-card img { width: min(14rem, 70vw); height: auto; margin: 0 auto; image-rendering: pixelated; }
.qr-card p { margin: .5rem 0; font-family: var(--font-term); font-size: 1.2rem; }
.qr-card a { color: #111; }
.qr-close {
  font-family: var(--font-ui);
  font-size: .55rem;
  background: #111;
  color: #fff;
  border: 0;
  padding: .55rem .9rem;
  cursor: pointer;
}

/* hero signs with longer copy need real line height */
.sign-gifts { line-height: 1.6; width: min(17rem, 92%); padding-top: .7rem; padding-bottom: .7rem; }
.sign-dash .dash-text { line-height: 1.5; text-align: center; }
.btn-dash .dash-text { line-height: 1.5; }
.gifts-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.02; }

.qr-card:focus { outline: none; }

/* hero gift small print + photo caption */
.sign-gifts .gift-fine { display:block; margin-top:.45rem; font-size:.62em; line-height:1.3; font-weight:400; opacity:.9; text-transform:none; letter-spacing:0; }
.sign-photo figcaption { font-size:.8rem; padding:.35rem .2rem 0; color:#ddd; text-align:center; }
@media (min-width: 900px) {
  .sign-dash { right: 1%; top: 47%; }
}
.sign-gifts .gift-fine { font-family: system-ui, sans-serif; font-size:.68em; }

/* Faded PS1 Maine street backdrop (sits behind everything) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(8,6,14,.24), rgba(8,6,14,.36)),
    url("../images/bg-maine-street.webp") center / cover no-repeat;
  filter: saturate(.75) blur(1.5px);
}
body { background-color: var(--bg); position: relative; z-index: 0; }

/* Phones: whole street in frame (contain), vertically centered; blurred street fills the rest of the screen */
@media (max-width: 700px) {
  body::before {
    inset: 0; height: 100vh; height: 100lvh;
    background:
      linear-gradient(rgba(8,6,14,.5), rgba(8,6,14,.62)),
      url("../images/bg-maine-street.webp") center / cover no-repeat;
    filter: saturate(.55) blur(18px);
    transform: scale(1.12);
    transform-origin: center;
  }
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(rgba(8,6,14,.24), rgba(8,6,14,.36)),
      url("../images/bg-maine-street.webp") center / 100% auto no-repeat;
    filter: saturate(.75) blur(1.5px);
  }
}

.sign-name .wordmark { display:block; width: clamp(16rem, 62vw, 40rem); height:auto; filter: drop-shadow(0 0 6px var(--magenta)); }
.sign-name { animation: neon-frame 2.4s ease-in-out infinite; }
@keyframes neon-frame {
  0%, 100% { box-shadow: 6px 6px 0 rgba(0,0,0,.65), 0 0 4px var(--magenta), 0 0 10px var(--magenta), inset 0 0 4px var(--magenta); }
  50% { box-shadow: 6px 6px 0 rgba(0,0,0,.65), 0 0 10px var(--magenta), 0 0 28px var(--magenta), 0 0 48px var(--magenta), inset 0 0 12px var(--magenta); }
}

.jensen-still { display:block; width: min(30rem, 90%); height:auto; margin: 0 auto 1.2rem; border: 3px solid var(--magenta); box-shadow: 6px 6px 0 rgba(0,0,0,.65), 0 0 14px var(--magenta); transform: rotate(0); }

/* ===== Hong Kong / Tokyo back-street sprinkle (light touch; theme only) =====
   1 painted enamel plate on the street sign, 2 shop awning over the hours window,
   3 painted vertical signboard, 4 faint neon-tube glow on headings,
   5 abstract red seal marks (pure shapes, no characters), 6 aged paper + tape on the tag card */

/* 1. enamel street-plate: double painted rule inside the border, two rivets */
.sign-street {
  background:
    radial-gradient(circle, #8a8a8a 0 1.4px, transparent 2px) 5px 50% / 6px 6px no-repeat,
    radial-gradient(circle, #8a8a8a 0 1.4px, transparent 2px) calc(100% - 5px) 50% / 6px 6px no-repeat,
    #111;
  box-shadow: inset 0 0 0 3px #111, inset 0 0 0 4px #e8e8e8, 6px 6px 0 rgba(0,0,0,.65);
  padding-left: .9rem; padding-right: .9rem;
}

/* 2. shop awning (striped, scalloped edge) above the hours window */
.hours-panel::before {
  content: ""; display: block; height: 14px; margin: 0 0 .25rem;
  background: repeating-linear-gradient(90deg, #a3123f 0 20px, var(--paper) 20px 40px);
  -webkit-mask: linear-gradient(#000, #000) top / 100% 6px no-repeat,
                radial-gradient(circle at 10px 0, #000 9px, transparent 10px) 0 6px / 20px 8px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% 6px no-repeat,
                radial-gradient(circle at 10px 0, #000 9px, transparent 10px) 0 6px / 20px 8px repeat-x;
  opacity: .92;
}

/* 3. vertical painted signboard (the 90 Union · Brunswick side label) */
.sign-vertical {
  background: #14000f;
  border: 2px solid #a3123f;
  box-shadow: inset 0 0 0 2px #14000f, inset 0 0 0 3px var(--paper), 3px 3px 0 rgba(0,0,0,.6);
  padding: .8rem .45rem;
  color: var(--paper);
}

/* 4. faint old neon-tube glow on section headings */
.section-head h2, .story-panel h2 {
  text-shadow: 0 0 2px rgba(42,240,255,.55), 0 0 9px rgba(255,43,214,.32), 2px 2px 0 rgba(0,0,0,.55);
}

/* 5. abstract red seal marks, shapes only */
.section-head { position: relative; }
.section-head::after {
  content: ""; position: absolute; right: .4rem; top: .1rem;
  width: 2.5rem; height: 2.5rem; transform: rotate(0);
  border: 3px solid #d62a45; border-radius: 4px; opacity: .82;
  background:
    radial-gradient(circle, transparent 0 28%, #d62a45 30% 44%, transparent 46%) center / 100% 100% no-repeat,
    radial-gradient(circle, #d62a45 0 9%, transparent 11%) center / 100% 100% no-repeat;
  pointer-events: none;
}
@media (max-width: 520px) { .section-head::after { width: 1.9rem; height: 1.9rem; } }

/* 6. aged paper + two tape strips on the "coffee shop" tag, and the same treatment on five more boxes/pics */
.sign-tag {
  background:
    repeating-linear-gradient(0deg, rgba(120,84,30,.05) 0 1px, transparent 1px 3px),
    var(--paper);
  box-shadow: inset 0 0 14px rgba(138,92,30,.42), 6px 6px 0 rgba(0,0,0,.65);
}
.sign-tag::before,
.sign-tag::after,
.sign-photo::before,
.sign-photo::after,
.sign-logo-sticker::before,
.sign-logo-sticker::after,
.chu-drink figure::before,
.chu-drink figure::after,
.whos-jim::before,
.whos-jim::after,
.cert::before,
.cert::after {
  content: "";
  position: absolute;
  width: 2.6rem;
  height: .9rem;
  background: rgba(235,214,150,.62);
  clip-path: polygon(0 0, 100% 0, 96% 25%, 100% 50%, 96% 75%, 100% 100%, 0 100%, 4% 75%, 0 50%, 4% 25%);
  pointer-events: none;
  z-index: 4;
}
/* coffee shop tag — top-left and top-right */
.sign-tag::after { top: -.6rem; left: -.9rem; transform: rotate(-24deg); }
.sign-tag::before { top: -.55rem; right: -.85rem; left: auto; transform: rotate(18deg); }
/* DOG BAR RD hero photo — top-left and bottom-right */
.sign-photo::after { top: -.45rem; left: -.7rem; transform: rotate(-16deg); }
.sign-photo::before { top: auto; bottom: -.4rem; right: -.65rem; left: auto; transform: rotate(22deg); }
/* logo sticker — smaller strips, opposite corners */
.sign-logo-sticker { overflow: visible; }
.sign-logo-sticker::after { width: 1.7rem; height: .62rem; top: -.4rem; left: -.45rem; transform: rotate(-28deg); }
.sign-logo-sticker::before { width: 1.7rem; height: .62rem; top: auto; bottom: -.35rem; right: -.4rem; left: auto; transform: rotate(14deg); }
/* Chu polaroid — smaller strips */
.chu-drink figure { position: relative; overflow: visible; }
.chu-drink figure::after { width: 1.7rem; height: .62rem; top: -.38rem; left: -.42rem; transform: rotate(-20deg); }
.chu-drink figure::before { width: 1.7rem; height: .62rem; top: auto; bottom: -.32rem; right: -.38rem; left: auto; transform: rotate(26deg); }
/* Who's Jim paper card */
.whos-jim { position: relative; overflow: visible; }
.whos-jim::after { top: -.5rem; left: -.7rem; transform: rotate(-13deg); }
.whos-jim::before { top: auto; bottom: -.48rem; right: -.7rem; left: auto; transform: rotate(19deg); }
/* Gift certificate (gifts.html) */
.cert { position: relative; overflow: visible; }
.cert::after { top: -.5rem; left: -.75rem; transform: rotate(-21deg); }
.cert::before { top: auto; bottom: -.48rem; right: -.7rem; left: auto; transform: rotate(15deg); }


/* ===== little pixel paper lanterns (same look as the alley wire lanterns), hung from the hours awning and a few eaves ===== */
.hours-panel { position: relative; }
.lamp-arm { position: absolute; left: 100%; top: 0; width: .9rem; height: 3px; z-index: 6; pointer-events: none;
  background: linear-gradient(#7a7a8c, #2e2e38); border-radius: 0 2px 2px 0; box-shadow: 0 2px 0 #000; display: none; }
.lamp-arm .lantern-hang { top: calc(3px + 1.1rem); right: -.75rem; --str: 1.1rem; }
.lantern-hang {
  position: absolute; width: 1.5rem; height: 1.85rem; border-radius: 46% 46% 44% 44%; pointer-events: none; z-index: 6;
  background:
    repeating-linear-gradient(180deg, transparent 0 .32rem, rgba(60,0,10,.45) .32rem calc(.32rem + 2px)),
    radial-gradient(circle at 50% 38%, #ff8a4a 0, #d62a45 55%, #7e1228 100%);
  box-shadow: 0 0 18px 4px rgba(255,150,60,.45), 0 0 46px 12px rgba(255,90,60,.2);
}
.lantern-hang::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--str, .6rem) - .05rem); width: 1px; height: calc(var(--str, .6rem) + .1rem); background: #07060b; }
.lantern-hang::after { content: ""; position: absolute; left: 50%; margin-left: -.42rem; top: -.12rem; width: .84rem; height: .26rem; background: #1a1018; border-radius: 2px; }
/* awning lantern: only where there is open street beside the awning */
@media (min-width: 1240px) { .lamp-arm { display: block; } }
/* gifts: two lanterns hang off the top of the page header, either side of the Jensen still */
.gifts-hero { position: relative; }
.lantern-hang.free { display: none; top: 2.6rem; --str: 2.6rem; }
.lantern-hang.free.l { left: 1.6rem; }
.lantern-hang.free.r { right: 1.6rem; }
@media (min-width: 701px) { .lantern-hang.free { display: block; } }
