/* Biertjes (/bier). Uses the tokens from site.css. */
.bier { width: min(1080px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(24px, 5vh, 44px) 0 64px; display: grid; gap: 16px; }
.bier p { margin: 0; }
.bier-head { display: grid; gap: 6px; margin-bottom: 4px; }
.bier-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.bier-lede { color: var(--muted); font-weight: 600; }

/* Summary: count, average and the best beer */
.bier-summary { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; }
.bier-summary[hidden], .bier-tools[hidden] { display: none; }
.bier-stat { display: grid; align-content: center; gap: 2px; padding: 14px 18px; color: var(--text); text-decoration: none; animation: bier-in 0.5s cubic-bezier(.2, .7, .2, 1) backwards; }
.bier-stat:nth-child(2) { animation-delay: 60ms; }
.bier-stat:nth-child(3) { animation-delay: 120ms; }
.bier-stat-num { font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 600; line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; }
.bier-stat-label { color: var(--faint); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bier-stat-best strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: clamp(1.15rem, 3.5vw, 1.45rem); font-weight: 600; line-height: 1.2; }
.bier-stat-score { color: var(--accent); font-weight: 750; }
a.bier-stat-best { transition: border-color 200ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1); }
a.bier-stat-best:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Search, sort and the kind filter */
.bier-tools { display: grid; gap: 12px; padding: 14px; }
.bier-search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); }
.bier-search:focus-within { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25); }
.bier-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.bier-search input { flex: 1; min-width: 0; height: 48px; border: 0; color: var(--text); background: none; font: inherit; font-size: 1.05rem; outline: none; }
.bier-search input::placeholder { color: var(--faint); }
/* Our own ✕ instead of the browser's (Safari has none, Chrome a tiny one). */
.bier-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.bier-search-clear { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bier-search-clear[hidden] { display: none; }
.bier-search-clear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.bier-search-clear:hover, .bier-search-clear:focus-visible { color: var(--text); background: rgba(var(--accent-rgb), 0.16); outline: none; }
.bier-search-clear:active { transform: scale(0.92); }
/* Pill buttons for sort and kind: the same as the filter buttons on /woningen (housing/styles.css). */
.bier-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bier-pills:empty { display: none; }
.bier-pills-label { margin-right: 4px; color: var(--faint); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bier-pills button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); background: var(--surface-2);
  font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; transition: background 160ms ease, border-color 160ms ease;
}
.bier-pills button:hover { border-color: var(--accent); background: var(--raised); }
.bier-pills button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bier-pills button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--surface-solid)); color: var(--accent); }
.bier-pills button small { color: var(--faint); font-size: 0.78rem; margin-left: -4px; }

.bier-message { color: var(--muted); font-weight: 600; text-align: center; }
.bier-message:empty { display: none; }
.bier-message.is-count { margin: -4px 0; color: var(--faint); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bier-message.is-empty { padding: 34px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-family: var(--font-display); font-size: clamp(1.2rem, 4vw, 1.5rem); font-style: italic; color: var(--text); }

/* Beer cards: the photo first, with the score on it */
.bier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bier-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; animation: bier-in 0.5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(min(var(--i, 0), 12) * 40ms); }
.bier-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: radial-gradient(circle at 50% 30%, var(--raised), var(--surface-solid)); }
/* Bottle shots from Open Food Facts are tall and thin: a blurred copy fills the sides. */
.bier-photo-blur { position: absolute; inset: -20px; background: center / cover no-repeat; filter: blur(18px) brightness(0.55) saturate(1.2); }
.bier-photo img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.bier-photo.is-own img { object-fit: cover; }
.bier-photo.is-empty { display: grid; place-items: center; color: rgba(var(--accent-rgb), 0.55); }
.bier-photo.is-empty svg { width: 42%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.bier-photo.is-empty svg .soft { fill: rgba(var(--accent-rgb), 0.14); }
.bier-score { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; min-width: 60px; height: 60px; padding: 0 8px; border-radius: 30px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 18px rgba(var(--ink-deep), 0.5); font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.bier-score small { font-family: var(--font-body); font-size: 0.6rem; font-weight: 800; opacity: 0.7; margin-top: -6px; }
.bier-body { display: grid; align-content: start; gap: 8px; padding: 14px 16px 16px; }
.bier-body h2 { margin: 0; font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.bier-brewery { color: var(--muted); font-size: 0.88rem; font-weight: 600; margin-top: -4px !important; }
.bier-stars { display: flex; gap: 2px; color: var(--accent); }
.bier-stars svg { width: 18px; height: 18px; }
.bier-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bier-chips .chip { --tone: var(--accent); }
.bier-note { color: var(--text); font-size: 0.95rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
/* What the other gave the same beer */
.bier-other { justify-self: start; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 0.82rem; font-weight: 650; }
.bier-other b { color: var(--accent); font-variant-numeric: tabular-nums; }
.bier-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 2px; color: var(--faint); font-size: 0.78rem; font-weight: 600; }
.bier-credits { color: var(--faint); font-size: 0.74rem; font-weight: 600; text-align: center; opacity: 0.8; }
.bier-credits:empty { display: none; }
.bier-card.is-match { outline: 2px solid var(--accent); outline-offset: 2px; }

@keyframes bier-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } }

@media (max-width: 760px) {
  .bier-summary { grid-template-columns: 1fr 1fr; }
  .bier-stat-best { grid-column: 1 / -1; }
  .bier-tools { grid-template-columns: 1fr; padding: 12px; }
  /* Phones: each row of pills scrolls sideways instead of wrapping. */
  .bier-pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .bier-pills::-webkit-scrollbar { display: none; }
  .bier-pills button { flex: none; min-height: 44px; }
  .bier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bier-score { right: 8px; bottom: 8px; min-width: 46px; height: 46px; font-size: 1.3rem; }
  .bier-body { padding: 10px 12px 12px; gap: 6px; }
  .bier-body h2 { font-size: 1.08rem; }
  .bier-stars svg { width: 14px; height: 14px; }
}
@media (max-width: 380px) { .bier-grid { grid-template-columns: 1fr; } }

/* Whose list: Redmer, Berry or Samen, and Berry's add button */
.bier-who-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bier-who button { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.bier-add { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; color: var(--accent-ink); background: var(--accent); font-weight: 750; text-decoration: none; transition: transform 200ms ease, filter 200ms ease; }
.bier-add[hidden] { display: none; }
.bier-add:hover { transform: translateY(-1px); filter: brightness(1.08); }
.bier-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.bier-edit { color: var(--accent); font-weight: 750; text-decoration: none; }
.bier-edit:hover { text-decoration: underline; }
/* Share one beer (assets/bier.js share()): a small round button at the end of the card's foot. */
.bier-foot { align-items: center; }
.bier-foot-end { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.bier-share { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; margin: 0 6px 2px 0; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--accent); background: var(--surface-2); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 200ms ease, filter 200ms ease; }
.bier-share:hover { transform: translateY(-1px); filter: brightness(1.15); }
.bier-share:active { transform: scale(0.92); }
.bier-share:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bier-share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* "Wil ik nog proberen": a short list with the owner's buttons, and a small form under it */
.bier-wish { display: grid; gap: 12px; padding: clamp(14px, 3vw, 20px); }
.bier-wish[hidden], .bier-wish-form[hidden], .bier-wish-none[hidden] { display: none; }
.bier-wish h2 { margin: 0; font-size: 1.25rem; }
.bier-wish-list { display: grid; margin: 0; padding: 0; list-style: none; }
.bier-wish-list:empty { display: none; }
.bier-wish-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line-strong); }
.bier-wish-item:first-child { border-top: 0; padding-top: 0; }
.bier-wish-name { display: grid; flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.bier-wish-name small { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.bier-wish-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.bier-wish-actions .berry-button { text-decoration: none; }
.bier-wish-remove { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); background: var(--surface-2); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; touch-action: manipulation; }
.bier-wish-remove:hover { border-color: var(--bad); color: var(--bad); }
.bier-wish-remove:disabled { opacity: 0.5; cursor: wait; }
.bier-wish-none { color: var(--muted); font-weight: 600; }
.bier-wish-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; }
.bier-wish-form input {
  min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); background: var(--surface-2); font: inherit; font-size: 1rem; outline: none; box-sizing: border-box;
}
.bier-wish-form input::placeholder { color: var(--faint); }
.bier-wish-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25); }
@media (max-width: 760px) {
  .bier-wish-form { grid-template-columns: 1fr; }
  .bier-wish-remove { width: 44px; height: 44px; }
}

/* Samen: "Wie wint?", Redmer and Berry side by side; the winner of a row lights up */
.bier-duel { display: grid; gap: 10px; padding: clamp(14px, 3vw, 20px); animation: bier-in 0.5s cubic-bezier(.2, .7, .2, 1) backwards; }
.bier-duel[hidden] { display: none; }
.bier-duel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.bier-duel-head h2 { margin: 0; font-size: 1.35rem; }
.bier-duel-score { color: var(--accent); font-weight: 750; }
.bier-duel-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.bier-duel-table thead th { color: var(--faint); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.bier-duel-table tbody th { width: 34%; padding-right: 8px; color: var(--muted); font-size: 0.86rem; font-weight: 650; text-align: left; line-height: 1.25; }
.bier-duel-table td { padding: 8px 6px; border: 1px solid var(--line-strong); background: var(--surface-2); text-align: center; font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; font-variant-numeric: tabular-nums; }
.bier-duel-table td + td { border-left: 0; }
.bier-duel-table thead td { border: 0; background: none; }
.bier-duel-table tbody td:nth-of-type(1) { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.bier-duel-table tbody td:nth-of-type(2) { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.bier-duel-table td small { color: var(--muted); font-weight: 650; white-space: nowrap; }
.bier-duel-table td.is-win { color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface-solid)); }
@media (max-width: 420px) {
  .bier-duel-table tbody th { width: 30%; font-size: 0.8rem; }
  .bier-duel-table td { padding: 7px 4px; font-size: 0.92rem; }
}

/* Samen: both scores side by side */
.bier-duo-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bier-duo-side { display: grid; justify-items: center; padding: 8px 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.bier-duo-side small { color: var(--faint); font-size: 0.74rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.bier-duo-side b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bier-duo-side.is-higher { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface-solid)); }
.bier-duo-side.is-higher b { color: var(--accent); }
.bier-duo-verdict { color: var(--muted); font-size: 0.9rem; font-weight: 700; text-align: center; }

/* Berry's entry screen (/bier/berry) */
.berry { width: min(620px, calc(100% - 2 * var(--gutter))); }
.berry .eyebrow a { color: inherit; text-decoration: none; }
.berry .eyebrow a:hover { color: var(--accent); }
.berry-hello { color: var(--muted); font-weight: 650; }
.berry-hello:empty { display: none; }
.berry-login, .berry-form, .berry-list { display: grid; gap: 16px; padding: clamp(16px, 4vw, 24px); }
.berry-login[hidden], .berry-form[hidden], .berry-list[hidden] { display: none; }
.berry-login h2, .berry-list h2 { margin: 0; font-size: 1.4rem; }
.berry-login p { color: var(--muted); }
.berry-field { display: grid; gap: 8px; min-width: 0; }
.berry-field > span:first-child, .berry-field > label { color: var(--faint); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.berry-field em { margin-left: 6px; color: var(--accent); font-style: normal; text-transform: none; letter-spacing: 0; }
.berry-field input:not([type="range"]), .berry-field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); background: var(--surface-2); font: inherit; font-size: 1.08rem; outline: none; box-sizing: border-box;
}
.berry-field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.berry-field input::placeholder, .berry-field textarea::placeholder { color: var(--faint); }
.berry-field input:focus, .berry-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25); }
.berry-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; }
.berry-suffix { position: relative; display: block; }
.berry-suffix input { padding-right: 40px !important; }
.berry-suffix b { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); }

/* The score: big number with - and +, and a slider under it */
.berry-score { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 12px; }
.berry-score output { text-align: center; color: var(--accent); font-family: var(--font-display); font-size: 3.4rem; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.berry-step { height: 64px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); background: var(--surface-2); font: inherit; font-size: 2rem; font-weight: 600; line-height: 1; cursor: pointer; touch-action: manipulation; }
.berry-step:hover { border-color: var(--accent); }
.berry-step:active { transform: scale(0.94); }
.berry-field input[type="range"] { --fill: 66.7%; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.berry-field input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--surface-2) var(--fill)); border: 1px solid var(--line-strong); }
.berry-field input[type="range"]::-moz-range-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--surface-2) var(--fill)); border: 1px solid var(--line-strong); }
.berry-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border: 3px solid var(--surface-solid); border-radius: 50%; background: var(--accent); box-shadow: 0 2px 8px rgba(var(--ink-deep), 0.5); }
.berry-field input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 3px solid var(--surface-solid); border-radius: 50%; background: var(--accent); }
.berry-ticks { display: flex; justify-content: space-between; margin-top: -6px; padding: 0 6px; color: var(--faint); font-size: 0.78rem; font-weight: 700; }
.berry-kinds button { min-height: 38px; padding: 6px 14px; font-size: 0.88rem; }

/* The photo */
.berry-photo { display: grid; gap: 10px; }
.berry-photo-frame { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: radial-gradient(circle at 50% 30%, var(--raised), var(--surface-solid)); }
.berry-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.berry-photo-frame.is-found img { object-fit: contain; }
.berry-photo-frame img[hidden], .berry-photo-empty[hidden] { display: none; }
.berry-photo-empty { display: grid; justify-items: center; gap: 10px; max-width: 280px; padding: 16px; color: var(--muted); font-weight: 600; text-align: center; }
.berry-photo-empty svg { width: 54px; height: 54px; fill: none; stroke: rgba(var(--accent-rgb), 0.8); stroke-width: 1.5; stroke-linejoin: round; }
.berry-photo-frame.is-busy .berry-photo-empty svg { animation: berry-pulse 1s ease-in-out infinite alternate; }
.berry-photo-credit { color: var(--faint); font-size: 0.78rem; font-weight: 600; text-align: center; }
.berry-photo-credit:empty { display: none; }
.berry-photo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Buttons */
.berry-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); background: var(--surface-2);
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; touch-action: manipulation; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.berry-button[hidden] { display: none; }
.berry-button:hover { border-color: var(--accent); }
.berry-button:active { transform: scale(0.97); }
.berry-button:disabled { opacity: 0.6; cursor: wait; }
.berry-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.berry-button.is-main { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.berry-button.is-wide { flex: 1 1 100%; min-height: 56px; font-size: 1.1rem; }
.berry-button.is-danger { border-color: rgba(255, 143, 128, 0.5); color: var(--bad); }
.berry-button.is-small { min-height: 40px; padding: 6px 14px; font-size: 0.88rem; }
.berry-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.berry-actions .berry-button:not(.is-wide) { flex: 1 1 0; }
.berry-error { color: var(--bad); font-weight: 700; }
.berry-error:empty { display: none; }
.berry-toast { padding: 12px 16px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 16%, var(--surface-solid)); font-weight: 600; text-align: center; }
.berry-toast:not(.is-on) { display: none; }
.berry-toast a { color: var(--accent); font-weight: 750; }

/* His list */
.berry-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line-strong); }
.berry-thumb { width: 48px; height: 48px; border-radius: 12px; background: var(--raised) center / cover no-repeat; }
.berry-thumb.is-empty { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b49c86' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 4h11l-1.2 15a1.5 1.5 0 0 1-1.5 1.4H9.2a1.5 1.5 0 0 1-1.5-1.4z'/%3E%3Cpath d='M7 8.5h10'/%3E%3C/svg%3E"); background-size: 28px; }
.berry-item-name { display: grid; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.berry-item-name small { color: var(--faint); font-size: 0.8rem; font-weight: 600; }
.berry-item-score { color: var(--accent); font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.berry-none { color: var(--muted); }

/* Looks like one on the list: a soft note under the name, and a box when saving */
.berry-like, .berry-double { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid rgba(var(--accent-rgb), 0.55); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 10%, var(--surface-solid)); }
.berry-like[hidden], .berry-double[hidden] { display: none; }
.berry-like { margin-top: -6px; animation: bier-in 0.3s ease backwards; }
.berry-like p { color: var(--accent); font-size: 0.92rem; font-weight: 700; }
.berry-like-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; }
.berry-like-row .berry-thumb { width: 36px; height: 36px; border-radius: 9px; }
.berry-like-row .berry-thumb.is-empty { background-size: 22px; }
.berry-like-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.berry-like-name small { color: var(--muted); font-size: 0.86rem; font-weight: 650; white-space: nowrap; }
.berry-double { gap: 12px; padding: 16px; border-width: 2px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface-solid)); }
.berry-double-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; }
.berry-double-list { display: grid; gap: 8px; }
.berry-double-hint { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.berry-double-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.berry-double-actions .berry-button { flex: 1 1 140px; }
.berry-wish-note { margin-top: -6px !important; color: var(--accent); font-size: 0.92rem; font-weight: 700; }
.berry-wish-note[hidden] { display: none; }
.berry-logout { justify-self: center; border: 0; color: var(--faint); background: none; font: inherit; font-size: 0.85rem; font-weight: 600; text-decoration: underline; cursor: pointer; }

@keyframes berry-pulse { to { opacity: 0.4; transform: scale(0.92); } }

@media (max-width: 760px) {
  .bier-who-row { flex-direction: column; align-items: stretch; }
  .bier-pills.bier-who { margin: 0; padding: 0; overflow: visible; }
  .bier-who button { flex: 1 1 0; }
  .bier-add { justify-content: center; }
  .bier-duo-side b { font-size: 1.35rem; }
}
/* Phones: every tap target at least 44 px, and long names wrap instead of being cut off. */
@media (max-width: 760px) {
  .berry .eyebrow a { display: inline-flex; align-items: center; min-height: 44px; }
  .berry-kinds button { min-height: 44px; }
  .berry-button.is-small { min-height: 44px; }
  .berry-logout { min-height: 44px; padding: 0 12px; }
  /* His list: the name gets the room, the score sits above the edit button. */
  .berry-item { grid-template-columns: 48px minmax(0, 1fr) auto; row-gap: 4px; }
  .berry-item .berry-thumb { grid-row: span 2; }
  .berry-item-name { grid-row: span 2; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
  .berry-item-score { justify-self: center; line-height: 1; }
}
@media (max-width: 420px) {
  .berry-row { grid-template-columns: 1fr; }
  .berry-score { grid-template-columns: 56px 1fr 56px; }
  .berry-step { height: 56px; }
}

/* --- Styling 2026-11-04: clearer Kippie, centred home, calmer edges, pressed leather, rivets on cards --- */

/* 2. PC: title and tiles in the middle instead of on the left. */
@media (min-aspect-ratio: 5/4) and (min-width: 1000px) {
  .home-wrap { margin-inline: auto; }
  body.is-home::before, body.is-home .background-video, body.is-home .background-photo {
    transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -9px), 0) scale(1.08);
  }
}

/* 3. Calmer edges: one line on the header and plain panels; stitching stays on the tiles and cards. */
.site-header { border-bottom: 1px solid rgba(var(--line-rgb), 0.12); }
.card:not(.home-tile):not(.album-card):not(.bier-card):not(.bier-stat):not(.bier-stats-card) { outline: none; }

/* 4. Phone: icon and name side by side, the hint across the full width so it stays on one line; tiles fill the screen calmly. */
@media (max-width: 760px) {
  .home-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon name" "hint hint";
    align-items: center;
    gap: 6px 9px;
    padding: 13px 17px;
  }
  .home-tile-text { display: contents; }
  .home-tile-icon { grid-area: icon; width: 32px; height: 32px; }
  .home-tile-icon svg { width: 18px; height: 18px; }
  .home-tile strong { grid-area: name; }
  .home-tile-hint { grid-area: hint; display: block; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.74rem; }
  .empty-home.is-active { min-height: calc(100dvh - 76px - 96px); align-items: center; }
}

/* 5. Hover or touch: the tile sinks in a little like pressed leather and the rivets glint once. */
.home-tile, .album-card, .bier-card, .listing.kanshebber { transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, border-color 200ms ease; }
.home-tile:hover, .album-card:hover, .bier-card:hover, .listing.kanshebber:hover,
.home-tile:active, .album-card:active, .bier-card:active, .listing.kanshebber:active {
  transform: translateY(1px) scale(0.988);
  box-shadow: inset 0 3px 10px rgba(var(--ink-deep), 0.45), 0 4px 14px rgba(var(--ink-deep), 0.3);
}
@keyframes rivet-glint {
  0%, 100% { filter: none; }
  40% { filter: brightness(1.7) saturate(1.2) drop-shadow(0 0 2px rgba(255, 210, 150, 0.8)); }
}
.home-tile:hover::after, .album-card:hover::after, .bier-card:hover::after, .listing.kanshebber:hover::after,
.home-tile:active::after, .album-card:active::after, .bier-card:active::after, .listing.kanshebber:active::after { animation: rivet-glint 700ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  .home-tile:hover, .album-card:hover, .bier-card:hover, .listing.kanshebber:hover { transform: none; }
}

/* 6. The same leather with stitching and copper rivets on album, beer and kanshebber cards. */
.listing.kanshebber { position: relative; outline: 1.5px dashed rgba(var(--stitch-rgb), 0.38); outline-offset: -7px; background-image: var(--grain); }
.album-card::after, .bier-card::after, .listing.kanshebber::after {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: 3;
  pointer-events: none;
  --stud: radial-gradient(circle at 40% 35%, #f0c48c 0 0.8px, #c58a50 1.4px, #7a4a22 2.6px, rgba(0, 0, 0, 0.35) 3.1px, transparent 3.6px);
  background:
    var(--stud) top left / 8px 8px no-repeat, var(--stud) top right / 8px 8px no-repeat,
    var(--stud) bottom left / 8px 8px no-repeat, var(--stud) bottom right / 8px 8px no-repeat;
}
.bier-card { position: relative; }

/* Statistieken: stitched cards with rivets; Redmer in caramel, Berry in blue, everywhere on the tab. */
.bier-stats { --c-redmer: var(--accent); --c-berry: var(--info); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bier-stats[hidden] { display: none; }
.bier-stats > .bier-message { grid-column: 1 / -1; }
.bier-stats-card { position: relative; display: grid; align-content: start; gap: 12px; min-width: 0; padding: clamp(16px, 3vw, 22px); outline: 1.5px dashed rgba(var(--stitch-rgb), 0.38); outline-offset: -7px; animation: bier-in 0.5s cubic-bezier(.2, .7, .2, 1) backwards; }
.bier-stats-card:nth-child(2) { animation-delay: 60ms; }
.bier-stats-card:nth-child(3) { animation-delay: 120ms; }
.bier-stats-card:nth-child(4) { animation-delay: 180ms; }
.bier-stats-card::after {
  content: ""; position: absolute; inset: 11px; z-index: 3; pointer-events: none;
  --stud: radial-gradient(circle at 40% 35%, #f0c48c 0 0.8px, #c58a50 1.4px, #7a4a22 2.6px, rgba(0, 0, 0, 0.35) 3.1px, transparent 3.6px);
  background: var(--stud) top left / 8px 8px no-repeat, var(--stud) top right / 8px 8px no-repeat, var(--stud) bottom left / 8px 8px no-repeat, var(--stud) bottom right / 8px 8px no-repeat;
}
.bier-stats-card h2 { margin: 0; font-size: 1.3rem; }
.bier-stats-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.bier-stats-note, .bier-stats-none { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.bier-stats-none { font-weight: 600; }
.bier-stats-table tbody th small { display: block; color: var(--faint); font-size: 0.74rem; font-weight: 600; }
.bier-stats-table td small { display: block; margin-top: 2px; white-space: normal; }
.bier-stats-table td .bier-stats-none { font-size: 0.86rem; }
.bier-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: 0; }
.bier-dot.is-redmer { background: var(--c-redmer); }
.bier-dot.is-berry { background: var(--c-berry); }

/* Legend and bars */
.bier-legend { display: flex; gap: 14px; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.bier-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; }
.bier-legend .is-redmer::before { background: var(--c-redmer); }
.bier-legend .is-berry::before { background: var(--c-berry); }
.bier-chart { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-items: end; gap: clamp(3px, 1.2vw, 10px); padding-top: 20px; border-bottom: 1px solid var(--line-strong); }
.bier-chart-col { display: grid; gap: 6px; min-width: 0; }
.bier-chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 140px; }
.bier-bar { position: relative; flex: 1 1 0; max-width: 26px; height: max(var(--h), 2px); border-radius: 5px 5px 0 0; transform-origin: bottom; animation: bier-grow 0.6s cubic-bezier(.2, .7, .2, 1) backwards 0.15s; }
.bier-bar.is-redmer { background: var(--c-redmer); }
.bier-bar.is-berry { background: var(--c-berry); }
.bier-bar:not(:has(b)) { opacity: 0.35; }
.bier-bar b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 2px; color: var(--text); font-size: 0.74rem; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.bier-chart-col small { overflow: hidden; color: var(--faint); font-size: 0.74rem; font-weight: 700; text-align: center; white-space: nowrap; text-overflow: clip; }
@keyframes bier-grow { from { transform: scaleY(0); } }

/* Redmer and Berry compared: small fact tiles */
.bier-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 0; }
.bier-fact { display: grid; align-content: start; gap: 4px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.bier-fact dt { color: var(--faint); font-size: 0.74rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.bier-fact dd { margin: 0; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.bier-fact dd small { display: block; color: var(--muted); font-size: 0.84rem; font-weight: 650; }

@media (max-width: 860px) { .bier-stats { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .bier-stats { gap: 12px; }
  .bier-who { display: grid !important; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 6px; }
  .bier-who button { min-width: 0; padding: 8px 4px; font-size: 0.92rem; }
  .bier-chart-bars { height: 120px; }
  .bier-bar b { font-size: 0.68rem; }
  .bier-chart-col small { font-size: 0.66rem; }
}
@media (prefers-reduced-motion: reduce) { .bier-bar, .bier-stats-card { animation: none; } }
