@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #293934;
  --muted: #64746f;
  --soft: #fff8ef;
  --paper: #fffdf9;
  --line: #ead8c8;
  --sage: #bcd8c4;
  --sage-soft: #e3f0e5;
  --rose: #d8a99b;
  --cream: #f7efe5;
  --shadow: 0 18px 48px rgba(51, 42, 34, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f4f3f1;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(188, 216, 196, 0.42), transparent 24rem),
    linear-gradient(180deg, #fffdf9 0%, #f4f3f1 100%);
  font-family: "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.liff-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 14px max(86px, calc(76px + env(safe-area-inset-bottom)));
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(195, 221, 203, 0.68), transparent 148px),
    radial-gradient(circle at 96% 22%, rgba(240, 199, 197, 0.3), transparent 148px),
    linear-gradient(180deg, #fffdf9 0%, #fff8ef 62%, #f3ebe1 100%);
  box-shadow: var(--shadow);
}

.liff-status {
  display: flex;
  justify-content: space-between;
  padding: 10px 6px 7px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.liff-header {
  display: grid;
  grid-template-columns: 52px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 10px 0 18px;
}

.brand-mark,
.icon-button,
.tile-art,
.bottom-nav span,
.preview-product,
.list-thumb {
  display: grid;
  place-items: center;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(188, 216, 196, 0.84);
  border-radius: 18px;
  background: #e7f2e8;
  color: #315347;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-mark path {
  fill: currentColor;
}

.brand-mark circle {
  fill: var(--rose);
}

.liff-header strong {
  display: block;
  color: #263531;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
}

.liff-header span {
  display: block;
  margin-top: 2px;
  color: #8b7666;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

.icon-button,
.back-button {
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #41544d;
  box-shadow: 0 8px 20px rgba(60, 48, 40, 0.08);
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.liff-view {
  display: none;
}

.liff-view.is-active {
  display: block;
  animation: viewIn 180ms ease-out;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero,
.control-card,
.price-card,
.status-summary,
.recommendation,
.selected-empty,
.card-preview,
.quick-set-card,
.product-card,
.selected-item {
  border: 1px solid rgba(232, 216, 198, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.93);
  box-shadow: 0 10px 26px rgba(58, 47, 39, 0.06);
}

.home-hero {
  min-height: 168px;
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 10px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(239, 247, 241, 0.88));
}

.home-hero.compact {
  min-height: 138px;
}

.soft-kicker {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: #35584b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 12px 0 8px;
  color: #253530;
  font-size: clamp(29px, 8vw, 36px);
  font-weight: 900;
  line-height: 1.32;
}

h2 {
  margin: 2px 0 0;
  color: #253530;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.28;
}

h3 {
  margin: 0;
  color: #304840;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.gift-hero-art svg,
.home-hero .large svg {
  width: 108px;
  height: 108px;
}

.gift-hero-art rect {
  fill: rgba(255, 250, 244, 0.88);
  stroke: var(--sage);
  stroke-width: 5;
}

.gift-hero-art path:nth-of-type(1) {
  stroke: var(--rose);
  stroke-width: 6;
}

.gift-hero-art path:nth-of-type(2) {
  fill: #e7f2e8;
  stroke: var(--sage);
  stroke-width: 3;
}

.gift-hero-art circle {
  fill: #f0c7c5;
  stroke: none;
}

.gift-hero-art path:last-child {
  stroke: #7b584b;
  stroke-width: 3;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.quick-stats div {
  min-height: 60px;
  padding: 10px;
  border: 1px solid rgba(232, 216, 198, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.92);
}

.quick-stats strong {
  display: block;
  color: #304840;
  font-size: 17px;
  line-height: 1.18;
}

.quick-stats span {
  display: block;
  margin-top: 2px;
  color: #8c7565;
  font-size: 11px;
  line-height: 1.28;
  font-weight: 700;
}

.liff-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.liff-tile {
  min-height: 112px;
  display: grid;
  grid-template-rows: 52px auto;
  place-items: center;
  gap: 8px;
  padding: 10px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.95);
  color: #314942;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.22;
  box-shadow: 0 10px 24px rgba(58, 47, 39, 0.06);
}

.liff-tile.primary {
  grid-column: span 2;
  grid-template-columns: 66px 1fr;
  grid-template-rows: 1fr;
  justify-items: start;
  min-height: 112px;
  padding: 12px;
  text-align: left;
  background: linear-gradient(135deg, #fffdf9, #eef7f1);
}

.tile-art {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #e3f1e4;
  color: #2f4d43;
}

.tile-art.large {
  width: 82px;
  height: 82px;
  border-radius: 24px;
}

.primary .tile-art {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--cream);
}

.tile-art::before,
.bottom-nav span::before,
.preview-product::before,
.list-thumb::before {
  content: "";
  width: 30px;
  height: 30px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
}

.primary .tile-art::before {
  width: 40px;
  height: 40px;
}

.gift-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='17' width='30' height='25' rx='4'/%3E%3Cpath d='M9 23h30M24 17v25M12 14c4-8 12-4 12 3-8 1-12 0-12-3ZM36 14c-4-8-12-4-12 3 8 1 12 0 12-3Z'/%3E%3C/g%3E%3C/svg%3E"); }
.leaf-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 28c-5-5-4-15 4-21 1 6 5 8 9 11 6 5 3 14-5 15-2 0-5-1-8-5Z' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sparkle-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 26c6-1 9-5 10-13 2 7 5 10 12 12-7 1-10 4-12 11-1-6-4-9-10-10Z'/%3E%3Cpath d='M26 5c1 3 3 5 6 6-3 1-5 3-6 6-1-3-3-5-6-6 3-1 5-3 6-6Z'/%3E%3C/g%3E%3C/svg%3E"); }
.card-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='7' width='18' height='26' rx='2'/%3E%3Cpath d='M13 14h10M13 19h10M13 24h6'/%3E%3C/g%3E%3C/svg%3E"); }
.calendar-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='9' width='22' height='23' rx='3'/%3E%3Cpath d='M12 5v8M24 5v8M7 15h22'/%3E%3C/g%3E%3C/svg%3E"); }
.cart-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11h23l-3 15H11z'/%3E%3Cpath d='M12 11c0-6 12-6 12 0'/%3E%3C/g%3E%3C/svg%3E"); }
.status-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 18a11 11 0 1 0 4-9'/%3E%3Cpath d='M7 8v8h8'/%3E%3Cpath d='M14 18l4 4 8-10'/%3E%3C/g%3E%3C/svg%3E"); }
.chat-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 36 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11c0-3 3-5 7-5h4c4 0 7 2 7 5v6c0 3-3 5-7 5h-3l-6 5v-6c-2-1-2-3-2-4Z'/%3E%3Cpath d='M14 14h.1M18 14h.1M22 14h.1'/%3E%3C/g%3E%3C/svg%3E"); }
.home-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 15 16 7l10 8v12H6z' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mail-icon { --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9h18v14H7z'/%3E%3Cpath d='M7 10l9 8 9-8'/%3E%3C/g%3E%3C/svg%3E"); }

.tile-copy strong,
.tile-copy small {
  display: block;
}

.tile-copy strong {
  font-size: 16px;
  line-height: 1.22;
}

.tile-copy small {
  margin-top: 4px;
  color: #7d6e63;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.view-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.back-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.view-copy {
  margin-bottom: 12px;
}

.gift-preview {
  padding: 14px;
  border: 1px solid rgba(232, 216, 198, 0.86);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--theme-soft, #eef7f1), #fffaf4);
}

.gift-box-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1.18;
  overflow: hidden;
  border: 7px solid var(--theme-accent, var(--sage));
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.85), transparent 72px),
    var(--paper);
  box-shadow: inset 0 0 0 1px rgba(117, 102, 86, 0.1), 0 12px 30px rgba(66, 54, 44, 0.1);
}

.gift-ribbon {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 30px;
  transform: translateX(-50%);
  background: var(--theme-ribbon, var(--rose));
  opacity: 0.86;
}

.preview-items {
  position: absolute;
  inset: 7%;
}

.preview-product {
  position: absolute;
  width: 25%;
  min-width: 62px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--item-a), var(--item-b));
  color: #315347;
  box-shadow: 0 8px 18px rgba(69, 57, 45, 0.11);
}

.zone-0 { left: 0; top: 2%; }
.zone-1 { right: 0; top: 2%; }
.zone-2 { left: 36%; top: 25%; }
.zone-3 { left: 1%; bottom: 8%; }
.zone-4 { right: 1%; bottom: 8%; }
.zone-5 { left: 36%; bottom: 0; }
.zone-6 { left: 18%; top: 47%; }
.zone-7 { right: 18%; top: 47%; }

.name-card {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 2;
  width: 46%;
  min-height: 60px;
  transform: translateX(-50%) rotate(-2deg);
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid #eadcc8;
  border-radius: 6px;
  background: #fffdf8;
  text-align: center;
  box-shadow: 0 8px 18px rgba(76, 59, 46, 0.12);
}

.name-card span,
.name-card small,
.card-preview span,
.card-preview small {
  color: #78807c;
  font-size: 10px;
  line-height: 1.25;
}

.name-card strong,
.card-preview strong {
  color: #304840;
  font-size: 17px;
  line-height: 1.3;
}

.builder-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  color: #52645e;
  font-size: 12px;
  font-weight: 800;
}

.control-card {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
}

.segmented,
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button,
.category-tab,
.add-button,
.qty-button,
.quick-set-card button,
.choice-groups button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf4;
  color: #314942;
  font-weight: 900;
}

.segmented button {
  flex: 1 1 95px;
  padding: 8px;
  font-size: 12px;
}

.segmented button.is-active,
.category-tab.is-active,
.choice-groups button.is-active {
  border-color: #314b41;
  background: #314b41;
  color: #fff;
}

.theme-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  border: 2px solid #fff;
  border-radius: 50%;
  vertical-align: -2px;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(70, 61, 51, 0.18);
}

.category-tab {
  padding: 8px 10px;
  font-size: 12px;
}

.alert {
  display: none;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #fff2e8;
  color: #8a5c4b;
  font-size: 12px;
  font-weight: 800;
}

.alert.is-visible {
  display: block;
}

.items-grid,
.product-grid,
.quick-sets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-card,
.quick-set-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.product-visual {
  display: grid;
  place-items: center;
  min-height: 150px;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
}

.product-visual img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  padding: 0;
}

.product-card h4,
.quick-set-card h3 {
  margin: 0;
  color: #304840;
  font-size: 14px;
  line-height: 1.32;
}

.product-card small,
.quick-set-card p {
  color: #8b7666;
  font-size: 11px;
  line-height: 1.4;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge,
.set-badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: #35584b;
  font-size: 10px;
  font-weight: 900;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #64746f;
  font-size: 11px;
}

.item-meta strong {
  color: #304840;
}

.add-button,
.quick-set-card button {
  width: 100%;
  padding: 8px;
  background: #e3f0e5;
}

.qty-control {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-weight: 900;
}

.form-stack {
  display: grid;
  gap: 10px;
}

.form-stack label {
  display: grid;
  gap: 5px;
  color: #8b7666;
  font-size: 12px;
  font-weight: 900;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.form-stack textarea {
  min-height: 92px;
  resize: vertical;
}

.card-preview {
  display: grid;
  place-items: center;
  min-height: 132px;
  margin-bottom: 12px;
  padding: 16px;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(188, 216, 196, 0.45), transparent 90px),
    rgba(255, 253, 249, 0.94);
}

.message-preview strong {
  font-size: 16px;
}

.selected-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.selected-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.selected-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
}

.list-thumb {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #e3f1e4;
  color: #315347;
}

.selected-item strong,
.status-summary strong {
  display: block;
  color: #304840;
  font-size: 13px;
  line-height: 1.25;
}

.selected-item small,
.status-summary span {
  color: #8b7666;
  font-size: 11px;
  line-height: 1.35;
}

.remove-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff8ef;
  color: #7d4d43;
  font-weight: 900;
}

.price-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64746f;
  font-size: 14px;
}

.price-row strong {
  color: #304840;
}

.price-row.total {
  padding-top: 8px;
  border-top: 1px solid #f0e3d7;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 48px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.primary-action {
  background: #314b41;
  color: #fff;
  box-shadow: 0 12px 28px rgba(49, 75, 65, 0.18);
}

.secondary-action {
  background: #e3f0e5;
  color: #314b41;
}

.status-summary,
.recommendation {
  padding: 14px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 10px;
  align-items: start;
}

.timeline-step span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: #315347;
  font-size: 12px;
  font-weight: 900;
}

.timeline-step.is-done span {
  background: #314b41;
  color: #fff;
}

.timeline-step strong {
  color: #304840;
  font-size: 14px;
  line-height: 1.3;
}

.timeline-step small {
  color: #8b7666;
  font-size: 11px;
  line-height: 1.35;
}

.choice-groups {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.choice-groups fieldset {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.choice-groups legend {
  grid-column: 1 / -1;
  color: #304840;
  font-weight: 900;
}

.choice-groups button {
  min-height: 44px;
  padding: 8px;
  font-size: 11px;
}

.recommendation {
  margin-top: 12px;
  color: #52645e;
  font-size: 13px;
  line-height: 1.55;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 9px 10px max(9px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.bottom-nav button,
.bottom-nav a {
  display: grid;
  gap: 2px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #6f7d78;
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
}

.bottom-nav span {
  width: 24px;
  height: 24px;
  color: #3f5d52;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 40;
  width: min(360px, calc(100% - 28px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background: #263531;
  color: #fff;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 680px) {
  body {
    padding: 28px 0;
  }

  .liff-shell {
    min-height: calc(100vh - 56px);
    border: 10px solid #252b2c;
    border-radius: 34px;
  }

  .bottom-nav {
    position: sticky;
    left: auto;
    bottom: auto;
    width: auto;
    transform: none;
    margin: 18px -14px calc(-1 * max(86px, calc(76px + env(safe-area-inset-bottom))));
  }
}

@media (max-width: 370px) {
  .liff-shell {
    padding-inline: 10px;
  }

  h1 {
    font-size: 27px;
  }

  .home-hero {
    grid-template-columns: 1fr 86px;
    padding: 13px;
  }

  .gift-hero-art svg {
    width: 86px;
    height: 86px;
  }

  .liff-tile {
    min-height: 104px;
    font-size: 12px;
  }
}
