/* World Chain — matches World Choir Home aesthetic */

.world-chain-page {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top, 0px)) 20px calc(var(--nav-height) + 28px);
  text-align: center;
}

.wc-chain-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  min-height: 40px;
}

.wc-chain-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-lift-mid);
  color: var(--accent-aurora);
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wc-chain-back:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-chain-brand {
  flex: 1;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-aurora);
}

.wc-chain-topbar__spacer {
  width: 40px;
  flex-shrink: 0;
}

.wc-chain-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-lift-mid);
  color: var(--accent-aurora);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.wc-chain-help:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-chain-help__icon {
  display: block;
}

.wc-chain-hero {
  position: relative;
  width: calc(100% + 40px);
  margin: 0 -20px 24px;
  aspect-ratio: 1619 / 971;
  overflow: hidden;
  background: var(--bg-primary);
}

.wc-chain-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.wc-chain-hero__copy {
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  z-index: 2;
  pointer-events: none;
  text-align: center;
}

.wc-chain-headline {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 4.8vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.wc-chain-explore {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: min(100%, 22em);
  max-width: 100%;
  min-height: 48px;
  margin: 0 auto;
  padding: 12px 18px;
  border: 1px solid rgba(78, 197, 232, 0.35);
  border-radius: var(--radius-md);
  background: rgba(78, 197, 232, 0.08);
  color: var(--accent-aurora);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.wc-chain-explore:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-chain-section-title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-aurora);
}

.wc-chain-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.wc-chain-card {
  padding: 18px 16px 16px;
  border-radius: var(--radius-md);
  background: rgba(12, 14, 22, 0.85);
  border: 1px solid var(--df-line);
  font-size: 9px;
}

.wc-chain-card--named {
  border-color: rgba(78, 197, 232, 0.85);
  box-shadow:
    0 0 0 1px rgba(78, 197, 232, 0.45),
    0 0 24px rgba(78, 197, 232, 0.18);
}

.wc-chain-card__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
  margin-bottom: 14px;
}

.wc-chain-card__head--detail {
  margin-bottom: 16px;
}

.wc-chain-card__title {
  margin: 0;
  justify-self: start;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wc-chain-card__status {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 5px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wc-chain-card__status--progress {
  color: var(--accent-aurora);
}

.wc-chain-card__status--completed {
  color: #6dcf9b;
}

.wc-chain-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-aurora);
  box-shadow: 0 0 8px rgba(78, 197, 232, 0.45);
}

.wc-chain-card__dot--progress {
  background: var(--accent-aurora);
  box-shadow: 0 0 8px rgba(78, 197, 232, 0.45);
}

.wc-chain-card__dot--completed {
  background: #6dcf9b;
  box-shadow: 0 0 8px rgba(109, 207, 155, 0.4);
}

.wc-chain-card__timer {
  justify-self: end;
  flex-shrink: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.wc-chain-route {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Extra inset so flag outline glows aren't clipped on the first/last country */
  padding: 6px 4px 12px;
  margin: 0 0 10px;
}

.wc-chain-route::-webkit-scrollbar {
  display: none;
}

.wc-chain-route__flag {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  background: var(--surface-lift);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}

.wc-chain-route__flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.wc-chain-route__flag--empty {
  background: var(--border-subtle);
}

.wc-chain-route__flag.is-pending {
  box-shadow: 0 0 0 1.5px rgba(160, 168, 180, 0.7);
}

.wc-chain-route__flag.is-current {
  box-shadow:
    0 0 0 1.5px var(--accent-aurora),
    0 0 10px rgba(78, 197, 232, 0.45);
}

.wc-chain-route__flag.is-done {
  box-shadow:
    0 0 0 1.5px #6dcf9b,
    0 0 10px rgba(109, 207, 155, 0.4);
}

/* 26px line (was 18px + 4px + 4px margins) so ends touch flags at same country spacing */
.wc-chain-route__line {
  flex: 0 0 26px;
  width: 26px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: transparent;
}

.wc-chain-route__line.is-done {
  background: #6dcf9b;
  box-shadow: 0 0 8px rgba(109, 207, 155, 0.35);
}

.wc-chain-route__line.is-current,
.wc-chain-route__line.is-pending {
  background: repeating-linear-gradient(
    90deg,
    rgba(160, 168, 180, 0.75) 0 3px,
    transparent 3px 6px
  );
}

.wc-chain-route__line.is-current {
  background: repeating-linear-gradient(
    90deg,
    rgba(78, 197, 232, 0.85) 0 3px,
    transparent 3px 6px
  );
}

.wc-chain-card__footer {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.wc-chain-card__meta {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 9px;
  line-height: 1.45;
  color: var(--text-muted);
}

.wc-chain-card__cta {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 7.6rem;
  min-width: 7.6rem;
  max-width: 7.6rem;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0 6px;
  border: 1px solid rgba(78, 197, 232, 0.35);
  border-radius: var(--radius-md);
  background: rgba(78, 197, 232, 0.07);
  color: var(--accent-aurora);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  hyphens: auto;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.wc-chain-card__cta:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-chain-empty {
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: rgba(12, 14, 22, 0.85);
  border: 1px solid var(--df-line);
  text-align: center;
}

.wc-chain-empty__title {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-primary);
}

.wc-chain-empty__copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Detail / turn panels */
.wc-chain-detail {
  text-align: left;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
}

.wc-chain-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-aurora);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.wc-chain-turn {
  padding: 20px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: rgba(78, 197, 232, 0.08);
  border: 1px solid rgba(78, 197, 232, 0.28);
  text-align: center;
}

.wc-chain-turn__eyebrow {
  margin: 0 0 10px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-aurora);
}

.wc-chain-turn__dest {
  margin: 0 0 6px;
  line-height: 1;
}

.wc-chain-turn__dest-flag {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-lift);
  box-shadow:
    0 0 0 1px var(--border-soft),
    0 2px 8px rgba(0, 0, 0, 0.28);
}

.wc-chain-turn__dest-flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.wc-chain-turn__dest-flag--empty {
  background: var(--border-subtle);
  opacity: 0.35;
}

.wc-chain-turn__country {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.wc-chain-turn__copy {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.wc-chain-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.wc-chain-form label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wc-chain-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-mid);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.wc-chain-form input:focus {
  outline: none;
  border-color: rgba(78, 197, 232, 0.45);
}

.wc-chain-form input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--text-muted);
}

.wc-chain-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-violet) 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 36px var(--glow-blue);
}

.wc-chain-primary:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.wc-chain-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(224, 122, 122, 0.1);
  border: 1px solid rgba(224, 122, 122, 0.28);
  color: #f0b4b4;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}

.wc-chain-feedback--ok {
  background: rgba(109, 207, 155, 0.1);
  border-color: rgba(109, 207, 155, 0.28);
  color: #b6ebcf;
}

.wc-chain-skel {
  width: 100%;
  height: 120px;
  margin: 0 0 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    var(--border-mid) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: wcChainSkel 1.3s ease-in-out infinite;
}

@keyframes wcChainSkel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* First-paint / boot skeletons */
.wc-chain-hero--skel {
  position: relative;
  width: calc(100% + 40px);
  margin: 0 -20px 24px;
  aspect-ratio: 1619 / 971;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: wcChainSkel 1.3s ease-in-out infinite;
}

.wc-viewer-skel-title {
  width: 70%;
  max-width: 260px;
  height: 28px;
  margin: 8px auto 12px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    var(--surface-lift) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: wcChainSkel 1.3s ease-in-out infinite;
}

.wc-viewer-skel-title--sm {
  width: 55%;
  height: 18px;
  margin: 4px 0 16px;
}

.wc-viewer-skel-route {
  width: 48%;
  max-width: 180px;
  height: 12px;
  margin: 0 auto 16px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: wcChainSkel 1.3s ease-in-out infinite;
}

.wc-viewer-skel-stats {
  height: 72px;
  margin: 0 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(78, 197, 232, 0.16);
  background: linear-gradient(
    90deg,
    var(--surface-lift-mid) 0%,
    var(--df-line) 50%,
    var(--surface-lift-mid) 100%
  );
  background-size: 200% 100%;
  animation: wcChainSkel 1.3s ease-in-out infinite;
}

.wc-chain-skel--strip {
  height: 52px;
  margin-bottom: 14px;
}

.wc-viewer-skel-card {
  margin: 0 0 16px;
  padding: 16px 14px 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(78, 197, 232, 0.18);
  background: rgba(10, 14, 24, 0.85);
}

.wc-viewer-skel-card .wc-chain-skel {
  height: 56px;
  margin-bottom: 10px;
}

.wc-chain-skel--cta {
  height: 54px;
  border-radius: 999px;
}

.wc-chain-boot--detail,
.wc-chain-boot--completed {
  text-align: left;
}

/* ─── Chain detail viewer (non-selected Voice) ─── */

.wc-viewer {
  text-align: left;
  padding-bottom: 8px;
}

.wc-viewer .wc-chain-topbar {
  margin-bottom: 20px;
}

.wc-viewer-hero {
  text-align: center;
  margin: 0 0 18px;
}

.wc-viewer-hero__title {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 6.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.wc-viewer-hero__meta {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(170, 184, 198, 0.92);
}

.wc-viewer-hero__route {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(220, 230, 238, 0.95);
}

.wc-viewer-hero__line {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(150, 168, 184, 0.88);
}

.wc-viewer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  margin: 0 0 18px;
  padding: 14px 4px;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(78, 197, 232, 0.22);
  box-shadow: 0 0 28px rgba(78, 197, 232, 0.06);
}

.wc-viewer-stats__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 2px 4px;
  min-width: 0;
  position: relative;
}

.wc-viewer-stats__cell + .wc-viewer-stats__cell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(78, 197, 232, 0.16);
}

.wc-viewer-stats__num {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 3.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.wc-viewer-stats__label {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148, 164, 180, 0.88);
  text-align: center;
}

.wc-viewer-strip {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 16px;
  margin: 0 0 4px;
}

.wc-viewer-strip::-webkit-scrollbar {
  display: none;
}

.wc-viewer-strip__node {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 36px;
}

.wc-viewer-strip__flag {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
}

.wc-viewer-strip__code {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: rgba(168, 180, 196, 0.9);
}

.wc-viewer-strip__node.is-done .wc-viewer-strip__code {
  color: rgba(146, 220, 180, 0.95);
}

.wc-viewer-strip__node.is-live .wc-viewer-strip__code {
  color: #f0d080;
}

.wc-viewer-strip__flag.is-done {
  box-shadow:
    0 0 0 1.5px #6dcf9b,
    0 0 12px rgba(109, 207, 155, 0.4);
  opacity: 1;
}

.wc-viewer-strip__flag.is-live {
  box-shadow:
    0 0 0 1.75px #e8c15a,
    0 0 14px rgba(232, 193, 90, 0.45);
  animation: wcViewerPulse 2.4s ease-in-out infinite;
}

.wc-viewer-strip__flag.is-pending {
  opacity: 0.55;
  box-shadow: 0 0 0 1.5px rgba(140, 152, 168, 0.55);
}

.wc-viewer-strip__line {
  flex: 0 0 18px;
  width: 18px;
  height: 2px;
  margin: 13px 2px 0;
  border-radius: 999px;
  background: rgba(120, 132, 148, 0.35);
}

.wc-viewer-strip__line.is-done {
  background: #6dcf9b;
  box-shadow: 0 0 8px rgba(109, 207, 155, 0.35);
}

.wc-viewer-strip__line.is-live {
  background: linear-gradient(90deg, #6dcf9b, #e8c15a);
}

.wc-viewer-strip__line.is-pending {
  background: repeating-linear-gradient(
    90deg,
    rgba(120, 132, 148, 0.55) 0 3px,
    transparent 3px 6px
  );
}

@keyframes wcViewerPulse {
  0%, 100% { box-shadow: 0 0 0 1.75px #e8c15a, 0 0 10px rgba(232, 193, 90, 0.35); }
  50% { box-shadow: 0 0 0 1.75px #f0d080, 0 0 18px rgba(232, 193, 90, 0.55); }
}

.wc-viewer-progress {
  margin: 0 0 16px;
  padding: 18px 14px 14px;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 24, 0.94);
  border: 1px solid rgba(78, 197, 232, 0.24);
  box-shadow: 0 0 32px rgba(78, 197, 232, 0.07);
}

.wc-viewer-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.wc-viewer-progress__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(210, 222, 234, 0.95);
}

.wc-viewer-progress__aside {
  margin: 0;
  flex: 1 1 auto;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(130, 148, 164, 0.78);
}

.wc-viewer-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wc-viewer-table__head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 8px;
  padding: 0 2px 10px;
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(130, 148, 164, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.wc-viewer-table__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 8px;
  align-items: center;
  padding: 14px 2px;
  border-bottom: 1px solid var(--surface-lift);
}

.wc-viewer-table__row--you {
  margin: 4px -8px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid rgba(78, 197, 232, 0.85);
  border-bottom-color: rgba(78, 197, 232, 0.85);
  background: rgba(78, 197, 232, 0.06);
  box-shadow:
    0 0 0 1px rgba(78, 197, 232, 0.35),
    0 0 18px rgba(78, 197, 232, 0.14);
}

.wc-viewer-table__row:last-of-type {
  border-bottom: none;
}

.wc-viewer-table__row--you:last-of-type {
  border-bottom: 1px solid rgba(78, 197, 232, 0.85);
}

.wc-viewer-table__row--keep-alive {
  margin: 4px -8px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid rgba(78, 197, 232, 0.85);
  border-bottom-color: rgba(78, 197, 232, 0.85);
  background: rgba(78, 197, 232, 0.08);
  box-shadow:
    0 0 0 1px rgba(78, 197, 232, 0.35),
    0 0 18px rgba(78, 197, 232, 0.16);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wc-viewer-table__row--keep-alive:hover,
.wc-viewer-table__row--keep-alive:active {
  background: rgba(78, 197, 232, 0.14);
  border-color: rgba(78, 197, 232, 1);
}

.wc-viewer-table__row--keep-alive:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-viewer-table__row--keep-alive:last-of-type {
  border-bottom: 1px solid rgba(78, 197, 232, 0.85);
}

.wc-viewer-table__idx {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(150, 164, 180, 0.85);
  font-variant-numeric: tabular-nums;
}

.wc-viewer-table__country {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wc-viewer-table__flag {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
}

.wc-viewer-table__country-name {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: #f2f5f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-viewer-table__voice {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wc-viewer-table__voice-num {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 650;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.wc-viewer-table__voice-num--you {
  color: var(--accent-aurora);
}

.wc-viewer-table__voice-num--empty {
  color: rgba(140, 154, 170, 0.7);
}

.wc-viewer-table__voice-city {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(120, 148, 172, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-viewer-status {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.wc-viewer-status__icon {
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 0;
}

.wc-viewer-status__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wc-viewer-status__label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.2;
}

.wc-viewer-status__detail {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  line-height: 1.25;
  color: rgba(130, 146, 162, 0.88);
}

.wc-viewer-status--done {
  color: #6dcf9b;
}

.wc-viewer-status--active {
  color: #e8c15a;
}

.wc-viewer-status--keep {
  color: var(--accent-aurora);
}

.wc-viewer-status--keep .wc-viewer-status__label {
  white-space: normal;
  line-height: 1.25;
  font-size: 0.72rem;
}

.wc-viewer-status--keep .wc-viewer-status__detail {
  white-space: normal;
  line-height: 1.3;
}

.wc-viewer-status--active .wc-viewer-status__pulse,
.wc-viewer-status--keep .wc-viewer-status__pulse {
  animation: wcViewerDot 1.8s ease-in-out infinite;
}

.wc-viewer-status--wait {
  color: rgba(150, 162, 176, 0.85);
}

@keyframes wcViewerDot {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.wc-viewer-photobook {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(78, 197, 232, 0.28);
  background: rgba(78, 197, 232, 0.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wc-viewer-photobook:hover,
.wc-viewer-photobook:active {
  background: rgba(78, 197, 232, 0.12);
  border-color: rgba(78, 197, 232, 0.45);
}

.wc-viewer-photobook:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-viewer-photobook__icon {
  flex-shrink: 0;
  color: var(--accent-aurora);
  line-height: 0;
}

.wc-viewer-photobook__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wc-viewer-photobook__title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  color: #fff;
}

.wc-viewer-photobook__sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(150, 168, 184, 0.9);
}

.wc-viewer-photobook__chevron {
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--accent-aurora);
  line-height: 1;
}

.wc-viewer-quote {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 18px 18px;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 24, 0.72);
  border: 1px solid rgba(78, 197, 232, 0.18);
  text-align: left;
}

.wc-viewer-quote__mark {
  position: absolute;
  top: 6px;
  left: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(78, 197, 232, 0.55);
}

.wc-viewer-quote__text {
  margin: 8px 0 10px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(230, 236, 242, 0.95);
  font-style: italic;
}

.wc-viewer-quote__attr {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(140, 158, 176, 0.9);
}

.wc-viewer-share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 0 0 8px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(78, 197, 232, 0.65);
  background: rgba(0, 0, 0, 0.25);
  color: var(--accent-aurora);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 24px rgba(78, 197, 232, 0.12);
}

.wc-viewer-share:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

/* ── Photo Book page (scrapbook) ── */
.wc-photobook-page {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.wc-photobook-page .wc-chain-topbar {
  margin-bottom: 18px;
}

.wc-photobook-header {
  margin: 0 0 22px;
  padding: 0 4px;
}

.wc-photobook-header__title {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 7vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.wc-photobook-header__sub {
  margin: 0 auto;
  max-width: 16rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(150, 168, 186, 0.92);
}

.wc-photobook-cta-wrap {
  margin: 0 0 18px;
}

.wc-photobook-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(78, 197, 232, 0.4);
  background: rgba(78, 197, 232, 0.1);
  color: var(--accent-aurora);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.wc-photobook-cta:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-photobook-cta--edit {
  border-color: rgba(78, 197, 232, 0.55);
  background: rgba(78, 197, 232, 0.16);
}

.wc-photobook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0 0 36px;
  padding: 0;
  text-align: left;
}

.wc-photobook-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 7px;
  border-radius: 12px;
  border: 1px solid rgba(78, 197, 232, 0.28);
  background: rgba(8, 12, 22, 0.96);
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.wc-photobook-card:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-photobook-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1f2a;
}

.wc-photobook-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-orientation: none;
}

.wc-photobook-card__photo--empty,
.wc-photobook-lightbox__photo--empty {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(60, 78, 98, 0.35), transparent 55%),
    linear-gradient(160deg, #232a36 0%, #151a24 100%);
  border: 1px solid rgba(78, 197, 232, 0.08);
}

.wc-photobook-card__photo-fill {
  display: block;
  width: 100%;
  height: 100%;
}

.wc-photobook-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  min-height: 2.55rem;
}

.wc-photobook-card__country {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-photobook-card__flag.wc-chain-route__flag {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 1px var(--border-soft);
}

.wc-photobook-lightbox__body .wc-photobook-card__flag.wc-chain-route__flag {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.wc-photobook-card__flag img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.wc-photobook-card__city {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(140, 162, 184, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-photobook-card__city--empty {
  visibility: hidden;
}

.wc-photobook-card__pin {
  flex-shrink: 0;
  font-size: 0.58rem;
  opacity: 0.85;
}

.wc-photobook-card__note {
  margin-top: 6px;
  min-height: 2.7rem;
  flex: 1 1 auto;
}

.wc-photobook-card__note-text {
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(220, 230, 238, 0.92);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}

.wc-photobook-card--skel {
  pointer-events: none;
}

.wc-photobook-card--skel .wc-photobook-card__photo {
  background: var(--surface-lift);
}

.wc-photobook-close {
  margin: 8px auto 12px;
  padding: 28px 12px 8px;
  max-width: 280px;
}

.wc-photobook-close__earth {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  opacity: 0.92;
  filter: drop-shadow(0 0 24px rgba(78, 197, 232, 0.25));
  animation: earthBreathe 6s ease-in-out infinite;
}

.wc-photobook-close__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(160, 180, 198, 0.9);
}

.wc-photobook-close__headline {
  margin: 0 0 22px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: #fff;
}

.wc-photobook-close__quote {
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.wc-photobook-close__quote p {
  margin: 0 0 8px;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  line-height: 1.3;
  color: rgba(210, 224, 236, 0.95);
}

.wc-photobook-close__quote cite {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(130, 150, 170, 0.9);
}

.wc-photobook-close__chain {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(100, 120, 140, 0.85);
}

.wc-photobook-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(var(--nav-height) + 20px);
}

.wc-photobook-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.wc-photobook-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  max-height: min(86vh, 640px);
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(78, 197, 232, 0.32);
  background: rgba(8, 12, 22, 0.98);
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.wc-photobook-lightbox__close {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(78, 197, 232, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: var(--accent-aurora);
  font-size: 1rem;
  cursor: pointer;
}

.wc-photobook-lightbox__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 28px 0 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1f2a;
}

.wc-photobook-lightbox__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-orientation: none;
}

.wc-photobook-lightbox__body .wc-photobook-card__country {
  font-size: 0.95rem;
}

.wc-photobook-lightbox__body .wc-photobook-card__flag,
.wc-photobook-lightbox__body .wc-photobook-card__flag img {
  width: 20px;
  height: 20px;
}

.wc-photobook-lightbox__body .wc-photobook-card__city {
  font-size: 0.82rem;
  margin-top: 4px;
}

.wc-photobook-lightbox__voice {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(120, 140, 160, 0.9);
}

.wc-photobook-lightbox__note {
  margin: 14px 0 0;
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  line-height: 1.3;
  color: rgba(225, 234, 242, 0.95);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (min-width: 640px) {
  .wc-photobook-grid {
    gap: 14px;
  }

  .wc-photobook-card {
    padding: 10px;
    border-radius: 14px;
  }

  .wc-photobook-card__note {
    min-height: 3.1rem;
  }

  .wc-photobook-card__note-text {
    font-size: 1.05rem;
  }
}

.wc-photobook-empty {
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(78, 197, 232, 0.2);
  text-align: center;
}

.wc-photobook-empty__title {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 650;
  color: #fff;
}

.wc-photobook-empty__copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(160, 176, 192, 0.9);
}

/* Optional post-connection Photo Book contribution */
.wc-photobook-contribute {
  text-align: left;
}

.wc-photobook-contribute__card {
  padding: 22px 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 24, 0.94);
  border: 1px solid rgba(78, 197, 232, 0.24);
  box-shadow: 0 0 32px rgba(78, 197, 232, 0.07);
}

.wc-photobook-contribute__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-aurora);
}

.wc-photobook-contribute__title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.35;
  color: #fff;
}

.wc-photobook-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(78, 197, 232, 0.22);
  background: rgba(78, 197, 232, 0.06);
}

.wc-photobook-info__icon {
  flex-shrink: 0;
  color: var(--accent-aurora);
  line-height: 0;
  margin-top: 2px;
}

.wc-photobook-info__main {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(230, 236, 242, 0.95);
}

.wc-photobook-info__accent {
  color: var(--accent-aurora);
  font-weight: 650;
}

.wc-photobook-info__sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(150, 168, 184, 0.9);
}

.wc-photobook-selfie {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 220px;
  margin: 0 0 18px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(78, 197, 232, 0.4);
  background: rgba(0, 0, 0, 0.28);
  color: var(--accent-aurora);
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.wc-photobook-selfie:disabled {
  opacity: 0.6;
  cursor: default;
}

.wc-photobook-selfie:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-photobook-selfie__title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.wc-photobook-selfie__hint {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(150, 168, 184, 0.9);
}

.wc-photobook-selfie--preview {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  border-color: rgba(78, 197, 232, 0.35);
}

.wc-photobook-selfie--preview img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  /* Keep camera pixels as-taken; do not apply EXIF rotation on display. */
  image-orientation: none;
}

.wc-photobook-retake {
  position: absolute;
  right: 10px;
  bottom: 10px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(78, 197, 232, 0.45);
  background: rgba(0, 0, 0, 0.55);
  color: var(--accent-aurora);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wc-photobook-message-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.wc-photobook-message-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(160, 176, 192, 0.92);
}

.wc-photobook-message-count {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: rgba(140, 158, 176, 0.9);
}

.wc-photobook-message {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  height: 4.1em;
  max-height: 4.1em;
  margin: 0 0 14px;
  padding: 12px 14px;
  resize: none;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-mid);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.4;
}

.wc-photobook-message:focus {
  outline: none;
  border-color: rgba(78, 197, 232, 0.45);
}

.wc-photobook-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(224, 122, 122, 0.28);
  background: rgba(224, 122, 122, 0.1);
  color: #f0b4b4;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
}

.wc-photobook-submit {
  margin-top: 0;
}

.wc-photobook-skip {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 10px;
  border: none;
  background: none;
  color: rgba(150, 168, 184, 0.92);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wc-photobook-skip:disabled {
  opacity: 0.5;
  cursor: default;
}

.wc-photobook-contribute__foot {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(130, 146, 162, 0.85);
}

.wc-chain-detail--selected-voice {
  padding-top: 0;
}

/* Selected-Voice turn sheet (opened from Keep the Chain Alive row) */
.wc-turn-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px calc(var(--nav-height) + 20px);
  box-sizing: border-box;
}

.wc-turn-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  padding: 0;
  cursor: pointer;
}

.wc-turn-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  max-height: min(78vh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  padding: 16px 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(8, 11, 20, 0.98);
  border: 1px solid rgba(78, 197, 232, 0.28);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.wc-turn-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-lift-mid);
  color: var(--accent-aurora);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wc-turn-sheet__close:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.wc-turn-sheet .wc-chain-turn {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .wc-chain-earth,
  .wc-chain-skel,
  .wc-chain-hero--skel,
  .wc-viewer-skel-title,
  .wc-viewer-skel-route,
  .wc-viewer-skel-stats,
  .wc-viewer-strip__flag.is-live,
  .wc-viewer-status--active .wc-viewer-status__pulse,
  .wc-viewer-status--keep .wc-viewer-status__pulse {
    animation: none;
  }
}

/* Light Mode only — chain boxes clear grey (same as Home / Daily Acts sheets).
   Dark Mode card surfaces above stay untouched. */
html[data-theme="light"] .wc-chain-card,
html[data-theme="light"] .wc-chain-empty {
  background: #e8e8ec;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Hero image is swapped via JS (chain-light.png in Light Mode). Never filter it. */
html[data-theme="light"] .wc-chain-hero__img,
html[data-theme="light"] img[src*="chain-light"] {
  filter: none !important;
}

/* Light Mode only — Watch Live stats + progress/table panels clear grey.
   Dark Mode surfaces above stay untouched. */
html[data-theme="light"] .wc-viewer-stats,
html[data-theme="light"] .wc-viewer-progress {
  background: #e8e8ec;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

/* Light Mode only — Watch Live title black; light/grey copy → dark grey */
html[data-theme="light"] .wc-viewer-hero__title {
  color: #0c0c0e;
}

html[data-theme="light"] .wc-viewer-hero__meta,
html[data-theme="light"] .wc-viewer-hero__route,
html[data-theme="light"] .wc-viewer-hero__line,
html[data-theme="light"] .wc-viewer-stats__label,
html[data-theme="light"] .wc-viewer-progress__title,
html[data-theme="light"] .wc-viewer-progress__aside,
html[data-theme="light"] .wc-viewer-table__head,
html[data-theme="light"] .wc-viewer-strip__code,
html[data-theme="light"] .wc-viewer-table__idx,
html[data-theme="light"] .wc-viewer-table__voice-city,
html[data-theme="light"] .wc-viewer-status__detail,
html[data-theme="light"] .wc-viewer-status--wait {
  color: #3f424a;
}

html[data-theme="light"] .wc-viewer-stats__num,
html[data-theme="light"] .wc-viewer-table__country-name,
html[data-theme="light"] .wc-viewer-table__voice-num,
html[data-theme="light"] .wc-viewer-status__label {
  color: #0c0c0e;
}

/* Light Mode only — Photo Book title + connected-world copy black; hope quote dark grey */
html[data-theme="light"] .wc-photobook-header__title,
html[data-theme="light"] .wc-photobook-close__headline {
  color: #0c0c0e;
}

html[data-theme="light"] .wc-photobook-header__sub {
  color: #0c0c0e;
}

html[data-theme="light"] .wc-photobook-close__quote p {
  color: #3f424a;
}

html[data-theme="light"] .wc-photobook-close__earth {
  filter: none !important;
  opacity: 1;
}
