@font-face {
  font-family: "MilligramVariable";
  src: url("./font/0_MilligramVariable-Roman.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --page-bg: #e1decb;
  --card-bg: #d5d3be;
  --card-border: #a3a08e;
  --muted: #5e5c54;
  --text: #111111;
  --update-bg: #6f4d16;
  --update-text: #fffde5;
  --fab-bg: #f59a00;
  --nav-bg: #fbfbfb;
  --nav-border: #ccc7bb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: "MilligramVariable", Inter, Arial, sans-serif;
}

body {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  padding: 18px 12px 102px;
}

.topbar {
  margin: 0 auto 130px;
  max-width: 390px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.notify-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 9px;
  background: #ffffff;
  border: 1px solid #d9d4c6;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(54, 46, 23, 0.08);
}

.notify-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #111111;
}

.notify-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notify-label {
  font-family: "MilligramVariable", Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111111;
}

.screen {
  margin: 0 auto;
  max-width: 390px;
}

.reserve-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  perspective: 1200px;
  min-height: var(--card-height, auto);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reserve-card-inner {
  position: relative;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reserve-card.is-flipped .reserve-card-inner {
  transform: rotateY(180deg);
}

.reserve-card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reserve-card-front {
  position: relative;
  z-index: 2;
}

.reserve-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 32%),
    linear-gradient(180deg, #e2e0d1 0%, #cfccb9 100%);
}

.qr-sheet {
  flex: 1;
  display: flex;
  padding: 10px;
}

.qr-canvas-wrap {
  flex: 1;
  display: grid;
  place-items: center;
}

.qr-canvas {
  width: var(--qr-size, 100%);
  height: var(--qr-size, 100%);
  max-width: 100%;
  max-height: 100%;
  display: block;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 8px #ffffff;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 14px 0;
}

.card-title {
  margin: 0;
  font-family: "MilligramVariable", Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.emblem {
  width: 43px;
  height: auto;
  display: block;
}

.card-main {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 10px 14px 0;
  align-items: start;
}

.portrait {
  width: 100%;
  aspect-ratio: 281 / 377;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #efece3;
}

.meta {
  margin: 2px 0 0;
}

.meta-row + .meta-row {
  margin-top: 18px;
}

.meta dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-family: "MilligramVariable", Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.meta dd {
  margin: 0;
  font-family: "MilligramVariable", Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.18;
}

.update-bar {
  margin: 50px 0 0;
  background: var(--update-bg);
  color: var(--update-text);
  font-family: "MilligramVariable", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  padding: 5px 0;
  letter-spacing: 0.01em;
  overflow: hidden;
}

.update-track {
  width: max-content;
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
  animation: reserve-marquee 16s linear infinite;
}

.update-text {
  display: inline-block;
  padding-left: 0px;
}

.identity {
  position: relative;
  padding: 20px 84px 16px 14px;
  min-height: 130px;
}

.status {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "MilligramVariable", Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  /* font-stretch: 84%;
  font-variation-settings: "wght" 500, "wdth" 84, "opsz" 13, "ital" 0; */
}

.name {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.fab {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--fab-bg);
  color: #111;
  font-size: 33px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.fab span {
  transform: translateY(-1px);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  background: var(--nav-bg);
  border-top: 1px solid var(--nav-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  text-decoration: none;
  color: #181818;
  padding: 8px 8px 5px;
  display: grid;
  justify-items: center;
  gap: 0px;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.nav-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.is-active .nav-icon svg {
  fill: currentColor;
  stroke: currentColor;
}

.nav-item.is-active .nav-icon svg rect {
  fill: currentColor;
}

.nav-item.is-active .nav-icon svg rect:nth-of-type(2),
.nav-item.is-active .nav-icon svg rect:nth-of-type(3),
.nav-item.is-active .nav-icon svg rect:nth-of-type(4) {
  fill: var(--nav-bg);
  stroke: none;
}

.nav-label {
  font-family: "MilligramVariable", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 380px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar {
    gap: 8px;
  }

  .notify-chip {
    gap: 8px;
    padding: 9px 13px;
  }

  .notify-label {
    font-size: 13px;
  }

  .card-main {
    grid-template-columns: 118px 1fr;
    gap: 12px;
  }

  .meta dd {
    font-size: 16px;
  }

  .name {
    font-size: 16px;
  }

  .update-bar {
    font-size: 11px;
  }

}

@keyframes reserve-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 14px), 0, 0);
  }
}
