:root {
  --cream: #f8f3e8;
  --paper: #fffaf0;
  --cyan: #22B8C7;
  --cyan-dark: #137884;
  --cyan-soft: #D7F4F5;
  --pink: #f3b9be;
  --gold: #d39a31;
  --gold-soft: #f6dfa8;
  --ink: #2d3b40;
  --muted: #637279;
  --line: rgba(70, 124, 143, .14);
  --shadow: 0 18px 42px rgba(50, 93, 108, .10);
  --bottom-nav-height: calc(64px + env(safe-area-inset-bottom));
  --use-sheet-nav-gap: 22px;
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 6%, rgba(249, 213, 207, .86) 0 10%, transparent 27%),
    linear-gradient(145deg, #fbf7ed 0%, var(--cream) 62%, #f2eee3 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  transition: background .35s ease;
}
body.home-complete {
  background:
    radial-gradient(circle at 82% 7%, rgba(247, 211, 132, .26) 0 14%, transparent 31%),
    radial-gradient(circle at 16% 33%, rgba(220, 239, 246, .82) 0 7%, transparent 28%),
    linear-gradient(145deg, #fff9e9 0%, #f7f2e7 64%, #f1eee3 100%);
}
button, textarea, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.a2-character { display: block; max-width: none; object-fit: contain; }
.a2-character--64 { width: 64px; height: 64px; }
.a2-character--80 { width: 80px; height: 80px; }
.p1-prop { display: block; object-fit: contain; flex-shrink: 0; }
.p1-prop--24 { width: 24px; height: 24px; }
.p1-prop--26 { width: 26px; height: 26px; }
.p1-prop--28 { width: 28px; height: 28px; }
.p1-prop--32 { width: 32px; height: 32px; }

.shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 20px calc(104px + env(safe-area-inset-bottom));
}
.topbar { display: flex; justify-content: space-between; align-items: center; }
.balance-card { display: flex; align-items: center; gap: 10px; }
.balance-card > picture { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.balance-card strong { display: block; font-size: 22px; line-height: 1; }
.balance-card small { color: var(--muted); font-size: 12px; }
.message-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 1px solid rgba(70, 124, 143, .14);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 250, 240, .52);
  box-shadow: 0 8px 20px rgba(50, 93, 108, .07);
}
.message-button > picture { display: block; width: 26px; height: 26px; }
.message-button b {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 19px;
  padding: 2px 5px;
  color: var(--cyan-dark);
  background: #efe4ce;
  border: 1px solid rgba(40, 109, 134, .14);
  border-radius: 10px;
  font-size: 10px;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 24px 2px 15px;
}
.eyebrow { margin: 0 0 6px; color: var(--cyan-dark); font-size: 12px; font-weight: 750; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(25px, 7vw, 34px); line-height: 1.18; letter-spacing: -.04em; }
.soft { max-width: 245px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mascot {
  position: relative;
  z-index: 2;
  flex: 0 0 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 4px -2px -10px 0;
}
.mascot picture { display: block; width: 80px; height: 80px; }
.mascot img { filter: drop-shadow(0 8px 10px rgba(50, 93, 108, .10)); }

.task-card, .week-card, .glance-grid article {
  background: rgba(255, 250, 240, .95);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}
.task-card {
  position: relative;
  padding: 18px;
  overflow: visible;
  border-radius: 22px 28px 24px 20px;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(243, 185, 190, .12) 31px 32px, transparent 32px),
    var(--paper);
}
.task-card::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 42%;
  width: 72px;
  height: 16px;
  border-radius: 3px;
  background: rgba(236, 209, 149, .38);
  box-shadow: 0 1px 4px rgba(101, 79, 43, .05);
  transform: rotate(-2deg);
}
.task-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2px 2px 10px;
  border-bottom: 1px dashed var(--line);
}
.task-kicker { color: var(--muted); font-size: 12px; }
.task-card h2 { margin: 2px 0 0; font-size: 23px; }
.date-pill {
  margin-top: 2px;
  padding: 4px 0 4px 10px;
  color: var(--cyan-dark);
  border-left: 2px solid rgba(77, 159, 189, .30);
  font-size: 11px;
}
.note-field { display: block; margin: 12px 2px 8px; color: var(--ink); font-size: 13px; font-weight: 650; }
.note-field em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 400; }
textarea {
  width: 100%;
  min-height: 66px;
  margin-top: 5px;
  padding: 7px 5px 5px;
  resize: vertical;
  color: var(--ink);
  background: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(77, 159, 189, .14) 25px 26px);
  border: 0;
  border-radius: 8px;
  outline: none;
  line-height: 26px;
}
textarea:focus { box-shadow: 0 0 0 3px rgba(77, 159, 189, .12); }
.image-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 3px 1px 11px;
  padding: 8px 10px;
  color: var(--cyan-dark);
  background: rgba(242, 249, 252, .72);
  border: 1px dashed #b7d7e3;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
}
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-input:focus-visible + .image-picker { outline: 3px solid rgba(77, 159, 189, .27); outline-offset: 2px; }
.image-picker em { color: var(--muted); font-style: normal; }
.image-picker b { max-width: 78px; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.image-preview {
  position: relative;
  margin: 2px 1px 12px;
  overflow: hidden;
  border: 6px solid #fff7e9;
  border-radius: 10px 14px 12px 9px;
  box-shadow: 0 7px 18px rgba(50, 93, 108, .10);
  transform: rotate(-.45deg);
}
.image-preview img { display: block; width: 100%; max-height: 104px; object-fit: cover; }
.image-preview button, .replace-image {
  position: absolute;
  bottom: 6px;
  min-height: 36px;
  padding: 8px 10px;
  color: #fffdf8;
  background: rgba(38, 58, 56, .82);
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  line-height: 20px;
  cursor: pointer;
}
.image-preview button { right: 6px; }
.replace-image { left: 6px; }
.replace-image:focus-visible {
  outline: 3px solid #fffaf0;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(40, 109, 134, .74);
}
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.levels button {
  display: flex;
  min-width: 0;
  min-height: 91px;
  padding: 8px 5px 7px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(77, 159, 189, .22);
  border-radius: 18px 16px 20px 15px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .42);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.levels button:nth-child(2) { transform: rotate(.55deg); }
.levels button:nth-child(3) { transform: rotate(-.45deg); }
.levels button:active:not(:disabled) { transform: scale(.975); }
.levels button:hover:not(:disabled) { border-color: var(--cyan); background: #f2faff; }
.level-symbol { display: grid; min-height: 36px; place-items: center; font-size: 22px; }
.levels button b { min-height: 29px; font-size: 11px; line-height: 1.28; }
.levels button small {
  min-width: 48px;
  padding: 4px 6px;
  color: #8b641f;
  text-align: center;
  background: #fbebbe;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}
.levels button:disabled { opacity: .64; filter: saturate(.65); }
.today-state { margin: 10px 2px 0; color: var(--cyan-dark); font-size: 12px; line-height: 1.45; }
.save-note {
  margin-top: 8px;
  padding: 8px 11px;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, .45);
  border: 1px solid #b7d7e3;
  border-radius: 11px;
  font-size: 11px;
}

.week-card { display: flex; min-height: 62px; justify-content: space-between; align-items: center; margin-top: 14px; padding: 14px 17px; border-radius: 20px 24px 19px 22px; }
.week-card span, .week-card strong { display: block; }
.week-card span { color: var(--muted); font-size: 11px; }
.week-card strong { margin-top: 3px; font-size: 13px; }
.dots { display: flex; min-width: 12px; justify-content: flex-end; gap: 5px; }
.dots:empty::after { content: "☁"; color: rgba(119, 135, 131, .34); font-size: 18px; }
.dots i { width: 10px; height: 10px; border-radius: 65% 45% 60% 42%; background: var(--cyan); box-shadow: 0 2px 6px rgba(40, 109, 134, .23); transform: rotate(18deg); }
.glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.glance-grid article { display: flex; align-items: center; gap: 9px; padding: 14px; border-radius: 19px 22px 20px 18px; }
.glance-grid article > span { font-size: 22px; }
.glance-grid article > picture { display: block; width: 28px; height: 28px; flex-shrink: 0; }
.glance-grid small, .glance-grid b { display: block; }
.glance-grid small { color: var(--muted); font-size: 11px; }
.glance-grid b { margin-top: 3px; font-size: 12px; }
.glance-grid i { font-style: normal; }
#homeShopCard, #homeBackpackCard { cursor: pointer; }

html:not([data-route="home"]) #view-home,
html:not([data-route="shop"]) #view-shop,
html:not([data-route="backpack"]) #view-backpack { display: none !important; }

.shop-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 2px 16px;
}
.shop-header > picture { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.shop-header h1 { font-size: clamp(24px, 7vw, 30px); }
.shop-header .soft { max-width: none; margin: 6px 0 0; }
.shop-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 18px;
}
.shop-balance > picture { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.shop-balance strong { display: block; font-size: 18px; line-height: 1; font-weight: 650; }
.shop-balance small { color: var(--muted); font-size: 12px; }
.shop-section { margin-bottom: 18px; }
.shop-section h2 {
  margin: 0 2px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
}
.shop-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  margin-bottom: 10px;
  padding: 14px 15px 12px;
  background: rgba(255, 250, 240, .95);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 18px 20px 17px 19px;
  box-shadow: var(--shadow);
}
.shop-card-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.shop-card-desc { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.shop-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.shop-price { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; }
.shop-price > picture { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.shop-owned { color: var(--muted); font-size: 11px; font-weight: 500; }
.shop-cta {
  min-height: 34px;
  padding: 6px 12px;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(77, 159, 189, .22);
  border-radius: 999px;
  font-size: 12px;
}
.shop-cta.is-muted {
  color: var(--muted);
  background: transparent;
  border-color: rgba(70, 124, 143, .14);
}
.shop-cta.is-owned {
  color: var(--cyan-dark);
  background: transparent;
  border: 0;
}
.shop-card.is-updated { animation: shopSoft .28s ease-out; }

.backpack-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 2px 16px;
}
.backpack-header > picture { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.backpack-header h1 { font-size: clamp(24px, 7vw, 30px); }
.backpack-header .soft { max-width: none; margin: 6px 0 0; }
.backpack-section { margin-bottom: 18px; }
.backpack-section h2 {
  margin: 0 2px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
}
.backpack-legacy-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 2px 12px;
}
.backpack-legacy-heading > picture { display: block; width: 32px; height: 32px; flex-shrink: 0; margin-top: 1px; }
.backpack-legacy-heading h2 { margin: 0; }
.backpack-legacy-heading .soft { margin: 4px 0 0; max-width: none; }
.backpack-card {
  margin-bottom: 10px;
  padding: 13px 15px 12px;
  background: rgba(255, 250, 240, .88);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px 20px 17px 19px;
  box-shadow: 0 10px 28px rgba(50, 93, 108, .07);
}
.backpack-card-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.backpack-card-name:has(.backpack-card-qty) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.backpack-card-qty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  flex-shrink: 0;
}
.backpack-card-desc { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.backpack-card-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.backpack-use {
  min-height: 32px;
  padding: 4px 12px;
  color: var(--cyan-dark);
  background: transparent;
  border: 1px solid rgba(77, 159, 189, .18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}
.backpack-use:disabled,
.backpack-complete:disabled,
.backpack-withdraw:disabled { opacity: .55; }
.backpack-card.is-active {
  background: rgba(255, 250, 240, .96);
  border-color: rgba(215, 244, 245, .88);
  box-shadow: 0 12px 30px rgba(50, 93, 108, .09);
}
.backpack-status {
  margin: 8px 0 0;
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
}
.backpack-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.backpack-complete {
  min-height: 32px;
  padding: 4px 12px;
  color: var(--cyan-dark);
  background: var(--cyan-soft);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.backpack-withdraw {
  min-height: 32px;
  padding: 4px 10px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 12px;
}
.backpack-empty {
  margin: 36px 4px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 520px);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 250, 240, .94);
  border-top: 1px solid rgba(50, 93, 108, .09);
  backdrop-filter: blur(18px);
}
.bottom-nav button { min-height: 48px; padding: 4px; color: var(--muted); background: none; border: 0; font-size: 11px; }
.bottom-nav button span { display: block; margin-bottom: 2px; font-size: 19px; filter: grayscale(.45); }
.bottom-nav button.active { color: var(--cyan-dark); font-weight: 700; }
.bottom-nav button.active span { filter: none; }

.gate, .reward-pop, .purchase-sheet, .use-sheet {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.gate-open .shell, .gate-open .bottom-nav { visibility: hidden; }
.gate {
  background: var(--cream);
}
.gate-card { width: min(100%, 370px); text-align: center; }
.gate-door {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 550px;
  padding: 54px 28px 24px;
  overflow: hidden;
  background: linear-gradient(102deg, #fffdf6 0%, #fbf4e6 52%, #f8efe0 100%);
  border: 8px solid rgba(255, 253, 246, .88);
  border-bottom-width: 13px;
  border-radius: 150px 150px 28px 28px;
  box-shadow: 0 28px 70px rgba(50, 93, 108, .18), inset -13px 0 24px rgba(128, 98, 58, .05);
}
.gate-door::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 18px;
  width: 1px;
  height: 100%;
  background: rgba(112, 91, 61, .08);
  box-shadow: -7px 0 18px rgba(112, 91, 61, .03);
}
.gate-door::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 51%;
  width: 11px;
  height: 11px;
  border: 4px solid #c99e50;
  border-radius: 50%;
  background: #f8df9a;
  box-shadow: 0 2px 5px rgba(112, 77, 25, .22);
}
.door-plaque {
  position: absolute;
  top: 19px;
  left: 50%;
  padding: 5px 14px;
  transform: translateX(-50%) rotate(-1deg);
  color: var(--cyan-dark);
  background: #e3f1f6;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(50, 93, 108, .09);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}
.gate-door > picture { display: block; width: 80px; height: 80px; margin: 0 auto; }
.gate-door > picture img { filter: drop-shadow(0 8px 12px rgba(50, 93, 108, .11)); }
.gate-door h1 { margin-top: 4px; }
.gate-door > p { margin: 12px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.gate-door label { display: block; color: var(--muted); font-size: 11px; text-align: center; }
.gate-door label > span { letter-spacing: .08em; }
.gate-door input {
  width: 100%;
  margin: 8px 0 19px;
  padding: 10px 8px 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px dashed rgba(77, 159, 189, .38);
  border-radius: 0;
  outline: none;
  font-size: 24px;
  letter-spacing: .38em;
  text-align: center;
}
.gate-door input:focus { border-bottom-color: var(--cyan); }
.gate-door button, .reward-pop button {
  width: 100%;
  padding: 14px;
  color: white;
  background: var(--cyan-dark);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 9px 18px rgba(40, 109, 134, .20);
  font-weight: 700;
}
.form-error { min-height: 20px; margin-bottom: 0; color: #a66060 !important; font-size: 11px; }

.reward-pop {
  background: rgba(30, 51, 48, .52);
  backdrop-filter: blur(9px);
}
.reward-card {
  position: relative;
  width: min(90vw, 322px);
  padding: 27px 27px 25px;
  text-align: center;
  background: #fffaf0;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 30px 26px 32px 25px;
  box-shadow: 0 28px 72px rgba(20, 44, 40, .32);
  animation: pop .28s ease-out;
}
.reward-card > small { display: block; color: var(--cyan-dark); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.reward-pig { position: relative; display: grid; width: 72px; min-height: 64px; place-items: center; margin: 5px auto 0; animation: bounce .55s ease-out; }
.reward-pig picture { display: block; width: 64px; height: 64px; }
.reward-pig img { filter: drop-shadow(0 5px 7px rgba(45, 59, 64, .14)); }
.reward-amount {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  margin: -3px auto 8px;
  border: 5px solid #f7e0a7;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff4c9 0 10%, #f1c86c 46%, #d39a31 100%);
  box-shadow: 0 10px 20px rgba(166, 111, 25, .23), inset 0 0 0 3px rgba(255, 247, 210, .42);
}
.reward-amount::before, .reward-amount::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 62px;
  height: 62px;
  border: 4px solid #efd284;
  border-radius: 50%;
  background: #ddb052;
}
.reward-amount::before { left: -27px; bottom: -1px; transform: rotate(-12deg); }
.reward-amount::after { right: -27px; bottom: 5px; transform: rotate(14deg); }
.reward-pop strong { color: #664711; font-size: 36px; text-shadow: 0 1px rgba(255,255,255,.45); }
.reward-pop p { margin: 12px 0 18px; color: #5e6f6c; font-size: 14px; }
.reward-pop.bonus .reward-card { background: radial-gradient(circle at 18% 16%, rgba(243, 185, 190, .30) 0 6%, transparent 25%), #fffaf0; }
.reward-pop.bonus .reward-card::before { content: "✦  ✧  ✦"; position: absolute; top: 24px; left: 24px; color: rgba(211, 154, 49, .58); font-size: 13px; transform: rotate(-13deg); }
.reward-pop.upgrade .reward-card { background: linear-gradient(155deg, #f5fbfe 0%, #fffaf0 68%); border-color: #d5eaf2; }
.reward-pop.upgrade .reward-amount { transform: scale(.92); box-shadow: 0 8px 16px rgba(166, 111, 25, .18), inset 0 0 0 3px rgba(255, 247, 210, .42); }

.purchase-sheet, .use-sheet {
  z-index: 55;
  align-items: end;
  overflow: auto;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  background: rgba(45, 59, 64, .28);
}
.use-sheet {
  padding-bottom: calc(var(--bottom-nav-height) + var(--use-sheet-nav-gap));
}
.purchase-card, .use-card {
  width: min(100%, 348px);
  max-height: min(72vh, 560px);
  overflow: auto;
  padding: 22px 20px 16px;
  text-align: center;
  background: #fffaf0;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 22px 20px 18px 22px;
  box-shadow: 0 18px 40px rgba(50, 93, 108, .16);
  animation: pop .22s ease-out;
}
.purchase-card p, .use-card > p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}
.use-name {
  margin: -8px 0 16px !important;
  color: var(--ink);
  font-size: 15px !important;
  font-weight: 700 !important;
}
.use-copy { margin-bottom: 18px; }
.use-field {
  display: block;
  text-align: left;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.use-field span { display: block; margin-bottom: 6px; }
.use-field input, .use-field textarea {
  width: 100%;
  margin: 0;
  padding: 8px 2px 6px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(77, 159, 189, .28);
  border-radius: 0;
  outline: none;
  font-weight: 400;
}
.use-field textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}
.use-field input:focus, .use-field textarea:focus { border-bottom-color: var(--cyan); }
#purchaseConfirm, #useConfirm {
  width: 100%;
  padding: 12px;
  color: var(--cyan-dark);
  background: var(--cyan-soft);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}
#purchaseConfirm:disabled, #useConfirm:disabled { opacity: .55; }
#purchaseCancel, #useCancel {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 70;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 10px 14px;
  transform: translateX(-50%);
  color: var(--ink);
  text-align: center;
  background: #fffaf0;
  border: 1px solid rgba(77, 159, 189, .20);
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(45, 59, 64, .16);
  font-size: 11px;
}

@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
@keyframes bounce { 50% { transform: translateY(-7px) rotate(-4deg); } }
@keyframes shopSoft { from { opacity: .72; transform: translateY(4px); } }
@media (max-height: 700px) {
  .gate-door { min-height: 0; padding-top: 45px; }
  .gate-door > picture, .gate-door > picture img { width: 64px; height: 64px; }
  .gate-door > p { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
