/* Layout: night-bar dark page. Hero = claim + half-empty pint, then a stats strip,
   then the wall of shame (wide) beside a sticky "add a bar" form; stacks on phones. */
:root {
  color-scheme: dark;
  --stout: #17110b;
  --stout-2: #1f170f;
  --barrel: #281d12;
  --barrel-2: #31241706;
  --line: #3d2d1d;
  --foam: #f6ecd9;
  --muted: #bfa98a;
  --muted-dim: #8d7a60;
  --amber: #f2a516;
  --amber-hi: #ffc94d;
  --shame: #ff5a5f;
  --shame-soft: rgba(255, 90, 95, .14);
  --ok: #9bd48f;
  --display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 16px;
  --maxw: 1160px;
}
* { box-sizing: border-box; }
/* No flash on load: the page stays hidden until fonts and its data are ready (js/account.js adds .nk-ready),
   then fades in. The animation shows it after 3 s anyway, even if no script runs. */
html:not(.nk-ready) body { opacity: 0; animation: nk-show 0s linear 3s forwards; }
@keyframes nk-show { to { opacity: 1; } }
html.nk-ready body { transition: opacity .2s ease; }
/* the footer sits at the bottom of the screen even on short pages */
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--foam);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(242, 165, 22, .16), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(255, 90, 95, .07), transparent 60%),
    var(--stout);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--stout);
}
a { color: inherit; }
.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; border-radius: 6px; }

/* NAV */
header.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(23, 17, 11, .78); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* logo | page links (centred) | account + buttons: equal side columns keep the middle truly centred */
.nav .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding-block: 12px; }
.nav .brand { justify-self: start; }
.nav .nav-links { justify-self: end; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 1.25rem; letter-spacing: .01em; }
.brand-name b { color: var(--amber); font-weight: 400; }
.mini-glass { width: 18px; height: 24px; flex: none; }
.nav-cta {
  font-weight: 700; font-size: .92rem; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; background: var(--amber); color: var(--stout);
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--amber-hi); }
.nav-links { display: flex; align-items: center; gap: 16px; }
/* page links next to the logo; on phones they drop to a second row */
.nav-pages { display: flex; gap: 28px; justify-self: center; }
.nav-pages a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem; }
.nav-pages a:hover, .nav-pages a[aria-current="page"] { color: var(--foam); }
.nav-pages a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-link { font-weight: 500; font-size: .92rem; color: var(--muted); text-decoration: none; }
.nav-link, .nav-cta { white-space: nowrap; }

/* Account chip (js/account.js): avatar with the nick's first letter, a green "logged in" dot, menu below */
.acct { position: relative; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 500; color: var(--foam);
  background: rgba(246, 236, 217, .06); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px;
}
.acct-btn:hover, .acct-btn[aria-expanded="true"] { border-color: var(--amber); }
.acct-avatar {
  position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--amber); color: var(--stout);
  font-family: var(--display); font-size: .95rem; line-height: 1;
}
.acct-avatar::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 2px var(--stout);
}
.acct-nick { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chev { width: 10px; height: 6px; color: var(--muted); transition: transform .15s ease; }
.acct-btn[aria-expanded="true"] .acct-chev { transform: rotate(180deg); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; display: grid;
  padding: 6px; border-radius: 14px; background: var(--stout-2); border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .9);
}
.acct-head { display: grid; gap: 2px; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.acct-label { font-size: .78rem; color: var(--muted-dim); }
.acct-head b { overflow-wrap: anywhere; }
.acct-email { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.acct-item {
  font: inherit; font-size: .92rem; text-align: left; text-decoration: none; color: var(--foam);
  background: none; border: 0; border-radius: 8px; padding: 9px 12px; cursor: pointer;
}
.acct-item:hover, .acct-item:focus-visible { background: rgba(246, 236, 217, .07); outline: none; }
.acct-item.out { color: var(--shame); }

[hidden] { display: none !important; }  /* .field sets display: grid, which would beat the hidden attribute */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }  /* honeypot: off screen, not display:none, so bots still fill it */
.nav-link:hover { color: var(--foam); }

/* HERO */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 40px; align-items: center; padding-block: 56px 40px;
}
.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 14px;
}
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; margin: 0 0 18px;
  text-wrap: balance;
}
h1 .strike { position: relative; color: var(--muted-dim); }
h1 .strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .12em;
  background: var(--shame); transform: rotate(-4deg); border-radius: 4px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.lead strong { color: var(--foam); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--amber); color: var(--stout); }
.btn-primary:hover { background: var(--amber-hi); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--foam); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); transform: translateY(-2px); }
/* amber outline that fills in on hover */
.btn-outline { border-color: var(--amber); color: var(--amber-hi); background: transparent; }
.btn-outline:hover { background: var(--amber); color: var(--stout); transform: translateY(-2px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-danger-solid { background: var(--shame); color: #fff; }
.btn-danger-solid:hover { background: #ff7478; transform: translateY(-2px); }

/* Modals (js/modal.js): rise and fade in over a dimmed, blurred page; closing plays it backwards */
.modal {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--foam);
  background: var(--stout-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.modal::backdrop { background: rgba(10, 7, 4, .72); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .22s cubic-bezier(.2, .9, .3, 1.1); }
.modal[open]::backdrop { animation: modal-fade-in .22s ease-out; }
.modal.closing { animation: modal-out .16s ease-in forwards; }
.modal.closing::backdrop { animation: modal-fade-out .16s ease-in forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-fade-out { from { opacity: 1; } to { opacity: 0; } }
.modal-confirm { width: min(440px, calc(100vw - 32px)); }
.modal-body { padding: 24px; }
.modal-body h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 1.35rem; overflow-wrap: anywhere; }
.modal-body p { margin: 0 0 22px; color: var(--muted); overflow-wrap: anywhere; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.modal-image { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); background: var(--stout); }
.modal-photo { position: relative; display: grid; justify-items: center; gap: 10px; padding: 14px; }
.modal-photo img { display: block; max-width: min(1100px, calc(100vw - 60px)); max-height: calc(100vh - 110px); border-radius: 10px; }
.modal-x {
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font: 600 1.4rem/1 var(--body); color: var(--foam); background: rgba(23, 17, 11, .8); border: 1px solid var(--line);
}
.modal-x:hover { border-color: var(--amber); color: var(--amber-hi); }
.modal-out { font-size: .88rem; color: var(--muted); }
.modal-out:hover { color: var(--foam); }

/* Hero glass, one 10 s loop: beer pours in to the 0,4 L mark, the missing 100 ml up to the 0,5 L line
   lights up and pulses, then the glass drains and it starts over. All parts share --loop to stay in sync. */
/* the glass ends on the same right edge as the nav button, the stats and the cards */
.glass-stage { --loop: 10s; display: grid; justify-items: end; }
.glass-fig { position: relative; }
/* the drawing has 38 of 270 viewBox units empty right of the glass rim (42 px at its 300 px width):
   pull it out so the rim meets the same right edge as the nav button and the cards */
@media (min-width: 681px) { .glass-fig { margin-right: -42px; } }
.glass-fig svg { display: block; width: min(300px, 72vw); height: auto; overflow: visible; }
.glass-stamp {
  position: absolute; top: 0; right: 0;
  font-family: var(--display); font-size: 1.5rem; color: var(--shame);
  border: 3px solid var(--shame); border-radius: 10px; padding: 2px 10px;
  transform: rotate(9deg); background: var(--shame-soft);
  animation: stamp var(--loop) linear infinite;
}
@keyframes stamp {
  0%, 24% { transform: rotate(9deg) scale(1.8); opacity: 0; animation-timing-function: cubic-bezier(.2, 1.6, .4, 1); }
  28%, 84% { transform: rotate(9deg) scale(1); opacity: 1; }
  88%, 100% { transform: rotate(9deg) scale(1); opacity: 0; }
}
.pour { animation: pour var(--loop) linear infinite; }
@keyframes pour {
  0% { transform: translateY(180px); animation-timing-function: cubic-bezier(.3, .7, .3, 1); }
  20% { transform: none; }
  84% { transform: none; animation-timing-function: ease-in; }
  96%, 100% { transform: translateY(180px); }
}
.missing { animation: missing var(--loop) ease-in-out infinite; }
@keyframes missing {
  0%, 22% { opacity: 0; }
  28%, 52%, 76% { opacity: 1; }
  40%, 64% { opacity: .5; }
  86%, 100% { opacity: 0; }
}
.missing-text { animation: missing-text var(--loop) ease infinite; }
@keyframes missing-text {
  0%, 22% { opacity: 0; }
  28%, 84% { opacity: 1; }
  88%, 100% { opacity: 0; }
}
.bubble { fill: rgba(255, 240, 205, .75); animation: rise var(--d, 2s) linear var(--delay, 0s) infinite; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(var(--sway, 2px), -79px); }
  90% { opacity: .9; }
  100% { transform: translate(0, -158px); opacity: 0; }
}
.missing-label {
  font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--shame);
  paint-order: stroke; stroke: var(--stout); stroke-width: 4px; stroke-linejoin: round;
}
.missing-label.big { font-size: 18px; }
.lvl { font-family: var(--mono); font-size: 13px; font-weight: 600; fill: var(--foam); }
.lvl.paid { fill: var(--shame); }
.lvl-sub { font-family: var(--body); font-size: 11px; fill: var(--muted); }

/* STATS */
.stats { border-block: 1px solid var(--line); background: var(--stout-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 12px; }
.stat { display: grid; gap: 0; }
/* left stat at the left edge, middle one centred, right one at the right edge */
.stat:nth-child(2) { justify-items: center; text-align: center; }
.stat:nth-child(3) { justify-items: end; text-align: right; }
.stat-value { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--amber-hi); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .85rem; }

/* MAIN */
main .wrap:has(> .add-panel[hidden]) { grid-template-columns: minmax(0, 1fr) !important; }  /* no side panel: the board takes the width */
main .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-block: 44px 64px; align-items: start; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin: 0 0 4px; text-wrap: balance; }
.section-sub { color: var(--muted); margin: 0 0 18px; }
.board-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* filter bar: city chips (with counts) on the left, order toggle on the right */
.board-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.board-tools .chip { display: inline-flex; align-items: center; gap: 7px; }
/* the count sits centred next to the city as a small round badge */
.chip-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; line-height: 1; background: rgba(246, 236, 217, .1);
}
.chip[aria-pressed="true"] .chip-count { background: rgba(23, 17, 11, .14); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(246, 236, 217, .04); }
.seg button {
  font: inherit; font-size: .88rem; font-weight: 500; padding: 6px 14px; border: 0; border-radius: 999px;
  background: none; color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.seg button:hover:not([aria-pressed="true"]) { color: var(--foam); }
.seg button[aria-pressed="true"] { background: var(--amber); color: var(--stout); }
.chip {
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--foam); color: var(--stout); border-color: var(--foam); }
.chip:hover { border-color: var(--amber); }
select, input, textarea {
  font: inherit; color: var(--foam); background: var(--stout);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
textarea { resize: vertical; line-height: 1.5; }
select:focus, input:focus, textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(242, 165, 22, .22); }
.sort-select { width: auto; padding: 6px 10px; font-size: .88rem; }

.list { display: grid; gap: 10px; }
/* Card: [glass + menu price] | [name + pin, address, chips] | [stamp, Google box]; meta strip along the bottom */
.bar-card {
  position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr) 230px 150px; gap: 10px 18px; align-items: center;
  padding: 14px 18px 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(246, 236, 217, .035), transparent 70%), var(--barrel);
  border: 1px solid var(--line); transition: border-color .15s ease;
}
.bar-card:hover { border-color: #5a442c; }
.bar-card:not(:has(.bar-meta)) { padding-bottom: 14px; }
/* the two outer columns mirror each other: icon, big number, small caption, dashed divider toward the middle */
.price-block, .g-block { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; text-align: center; }
.price-block { padding-right: 16px; border-right: 1px dashed var(--line); }
.g-block { padding-left: 16px; border-left: 1px dashed var(--line); color: var(--foam); text-decoration: none; }
.g-block .g-logo { width: 22px; height: 22px; }
.g-score { font-family: var(--display); font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.g-score small { font-size: .9rem; color: var(--muted); margin-left: 2px; }
a.g-block:hover .g-score { color: var(--amber-hi); }
.g-line { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); white-space: nowrap; }
/* five stars, filled up to the rating: a muted row with an amber copy clipped to --fill on top */
.g-stars { position: relative; display: inline-block; font-size: .85rem; letter-spacing: 1px; color: var(--muted-dim); line-height: 1; }
.g-stars::before { content: "★★★★★"; }
.g-stars::after { content: "★★★★★"; position: absolute; inset: 0; width: var(--fill); overflow: hidden; color: var(--amber-hi); }
.g-block.none { opacity: .45; }
.g-block.none .g-logo { filter: grayscale(1); }
.mini-pint { width: 22px; height: 30px; overflow: visible; }
.mp-beer { fill: var(--amber); }
.mp-foam { fill: var(--foam); }
.mp-glass { fill: none; stroke: var(--foam); stroke-width: 1.4; stroke-linejoin: round; }
.mp-line { stroke: var(--shame); stroke-width: 1.3; stroke-dasharray: 2 2; }
.price-big { font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--amber-hi); font-variant-numeric: tabular-nums; }
.price-cap { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-short {
  font-family: var(--mono); font-size: .72rem; color: var(--shame); padding: 1px 8px; border-radius: 999px;
  border: 1px solid rgba(255, 90, 95, .35); background: var(--shame-soft);
}
/* fill bar in the card's middle: how much of a 0,5 L glass is poured */
.fill { display: flex; align-items: center; gap: 12px; max-width: 520px; margin-top: 4px; }
.fill-track {
  flex: 1; height: 10px; border-radius: 999px; overflow: hidden;
  border: 1px solid rgba(255, 90, 95, .35);
  background: repeating-linear-gradient(45deg, rgba(255, 90, 95, .12) 0 4px, rgba(255, 90, 95, .38) 4px 7px);
}
.fill-beer { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-hi)); box-shadow: 2px 0 0 var(--foam); }
.fill-label { font-family: var(--mono); font-size: .74rem; color: var(--muted); white-space: nowrap; }
.fill-label b { color: var(--foam); font-weight: 600; }
.meta-beer { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.meta-beer svg { width: 12px; height: 15px; color: var(--amber); }
.bar-main { min-width: 0; display: grid; row-gap: 4px; align-content: center; }
/* stamps are centred in a fixed-width column, so short and long ones line up from card to card */
.bar-card > .stamp { justify-self: center; }
/* name + pin on one centred row (the pin is a box, so baseline alignment left it hanging low) */
.bar-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; overflow-wrap: anywhere; }
/* address line = map button: pin, street, bold city */
.bar-where {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 0;
  font: inherit; font-size: .95rem; color: var(--muted); text-align: left; text-decoration: none;
  background: none; border: 0; overflow-wrap: anywhere;
}
.bar-where b { color: var(--foam); font-weight: 600; }
.bar-where svg { width: 15px; height: 15px; flex: none; fill: var(--amber); }
button.bar-where, a.bar-where { cursor: pointer; }
button.bar-where:hover span, a.bar-where:hover span, .bar-where[aria-expanded="true"] span { text-decoration: underline; text-underline-offset: 3px; }
button.bar-where:hover svg, .bar-where[aria-expanded="true"] svg { fill: var(--shame); }
.map-embed { grid-column: 1 / -1; display: grid; gap: 6px; }
.map-embed iframe { width: 100%; height: 280px; border: 0; border-radius: 12px; background: var(--stout); }
.map-out { justify-self: end; font-size: .85rem; color: var(--muted); }
.map-out:hover { color: var(--foam); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact {
  font-size: .82rem; padding: 3px 11px; border-radius: 999px;
  background: rgba(246, 236, 217, .06); border: 1px solid var(--line); color: var(--foam);
}
.fact.bad { font-family: var(--mono); color: var(--shame); border-color: rgba(255, 90, 95, .35); background: var(--shame-soft); }
.bar-meta {
  grid-column: 1 / -1; margin: 0 -18px; padding: 7px 18px;
  border-top: 1px solid var(--line); background: rgba(0, 0, 0, .14);
  font-size: .82rem; color: var(--muted-dim); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center;
}
.stamp {
  font-family: var(--display); font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 9px; border: 3px solid currentColor; transform: rotate(-5deg);
}
.stamp.lo { color: var(--amber); }
.stamp.mid { color: var(--shame); background: var(--shame-soft); }
/* the rare extreme: solid red */
.stamp.hi { color: #fff; background: var(--shame); border-color: var(--shame); }
.del {
  font: inherit; font-size: .82rem; cursor: pointer; background: none; border: none;
  color: var(--muted-dim); text-decoration: underline; padding: 0;
}
.del:hover, .del.armed { color: var(--shame); }
.bar-card.example { border-style: dashed; opacity: .8; }
.example-tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--stout); background: var(--muted); padding: 2px 8px; border-radius: 6px;
}
.empty {
  display: grid; gap: 14px; padding: 22px; border-radius: var(--radius);
  border: 1px dashed var(--line); background: rgba(40, 29, 18, .4);
}
.empty p { margin: 0; color: var(--muted); }
.empty strong { color: var(--foam); }

/* FORM */
.add-panel {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px);
  padding: 22px; border-radius: var(--radius); background: var(--stout-2);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9);
}
.add-panel h2 { font-size: 1.6rem; }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--muted-dim); }
/* Google place suggestions under a bar-name field (js/places.js) */
.places-box { position: relative; }
.places-list {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: var(--barrel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9);
}
.places-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.places-list li b { font-weight: 500; }
.places-list li span { font-size: .8rem; color: var(--muted-dim); }
.places-list li:hover, .places-list li.on { background: rgba(242, 165, 22, .12); }
.places-list li:hover b, .places-list li.on b { color: var(--amber-hi); }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.preview {
  border-radius: 12px; padding: 12px 14px; background: rgba(242, 165, 22, .08);
  border: 1px solid rgba(242, 165, 22, .3); font-size: .95rem; color: var(--muted);
}
.preview b { color: var(--amber-hi); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.form-msg { font-size: .9rem; min-height: 1.2em; margin: 0; }
.form-msg.err { color: var(--shame); }
.form-msg.ok { color: var(--ok); }
.notice { font-size: .9rem; color: var(--muted); margin: 0; }
.add-gate { display: grid; gap: 14px; }
.add-gate p { margin: 0; color: var(--muted); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* logged-out panel: three numbered steps and one quiet link */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.steps li::before {
  content: counter(step); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-size: .95rem;
  color: var(--stout); background: var(--amber);
}
.steps b { font-weight: 600; line-height: 1.35; }
.gate-link { font-weight: 600; color: var(--amber-hi); text-decoration: none; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.gate-link:hover { text-decoration: underline; }
.as-user {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px;
  padding: 10px 12px; border-radius: 12px; background: rgba(155, 212, 143, .08); border: 1px solid rgba(155, 212, 143, .3);
  font-size: .92rem; color: var(--muted);
}
.as-user b { color: var(--foam); }
.link-btn { font: inherit; font-size: .85rem; color: var(--muted-dim); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; margin-left: auto; }
.link-btn:hover { color: var(--foam); }
.bar-card.mine { border-color: rgba(242, 165, 22, .45); }
.bar-card.waiting { border-style: dashed; }
.bar-card.waiting .price-block, .bar-card.waiting .bar-main, .bar-card.waiting .stamp { opacity: .55; }
.review-tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--stout); background: var(--amber); padding: 2px 8px; border-radius: 6px;
}
.review-tag.rejected { background: var(--shame); }
.reject-reason { margin: 0; font-size: .88rem; color: var(--shame); }
.photo-link { display: inline-grid; place-items: center; color: var(--muted); }
.photo-link svg { width: 17px; height: 17px; }
.photo-link:hover { color: var(--foam); }
/* file picker: the browser's own control (English "Browse…") is hidden; our button and the file name show instead */
.file-pick { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-btn { flex: none; padding: 8px 16px; font-size: .9rem; }
.file-input:focus-visible + .file-btn { outline: 2px solid var(--amber-hi); outline-offset: 3px; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .9rem; }
.file-pick.chosen .file-name { color: var(--foam); }
.photo-preview { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); justify-self: start; }
.mine-tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber-hi); border: 1px solid rgba(242, 165, 22, .5); padding: 1px 7px; border-radius: 6px;
}

main { flex: 1 0 auto; }
footer { border-top: 1px solid var(--line); color: var(--muted-dim); font-size: .88rem; }
footer .wrap { padding-block: 22px 32px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: .85rem; }
footer p { margin: 0; max-width: 70ch; }

@media (max-width: 900px) {
  main .wrap { grid-template-columns: minmax(0, 1fr); }
  .add-panel { position: static; }
}
@media (max-width: 680px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 36px 28px; gap: 24px; }
  .glass-stage { order: -1; justify-items: center; }
  .glass-fig svg { width: min(240px, 64vw); }
  .glass-stamp { font-size: 1.2rem; }
  .stats .wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stat:nth-child(n) { justify-items: start; text-align: left; }
  .bar-card { grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; padding: 16px 16px 0; }
  .bar-card:not(:has(.bar-meta)) { padding-bottom: 16px; }
  .price-block { min-width: 0; padding-right: 16px; }
  .price-big { font-size: 1.6rem; }
  .bar-card > .stamp { grid-column: 1; justify-self: center; margin: 0; }
  .g-block { grid-column: 2; grid-auto-flow: column; justify-content: end; align-items: center; gap: 10px;
    min-width: 0; padding: 0; border-left: 0; }
  .g-score { font-size: 1.5rem; }
  .bar-meta { margin: 0 -16px; padding: 10px 16px; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav .wrap { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .nav-pages { grid-column: 1 / -1; grid-row: 2; padding-bottom: 2px; }
}
@media (max-width: 480px) {
  .acct-nick { display: none; }  /* phones: avatar + dot only, the menu says who you are */
  .acct-btn { padding-right: 8px; }
}
@media (max-width: 420px) {
  .nav .wrap { gap: 10px; }
  .nav-links { gap: 12px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 1.1rem; }
  .nav-link, .nav-cta { font-size: .85rem; }
  .nav-cta { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; opacity: .6; }
  .pour, .missing, .missing-text, .glass-stamp { animation: none; }
  .btn, .nav-cta { transition: none; }
  .modal[open], .modal[open]::backdrop, .modal.closing, .modal.closing::backdrop { animation: none; }
}
