/* Pause Kitchen & Bar — Domino review app
   Brand: cream bg, vivid orange accent, near-black text.
   Fonts: Lilita One (display headings) + Inter (body/UI) + IBM Plex Mono (codes only). */

:root {
  --accent: #FF6123;
  --accent-dark: #e0480f;
  --light-accent: #FACF9F;
  --bg: #FAFAF9;
  --text: #0D0D0D;
  --dark: #191A1A;
  --muted: #6b6b68;
  --card: #ffffff;
  --ok: #1f9d57;
  --err: #d23b3b;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(13, 13, 13, 0.08);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Lilita One", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0 0 0.4em;
}

a { color: var(--accent-dark); }

/* ---------- layout ---------- */
.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 28px;
}
.screen-center { justify-content: center; }
.spacer { flex: 1; }

.brandbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.brandbar.center { justify-content: center; }
.logo { height: 30px; width: auto; display: block; }
.logo-sm { height: 24px; }
/* render the black logo white on dark surfaces */
.logo-invert { filter: brightness(0) invert(1); }
.brandbar .tag { color: var(--muted); font-size: 13px; }

/* ---------- guest ---------- */
.gift-badge {
  display: inline-block;
  background: var(--light-accent);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 11vw, 56px); }
.hero p { font-size: 16px; color: var(--muted); line-height: 1.5; }

.steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}
.steps .num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.progress {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.progress span {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(13, 13, 13, 0.12);
}
.progress span.on { background: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 17px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:active { background: var(--accent-dark); }
.btn-dark { background: var(--dark); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--muted); box-shadow: none; }
.btn-light { background: var(--light-accent); color: var(--text); }

/* ---------- reward ---------- */
.code-box {
  background: var(--dark);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.code-box .label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--light-accent); }
.code-box .code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: 8px;
  margin: 8px 0 4px;
}
.show-note {
  background: var(--light-accent);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  text-align: center;
}

/* ---------- timer wait box ---------- */
.wait-box {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 18px; color: var(--muted); font-size: 14px;
}
.wait-ring {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--light-accent);
  border: 4px solid var(--accent);
  font-family: var(--display); font-size: 34px; color: var(--text);
}

/* ---------- cards / admin ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat .n { font-family: var(--display); font-size: 28px; }
.stat .t { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.funnel { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.funnel .bar { background: var(--light-accent); border-radius: 8px; height: 30px; display: flex; align-items: center; padding: 0 10px; font-size: 13px; min-width: 60px; }

.pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.pill-on { background: #e3f6ea; color: var(--ok); }
.pill-off { background: #eee; color: var(--muted); }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid rgba(13, 13, 13, 0.14);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 80px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- flash / pin ---------- */
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.flash.error { background: #fdecec; color: var(--err); }
.flash.ok { background: #e3f6ea; color: var(--ok); }

.result { padding: 20px; border-radius: var(--radius); text-align: center; margin-bottom: 16px; }
.result.ok { background: #e3f6ea; }
.result.bad { background: #fdecec; }
.result .big { font-family: var(--display); font-size: 26px; margin-bottom: 4px; }

.pin-input { text-align: center; font-size: 28px; letter-spacing: 12px; font-family: var(--mono); }

/* ---------- links & ratios ---------- */
.link-row { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.link-row:first-child { padding-top: 0; }
.bar-mini { height: 8px; border-radius: 5px; background: rgba(13,13,13,.08); overflow: hidden; }
.bar-mini span { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-row form { margin: 0; }
.chip-del {
  background: #fbeae6; color: var(--accent-dark); border: none;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--sans);
}
.chip-del:active { background: #f7d8d0; }
.pct-badge { font-weight: 700; font-size: 14px; }
.pct-badge .pctval { font-family: var(--mono); }
.ratio-total {
  font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 12px;
  margin: 6px 0 14px; background: rgba(13,13,13,.05);
}
.ratio-total.ok { background: #e3f6ea; color: var(--ok); }
.ratio-total.warn { background: #fdf0e8; color: var(--accent-dark); }
.ratio-total span { font-weight: 500; }
/* range slider, branded */
.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  border-radius: 6px; background: rgba(13,13,13,.12); outline: none; padding: 0; border: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); cursor: pointer; box-shadow: 0 2px 6px rgba(13,13,13,.25); border: 3px solid #fff;
}
.slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(13,13,13,.25);
}

/* ---------- nav ---------- */
.topnav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.topnav .wordmark { font-family: var(--display); font-size: 20px; }
.topnav a { font-size: 13px; text-decoration: none; }
.qr-preview { display: block; width: 200px; max-width: 60%; margin: 0 auto 14px; border-radius: 12px; }
