/* MetAI card maker: app styles */
.fx-main {
  padding-top: 20px;
  padding-bottom: 40px;
}
.fx-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.12;
  margin: 4px 0 10px;
}
.fx-app {
  margin-top: 18px;
  min-height: 420px;
}
.fx-loading,
.fx-err {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.fx-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fx-door {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #fff;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.fx-door:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.fx-door-xmas {
  background:
    radial-gradient(
      120% 90% at 50% 0%,
      #2f4b8a 0%,
      #14224a 45%,
      #070d22 100%);
}
.fx-door-newyear {
  background:
    radial-gradient(
      120% 90% at 50% 0%,
      #c0392b 0%,
      #7a1414 45%,
      #2a0707 100%);
}
.fx-door::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, .18) 0 2px,
      transparent 3px) 0 0/46px 46px,
    radial-gradient(
      circle at 70% 60%,
      rgba(255, 255, 255, .12) 0 1.5px,
      transparent 2.5px) 0 0/31px 31px;
  opacity: .8;
}
.fx-door-newyear::before {
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 215, 130, .25) 0 2px,
      transparent 3px) 0 0/46px 46px,
    radial-gradient(
      circle at 70% 60%,
      rgba(255, 190, 200, .2) 0 2px,
      transparent 3px) 0 0/37px 37px;
}
.fx-door:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
}
.fx-door-cards {
  position: relative;
  height: 260px;
  margin-bottom: 10px;
  perspective: 900px;
}
.fx-door-cards canvas {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 150px;
  height: auto;
  aspect-ratio: 1000/1480;
  border-radius: 4px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
  background: #eee;
  opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s;
}
.fx-door-cards canvas.on {
  opacity: 1;
}
.fx-door-cards canvas:nth-child(1) {
  transform: translateX(-50%) rotateY(-8deg) rotate(-12deg) translateX(-95px);
}
.fx-door-cards canvas:nth-child(2) {
  transform: translateX(-50%) rotateY(-4deg) translateY(-6px);
  z-index: 2;
}
.fx-door-cards canvas:nth-child(3) {
  transform: translateX(-50%) rotateY(8deg) rotate(12deg) translateX(95px);
}
.fx-door:hover .fx-door-cards canvas:nth-child(1) {
  transform: translateX(-50%) rotate(-18deg) translateX(-125px) translateY(10px);
}
.fx-door:hover .fx-door-cards canvas:nth-child(2) {
  transform: translateX(-50%) translateY(-18px) scale(1.04);
}
.fx-door:hover .fx-door-cards canvas:nth-child(3) {
  transform: translateX(-50%) rotate(18deg) translateX(125px) translateY(10px);
}
.fx-door-t {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fx-door-t small {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
}
.fx-door-t b {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}
.fx-door-t span {
  opacity: .85;
  font-size: 15px;
}
.fx-door-t i {
  font-style: normal;
  font-weight: 700;
  margin-top: 8px;
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 8px 16px;
  border-radius: 999px;
  align-self: flex-start;
  backdrop-filter: blur(6px);
}
.fx-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.fx-back {
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.fx-back:hover {
  border-color: var(--ink);
}
.fx-crumb {
  color: var(--muted);
  font-size: 15px;
}
.fx-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-left: auto;
}
.fx-tabs button {
  font: inherit;
  font-size: 14px;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.fx-tabs button[aria-selected=true] {
  background: var(--ink);
  color: var(--bg);
}
.fx-h {
  font-family: var(--serif);
  font-size: 26px;
  margin: 4px 0 16px;
}
.fx-h small {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.fx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px 18px;
}
.fx-thumb {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fx-in .5s both;
  animation-delay: calc(var(--i) * 25ms);
}
.fx-thumb:focus-visible .fx-thumb-c {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.fx-thumb-c {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1000/1480;
  background:
    linear-gradient(
      110deg,
      var(--line) 30%,
      var(--surface) 50%,
      var(--line) 70%) 0 0/300% 100%;
  animation: fx-shimmer 1.4s linear infinite;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .08);
  transition: transform .25s ease, box-shadow .25s;
  transform-style: preserve-3d;
}
.fx-thumb-c:has(canvas.on) {
  animation: none;
}
.fx-thumb canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .4s;
}
.fx-thumb canvas.on {
  opacity: 1;
}
.fx-shine {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at var(--sx,50%) var(--sy,0%),
      rgba(255, 255, 255, .35),
      transparent 45%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.fx-thumb:hover .fx-thumb-c {
  box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .55);
}
.fx-thumb:hover .fx-shine {
  opacity: 1;
}
.fx-thumb-n {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
@keyframes fx-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fx-shimmer {
  to {
    background-position: -300% 0;
  }
}
.fx-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 22px;
  align-items: start;
}
.fx-stage {
  min-width: 0;
  position: sticky;
  top: 12px;
  border-radius: 22px;
  overflow: hidden;
  height: min(78vh, 760px);
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.fx-stage-xmas {
  background:
    radial-gradient(
      circle at 86% 24%,
      #fbf6e2 0 20px,
      rgba(251, 246, 226, .28) 22px,
      rgba(150, 180, 255, .1) 64px,
      transparent 130px),
    linear-gradient(
      180deg,
      #050a1e 0%,
      #0d1a40 45%,
      #1d3470 80%,
      #2d4a8c 100%);
}
.fx-stage-newyear {
  background:
    radial-gradient(
      70% 50% at 50% 100%,
      rgba(255, 160, 70, .45),
      transparent 70%),
    linear-gradient(
      180deg,
      #22050c 0%,
      #4e0d18 35%,
      #8a1d22 70%,
      #c2452a 100%);
}
.fx-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fx-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fx-bg-land {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(150px, 36%, 320px);
  background: center bottom/cover no-repeat;
}
.fx-bg-xmas .fx-bg-land {
  background-image: url(bg/xmas.svg?v=2);
}
.fx-bg-newyear .fx-bg-land {
  background-image: url(bg/newyear.svg?v=2);
}
.fx-bg-ume {
  position: absolute;
  left: -8px;
  top: -6px;
  width: clamp(170px, 30%, 360px);
  aspect-ratio: 560/380;
  background: url(bg/ume.svg?v=2) left top/contain no-repeat;
}
.fx-stage > .fx-view,
.fx-env {
  z-index: 1;
}
.fx-stage-ctl,
.fx-hint,
.fx-recv-ctl,
.fx-view-recv {
  z-index: 2;
}
.fx-view {
  position: relative;
  flex: 1;
  min-height: 0;
}
.fx-gl {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}
.fx-gl.drag {
  cursor: grabbing;
}
.fx-stage-ctl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.fx-stage-ctl > * {
  pointer-events: auto;
}
.fx-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 10px rgba(0, 0, 0, .5);
}
.fx-seg {
  display: inline-flex;
  background: rgba(127, 127, 127, .12);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex-wrap: wrap;
}
.fx-seg button {
  font: inherit;
  font-size: 14px;
  border: 0;
  background: none;
  color: inherit;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.fx-seg button[aria-pressed=true] {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.fx-stage .fx-seg,
.fx-recv-ctl .fx-seg {
  background: rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  backdrop-filter: blur(8px);
}
.fx-stage .fx-seg button[aria-pressed=true],
.fx-recv-ctl .fx-seg button[aria-pressed=true] {
  background: #fff;
  color: #111;
}
.fx-icon {
  font: inherit;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.fx-icon:hover {
  background: rgba(0, 0, 0, .55);
}
.fx-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fx-panel h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
}
.fx-f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 0;
  margin: 0;
  padding: 0;
}
.fx-f > span {
  font-weight: 600;
  font-size: 14px;
}
.fx-f > span small {
  font-weight: 400;
  color: var(--muted);
}
.fx-f input,
.fx-f textarea {
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}
.fx-f textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.fx-f input:focus,
.fx-f textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
#fx-count {
  float: right;
  font-weight: 400;
  color: var(--muted);
}
.fx-tips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: -6px;
}
.fx-tips button {
  font: inherit;
  font-size: 12.5px;
  border: 1px dashed var(--line);
  background: none;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
}
.fx-tips button:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.fx-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fx-chips button {
  font-size: 17px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.fx-chips button[aria-pressed=true] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.fx-inks {
  display: flex;
  gap: 10px;
}
.fx-inks button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--c);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.fx-inks button.gold {
  background:
    linear-gradient(
      135deg,
      #8c6a22,
      #f6e3a1 45%,
      #b8892c 70%,
      #e8cd7d);
}
.fx-inks button[aria-pressed=true] {
  box-shadow: 0 0 0 2px var(--ink);
}
.fx-stamps,
.fx-hankos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 2px;
}
.fx-stamps button,
.fx-hankos button {
  position: relative;
  flex: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fx-sn {
  font: 11px/1.1 var(--sans);
  color: var(--muted);
  max-width: 60px;
  text-align: center;
  padding-bottom: 2px;
}
.fx-note {
  font-size: 13px;
  color: var(--muted);
}
.fx-flash {
  animation: fx-flash 1.4s ease;
}
@keyframes fx-flash {
  0%, 60% {
    background: rgba(200, 16, 46, .12);
    box-shadow: 0 0 0 6px rgba(200, 16, 46, .12);
    border-radius: 12px;
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}
.fx-stamps canvas {
  width: 56px;
  height: 70px;
}
.fx-hankos canvas {
  width: 46px;
  height: 46px;
}
.fx-stamps button[aria-pressed=true],
.fx-hankos button[aria-pressed=true] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.fx-none {
  font: inherit !important;
  font-size: 12.5px !important;
  line-height: 1.2 !important;
  color: var(--muted) !important;
  padding: 6px 10px !important;
  width: auto;
  min-width: 64px;
  justify-content: center;
}
.fx-hk {
  margin-top: 4px;
}
.fx-send {
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  border: 0;
  background:
    linear-gradient(
      135deg,
      #c8102e,
      #e2462f);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(200, 16, 46, .7);
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.fx-send:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.fx-send small {
  font-weight: 400;
  opacity: .85;
}
.fx-priv {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.fx-dlg {
  border: 0;
  border-radius: 20px;
  padding: 24px;
  max-width: 520px;
  width: calc(100% - 32px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.fx-dlg::backdrop {
  background: rgba(10, 10, 20, .55);
  backdrop-filter: blur(4px);
}
.fx-dlg h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 6px;
}
.fx-dlg p {
  margin: 0 0 14px;
}
.fx-dlg .fx-share {
  width: 100%;
  margin-bottom: 12px;
}
.fx-x {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 28px;
  line-height: 1;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.fx-svcs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.fx-svc {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 8px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
}
.fx-svc:hover {
  filter: brightness(1.08);
}
.fx-svc-wa {
  background: #1f9d55;
}
.fx-svc-line {
  background: #06b33a;
}
.fx-svc-tg {
  background: #2a9bd8;
}
.fx-svc-mail {
  background: #5b6472;
}
.fx-svc-x {
  background: #111;
}
.fx-svc-fb {
  background: #1877f2;
}
.fx-link {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.fx-link {
  flex-direction: column;
  align-items: stretch;
}
.fx-link textarea {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 10px;
  resize: none;
  overflow-wrap: anywhere;
}
.fx-link button,
.fx-dl button {
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.fx-link button:hover,
.fx-dl button:hover {
  border-color: var(--ink);
}
.fx-dl {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.fx-recv .fx-hero,
.fx-recv .fx-info {
  display: none;
}
.fx-recv-w {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: min(82vh, 820px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fx-view-recv {
  position: absolute;
  inset: 0;
}
.fx-recv-ctl {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.fx-env {
  position: relative;
  width: min(440px, 84%);
  aspect-ratio: 1.45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  transition: transform .7s cubic-bezier(.5, 0, .3, 1), opacity .6s;
  perspective: 900px;
}
.fx-env-b {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background:
    linear-gradient(
      160deg,
      #f8f1e3,
      #e9dcc4);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.fx-env-b::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background:
    linear-gradient(
      to top right,
      transparent 49.6%,
      rgba(0, 0, 0, .08) 50%,
      transparent 50.4%),
    linear-gradient(
      to top left,
      transparent 49.6%,
      rgba(0, 0, 0, .08) 50%,
      transparent 50.4%);
}
.fx-env-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52%;
  background:
    linear-gradient(
      180deg,
      #efe3cc,
      #e2d2b4);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform .7s cubic-bezier(.5, 0, .3, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .18));
  border-radius: 10px 10px 0 0;
}
.fx-env-seal {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 0;
  background:
    radial-gradient(
      circle at 35% 30%,
      #e0424e,
      #a10f22 70%);
  color: #fbe9c9;
  font-family: "Yuji Syuku", serif;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 -4px 8px rgba(0, 0, 0, .25);
  animation: fx-pulse 2.2s ease-in-out infinite;
}
.fx-env-t {
  position: relative;
  color: #3a2a1a;
  text-align: center;
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 18px 14px;
  line-height: 1.3;
}
.fx-env-t span {
  display: block;
  font-size: 15px;
  opacity: .75;
}
.fx-env .fx-open {
  position: absolute;
  bottom: -78px;
}
.fx-env.open .fx-env-flap {
  transform: rotateX(180deg);
}
.fx-env.open {
  transform: translateY(60px) scale(.92);
  opacity: 0;
}
.fx-env.open .fx-env-seal {
  animation: none;
  opacity: 0;
}
@keyframes fx-pulse {
  50% {
    transform: translate(-50%, -50%) scale(1.07);
  }
}
.fx-cta {
  text-align: center;
  margin: 22px auto 0;
  max-width: 640px;
}
.fx-cta p {
  color: var(--muted);
}
.fx-flat {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  cursor: pointer;
}
.fx-flat-in {
  position: relative;
  height: 84%;
  aspect-ratio: 1000/1480;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.3, .8, .2, 1);
}
.fx-flat-in.back {
  transform: rotateY(180deg);
}
.fx-flat-f,
.fx-flat-b {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}
.fx-flat-b {
  transform: rotateY(180deg);
}
.fx-flat img {
  width: 100%;
  height: 100%;
  display: block;
}
.fx-info {
  margin-top: 46px;
}
.fx-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fx-steps > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.fx-steps b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.fx-steps h3 {
  font-family: var(--serif);
  margin: 8px 0 4px;
  font-size: 19px;
}
.fx-steps p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}
.fx-privacy {
  margin-top: 26px;
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(29, 122, 74, .09),
      rgba(29, 122, 74, .03));
  border: 1px solid rgba(29, 122, 74, .25);
}
.fx-privacy h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 8px;
}
.fx-info .on-faq {
  margin-top: 30px;
}
.fx-info .on-faq details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.fx-info .on-faq summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 900px) {
  .fx-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .fx-stage {
    position: relative;
    top: 0;
    height: 62vh;
    min-height: 420px;
  }
  .fx-steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .fx-doors {
    grid-template-columns: 1fr;
  }
  .fx-door {
    min-height: 360px;
    padding: 20px;
  }
  .fx-door-cards {
    height: 220px;
  }
  .fx-door-cards canvas {
    width: 124px;
  }
  .fx-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .fx-tabs {
    margin-left: 0;
  }
  .fx-svcs {
    grid-template-columns: repeat(2, 1fr);
  }
  .fx-steps {
    grid-template-columns: 1fr;
  }
  .fx-panel {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx-thumb,
  .fx-env-seal {
    animation: none;
  }
  .fx-door,
  .fx-env,
  .fx-env-flap {
    transition: none;
  }
}
.fx-more {
  width: 100%;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 11px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 8px;
}
.fx-more:hover {
  border-color: var(--ink);
}
.fx-dlg .fx-note {
  font-size: 13px;
  color: var(--ok);
  background: var(--ok-bg);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 0 12px;
}
.fx-mbar,
.fx-mtabs {
  display: none;
}
.fx-groups,
.fx-grp,
.fx-sendbar {
  display: contents;
}
.fx-row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
body.fx-full {
  overflow: hidden;
}
body.fx-full .fx-editor {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--bg);
}
body.fx-full .fx-mbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.fx-mback {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fx-mname {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-msend {
  flex: none;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      #c8102e,
      #e2462f);
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(200, 16, 46, .8);
}
body.fx-full .fx-stage {
  position: relative;
  top: 0;
  flex: 1 1 auto;
  min-height: 150px;
  height: auto;
  border-radius: 0;
}
body.fx-full .fx-hint {
  display: none;
}
body.fx-full .fx-stage-ctl {
  bottom: 10px;
}
body.fx-full .fx-stage-ctl .fx-seg button,
body.fx-full .fx-icon {
  font-size: 13px;
  padding: 6px 12px;
}
body.fx-full .fx-mtabs {
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fx-mtabs button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 5px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.fx-mtabs button span {
  font-size: 18px;
  line-height: 1.1;
}
.fx-mtabs button[aria-selected=true] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
body.fx-full .fx-panel {
  flex: 0 0 auto;
  height: min(44%, 340px);
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 0;
  background: var(--surface);
}
body.fx-full .fx-panel h3,
body.fx-full .fx-sendbar {
  display: none;
}
body.fx-full .fx-groups {
  display: block;
  flex: 1;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
}
body.fx-full .fx-grp {
  display: none;
  flex-direction: column;
  gap: 12px;
}
body.fx-full .fx-grp.on {
  display: flex;
}
body.fx-full .fx-f textarea {
  min-height: 84px;
}
body.fx-full .fx-tips {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: -4px -14px 0;
  padding: 2px 14px;
  scrollbar-width: none;
}
body.fx-full .fx-tips::-webkit-scrollbar {
  display: none;
}
body.fx-full .fx-tips button {
  flex: none;
  white-space: nowrap;
}
body.fx-full .fx-stamps,
body.fx-full .fx-hankos {
  justify-content: flex-start;
}
.fx-editor.fx-kb .fx-mtabs,
.fx-editor.fx-kb .fx-stage-ctl {
  display: none;
}
.fx-editor.fx-kb .fx-panel {
  height: 47%;
}
.fx-editor.fx-kb .fx-f textarea {
  min-height: 64px;
}
.fx-editor.fx-kb .fx-groups {
  padding-top: 8px;
}
.fx-mctl {
  display: none;
}
body.fx-full .fx-mbar {
  padding: 5px 8px;
  padding-top: max(5px, env(safe-area-inset-top));
  gap: 8px;
}
body.fx-full .fx-mback {
  width: 34px;
  height: 34px;
  font-size: 18px;
}
body.fx-full .fx-mname {
  font-size: 14px;
}
body.fx-full .fx-msend {
  font-size: 14px;
  padding: 7px 14px;
}
body.fx-full .fx-mtabs button {
  flex-direction: row;
  justify-content: center;
  gap: 5px;
  padding: 9px 0 7px;
  font-size: 13px;
}
body.fx-full .fx-mtabs button span {
  font-size: 15px;
}
body.fx-full .fx-stage-ctl {
  display: none;
}
body.fx-full .fx-mctl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
}
.fx-mbtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.fx-full .fx-panel {
  height: min(40%, 320px);
}
.fx-editor.fx-big .fx-panel {
  display: none;
}
.fx-editor.fx-big .fx-mtabs button {
  border-bottom-color: transparent;
  color: var(--muted);
}
.fx-recv-ctl[hidden] {
  display: none;
}
.fx-env .fx-env-t {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: calc(100% + 22px);
  margin: 0;
  color: #fbf4e4;
  font-size: 21px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.fx-env .fx-env-t b {
  color: #f3d58c;
}
.fx-env .fx-env-t span {
  margin-top: 4px;
  font-size: 16px;
  opacity: .85;
}
.fx-env.open .fx-env-t {
  opacity: 0;
  transition: opacity .3s;
}
@media (max-width: 640px) {
  .fx-env-seal {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }
  .fx-env .fx-env-t {
    font-size: 19px;
    left: -6%;
    right: -6%;
  }
}
@media (max-width: 640px) {
  .fx-stage-xmas {
    background:
      radial-gradient(
        circle at 84% 15%,
        #fbf6e2 0 16px,
        rgba(251, 246, 226, .28) 18px,
        rgba(150, 180, 255, .1) 50px,
        transparent 100px),
      linear-gradient(
        180deg,
        #050a1e 0%,
        #0d1a40 45%,
        #1d3470 80%,
        #2d4a8c 100%);
  }
}
