






[v-cloak] { display: none !important; }

:root {
  
  --wp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wp-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  




  --wp-fs-xs:   0.75rem;    
  --wp-fs-sm:   0.8438rem;  
  --wp-fs-base: 0.9375rem;  
  --wp-fs-md:   1.125rem;   
  --wp-fs-lg:   1.375rem;   
  --wp-fs-xl:   1.75rem;    
  --wp-fw-title: 700;
  --wp-fw-emph:  700;
  --wp-fw-label: 500;
  --wp-fw-body:  400;
  --wp-tr-base:  0.02em;
  --wp-tr-title: 0.03em;
  --wp-tr-label: 0.04em;
  --wp-lh-ui:    1.5;
  --wp-lh-body:  1.75;
  --wp-lh-title: 1.3;
}

html, body { margin: 0; padding: 0; }
body {
  background: #FFE3F0;   
  color: var(--ink-900);
  font-family: 'Quicksand', 'Noto Sans TC', 'PingFang TC', "Microsoft JhengHei", sans-serif;   
  line-height: var(--wp-lh-ui);
  letter-spacing: var(--wp-tr-base);
  font-variant-numeric: tabular-nums;   
  -webkit-tap-highlight-color: transparent;
}
.wp *, .wp *::before, .wp *::after { box-sizing: border-box; }
.wp button { font: inherit; color: inherit; }

.wp-wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(96px + var(--dd-safe-bottom, 0px)); }


.wp-brandbar { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.wp-logo {
  flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  background: var(--paper); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--gray-200);
}
.wp-logo.is-initial {
  display: flex; align-items: center; justify-content: center;
  background: var(--wp-accent, var(--pink-500)); color: var(--paper); font-size: var(--wp-fs-lg); font-weight: var(--wp-fw-title);
}
.wp-brandrow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wp-brand__name { font-size: var(--wp-fs-base); font-weight: var(--wp-fw-title); letter-spacing: var(--wp-tr-title); line-height: var(--wp-lh-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-brand__shop { font-size: var(--wp-fs-xs); font-weight: var(--wp-fw-label); letter-spacing: var(--wp-tr-label); color: var(--wp-accent, var(--pink-500)); text-decoration: none; width: max-content; }
.wp-top__link {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); color: var(--ink-600); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--gray-200); background: var(--paper); border-radius: var(--radius-sm); padding: 6px 10px;
}
.wp-h1 { font-size: var(--wp-fs-xl); font-weight: var(--wp-fw-title); line-height: var(--wp-lh-title); letter-spacing: var(--wp-tr-title); margin: 0 0 var(--space-2); }
.wp-sub { font-size: var(--wp-fs-sm); line-height: var(--wp-lh-body); color: var(--ink-600); margin: 0; max-width: 32em; }
.wp-loading, .wp-empty { text-align: center; color: var(--ink-500); padding: var(--space-16) 0; font-size: var(--wp-fs-base); line-height: var(--wp-lh-body); }
.wp-empty h2 { font-size: var(--wp-fs-md); font-weight: var(--wp-fw-title); color: var(--ink-900); margin: 0 0 var(--space-2); }


.wp-page {
  --wp-gold: #FFD580;
  --wp-accent-dark: #E04A87;
  --wp-text-soft: #6B5A8C;
  --wp-shadow: 0 4px 12px rgba(58, 43, 92, 0.12);
}
.wp-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg,
      rgba(255, 227, 240, 0.85) 0%,
      rgba(232, 213, 255, 0.65) 18%,
      rgba(201, 229, 255, 0.35) 32%,
      rgba(255, 255, 255, 0) 48%),
    url('/static/img/wish-pool/pool/ground-tile.png') repeat;
  background-size: auto, 256px 256px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  position: relative;
  overflow-x: hidden;
}



.wp-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  z-index: 1;
}
.wp-cloud--1 { top: 60px;  left: 8%;  width: 80px;  height: 32px; }
.wp-cloud--2 { top: 140px; right: 5%; width: 100px; height: 36px; }
.wp-cloud--3 { top: 240px; left: 30%; width: 60px;  height: 24px; }


.wp-butterfly {
  position: fixed;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(58, 43, 92, 0.2));
  animation: wp-butterfly-drift 18s ease-in-out infinite;
}
.wp-butterfly--1 { top: 14%; animation-delay: 0s; }
.wp-butterfly--2 { top: 42%; animation-delay: 6s; }
.wp-butterfly--3 { top: 68%; animation-delay: 11s; }

.wp-butterfly__wings {
  transform-origin: 50% 60%;
  animation: wp-flap 0.4s ease-in-out infinite alternate;
}
@keyframes wp-flap {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0.45); }
}
@keyframes wp-butterfly-drift {
  0%   { left: -10%; transform: translateY(0) rotate(-8deg); }
  25%  { left: 28%;  transform: translateY(-30px) rotate(8deg); }
  50%  { left: 55%;  transform: translateY(15px) rotate(-5deg); }
  75%  { left: 82%;  transform: translateY(-15px) rotate(10deg); }
  100% { left: 110%; transform: translateY(0) rotate(-8deg); }
}


.wp-firefly {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wp-gold);
  box-shadow: 0 0 10px var(--wp-gold),
              0 0 20px rgba(255, 213, 128, 0.6);
  pointer-events: none;
  z-index: 1;
  animation: wp-firefly-blink 2.4s ease-in-out infinite;
}
.wp-firefly--1 { top: 16%; left: 12%; animation-delay: 0s; }
.wp-firefly--2 { top: 22%; right: 16%; animation-delay: 0.6s; }
.wp-firefly--3 { top: 50%; left: 6%;  animation-delay: 1.4s; }
.wp-firefly--4 { top: 58%; right: 8%; animation-delay: 0.3s; }
.wp-firefly--5 { top: 76%; left: 24%; animation-delay: 1.8s; }
.wp-firefly--6 { top: 82%; right: 28%; animation-delay: 1.0s; }
.wp-firefly--7 { top: 30%; left: 52%; animation-delay: 2.0s; }
.wp-firefly--8 { top: 88%; left: 50%; animation-delay: 0.5s; }

@keyframes wp-firefly-blink {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.3); }
}


.wp-petal {
  position: fixed;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at 30% 30%, #FFB6D9 0%, #FF6FA8 70%);
  border-radius: 50% 0 50% 0;
  opacity: 0.7;
  animation: wp-petal-fall 12s linear infinite;
}
.wp-petal--1 { left: 10%; animation-delay: 0s; }
.wp-petal--2 { left: 40%; animation-delay: 3s; }
.wp-petal--3 { left: 70%; animation-delay: 6s; }
.wp-petal--4 { left: 25%; animation-delay: 9s; transform: scale(0.7); }
.wp-petal--5 { left: 85%; animation-delay: 4s; transform: scale(0.6); }

@keyframes wp-petal-fall {
  0%   { top: -5%; transform: rotate(0deg); }
  100% { top: 105%; transform: rotate(360deg); }
}


.wp-wish-particle {
  position: fixed;
  bottom: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wp-gold);
  box-shadow: 0 0 8px var(--wp-gold),
              0 0 14px rgba(255, 213, 128, 0.6),
              0 0 22px rgba(255, 182, 217, 0.4);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: wp-wish-rise 10s linear infinite;
}
@keyframes wp-wish-rise {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translate(8px, -50vh) scale(1); opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translate(-4px, -110vh) scale(0.5); opacity: 0; }
}


.wp-stage {
  position: relative;
  width: min(92vw, 420px);
  height: min(92vw, 420px);
  margin: 0 auto;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(168, 220, 255, 0.5))
          drop-shadow(0 2px 6px rgba(58, 43, 92, 0.15));
}

.wp-pool-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/img/wish-pool/pool/container.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}


.wp-ripple {
  position: absolute;
  top: 50%; left: 50%;
  width: 60%; height: 30%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  animation: wp-ripple 4s ease-out infinite;
  pointer-events: none;
}
.wp-ripple--2 { animation-delay: 1.3s; }
.wp-ripple--3 { animation-delay: 2.6s; }

@keyframes wp-ripple {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  20%  { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}


.wp-boats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wp-boat {
  position: absolute;
  width: 48px;
  height: 48px;
  cursor: pointer;
  pointer-events: auto;
  
  margin-left: calc(var(--boat-half) * -1);
  margin-top: calc(var(--boat-half) * -1);
  --boat-half: 24px;
  animation: wp-bob 4s ease-in-out infinite;
  background-image: url('/static/img/wish-pool/pool/card.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.wp-boat:active { animation: none; transform: scale(0.92); }

.wp-boat--top {
  filter: drop-shadow(0 0 8px var(--wp-gold)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  animation: wp-bob 4s ease-in-out infinite, wp-glow 1.5s ease-in-out infinite;
}

.wp-boat__count {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--wp-accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  box-shadow: var(--wp-shadow);
  pointer-events: none;
}

@keyframes wp-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}

@keyframes wp-glow {
  0%, 100% { filter: drop-shadow(0 0 8px var(--wp-gold)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); }
  50%      { filter: drop-shadow(0 0 16px var(--wp-gold)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); }
}


@keyframes wp-boat-in {
  0%   { transform: translateY(120vh) rotate(15deg) scale(0.6); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0) rotate(-2deg) scale(1); opacity: 1; }
}

.wp-boat--entering {
  animation: wp-boat-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


.wp-plus-one {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 111, 168, 0.4),
              0 0 0 2px var(--wp-accent);
  font-weight: 700;
  font-size: 13px;
  color: var(--wp-accent);
  pointer-events: none;
  z-index: 10;
  animation: wp-plus-one 1.6s ease-out forwards;
  white-space: nowrap;
}
.wp-plus-one img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  image-rendering: pixelated;
  flex-shrink: 0;
}
@keyframes wp-plus-one {
  0%   { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
  20%  { transform: translate(-50%, -20px) scale(1.1); opacity: 1; }
  80%  { transform: translate(-50%, -60px) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -90px) scale(0.9); opacity: 0; }
}


.wp-sign {
  position: absolute;
  top: -18px;
  left: -8px;
  width: 32%;
  max-width: 130px;
  aspect-ratio: 3 / 4;
  background: url('/static/img/wish-pool/pool/sign.png') center/contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(58, 43, 92, 0.18));
  z-index: 4;
  transform-origin: 50% 88%;
  transform: rotate(-6deg);
  animation: wp-sign-sway 5s ease-in-out infinite alternate;
}
@keyframes wp-sign-sway {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(-3deg); }
}


.wp-sign__text {
  position: absolute;
  top: 22%;
  left: 14%;
  right: 14%;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #5A4880;
  line-height: 1.3;
  letter-spacing: 0.04em;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  word-break: break-all;
  overflow: hidden;
  max-height: 35%;
  
  transform: rotate(-23deg);
  transform-origin: center;
}
.wp-sign__text strong {
  display: block;
  font-size: 12px;
  color: #3A2B5C;
  margin-bottom: 1px;
  letter-spacing: 0.08em;
  
  transform: translateX(5px);
}

.wp-boat { padding: 0; border: 0; background-color: transparent; }

.wp-page * { image-rendering: auto; }
.wp-pool-bg, .wp-boat, .wp-sign { image-rendering: pixelated; }
.wp-stage-wrap { position: relative; margin: 34px 0 4px; }
.wp-pool-empty {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0;
  text-align: center; font-size: var(--wp-fs-sm); color: #5A4880; font-weight: var(--wp-fw-title); letter-spacing: var(--wp-tr-label); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}


.wp-stats {
  width: max-content; max-width: 100%; margin: 4px auto 0; padding: 5px 14px;
  font-size: var(--wp-fs-xs); font-weight: var(--wp-fw-label); letter-spacing: var(--wp-tr-label); color: #6B5A8C; text-align: center;
  background: rgba(255, 255, 255, 0.92); border: 2px solid #FFB6D9; border-radius: var(--radius-sm);
}


.wp-sort { display: flex; gap: var(--space-2); margin: var(--space-6) 0 var(--space-3); }
.wp-sort button {
  border: 1px solid var(--gray-200); background: var(--paper); border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4); font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); letter-spacing: var(--wp-tr-label); white-space: nowrap; cursor: pointer; color: var(--ink-600);
}
.wp-sort button.is-on { border-color: var(--wp-accent, var(--pink-500)); color: var(--wp-accent, var(--pink-500)); }


.wp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 560px) { .wp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wp-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: var(--paper); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden;
  transition-property: transform, border-color; transition-duration: 120ms; transition-timing-function: var(--wp-ease-out);
}
.wp-card:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .wp-card:hover { border-color: var(--gray-300); }
}
.wp-card__img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--gray-50); }
.wp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-card__initial {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: var(--wp-fs-xl); font-weight: var(--wp-fw-title); color: var(--wp-accent, var(--pink-500)); opacity: 0.55;
}
.wp-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); min-height: 84px; }
.wp-card__title {
  font-size: var(--wp-fs-base); font-weight: var(--wp-fw-label); line-height: var(--wp-lh-title); letter-spacing: var(--wp-tr-base);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.wp-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: var(--wp-fs-xs); color: var(--ink-550); }
.wp-card__date, .wp-card__site { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-card__count { flex: none; font-weight: var(--wp-fw-label); color: var(--ink-600); }
.wp-card__count.is-mine { color: var(--wp-accent, var(--pink-500)); }

.wp-badge {
  position: absolute; left: var(--space-2); top: var(--space-2); font-size: var(--wp-fs-xs); font-weight: var(--wp-fw-label); letter-spacing: var(--wp-tr-label);
  background: var(--paper); color: var(--ink-700); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xs); padding: 2px 6px;
}
.wp-badge.is-arranged { color: var(--green-650); border-color: var(--green-200); }
.wp-badge.is-considering { color: var(--ink-700); }


.wp-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(10px + var(--dd-safe-bottom, 0px));
}
.wp-cta .wp-btn { display: block; max-width: 608px; margin: 0 auto; }


.wp-btn {
  appearance: none; border: 1px solid var(--gray-300); background: var(--paper); color: var(--ink-900);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); letter-spacing: var(--wp-tr-label); white-space: nowrap; min-height: 44px; cursor: pointer;
  transition-property: transform, opacity; transition-duration: 120ms; transition-timing-function: var(--wp-ease-out);
}
.wp-btn:active:not(:disabled) { transform: scale(0.97); }
.wp-btn.is-primary { background: var(--wp-accent, var(--pink-500)); border-color: var(--wp-accent, var(--pink-500)); color: var(--paper); font-weight: var(--wp-fw-emph); }
.wp-btn.is-wide { width: 100%; font-size: var(--wp-fs-base); min-height: 48px; }
.wp-btn:disabled, .wp-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.wp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wp-linkbtn { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--ink-550); font-size: var(--wp-fs-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.wp-field { display: block; margin-top: var(--space-5); }
.wp-label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); letter-spacing: var(--wp-tr-label); color: var(--ink-700); margin-bottom: var(--space-2); }
.wp-label small { font-weight: var(--wp-fw-body); letter-spacing: var(--wp-tr-base); color: var(--ink-500); font-size: var(--wp-fs-xs); }
.wp-input {
  width: 100%; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--paper);
  padding: 10px 12px; font-size: 16px;  color: var(--ink-900); font-family: inherit;
}
.wp-input:focus { outline: 2px solid var(--wp-accent, var(--pink-500)); outline-offset: -1px; border-color: transparent; }
textarea.wp-input { resize: vertical; min-height: 72px; }
.wp-input-row { position: relative; display: block; }
.wp-input-row .wp-input { padding-right: 40px; }
.wp-hint { font-size: var(--wp-fs-xs); line-height: var(--wp-lh-body); color: var(--ink-550); margin-top: var(--space-2); }
.wp-hint.is-warn { color: var(--signal-alert); }

.wp-preview {
  display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 8px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--paper);
  color: inherit; text-decoration: none;
}
.wp-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-xs); flex: none; }
.wp-preview span { display: flex; flex-direction: column; min-width: 0; }
.wp-preview strong { font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); line-height: var(--wp-lh-title); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wp-preview small { font-size: var(--wp-fs-xs); color: var(--ink-550); margin-top: var(--space-1); }
.wp-preview.is-link { margin-top: 12px; }

.wp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.wp-thumb {
  position: relative; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--gray-200); background: var(--paper);
}
.wp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-thumb.is-add { display: flex; align-items: center; justify-content: center; border-style: dashed; color: var(--ink-550); font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); cursor: pointer; }
.wp-thumb__x {
  position: absolute; right: 2px; top: 2px; width: 24px; height: 24px; border: 0; border-radius: var(--radius-xs);
  background: rgb(0 0 0 / 0.55); color: var(--paper); font-size: 15px; line-height: 1; cursor: pointer;
}

.wp-toggle {
  display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0; border: 0; background: none;
  font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); letter-spacing: var(--wp-tr-label); white-space: nowrap; cursor: pointer; text-align: left;
}
.wp-toggle__dot {
  flex: none; width: 36px; height: 20px; border-radius: var(--radius-xs); background: var(--gray-300); position: relative;
  transition-property: background-color; transition-duration: 160ms; transition-timing-function: ease;
}
.wp-toggle__dot::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 2px; background: var(--paper);
  transition-property: transform; transition-duration: 160ms; transition-timing-function: var(--wp-ease-out);
}
.wp-toggle.is-on .wp-toggle__dot { background: var(--wp-accent, var(--pink-500)); }
.wp-toggle.is-on .wp-toggle__dot::after { transform: translateX(16px); }
.wp-anon { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); font-size: var(--wp-fs-xs); line-height: var(--wp-lh-body); color: var(--ink-600); }
.wp-anon img { width: 28px; height: 28px; border-radius: 50%; image-rendering: pixelated; }
.wp-submit { margin-top: var(--space-6); }


.wp-modal-bg {
  position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 0.42);
  display: flex; align-items: flex-end; justify-content: center;
  animation: wp-fade 180ms ease-out;
}
@keyframes wp-fade { from { opacity: 0; } to { opacity: 1; } }
.wp-sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 16px 16px calc(20px + var(--dd-safe-bottom, 0px));
  animation: wp-sheet-in 280ms var(--wp-ease-out);
}
@keyframes wp-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 640px) {
  .wp-modal-bg { align-items: center; }
  .wp-sheet { border-radius: var(--radius-md); }
}
.wp-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wp-sheet__head h2 { font-size: var(--wp-fs-md); font-weight: var(--wp-fw-title); line-height: var(--wp-lh-title); letter-spacing: var(--wp-tr-title); margin: var(--space-1) 0 0; word-break: break-word; }
.wp-x {
  flex: none; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1;
  color: var(--ink-550); cursor: pointer; border-radius: var(--radius-sm);
}
.wp-x.is-inline { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; font-size: 20px; }

.wp-dup { margin-top: 12px; padding: 12px; border-left: 3px solid var(--signal-act); background: var(--gray-25); }
.wp-dup__title { margin: 0; font-size: var(--wp-fs-base); font-weight: var(--wp-fw-title); }

.wp-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 12px; }
.wp-gallery img { flex: none; width: 82%; max-height: 42dvh; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); scroll-snap-align: center; }
.wp-gallery img:only-child { width: 100%; }
.wp-detail__date { font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); color: var(--ink-600); margin: var(--space-4) 0 0; }
.wp-detail__note { font-size: var(--wp-fs-base); line-height: var(--wp-lh-body); letter-spacing: var(--wp-tr-base); margin: var(--space-2) 0 0; white-space: pre-wrap; word-break: break-word; }
.wp-reply { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--gray-300); background: var(--gray-25); font-size: var(--wp-fs-sm); line-height: var(--wp-lh-body); display: flex; flex-direction: column; gap: var(--space-1); }
.wp-reply.is-arranged { border-left-color: var(--green-550); }
.wp-reply.is-declined { border-left-color: var(--gray-400); }
.wp-author { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-size: var(--wp-fs-xs); color: var(--ink-550); }
.wp-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; image-rendering: auto; }

.wp-toast {
  position: fixed; left: 50%; bottom: calc(90px + var(--dd-safe-bottom, 0px)); transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); z-index: 60;
  background: var(--gray-700); color: var(--paper); font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  animation: wp-toast-in 200ms var(--wp-ease-out);
}
@keyframes wp-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }


.wp-back { display: inline-block; font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); color: var(--ink-600); text-decoration: none; margin-bottom: var(--space-3); }
.wp-tabs { display: flex; border-bottom: 1px solid var(--gray-200); margin: 12px 0; }
.wp-tabs button {
  flex: 1; padding: var(--space-3) 0; border: 0; background: none; font-size: var(--wp-fs-sm); font-weight: var(--wp-fw-label); letter-spacing: var(--wp-tr-label); white-space: nowrap; color: var(--ink-550); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.wp-tabs button.is-on { color: var(--ink-900); font-weight: var(--wp-fw-emph); border-bottom-color: var(--wp-accent, var(--pink-500)); }
.wp-row {
  display: flex; gap: 12px; padding: 12px; background: var(--paper); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); margin-bottom: 8px;
}
.wp-row__img { flex: none; width: 64px; height: 64px; border-radius: var(--radius-xs); overflow: hidden; background: var(--gray-50); display: flex; align-items: center; justify-content: center; color: var(--wp-accent, var(--pink-500)); font-weight: var(--wp-fw-title); font-size: var(--wp-fs-lg); }
.wp-row__img img { width: 100%; height: 100%; object-fit: cover; }
.wp-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.wp-row__title { font-size: var(--wp-fs-base); font-weight: var(--wp-fw-label); line-height: var(--wp-lh-title); word-break: break-word; }
.wp-row__meta { font-size: var(--wp-fs-xs); color: var(--ink-550); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.wp-row__reply { font-size: var(--wp-fs-sm); line-height: var(--wp-lh-body); color: var(--ink-700); }
.wp-state { font-size: var(--wp-fs-xs); font-weight: var(--wp-fw-label); letter-spacing: var(--wp-tr-label); border: 1px solid var(--gray-200); border-radius: var(--radius-xs); padding: 1px 6px; }
.wp-state.is-arranged { color: var(--green-650); border-color: var(--green-200); }
.wp-state.is-declined, .wp-state.is-expired, .wp-state.is-archived { color: var(--ink-500); }


@media (prefers-reduced-motion: reduce) {
  .wp-boat, .wp-boat--top, .wp-ripple, .wp-sign, .wp-butterfly, .wp-butterfly__wings,
  .wp-petal, .wp-firefly, .wp-wish-particle, .wp-plus-one { animation: none; }
  .wp-butterfly, .wp-petal, .wp-wish-particle, .wp-ripple { display: none; }
  .wp-sheet { animation: wp-fade 180ms ease-out; }
  .wp-toast { animation: none; }
  .wp-card:active, .wp-btn:active:not(:disabled) { transform: none; }
}
