:root {
  --bg: #fbf4e9;
  --paper: #fffdf8;
  --ink: #2b221c;
  --soft: #6f6157;
  --line: #eadccb;
  --accent: #d4502c;
  --accent-ink: #fff;
  --olive: #586a37;
  --butter: #f6d77b;
  --shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 6px 18px rgba(60, 40, 20, .08);
  --r: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 10px 16px 40px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.brand { font-weight: 800; letter-spacing: -.01em; text-decoration: none; font-size: 17px; }
.brand b { color: var(--accent); }
.top small { color: var(--soft); font-size: 13px; }
h1 { font-size: 21px; line-height: 1.22; margin: 4px 0 10px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 22px 0 8px; }
.muted { color: var(--soft); }
.small { font-size: 13px; }
.hide { display: none !important; }

/* Sample table on the landing page */
.sample { background: #f3e6d3; border-radius: var(--r); padding: 8px; margin-bottom: 10px; }
.sample-seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini { background: var(--paper); border-radius: 12px; padding: 7px 8px; box-shadow: var(--shadow); min-width: 0; }
.mini .nm { font-weight: 800; font-size: 13px; }
.mini .ln { font-size: 12.5px; line-height: 1.28; margin: 2px 0 3px; }
.mini .tt { font-size: 10.5px; color: var(--soft); text-transform: uppercase; letter-spacing: .03em; }
.sample-read { font-size: 13px; line-height: 1.3; margin: 7px 2px 1px; }
.sample-read b { color: var(--accent); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--olive); }

/* Buttons and fields */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; border: 0; border-radius: 14px; padding: 10px 16px; cursor: pointer;
  font-weight: 750; font-size: 16.5px; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: var(--paper); border: 1.5px solid var(--line); }
.btn.big { min-height: 56px; font-size: 18px; }
.btn[disabled] { opacity: .6; }
.linkbtn { background: none; border: 0; padding: 6px 0; text-decoration: underline; cursor: pointer; color: var(--soft); font-size: 14px; }
.step { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; }
.step .btn { flex: 1; }
textarea, input[type=text], input[type=email] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  padding: 10px 12px; outline: none; font-size: 16px;
}
textarea:focus, input:focus { border-color: var(--accent); }
textarea { height: 76px; resize: vertical; display: block; }
.row { display: flex; gap: 8px; margin-top: 6px; }
.row input { flex: 1; min-width: 0; }
.row .btn { width: auto; flex: 0 0 auto; }
.note { font-size: 13.5px; color: var(--soft); margin: 6px 2px 0; min-height: 0; }
.note.bad { color: #a4321a; }
.trust { font-size: 13px; color: var(--soft); text-align: center; margin: 6px 2px 0; }
#flow > input[type=text], .joinbox > input[type=text] { margin-bottom: 8px; }
.quizbtn { margin: 0 0 8px; min-height: 40px; font-size: 14.5px; }
#flow > .btn.big, .joinbox > .btn.big { margin-top: 8px; }
.alt { text-align: center; margin-top: 6px; }
.prompt-peek { font-size: 12.5px; white-space: pre-wrap; background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 8px; margin-top: 6px; user-select: all; -webkit-user-select: all; }

/* The card: the person's own three lines are the hero */
.card { background: var(--paper); border-radius: 20px; padding: 16px 16px 14px; box-shadow: var(--shadow); position: relative; }
.card .who { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card .nm { font-weight: 850; font-size: 20px; }
.card .seat { font-size: 12px; color: var(--soft); }
.card ol { list-style: none; margin: 8px 0 10px; padding: 0; }
.card li { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 0 0 10px; }
.card li .k { display: block; font-size: 11px; font-weight: 700; color: var(--olive); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1px; }
.card .title { font-size: 13px; color: var(--soft); font-weight: 650; border-top: 1px solid var(--line); padding-top: 8px; }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; margin-top: 8px; }
.bar { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--soft); }
.bar span { width: 62px; flex: 0 0 auto; }
.bar i { flex: 1; height: 5px; background: #f0e5d6; border-radius: 3px; overflow: hidden; display: block; }
.bar i b { display: block; height: 100%; background: var(--olive); border-radius: 3px; }
.notice { background: #fff4d6; border-radius: 12px; padding: 8px 12px; font-size: 14px; margin: 10px 0 0; }
.actions { display: grid; gap: 8px; margin-top: 12px; }

/* Table page */
.seats { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 12px; margin: 0 -16px; -webkit-overflow-scrolling: touch; }
.seats .card { flex: 0 0 82%; max-width: 330px; scroll-snap-align: center; }
.seats .card { padding: 13px 14px 11px; }
.seats .card .nm { font-size: 18px; }
.seats .card ol { margin: 6px 0 8px; }
.seats .card li { font-size: 15.5px; margin-bottom: 7px; }
.seats .card .bars { gap: 1px 12px; margin-top: 6px; }
.seats .empty { flex: 0 0 60%; max-width: 240px; border: 2px dashed #dcc8ae; border-radius: 20px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--soft); padding: 16px; font-weight: 650; }
.read { background: var(--paper); border-radius: var(--r); padding: 6px 16px; box-shadow: var(--shadow); }
.read p { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.4; }
.read p:last-child { border-bottom: 0; }
.read p b { font-weight: 800; }
.joinbox { background: var(--paper); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); margin-top: 10px; }
.paid { position: relative; margin-top: 22px; background: var(--paper); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); overflow: hidden; }
.paid h3 { margin: 0 0 4px; font-size: 17px; }
.paid ul { margin: 6px 0 10px; padding-left: 18px; font-size: 14px; color: var(--soft); }
.blur { filter: blur(5px); user-select: none; -webkit-user-select: none; pointer-events: none; font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.keybox { background: #fff4d6; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 14px; word-break: break-all; }
.foot { margin-top: 28px; font-size: 13px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Sheets */
.sheet-bg { position: fixed; inset: 0; background: rgba(30, 20, 10, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 18px 16px 22px; max-height: 92vh; overflow-y: auto; }
.sheet h3 { margin: 0 0 8px; font-size: 19px; }
.qprog { display: flex; gap: 5px; margin-bottom: 12px; }
.qprog i { flex: 1; height: 4px; border-radius: 2px; background: #e5d5c0; }
.qprog i.on { background: var(--accent); }
.qq { font-size: 20px; font-weight: 750; margin: 4px 0 14px; line-height: 1.25; }
.qa { display: grid; gap: 10px; }
.qa .btn { min-height: 60px; font-size: 17px; }
.shot { max-width: 100%; border-radius: 12px; display: block; margin: 8px auto; box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 30; max-width: 90vw; text-align: center; }

@media (max-height: 600px) {
  h1 { font-size: 19px; margin-bottom: 8px; }
  .mini .ln { font-size: 12px; }
  textarea { height: 64px; }
}
