:root {
  --pt-ink: #2c2540;
  --pt-ink-soft: #4a3f62;
  --pt-ink-muted: #8a7faa;
  --pt-paper: #f5f2f8;
  --pt-card: #fff;
  --pt-board: #e8e1f2;
  --pt-dot: #c4bad8;
  --pt-accent: #7c6fa0;
  --pt-accent-strong: #5b44e7;
  --pt-accent-light: #a99cc4;
  --pt-accent-dim: #eae5f5;
  --pt-border: #d0c8e0;
  --pt-bridge: #5c4e7a;
  --pt-bridge-soft: rgba(92, 78, 122, .18);
  --pt-island-idle: #f0ebf8;
  --pt-island-ring: #b8adcf;
  --pt-island-satisfied: #7c6fa0;
  --pt-island-over: #c49060;
  --pt-island-over-text: #8a5e30;
  --pt-warn: #9a7040;
  --pt-warn-bg: rgba(190, 142, 96, .14);
  --pt-success: #5a7a5c;
  --pt-shadow: 0 16px 56px rgba(44, 37, 64, .12), 0 2px 8px rgba(44, 37, 64, .06);
  --pt-serif: Georgia, "Times New Roman", serif;
  --pt-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --pt-tr: 180ms ease;
}

[data-theme="dark"] {
  --pt-ink: #ede9ff;
  --pt-ink-soft: #b8b0d6;
  --pt-ink-muted: #6e6890;
  --pt-paper: #0e0b1f;
  --pt-card: #16132b;
  --pt-board: #181530;
  --pt-dot: #3d3660;
  --pt-accent: #a293f3;
  --pt-accent-strong: #8b76f4;
  --pt-accent-light: #7060b0;
  --pt-accent-dim: #1e1a40;
  --pt-border: #272042;
  --pt-bridge: #c4b8f8;
  --pt-bridge-soft: rgba(180, 165, 240, .16);
  --pt-island-idle: #221e3e;
  --pt-island-ring: #5a5280;
  --pt-island-satisfied: #7c68f0;
  --pt-island-over: #d49a55;
  --pt-island-over-text: #ffd7a3;
  --pt-warn: #c98840;
  --pt-warn-bg: rgba(196, 142, 86, .12);
  --pt-success: #9f92f4;
  --pt-shadow: 0 16px 56px rgba(0, 0, 0, .58), 0 2px 8px rgba(0, 0, 0, .35);
}

.puentes-page,
.puentes-page * {
  box-sizing: border-box;
}

body.puentes-page {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 0, rgba(234, 229, 245, .9), rgba(245, 242, 248, 0) 380px),
    var(--pt-paper);
  color: var(--pt-ink);
  font-family: var(--pt-sans);
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body.puentes-page {
  background:
    radial-gradient(circle at 50% 0, rgba(36, 30, 70, .82), rgba(14, 11, 31, 0) 400px),
    var(--pt-paper);
}

.pt-page {
  width: min(100% - 28px, 1040px);
  margin: 0 auto;
  padding: 78px 0 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pt-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pt-card {
  width: 100%;
  max-width: 920px;
  padding: 36px 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pt-eyebrow {
  margin: 0 0 28px;
  color: var(--pt-ink-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
}

.pt-title {
  margin: 0 0 9px;
  color: var(--pt-ink);
  font-family: var(--pt-serif);
  font-size: clamp(50px, 8vw, 78px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .98;
  text-align: center;
}

.pt-subtitle {
  max-width: 540px;
  margin: 0 auto 30px;
  color: var(--pt-ink-soft);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.55;
  text-align: center;
}

.pt-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pt-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pt-ink-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
}

.pt-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pt-accent-light);
}

.pt-level {
  padding: 0;
  color: var(--pt-ink-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

.pt-divider {
  display: none;
}

.pt-stats {
  display: flex;
  gap: 44px;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 22px;
}

.pt-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pt-stat-label {
  color: var(--pt-ink-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pt-stat-value {
  color: var(--pt-ink);
  font-family: var(--pt-serif);
  font-size: 28px;
  line-height: 1;
}

.pt-stat-value.pt-idle {
  color: var(--pt-ink-muted);
}

.pt-stat-value.pt-done {
  color: var(--pt-accent-strong);
}

.pt-board-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 14px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.pt-canvas-shell {
  max-width: min(100%, 620px);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px var(--pt-border),
    0 4px 20px rgba(44, 37, 64, .07),
    0 1px 3px rgba(44, 37, 64, .04);
  overflow: hidden;
  background: var(--pt-board);
}

.pt-canvas-shell canvas {
  display: block;
  max-width: 100%;
  background: var(--pt-board);
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  border-radius: 8px;
}

.pt-hint {
  display: none;
}

.pt-actions {
  display: flex;
  width: min(100%, 400px);
  justify-content: center;
  gap: 10px;
  margin: 0 auto 10px;
}

.pt-btn {
  flex: 1;
  min-height: 38px;
  padding: 8px 14px;
  color: var(--pt-ink-soft);
  background: transparent;
  border: 1px solid var(--pt-border);
  border-radius: 2px;
  font-family: var(--pt-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--pt-tr), color var(--pt-tr), background var(--pt-tr), transform var(--pt-tr);
}

.pt-btn:hover:not(:disabled) {
  color: var(--pt-accent-strong);
  background: var(--pt-accent-dim);
  border-color: var(--pt-accent-light);
}

.pt-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.pt-btn:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.pt-btn:focus-visible,
.pt-copy:focus-visible,
.pt-help-btn:focus-visible {
  outline: 2px solid var(--pt-accent-strong);
  outline-offset: 2px;
}

.pt-status {
  min-height: 18px;
  margin: 0 0 4px;
  color: rgba(92, 78, 122, .62);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
}

.pt-status.ok {
  color: var(--pt-accent-strong);
  font-weight: 650;
}

.pt-status.err {
  color: var(--pt-accent-strong);
  font-weight: 600;
}

.pt-post {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.pt-post[hidden] {
  display: none;
}

.pt-copy {
  padding: 7px 14px;
  color: var(--pt-ink-soft);
  background: transparent;
  border: 1px solid var(--pt-border);
  border-radius: 999px;
  font-family: var(--pt-sans);
  font-size: 12px;
  cursor: pointer;
}

.pt-copy:hover {
  color: var(--pt-accent-strong);
  background: var(--pt-accent-dim);
  border-color: var(--pt-accent-light);
}

.pt-help {
  width: min(100%, 480px);
  margin: 18px auto 0;
  border-top: 1px solid var(--pt-border);
}

.pt-help-btn {
  width: 100%;
  padding: 14px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--pt-ink-muted);
  background: none;
  border: none;
  font-family: var(--pt-sans);
  font-size: 12px;
  letter-spacing: .01em;
  cursor: pointer;
}

.pt-help-btn:hover {
  color: var(--pt-accent-strong);
}

.pt-chevron {
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--pt-tr);
}

.pt-help-btn[aria-expanded="true"] .pt-chevron {
  transform: rotate(225deg);
}

.pt-help-body {
  padding: 10px 0 4px;
  color: var(--pt-ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.pt-help-body p {
  margin: 0 0 6px;
}

.pt-back {
  width: 100%;
  max-width: 920px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 13px;
}

.pt-back a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--pt-ink-soft);
  text-decoration: none;
  font-weight: 650;
}

.pt-back a:hover {
  color: var(--pt-accent-strong);
}

.site-footer-std {
  width: min(100% - 28px, 1040px);
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--pt-ink-muted);
  font-size: 12px;
}

.site-footer-std p {
  margin: 0;
}

@media (max-width: 520px) {
  .pt-page {
    width: min(100% - 16px, 1040px);
    padding-top: 44px;
    padding-bottom: 20px;
  }

  .pt-card {
    padding: 18px 0 14px;
  }

  .pt-title {
    font-size: 38px;
    margin-bottom: 5px;
  }

  .pt-subtitle {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .pt-meta {
    margin-bottom: 12px;
  }

  .pt-stats {
    gap: 24px;
    margin-bottom: 14px;
  }

  .pt-stat-value {
    font-size: 20px;
  }

  .pt-board-wrap {
    width: 100%;
    margin: 0 0 12px;
  }

  .pt-canvas-shell {
    max-width: 100%;
  }

  .pt-actions {
    width: min(100%, 320px);
    gap: 8px;
    margin-bottom: 8px;
  }

  .pt-help {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .pt-title {
    font-size: 32px;
  }

  .pt-subtitle {
    font-size: 12.5px;
  }

  .pt-stats {
    gap: 18px;
  }

  .pt-stat-value {
    font-size: 18px;
  }

  .pt-stat-label {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .puentes-page *,
  .puentes-page *::before,
  .puentes-page *::after {
    transition: none !important;
    animation-duration: .01ms !important;
  }
}
