:root {
  color-scheme: light;
  --ink: #4b301d;
  --muted: #877565;
  --accent: #aa3f2a;
  --line: #e7dac8;
  --paper: #fffaf2;
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: #e8dfd2;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a96628;
  outline-offset: 3px;
}
#app {
  width: 100%;
  max-width: 480px;
  min-height: 100svh;
  margin: auto;
  background: #f7eddf url("/assets/background.webp") center top/cover no-repeat;
  box-shadow: 0 0 50px #543b1b16;
  padding-bottom: env(safe-area-inset-bottom);
}
header {
  height: 60px;
  display: grid;
  grid-template-columns: 44px 1fr 64px;
  align-items: center;
  padding: 0 16px;
}
header h1 {
  font-size: 17px;
  margin: 0;
  text-align: center;
  font-weight: 650;
}
header .back {
  font-size: 30px;
  text-align: left;
  color: var(--ink);
}
header .nav {
  font-size: 13px;
  text-align: right;
}
button.link {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 8px;
}
.content {
  padding: 8px 24px 28px;
}
.brand {
  padding: 8px 24px 14px;
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: 2px;
}
.brand span {
  font-family: var(--serif);
  font-size: 12px;
  display: block;
  margin-top: 5px;
}
.hero {
  position: relative;
  min-height: 190px;
  background: url("/assets/store-atmosphere.webp") center/cover;
  border-radius: 0 0 18px 18px;
  margin-bottom: 14px;
  padding: 26px 24px;
}
.hero h2 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.5;
  margin: 0 0 22px;
  font-weight: 700;
}
.hero p {
  font-size: 14px;
  margin: 0;
}
.panel {
  background: #fffaf2ed;
  border: 1px solid #fffaf4;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
}
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.service {
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}
.photo {
  aspect-ratio: 1;
  border-radius: 12px;
  background-image: url("/assets/services.webp");
  background-size: 300% 100%;
  margin-bottom: 9px;
}
.photo.p0 {
  background-position: 0 0;
}
.photo.p1 {
  background-position: 50% 0;
}
.photo.p2 {
  background-position: 100% 0;
}
.service small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.field {
  display: block;
  font-size: 14px;
  margin-bottom: 16px;
}
.field > span {
  display: block;
  margin-bottom: 8px;
}
.input,
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 11px;
  min-height: 49px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 16px;
}
input::placeholder,
textarea::placeholder {
  color: #a49a90;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 21px;
  height: 21px;
  flex: none;
}
.primary,
.secondary {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 99px;
  min-height: 49px;
  padding: 12px 16px;
  font-weight: 600;
  text-align: center;
  font-size: 16px;
}
.primary {
  color: #fffaf4;
  background: linear-gradient(105deg, #be4930, #742b1f);
}
.secondary {
  color: var(--accent);
  background: transparent;
  border: 1px solid #ba8d71;
  margin-top: 12px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.small {
  font-size: 12px;
}
.section-title {
  font-size: 17px;
  margin: 24px 0 10px;
}
.rules {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.rules p {
  margin: 4px 0;
}
.text-link {
  display: block;
  text-align: center;
  font-size: 14px;
  margin: 18px 0 26px;
}
.footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  padding: 22px 12px 8px;
  color: var(--muted);
}
.footer a {
  color: var(--muted);
}
.error {
  color: #a53220;
  background: #fff0e9;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}
.error:empty {
  display: none;
}
.notice {
  background: #f2e8d8;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.title {
  font-family: var(--serif);
  font-size: 28px;
  margin: 14px 0 8px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.ticket-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ticket-heading h2 {
  font-family: var(--serif);
  font-size: 23px;
  margin: 0;
}
.badge {
  display: inline-block;
  background: #f2e2cc;
  color: #8a542f;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12px;
  white-space: nowrap;
}
.badge.good {
  background: #e5eddf;
  color: #526b3f;
}
.ticket-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 16px;
}
.item-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.item-row:last-child {
  border-bottom: 0;
}
.item-row .photo {
  width: 56px;
  height: 56px;
  flex: none;
  margin: 0;
  border-radius: 10px;
}
.item-row .name {
  flex: 1;
  min-width: 0;
}
.name strong {
  font-size: 15px;
  font-weight: 500;
  display: block;
}
.name small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
.item-row.used {
  opacity: 0.55;
}
.item-row .state {
  font-size: 12px;
  white-space: nowrap;
}
.qr-section {
  text-align: center;
  border-top: 1px dashed #d7c3a8;
  margin: 20px -20px -4px;
  padding: 18px 20px 0;
}
.qr-section img {
  width: 190px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.code {
  font-size: 20px;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  margin: 7px 0;
}
.qr-section .code {
  font-size: 18px;
  letter-spacing: 2px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.actions > * {
  flex: 1;
}
.actions .secondary {
  margin: 0;
}
.secret {
  overflow-wrap: anywhere;
  user-select: all;
  font: 13px monospace;
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin: 12px 0;
}
details {
  font-size: 13px;
  margin: 18px 0;
  line-height: 1.7;
}
summary {
  cursor: pointer;
  color: var(--muted);
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.check-row .name {
  flex: 1;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 65px;
}
.password-wrap button {
  position: absolute;
  right: 7px;
  top: 6px;
}
.login-mark {
  margin: 30px auto 26px;
  width: 70px;
  height: 70px;
  border: 1px solid #ac8866;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 38px var(--serif);
}
.login-panel {
  margin-top: 30px;
}
.scan-area {
  height: 290px;
  background: #efe2cd;
  border-radius: 20px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 22px 0;
}
.scan-frame {
  width: 190px;
  height: 190px;
  border: 2px solid #9c5b3d;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #926f50;
  font-size: 48px;
}
.scan-area video {
  object-fit: cover !important;
}
#reader {
  width: 100%;
}
.scan-area.active .scan-frame {
  display: none;
}
.entry-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.entry-link {
  background: #fffaf2cc;
  padding: 19px 8px;
  text-align: center;
  border-radius: 14px;
  color: var(--ink);
  font-size: 14px;
}
.entry-link span {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}
.success-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6ebdb;
  color: #627047;
  font-size: 40px;
  margin: 24px auto 20px;
}
.success-summary {
  margin: 20px 0;
}
.definition {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.definition span:first-child {
  color: var(--muted);
}
.definition span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fffaf2cc;
  border-radius: 18px;
  padding: 20px;
  margin: 20px 0;
}
.stats > div {
  text-align: center;
}
.stats > div + div {
  border-left: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-size: 29px;
  font-weight: 500;
  color: var(--accent);
}
.stats small {
  color: var(--muted);
  font-size: 12px;
}
.record {
  background: #fffaf3cc;
  padding: 17px;
  border-radius: 14px;
  margin: 12px 0;
}
.record-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.record p {
  font-size: 14px;
  margin: 10px 0;
}
.record small {
  font-size: 12px;
  color: var(--muted);
}
.filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.empty {
  text-align: center;
  padding: 30px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.account-qr {
  display: block;
  width: 210px;
  height: 210px;
  object-fit: contain;
  margin: 24px auto;
  background: white;
  border-radius: 12px;
}
.account-search {
  padding: 22px 10px;
  border: 1px dashed #cfb99a;
  border-radius: 14px;
  margin: 22px 0;
}
.account-search strong {
  font: 24px var(--serif);
  display: block;
  margin: 10px 0;
}
.loading {
  text-align: center;
  padding: 90px 24px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: calc(34px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  background: #3c2c22ed;
  color: white;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  z-index: 40;
  pointer-events: none;
  display: none;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 20px;
  width: min(440px, calc(100% - 28px));
  max-height: 90svh;
  background: #fffaf2;
  color: var(--ink);
}
dialog::backdrop {
  background: #251b16aa;
}
dialog img {
  max-width: 100%;
  display: block;
  margin: auto;
}
dialog .close {
  float: right;
  border: 0;
  background: none;
  font-size: 22px;
  padding: 0 4px;
  margin-bottom: 12px;
}
.menu-row {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}
.illustration-note {
  font-size: 10px;
  color: #947f66;
  text-align: right;
  margin-top: 8px;
}
.stack {
  display: grid;
  gap: 12px;
}
.staff-footer {
  margin-top: 28px;
  text-align: center;
}
.plain-status {
  padding: 28px 12px;
  text-align: center;
  font: 24px var(--serif);
}
@media (min-width: 600px) {
  #app {
    margin-top: 24px;
    margin-bottom: 24px;
    min-height: calc(100svh - 48px);
    border-radius: 24px;
    overflow: hidden;
  }
  .hero {
    min-height: 210px;
  }
}
@media (max-width: 360px) {
  .content {
    padding-left: 18px;
    padding-right: 18px;
  }
  .panel {
    padding: 16px;
  }
  .services {
    gap: 9px;
  }
  .service {
    font-size: 11px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .ticket-heading h2 {
    font-size: 21px;
  }
}

[hidden] {
  display: none !important;
}
#app[data-page="/mine"] .mine-ticket .qr-section {
  border: 0;
  margin: 4px 0 12px;
  padding: 0;
}
#app[data-page="/mine"] .mine-ticket .qr-section img {
  width: 166px;
}
#app[data-page="/mine"] .mine-ticket .item-row {
  padding: 7px 0;
  border: 0;
}
#app[data-page="/mine"] .mine-ticket .item-row .photo {
  width: 40px;
  height: 40px;
}
#app[data-page="/mine"] .mine-ticket .name small {
  display: none;
}
#app[data-page="/mine"] .mine-ticket .state {
  color: var(--accent);
}
#app[data-page="/mine"] .mine-ticket .qr-section .hint {
  color: var(--accent);
  font-size: 13px;
}
.found-ticket h2 {
  font-size: 19px;
  margin: 0;
}
.found-ticket .hint {
  margin-bottom: 0;
}
.confirm-title {
  font-size: 23px;
  margin: 26px 0 18px;
}
.selection-rows .item-row {
  background: #fffaf2df;
  border: 0;
  border-radius: 13px;
  padding: 8px;
  margin: 10px 0;
}
.selection-rows .item-row:has(input:checked) {
  background: #f4dcd0;
}
.selection-rows .item-row .photo {
  width: 52px;
  height: 52px;
}
.selection-rows input {
  margin-right: 10px;
}
.verify-phone {
  margin: 30px 0 18px;
}
.verify-phone .field > span {
  font-weight: 600;
}
.verify-phone .hint {
  display: none;
}

.field, .actions > *, .ticket-heading > *, .check-row .name { min-width: 0; }
input:not([type="checkbox"]), select, textarea { min-width: 0; max-width: 100%; }
.account-qr { max-width: 100%; height: auto; aspect-ratio: 1; }
/* Brown / ivory activity design restored from Ardot, with a compact mobile layout. */
#app[data-page="/"] {padding:0 16px max(10px,env(safe-area-inset-bottom));}
#app[data-page="/"] > header {display:none;}
.claim-brand {height:66px;display:flex;align-items:center;justify-content:space-between;}
.claim-brand > a {font-size:14px;min-height:44px;display:flex;align-items:center;}
.brand-logo {position:relative;display:block;width:110px;height:57px;overflow:hidden;mix-blend-mode:multiply;}
.brand-logo img {position:absolute;width:176px;max-width:none;height:auto;left:-31px;top:-60px;}
.claim-content {padding:0;}
.claim-hero {height:150px;background:linear-gradient(90deg,#f7eddf55,transparent),url('/assets/store-atmosphere.webp') center/cover;border-radius:14px;padding:16px;margin-bottom:12px;}
.claim-hero h1 {font-family:var(--serif);font-size:28px;line-height:1.35;margin:0 0 12px;}
.claim-hero p {font-size:13px;margin:0;}
.claim-ticket {background:#fffaf2ed;border-radius:16px;padding:12px;}
.claim-subtitle {font-size:12px;color:var(--muted);margin:0 0 10px;text-align:center;}
.claim-ticket .services {gap:8px;margin-bottom:12px;}
.claim-ticket .service {font-size:12px;line-height:18px;}
.claim-ticket .photo {width:min(100%,72px);margin:0 auto 5px;border-radius:10px;}
.claim-ticket .service small {font-size:12px;line-height:18px;margin-top:2px;}
.claim-form .field {margin-bottom:10px;}
.claim-form .field > span {font-size:13px;line-height:18px;margin-bottom:6px;}
.claim-form input {min-height:44px;border:1px solid #dccbbb;}
.claim-form .primary {min-height:46px;font-size:16px;padding:11px 14px;}
.claim-phone-note {font-size:12px;line-height:18px;color:var(--muted);text-align:center;margin:8px 0 0;}
.claim-footer {padding-top:6px;}
.claim-footer-links {display:flex;justify-content:center;align-items:flex-start;gap:24px;}
.claim-footer-links a,.claim-footer summary {display:flex;align-items:center;justify-content:center;min-height:36px;font-size:13px;color:var(--accent);}
.claim-rules {margin:0;}
.claim-rules summary {list-style:none;}
.claim-rules summary::-webkit-details-marker {display:none;}
.claim-rules summary::after {content:'⌄';margin-left:8px;}
.claim-rules[open] {flex:1;}
.claim-validity {text-align:center;font-size:12px;line-height:18px;color:var(--muted);margin:0 0 4px;}
.technical-support {font-size:12px;line-height:18px;text-align:center;color:#877565;margin:0;}
.legacy-support {padding:8px 12px 16px;}
@media(max-height:640px){.claim-hero{height:116px;padding:12px 16px;}.claim-hero h1{font-size:24px;margin-bottom:6px;}.claim-ticket .photo{width:min(100%,60px);}.claim-brand{height:60px;}}
@media(max-height:580px){.claim-hero{height:96px;padding:8px 14px;margin-bottom:8px;}.claim-hero h1{font-size:21px;margin-bottom:4px;}.claim-brand{height:54px;}.brand-logo{width:100px;height:51px;}.brand-logo img{width:160px;left:-28px;top:-55px;}.claim-ticket{padding:10px;}.claim-ticket .photo{width:48px;}.claim-subtitle{margin-bottom:6px;}.claim-ticket .services{margin-bottom:8px;}.claim-phone-note{margin-top:6px;}.claim-footer{padding-top:2px;}}
@media(max-width:360px){#app[data-page="/"]{padding-left:12px;padding-right:12px;}}
@media(max-height:580px){.claim-subtitle{display:none;}}
