:root {
  --bg: #ffffff;
  --bg2: #f4f1ea;
  --card: #ffffff;
  --card2: #f4f1ea;
  --text: #111111;
  --sub: #6b665c;
  --dim: #a39d90;
  --line: #e3ded2;
  --line2: #d8d3c8;
  --accent: #111111;
  --accent-soft: #f4f1ea;
  --blue: #3970a4;
  --blue-deep: #2c5a85;
  --blue-soft: rgba(57, 112, 164, .10);
  --gold: #dab455;
  --gold-soft: rgba(218, 180, 85, .16);
  --purp: #b286b1;
  --purp-soft: rgba(178, 134, 177, .14);
  --ok: #4e9e5e;
  --ok-soft: rgba(78, 158, 94, .14);
  --warn: #c9a227;
  --warn-soft: rgba(201, 162, 39, .14);
  --danger: #c0523f;
  --danger-soft: rgba(192, 82, 63, .12);
  --radius: 16px;
  --serif: "Noto Serif TC", "Songti TC", "STSong", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif
}

html, body {
  height: 100%;
  overflow: hidden;
  touch-action: manipulation;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent
}

html,
body {
  height: 100%;
  overflow: hidden
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  letter-spacing: .01em
}

.phone-shell {
  width: 100%;
  max-width: 390px;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden
}

@media(min-width:430px) {
  body {
    display: flex;
    justify-content: center;
    background: #eceae4
  }

  .phone-shell {
    width: 390px;
    max-width: 390px;
    height: min(96vh, 900px);
    min-height: min(844px, 96vh);
    margin: 2vh auto;
    border-radius: 40px;
    border: 1px solid #ddd8cc;
    box-shadow: 0 30px 80px #0000002e
  }
}

.screen {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden
}

.screen.active {
  display: flex
}

@media(min-width:430px) {
  .screen {
    height: 100%;
    min-height: 0
  }
}

.main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 20px 20px 24px;
  width: 100%;
  display: flex;
  flex-direction: column
}

.main::-webkit-scrollbar {
  display: none
}

.main>* {
  max-width: 100%
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  flex: 0 0 auto;
  position: relative;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg)
}

.topbar:after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 2px;
  height: 1px;
  background: var(--line)
}

.topbar .brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  color: var(--text)
}

.topbar .brand .dot {
  color: var(--gold)
}

.topbar .right {
  display: flex;
  align-items: center;
  gap: 6px
}

.topbar .right .navlink {
  font-size: 13px;
  color: var(--sub);
  background: none;
  border: none;
  padding: 10px 4px;
  cursor: pointer;
  font-family: inherit
}

.topbar .right .icon-btn {
  width: 36px;
  height: 36px;
  font-size: 16px
}

.topbar .back {
  font-size: 14px;
  color: var(--sub);
  background: none;
  border: none;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  gap: 4px
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit
}

.icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .08s ease, opacity .15s ease, background .15s ease
}

.btn:active {
  transform: scale(.985)
}

.btn-primary {
  background: var(--text);
  color: #fff
}

.btn-primary img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: invert(1)
}

.btn-secondary {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line2)
}

.btn-ghost {
  background: none;
  color: var(--sub);
  border: 1px solid var(--line)
}

.btn:disabled {
  opacity: .55;
  pointer-events: none
}

.btn-lg {
  min-height: 56px;
  font-size: 17px
}

.field {
  margin-bottom: 18px
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 8px
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--sub);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease
}

.chip:active {
  transform: scale(.96)
}

.chip.on {
  background: var(--accent-soft);
  border-color: var(--text);
  color: var(--text);
  font-weight: 600
}

.chip.cat-love.on {
  background: var(--purp-soft);
  border-color: var(--purp);
  color: var(--purp)
}

.chip.cat-career.on {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue)
}

.chip.cat-wealth.on {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: #8a6a1f
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  margin-bottom: 14px
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  box-sizing: border-box;
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  padding: 14px 16px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: var(--dim)
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--blue-soft)
}

.form-card input:disabled {
  opacity: .55
}

.fab {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px #00000040;
  cursor: pointer;
  z-index: 5;
  font-family: inherit;
  line-height: 1
}

.fab img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: invert(1)
}

.fab:active {
  transform: translate(-50%) scale(.94)
}

.hero {
  padding: 26px 0 4px;
  text-align: center
}

.hero .seal {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 22px;
  border: 1px solid var(--line2);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px
}

.hero .seal img {
  width: 56px;
  height: 56px;
  object-fit: contain
}

.hero .tagline {
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 24px
}

.p1-hero {
  padding: 20px 0 16px;
  text-align: center
}

.p1-hero .tagline {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.8;
  margin: 0
}

.draw-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 18px;
  perspective: 1200px;
  cursor: default;
  position: relative
}

.draw-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4, .2, .2, 1)
}

.draw-card.flipped .draw-inner {
  transform: rotateY(180deg)
}

.draw-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  overflow: hidden
}

.draw-front {
  position: absolute;
  inset: 0;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px #00000014;
  border-radius: 50% 50% 18px 18px/38% 38% 18px 18px
}

.draw-front-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0
}

.draw-front:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0000 55%, #00000061);
  pointer-events: none;
  z-index: 1
}

.draw-seal {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--line2);
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  box-shadow: 0 8px 24px #0000000f;
  position: relative;
  z-index: 2
}

.draw-seal img {
  width: 54px;
  height: 54px;
  object-fit: contain
}

.draw-front-txt {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .3em;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--serif);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
  z-index: 2
}

.draw-back {
  position: absolute;
  inset: 0;
  background: #101014;
  border: 1px solid var(--line2);
  transform: rotateY(180deg);
  box-shadow: 0 18px 44px #0000001a;
  border-radius: 50% 50% 18px 18px/38% 38% 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 30px 40px;
  box-sizing: border-box
}

.draw-back:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #1010149e;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit
}

.draw-back-art {
  position: absolute;
  inset: 0;
  opacity: .5;
  object-fit: cover;
  width: 100%;
  height: 100%
}

.draw-back-k {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  margin-bottom: 12px;
  font-family: var(--serif);
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  max-height: 52px;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative
}

.draw-back-el {
  position: absolute;
  inset: 0;
  z-index: 0;
  font-size: 0;
  letter-spacing: 0;
  margin: 0
}

.draw-back-el img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  vertical-align: middle;
  border-radius: inherit
}

.draw-back-txt {
  font-size: 13px;
  color: #fffffff0;
  text-align: center;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  max-height: 150px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  white-space: pre-line
}

.draw-back-more {
  font-size: 12px;
  color: #ffffffd9;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  margin-top: 10px;
  position: relative;
  width: 100%
}

.draw-actions {
  margin: 6px 0 4px;
  text-align: center
}

.draw-actions .btn {
  width: 100%
}

.draw-hint {
  text-align: center;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 12px
}

.flip-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px #00000026
}

.flip-btn:active {
  transform: scale(.96)
}

.divine-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 20px
}

.divine-stage {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 24px
}

.core-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 136px;
  height: 136px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center
}

.core-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  pointer-events: none
}

.core-ring circle {
  fill: none;
  stroke-width: 5
}

.core-ring .bg {
  stroke: var(--line2)
}

.core-ring .fg {
  stroke: var(--blue);
  stroke-linecap: round;
  transition: stroke-dashoffset .3s linear
}

.core-btn {
  position: relative;
  z-index: 1;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px #00000014;
  transition: color .2s ease, border-color .2s ease
}

.core-btn:active {
  transform: scale(.97)
}

.core-btn.done {
  color: var(--blue);
  border-color: var(--blue)
}

.coin {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  z-index: 1;
  transition: left .3s ease, top .3s ease, transform .3s ease;
  box-shadow: 0 3px 10px #00000014
}

.coin img {
  width: 30px;
  height: 30px;
  object-fit: contain
}

.divine-status {
  text-align: center;
  margin-bottom: 26px
}

.divine-status .state {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px
}

.divine-status .sub {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.8
}

.result-meta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  margin-bottom: 12px
}

.meta-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
  color: var(--sub)
}

.meta-row .k {
  color: var(--dim);
  flex: 0 0 66px
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin-bottom: 10px
}

.carousel::-webkit-scrollbar {
  display: none
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  min-height: 190px;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center
}

.slide:last-child {
  margin-right: 0
}

.slide .pair {
  font-size: 30px;
  letter-spacing: 6px;
  margin-bottom: 8px
}

.slide .pair img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin: 0 3px;
  vertical-align: middle
}

.slide .name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px
}

.slide .sub-line {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 6px
}

.slide .slide-k {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 10px;
  letter-spacing: .04em
}

.slide .core-txt {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line
}

.slide .focus {
  font-size: 14px;
  color: var(--text);
  border-radius: 10px;
  line-height: 1.7;
  white-space: pre-line
}

.slide .note2 {
  font-size: 12px;
  color: var(--dim);
  margin-top: 10px;
  line-height: 1.7
}

.slide.symbol-slide {
  aspect-ratio: 1/1;
  justify-content: center;
  padding: 20px;
  min-height: 0;
  position: relative;
  overflow: hidden
}

.slide.symbol-slide:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1010144f 45%, #1010144f);
  pointer-events: none;
  z-index: 1
}

.slide.symbol-slide .pair {
  font-size: 34px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2
}

.slide.symbol-slide .name {
  font-size: 18px;
  position: relative;
  z-index: 2
}

.slide.symbol-slide .changed-line {
  position: relative;
  z-index: 2
}

.slide .el-ic {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: 4px;
  position: relative;
  z-index: 2
}

.slide .el-ic img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: contain;
  margin: 0 3px;
  vertical-align: middle
}

.slide.symbol-slide .el-ic {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  font-size: 0;
  letter-spacing: 0
}

.slide .el-ic .card-main-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  margin: 0;
  display: block;
  z-index: 0
}

.slide.symbol-slide .el-ic .el-icon-img {
  position: relative;
  z-index: 2
}

.slide.symbol-slide:has(.card-main-img) .pair,
.slide.symbol-slide:has(.card-main-img) .name,
.slide.symbol-slide:has(.card-main-img) .changed-line {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65)
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: -2px 0 14px
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line2);
  transition: all .2s ease
}

.dots i.on {
  background: var(--blue);
  width: 18px;
  border-radius: 3px
}

.guidance {
  font-size: 13px;
  color: var(--sub);
  text-align: center;
  padding: 2px 0 4px
}

.screen[data-screen=diary] .main {
  padding-bottom: 110px
}

.jr-tabs {
  display: flex;
  gap: 6px;
  margin: 4px 0 10px;
  border-bottom: 1px solid var(--line)
}

.jr-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 11px 6px 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--dim);
  letter-spacing: .04em;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color .16s ease, border-color .16s ease
}

.jr-tab.on {
  color: var(--text);
  border-bottom-color: var(--text)
}

.jr-stats {
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: .05em;
  margin: 0 0 14px;
  text-align: center
}

.jr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px
}

.jr-grid.hidden {
  display: none
}

.jr-groups {
  margin-bottom: 12px
}

.jr-groups.hidden {
  display: none
}

.jr-group {
  margin-bottom: 2px
}

.jr-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 14px;
  padding: 0 1px
}

.jr-cats.hidden {
  display: none
}

.jr-cat {
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 11px 6px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--dim);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease
}

.jr-cat:active {
  transform: translateY(1px)
}

.jr-cat.on {
  color: var(--text);
  border-color: var(--text);
  background: var(--card)
}

.jr-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 130px 130px 14px 14px;
  padding: 14px 12px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease
}

.jr-card:active {
  border-color: var(--blue);
  transform: translateY(1px)
}

.jr-card .jr-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 104px 104px 10px 10px;
  background: var(--card2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px
}

.jr-card .jr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.jr-card .jr-thumb.ph img {
  width: 46%;
  height: 46%;
  object-fit: contain;
  opacity: .5
}

.jr-card .jr-date {
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: .06em;
  margin-bottom: 5px
}

.jr-card .jr-line {
  font-size: 12px;
  line-height: 1.5;
  color: var(--sub);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.jr-card .jr-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center
}

.jr-card .jr-mark img {
  width: 12px;
  height: 12px;
  object-fit: contain
}

.jr-card .jr-mark.y {
  background: var(--blue-soft)
}

.jr-card .jr-mark.x {
  background: var(--card2)
}

.jr-card .jr-mark.m {
  background: var(--gold-soft)
}

.jr-empty {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.9;
  text-align: center;
  letter-spacing: .04em;
  padding: 34px 24px 40px;
  margin: 0
}

.jr-empty img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: .35;
  margin: 0 auto 16px
}

.diary-hero {
  padding: 30px 0 18px;
  text-align: center
}

.diary-hero .seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px
}

.diary-hero .seal img {
  width: 38px;
  height: 38px;
  object-fit: contain
}

.diary-hero h2 {
  font-size: 19px;
  margin-bottom: 8px
}

.diary-hero p {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7
}

.diary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px
}

.diary-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s ease
}

.diary-item:active {
  border-color: var(--blue)
}

.diary-item .d-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px
}

.diary-item .d-date {
  font-size: 12px;
  color: var(--dim)
}

.diary-item .d-tag {
  font-size: 11px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 2px 8px
}

.diary-item .d-tag.on {
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid rgba(78, 158, 94, .4)
}

.diary-item .d-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px
}

.diary-item .d-sub {
  font-size: 12px;
  color: var(--sub)
}

.diary-item .d-moods {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap
}

.diary-item .d-mood {
  font-size: 12px;
  color: var(--sub);
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px
}

.diary-item .d-mood img {
  width: 14px;
  height: 14px;
  object-fit: contain
}

.diary-item .d-mood.o {
  color: var(--ok);
  border-color: #4e9e5e66;
  background: var(--ok-soft)
}

.diary-item .d-mood.x {
  color: var(--danger);
  border-color: #c0523f66;
  background: var(--danger-soft)
}

.detail-wrap {
  padding: 6px 0 30px
}

.detail-date {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  margin-bottom: 12px
}

.detail-view {
  display: none
}

.detail-deep {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 4px 0 14px;
  cursor: pointer
}

.detail-deep.hidden {
  display: none
}

.detail-view.on {
  display: block
}

#detail-view-card .detail-card {
  margin-bottom: 0
}

#detail-fields {
  aspect-ratio: auto;
  overflow: visible;
  display: block;
  height: auto;
  padding: 18px 16px;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left
}

#detail-fields .slide-k,
#detail-fields .core-txt {
  position: static;
  color: var(--text);
  text-shadow: none;
  max-height: none;
  overflow: visible
}

#detail-fields .slide-k {
  white-space: normal
}

#detail-fields .core-txt {
  white-space: pre-line
}

.detail-symbol {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  margin-bottom: 14px
}

.detail-symbol .pair {
  font-size: 34px;
  letter-spacing: 6px;
  margin-bottom: 10px
}

.detail-symbol .pair img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin: 0 3px;
  vertical-align: middle
}

.detail-symbol .name {
  font-size: 18px;
  font-weight: 700
}

.detail-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 18px 16px
}

.detail-card .slide-k {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 10px;
  letter-spacing: .04em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.detail-card .core-txt {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  white-space: pre-line
}

#detail-view-card .detail-card {
  position: relative;
  overflow: hidden
}

#detail-view-card .detail-card .el-ic {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  font-size: 0;
  letter-spacing: 0;
  text-align: left
}

#detail-view-card .detail-card .el-ic img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block
}

#detail-view-card .detail-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0000 38%, #0000007a);
  pointer-events: none;
  z-index: 0
}

#detail-view-card .detail-card .slide-k,
#detail-view-card .detail-card .core-txt {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65)
}

@supports not (aspect-ratio: 1/1) {
  #detail-view-card .detail-card {
    height: 0;
    padding-bottom: 100%;
    padding-top: 0
  }

  #detail-view-card .detail-card .slide-k,
  #detail-view-card .detail-card .core-txt {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px
  }

  #detail-view-card .detail-card .slide-k {
    white-space: normal
  }

  #detail-view-card .detail-card .core-txt {
    white-space: pre-line
  }

  #detail-view-card .detail-card .slide-k {
    top: 0;
    height: 45%
  }

  #detail-view-card .detail-card .core-txt {
    bottom: 0;
    height: 45%
  }
}

.detail-field {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line)
}

.detail-field .field-label {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 8px;
  font-weight: 600
}

.detail-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  padding: 10px 12px;
  resize: vertical
}

.detail-field textarea:focus {
  outline: none;
  border-color: var(--blue)
}

.note-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px
}

.note-save-hint {
  font-size: 12px;
  color: var(--dim);
  transition: color .2s
}

.note-save-hint.dirty {
  color: var(--gold);
  font-weight: 600
}

.note-save-btn {
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--sub);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s
}

.note-save-btn:hover {
  border-color: var(--blue);
  color: var(--blue)
}

.note-save-btn.saved {
  background: var(--ok-soft);
  border-color: var(--ok);
  color: var(--ok)
}

.verify-row {
  display: flex;
  gap: 10px
}

.mood-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.mood-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  font-family: inherit;
  line-height: 1
}

.mood-btn img {
  width: 50px;
  height: 50px;
  object-fit: contain
}

.mood-btn:active {
  transform: scale(.92)
}

.mood-btn.on {
  background: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-soft)
}

.verify-btn {
  flex: 1;
  padding: 11px 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s ease
}

.verify-btn.on-y {
  background: var(--ok-soft);
  border-color: var(--ok);
  color: var(--ok)
}

.verify-btn.on-x {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger)
}

.detail-note {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  margin: 10px 0 4px
}

.overlay.modal-mode .guardian-box {
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  width: 88%;
  max-width: 340px;
  box-sizing: border-box
}

.guardian-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  margin: 8px auto 20px;
  perspective: 1400px;
  border-radius: 22px
}

.guardian-card:before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  background: radial-gradient(circle, rgba(218, 180, 85, .4) 0%, rgba(218, 180, 85, .12) 55%, transparent 75%);
  filter: blur(6px);
  animation: guardian-breathe 2.6s ease-in-out infinite;
  pointer-events: none
}

@keyframes guardian-breathe {

  0%,
  to {
    opacity: .55;
    transform: scale(.96)
  }

  50% {
    opacity: 1;
    transform: scale(1.05)
  }
}

.guardian-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.5s cubic-bezier(.3, .15, .2, 1)
}

.guardian-card.flipped .guardian-inner {
  transform: rotateY(180deg)
}

.guardian-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center
}

.guardian-front {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px #00000014;
  border-radius: 50% 50% 18px 18px/38% 38% 18px 18px
}

.guardian-front:before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50% 50% 12px 12px/38% 38% 12px 12px;
  border: 1px dashed var(--line2);
  pointer-events: none
}

.guardian-seal {
  width: 86px;
  height: 86px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid var(--line2);
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  box-shadow: 0 8px 24px #0000000f
}

.guardian-seal img {
  width: 54px;
  height: 54px;
  object-fit: contain
}

.guardian-front-txt {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--text);
  line-height: 1.6;
  font-family: var(--serif)
}

.guardian-back {
  background: var(--card2);
  border: 1px solid var(--line2);
  transform: rotateY(180deg);
  box-shadow: 0 18px 44px #0000001a;
  border-radius: 50% 50% 18px 18px/38% 38% 18px 18px
}

.guardian-back-k {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .06em;
  margin-bottom: 12px;
  font-family: var(--serif)
}

.guardian-back-el {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: 4px
}

.guardian-back-el img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin: 0 3px;
  vertical-align: middle
}

.guardian-back-txt {
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
  text-align: center
}

.guardian-flip-btn {
  margin: 2px auto 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer
}

.guardian-flip-btn:active {
  transform: scale(.96)
}

.guardian-locked-note {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  margin: 12px 0 4px;
  line-height: 1.6
}

#toast {
  position: fixed;
  left: 50%;
  top: calc(18px + env(safe-area-inset-top));
  transform: translate(-50%) translateY(-12px);
  background: var(--text);
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  max-width: 88%;
  text-align: center;
  box-shadow: 0 8px 30px #0003
}

#toast.show {
  opacity: 1;
  transform: translate(-50%) translateY(0)
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: #11111173
}

.overlay.open {
  display: flex
}

.overlay.modal-mode {
  align-items: center
}

.overlay.modal-mode .sheet {
  width: 88%;
  max-width: 340px;
  border-radius: 20px;
  border: 1px solid var(--line2);
  animation: pop .25s ease
}

@keyframes pop {
  0% {
    transform: scale(.92);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.modal-box {
  width: 82%;
  max-width: 330px;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line)
}

.modal-box h3 {
  font-size: 17px;
  margin-bottom: 6px
}

.modal-box .sub {
  font-size: 13px;
  margin-bottom: 14px
}

.modal-box .btn {
  width: 100%;
  margin-top: 10px
}

.sheet {
  width: 100%;
  max-width: 390px;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line2);
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
  animation: rise .22s ease
}

@keyframes rise {
  0% {
    transform: translateY(30px);
    opacity: 0
  }

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

.sheet h3 {
  font-size: 16px;
  margin-bottom: 4px
}

.sheet .sub {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 16px
}

.sheet input {
  width: 100%;
  height: 52px;
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 12px
}

.sheet input::placeholder {
  color: var(--dim)
}

.sheet .note {
  font-size: 12px;
  color: var(--dim);
  margin: 10px 0 2px;
  line-height: 1.5
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px
}

.sheet-head .icon-btn {
  border: none;
  background: none;
  color: var(--sub);
  font-size: 16px
}

.menu-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 15px 4px;
  cursor: pointer;
  border-bottom: 1px solid var(--line)
}

.menu-item:last-child {
  border-bottom: none
}

.menu-item:active {
  color: var(--blue)
}

.menu-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  margin-right: 8px
}

.menu-item.danger {
  color: var(--danger)
}

.menu-item.danger:active {
  color: var(--danger);
  background: var(--danger-soft)
}

.menu-item.menu-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: default
}

.menu-item.menu-lang:active {
  color: var(--text)
}

.menu-social {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  padding-top: 14px;
}

.menu-social .social-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease
}

.menu-social .social-icon:active {
  background: var(--card2)
}

.menu-social .social-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain
}

.menu-item.menu-lang .ml-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px
}

.menu-lang .lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none
}

.menu-lang .lang-switch input {
  display: none
}

.menu-lang .lang-switch .track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--line2);
  transition: background .2s ease;
  flex: 0 0 auto
}

.menu-lang .lang-switch .track .thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0003;
  transition: transform .2s ease
}

.menu-lang .lang-switch input:checked+.track {
  background: var(--blue)
}

.menu-lang .lang-switch input:checked+.track .thumb {
  transform: translate(18px)
}

.menu-lang .lang-txt {
  font-size: 12px;
  color: var(--sub);
  min-width: 32px;
  text-align: center;
  font-weight: 600
}

.dash-hero {
  padding: 26px 0 14px;
  text-align: center
}

.dash-hero .avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px
}

.dash-hero .avatar img {
  width: 44px;
  height: 44px;
  object-fit: contain
}

.dash-hero .dash-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px
}

.dash-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap
}

.dash-badges .badge {
  cursor: pointer;
  transition: border-color .15s ease
}

.dash-badges .badge:active {
  border-color: var(--blue)
}

.dash-logout {
  margin: 12px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--card);
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer
}

.dash-logout:active {
  background: var(--card2)
}

.badge {
  font-size: 12px;
  color: var(--text);
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 5px 12px
}

.dash-stats {
  display: flex;
  gap: 10px;
  margin: 14px 0
}

.dash-stats .stat {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center
}

.dash-stats .stat .n {
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 2px
}

.dash-stats .stat .l {
  font-size: 11px;
  color: var(--dim)
}

.dash-remind,
.menu-remind {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 18px
}

.menu-remind {
  padding: 12px 4px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0
}

.dash-remind>span,
.menu-remind>span {
  font-size: 20px
}

.dash-remind>span img,
.menu-remind>span img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: -4px
}

.menu-remind>span img {
  width: 22px;
  height: 22px
}

.dash-remind .t,
.menu-remind .t {
  font-size: 13px;
  font-weight: 600
}

.menu-remind .t {
  font-size: 14px
}

.dash-remind .d,
.menu-remind .d {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px
}

.dash-remind .mini-btn,
.menu-remind .mini-btn {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--sub);
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit
}

.dash-sec {
  font-size: 14px;
  color: var(--sub);
  margin: 4px 0 10px
}

.auth-tabs {
  display: flex;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px
}

.auth-tab {
  flex: 1;
  height: 40px;
  border: none;
  background: none;
  color: var(--sub);
  font-size: 14px;
  font-family: inherit;
  border-radius: 9px;
  cursor: pointer
}

.auth-tab.on {
  background: var(--text);
  color: #fff;
  font-weight: 700
}

.auth-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
  margin-top: -4px
}

.auth-forgot {
  margin-top: 6px;
  text-align: right
}

.auth-forgot button {
  background: none;
  border: none;
  color: var(--sub);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0
}

.auth-forgot button:hover {
  color: var(--blue)
}

.pass-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--warn-soft);
  color: #8a6a1f
}

.pass-hint.ok {
  background: var(--ok-soft);
  color: var(--ok)
}

.forgot-box {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--line2);
  border-radius: 12px;
  background: var(--card2)
}

.forgot-box .forgot-field {
  margin-bottom: 10px
}

.forgot-box .forgot-field label {
  display: block;
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 6px
}

.forgot-box input {
  width: 100%;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease
}

.forgot-box input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft)
}

.forgot-box .btn-sm {
  padding: 9px 14px;
  font-size: 13px;
  min-height: auto;
  width: 100%;
  border-radius: 10px
}

.forgot-result {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--sub)
}

.forgot-result .fr-ok {
  color: var(--ok)
}

.forgot-result .fr-err {
  color: var(--danger)
}

.forgot-result .fr-pw {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  background: var(--ok-soft);
  color: var(--ok);
  text-align: center;
  letter-spacing: .06em
}

.forgot-close {
  margin-top: 10px;
  width: 100%;
  background: none;
  border: none;
  color: var(--dim);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit
}

.forgot-close:hover {
  color: var(--blue)
}

.setting-hero {
  padding: 30px 0 18px;
  text-align: center
}

.setting-hero .seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text)
}

.setting-hero .seal img {
  width: 38px;
  height: 38px;
  object-fit: contain
}

.setting-hero h2 {
  font-size: 19px;
  margin-bottom: 8px
}

.setting-hero p {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7
}

.setting-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px
}

.setting-row:last-child {
  border-bottom: none
}

.setting-row .s-label {
  flex: 1;
  color: var(--text)
}

.setting-row .s-val {
  font-size: 12px;
  color: var(--dim)
}

.setting-row .mini-btn {
  font-size: 12px;
  color: var(--sub);
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit
}

.setting-row .mini-btn.on {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-soft)
}

.about-hero,
.milk-hero,
.login-hero {
  padding: 30px 0 18px;
  text-align: center
}

.login-hero {
  padding: 40px 0 26px
}

.about-hero .seal,
.milk-hero .seal,
.login-hero .seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px
}

.login-hero .seal {
  margin-bottom: 16px;
  color: var(--text)
}

.about-hero .seal img,
.milk-hero .seal img,
.login-hero .seal img {
  width: 38px;
  height: 38px;
  object-fit: contain
}

.login-hero .seal img {
  width: 40px;
  height: 40px
}

.about-hero h2,
.milk-hero h2,
.login-hero h2 {
  font-size: 19px;
  margin-bottom: 8px
}

.login-hero h2 {
  font-size: 20px;
  font-family: var(--serif)
}

.about-hero p,
.milk-hero p,
.login-hero p {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7
}

.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text)
}

.about-card p {
  margin-bottom: 12px
}

.about-card p:last-child {
  margin-bottom: 0
}

.milk-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px
}

.milk-stat {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center
}

.milk-stat .n {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 2px
}

.milk-stat .l {
  font-size: 11px;
  color: var(--dim)
}

.milk-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 18px;
  margin-bottom: 14px
}

.milk-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line)
}

.milk-row:last-child {
  border-bottom: none
}

.milk-row .d {
  color: var(--sub)
}

.milk-row .a {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap
}

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px
}

.social-btn {
  flex: 1;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  padding: 5px
}

.social-btn:active {
  background: var(--card2)
}

.social-btn .ic {
  font-size: 16px
}

.social-btn .ic img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px
}

.share-divider,
.p1-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 11px;
  margin: 2px 0 12px
}

.p1-divider {
  gap: 12px;
  margin: 4px 0 20px
}

.share-divider:before,
.share-divider:after,
.p1-divider:before,
.p1-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line)
}

.p1-section {
  margin-bottom: 22px
}

.p1-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px
}

.p1-sec-badge {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--card2);
  border: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px
}

.p1-sec-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.p1-sec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text)
}

.p1-sec-sub {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
  line-height: 1.6
}

.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px
}

.review-card h2 {
  font-size: 16px;
  margin-bottom: 14px
}

.review-row {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px
}

.review-row .k {
  color: var(--dim);
  flex: 0 0 72px
}

.review-row .v {
  color: var(--text)
}

.loading-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px
}

.loading-seal {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  border: 1px solid var(--line2);
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  animation: breathe 1.2s ease-in-out infinite
}

.loading-seal img {
  width: 52px;
  height: 52px;
  object-fit: contain
}

@keyframes breathe {

  0%,
  to {
    transform: scale(1)
  }

  50% {
    transform: scale(1.08)
  }
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--line2);
  border-top-color: var(--blue);
  animation: spin .8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.loading-wrap p {
  font-size: 14px;
  color: var(--sub)
}

.disclaimer,
.footer-link {
  text-align: center;
  font-size: 12px;
  color: var(--dim)
}

.footer-link {
  padding: 6px 0 4px;
  margin: 0
}

.email-preview {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--sub);
  white-space: pre-wrap;
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 12px;
  display: none
}

.hint {
  font-size: 12px;
  color: var(--dim);
  margin-top: 6px
}

.hidden {
  display: none !important
}

img.glyph {
  object-fit: contain;
  vertical-align: middle
}

:where(img.glyph) {
  width: 18px;
  height: 18px
}

.badge img.glyph {
  width: 14px;
  height: 14px
}

.field-label img.glyph,
.s-label img.glyph,
.verify-btn img.glyph,
.note-save-btn img.glyph,
.guardian-back-txt img.glyph,
.forgot-close img.glyph {
  width: 16px;
  height: 16px
}

.guardian-locked-note img.glyph {
  width: 14px;
  height: 14px
}

#detail-fields {
  display: none
}

#btn-later {
  margin-top: 10px
}

.icon-btn img,
.hero .seal img,
.draw-seal img,
.coin img,
.about-hero .seal img,
.milk-hero .seal img,
.login-hero .seal img,
.diary-hero .seal img,
.setting-hero .seal img,
.dash-hero .avatar img,
.loading-seal img,
.guardian-seal img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  color: inherit;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
  margin-right: 8px
}

.lang-btn:hover {
  border-color: currentColor
}

body.lang-en {
  letter-spacing: 0
}

body.lang-en .btn {
  font-size: 15px;
  padding: 0 12px;
  min-height: 54px;
  white-space: normal;
  line-height: 1.3
}

body.lang-en .btn-lg {
  font-size: 16px
}

body.lang-en .menu-item {
  font-size: 14px;
  padding: 14px 4px;
  white-space: normal;
  line-height: 1.4
}

body.lang-en .menu-item .ml-label {
  font-size: 14px;
  line-height: 1.4;
  white-space: normal
}

body.lang-en .topbar .brand {
  letter-spacing: .06em
}

body.lang-en .topbar .right .navlink {
  font-size: 12px;
  padding: 10px 2px
}

body.lang-en .topbar .back {
  font-size: 13px
}

body.lang-en h2 {
  line-height: 1.35
}

body.lang-en .p1-sec-title {
  font-size: 14px;
  line-height: 1.35
}

body.lang-en .p1-sec-sub {
  font-size: 11.5px;
  line-height: 1.5
}

body.lang-en .slide .core-txt,
body.lang-en .slide .focus {
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: keep-all
}

body.lang-en .slide .name {
  font-size: 16px;
  line-height: 1.3
}

body.lang-en .slide .slide-k {
  font-size: 12px;
  line-height: 1.4
}

body.lang-en .slide .pair {
  font-size: 28px;
  letter-spacing: 3px
}

body.lang-en .dash-name {
  font-size: 16px;
  line-height: 1.4
}

body.lang-en .dash-stats .stat .l {
  font-size: 10px;
  line-height: 1.4
}

body.lang-en .dash-badges .badge {
  font-size: 11px
}

body.lang-en .chip {
  font-size: 13px;
  padding: 9px 12px
}

body.lang-en .setting-row {
  font-size: 13px;
  padding: 13px 14px
}

body.lang-en .setting-row .s-label {
  line-height: 1.4
}

body.lang-en .about-card {
  font-size: 13.5px;
  line-height: 1.75
}

body.lang-en .login-hero h2 {
  font-size: 19px
}

body.lang-en .modal-box h3 {
  font-size: 16px;
  line-height: 1.4
}

body.lang-en .modal-box .sub {
  line-height: 1.5
}

body.lang-en .verify-btn {
  font-size: 15px
}

body.lang-en .note-save-btn,
body.lang-en .mini-btn {
  font-size: 12px
}

body.lang-en .detail-note {
  line-height: 1.5
}

body.lang-en .guardian-front-txt {
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.7
}

body.lang-en .footer-link,
body.lang-en .disclaimer {
  font-size: 11.5px;
  line-height: 1.6
}

body.lang-en .p1-divider {
  font-size: 10.5px
}

body.lang-en .draw-front-txt {
  letter-spacing: .12em
}

body.lang-en .draw-back-txt {
  font-size: 12.5px;
  line-height: 1.7
}

body.lang-en .form-card input,
body.lang-en .form-card textarea,
body.lang-en .sheet input {
  font-size: 15px
}

body.lang-en .social-btn {
  font-size: 12px;
  padding: 0 4px
}

body.lang-en .milk-stat .l {
  font-size: 10px
}

body.lang-en .milk-row {
  font-size: 12.5px
}

body.lang-en .badge,
body.lang-en .detail-deep {
  font-size: 11px
}

.social-btn {
  min-width: 0
}

#social-card {
  flex: 1.15;
  background: var(--accent-soft);
  border-color: var(--line2);
  font-weight: 600
}

#social-card .ic {
  font-size: 18px
}

#share-card-stage {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1080px;
  height: 1080px;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  background: #f4f1ea
}

#share-card {
  width: 1080px;
  height: 1080px;
  background: #f4f1ea;
  font-family: var(--serif);
  color: #111;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 80px;
  box-sizing: border-box
}

#share-card .sc-brand {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 26px;
  letter-spacing: 6px;
  color: var(--dim)
}

#card-symbol {
  font-size: 120px;
  line-height: 1.1;
  margin-bottom: 34px
}

#card-hexname {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 12px
}

#card-hexen {
  font-size: 26px;
  color: var(--sub);
  letter-spacing: 2px;
  margin-bottom: 40px
}

#share-card .sc-rule {
  border-top: 1px solid var(--line2);
  width: 300px;
  margin-bottom: 40px
}

#card-guide {
  font-size: 32px;
  line-height: 1.9;
  color: #111;
  max-width: 820px;
  letter-spacing: 1px
}

#card-cat {
  font-size: 24px;
  color: var(--sub);
  margin-top: 26px;
  letter-spacing: 2px
}

#share-card .sc-foot {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px
}

#card-qr {
  width: 150px;
  height: 150px;
  border-radius: 10px
}

#share-card .sc-foot-txt {
  text-align: left;
  font-size: 22px;
  color: var(--dim);
  line-height: 1.7;
  letter-spacing: 1px
}

.milk-charity {
  margin-top: 10px;
  color: var(--dim)
}

.card-preview-box {
  width: 92%;
  max-width: 420px;
  border-radius: 20px;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line2);
  animation: pop .25s ease
}

.card-preview-box .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px
}

.card-preview-box h3 {
  font-size: 17px;
  margin: 0
}

.card-preview-box .sub {
  font-size: 12px;
  color: var(--dim);
  margin: 4px 0 12px
}

.card-preview-scroll {
  max-height: 62vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  background: #f4f1ea;
  padding: 8px;
  margin-bottom: 12px
}

.card-preview-scroll img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px
}

.card-preview-box .btn {
  width: 100%
}

.draw-card:not(.flipped) .draw-inner {
  animation: draw-hint 3s ease-in-out infinite
}

@keyframes draw-hint {

  0%,
  to {
    transform: rotateY(-10deg)
  }

  50% {
    transform: rotateY(10deg)
  }
}

.draw-front-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 3;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .12em;
  font-family: var(--serif);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  transition: opacity .3s ease;
  pointer-events: none
}

.draw-front-hint .swipe {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
  animation: draw-nudge 1.4s ease-in-out infinite
}

@keyframes draw-nudge {

  0%,
  to {
    transform: translateY(0)
  }

  50% {
    transform: translateY(6px)
  }
}

.draw-card.flipped .draw-front-hint {
  opacity: 0
}

.guardian-card {
  overflow: visible
}

.guardian-flare {
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #dab455f2, #dab4556b, #dab45500 68%);
  transform: scale(.1);
  filter: blur(2px)
}

.guardian-flare.play {
  animation: guardian-flare .95s ease-out forwards
}

@keyframes guardian-flare {
  0% {
    opacity: 0;
    transform: scale(.1)
  }

  20% {
    opacity: 1
  }

  to {
    opacity: 0;
    transform: scale(2.5)
  }
}

.guardian-back {
  background-color: #101014;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 34px 26px 30px
}

.guardian-back {
  background-image: var(--guardian-bg, none)
}

.guardian-back:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0000006b;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit
}

.guardian-back-k,
.guardian-back-txt {
  position: relative;
  z-index: 2;
  color: #fff
}

.guardian-back-k {
  font-size: 19px;
  margin-bottom: 14px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .65)
}

.guardian-back-txt {
  font-size: 15px;
  line-height: 1.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  max-height: 52%;
  overflow: hidden
}

.guardian-back-el {
  display: none
}

.guardian-beta-banner {
  margin: 10px auto 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdf3d8, #f7e3b2);
  border: 1px solid #e3c471;
  color: #6b5313;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 320px
}

.guardian-beta-banner .gbb-ic {
  font-size: 20px;
  line-height: 1.3
}

.guardian-beta-banner .gbb-main {
  flex: 1;
  min-width: 0
}

.guardian-beta-banner .gbb-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em
}

.guardian-beta-banner .gbb-sub {
  font-size: 12px;
  line-height: 1.55;
  margin-top: 3px;
  opacity: .94
}

.guardian-beta-banner .gbb-status {
  font-size: 11px;
  font-weight: 700;
  color: #8a6d1f;
  margin-top: 4px
}

.guardian-beta-banner .gbb-btn {
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: #c9a23c;
  color: #fff;
  box-shadow: 0 2px 6px #6b531340
}

.guardian-beta-banner .gbb-btn:active {
  transform: scale(.96)
}

.guardian-beta-banner .gbb-btn:disabled {
  opacity: .6
}

.guardian-beta-banner.claimed {
  opacity: .72
}

.guardian-beta-banner.hidden {
  display: none
}