:root {
  color-scheme: dark;
  color: #f7f7f7;
  background: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(96, 165, 250, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(6, 11, 34, 1) 100%);
}

body::before {
  content: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hero > div {
  max-width: 42rem;
  margin: 0 auto;
}

.explanation {
  width: min(100%, 46rem);
  padding-inline: 2rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  line-height: 1.05;
}

p {
  margin: 1rem 0 0;
  line-height: 1.8;
  color: #cbd5e1;
}

.explanation {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.selection-panel {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  min-height: 6.5rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.selection-panel > * {
  width: 100%;
  margin: 0;
}

.selection-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.selection-instruction,
.selection-result {
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.chip-for-sale { background: rgba(103, 232, 249, 0.75); color: #67e8f9; }
.chip-owned { background: rgba(252, 211, 77, 0.75); color: #fcd34d; }
.chip-owned-for-sale { background: rgba(217, 70, 239, 0.85); color: #f0abfc; }

.grid-and-leaderboard {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.leaderboard {
  flex: 1;
  min-width: 0;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 24px;
  padding: 1.25rem 1.5rem;
}

.leaderboard-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f7f7f7;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.leaderboard-entry {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.05);
}

.leaderboard-entry:first-child {
  background: rgba(252, 211, 77, 0.1);
}

.leaderboard-place {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.leaderboard-entry:first-child .leaderboard-place {
  color: #fcd34d;
}

.leaderboard-name {
  font-size: 0.9rem;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-total {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .grid-and-leaderboard {
    flex-direction: column;
  }
}

.pi-grid {
  display: grid;
  grid-template-columns: repeat(40, 1.2rem);
  gap: 0.08rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.10);
  touch-action: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  justify-content: center;
}

.pi-grid::before {
  content: "π";
  position: absolute;
  inset: 0;
  font-size: min(55rem, 90vw);
  line-height: 1;
  color: rgba(148, 163, 184, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-20%);
  pointer-events: none;
}

.digit {
  display: inline-flex;
  touch-action: none;
  align-items: center;
  justify-content: center;
  min-height: auto;
  width: 1.2rem;
  padding: 0.1rem 0.1rem;
  border-radius: 0;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  border: none;
  background: transparent;
}

.digit:hover,
.digit.selected {
  transform: none;
  box-shadow: none;
}

.digit[data-state="for-sale"] {
  background: rgba(103, 232, 249, 0.14);
  color: #67e8f9;
}

.digit[data-state="owned"] {
  background: rgba(236, 233, 132, 0.18);
  color: #ece998;
}

.digit[data-state="owned-for-sale"] {
  background: rgba(217, 70, 239, 0.25);
  color: #f0abfc;
}

/* Lets adjacent purchases be told apart at a glance, without hovering:
   alternating brightness plus a seam at each group's first digit. */
.digit.shade-a {
  filter: hue-rotate(-10deg);
}

.digit.shade-b {
  filter: hue-rotate(-45deg);
}

.digit.group-start {
  box-shadow: inset 1px 0 0 0 rgba(255, 255, 255, 0.18);
}

.digit.owner-hover {
  filter: brightness(2);
  outline: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
  border-radius: 2px;
}

.digit.selected {
  background: rgba(56, 189, 248, 0.75);
  color: #ffffff;
  outline: 2px solid hsla(64, 83%, 84%, 0.454);
  border-color: rgba(255, 255, 255, 0.30);
}

.digit.search-match {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
}

.digit.search-match-active {
  background: #4ade80;
  color: #052e16;
  outline: 2px solid #4ade80;
  outline-offset: 1px;
  position: relative;
  z-index: 1;
}

.digit-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.digit-search input[type="text"] {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-family: monospace;
  padding: 0.35rem 0.7rem;
  outline: none;
  width: 160px;
}

.digit-search input[type="text"]:focus {
  border-color: #38bdf8;
}

.digit-search-count {
  font-size: 0.82rem;
  color: #64748b;
  min-width: 7ch;
}

.digit-search-nav,
.digit-search-clear {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.digit-search-nav:hover,
.digit-search-clear:hover {
  border-color: #38bdf8;
  color: #e2e8f0;
}

.selection-banner {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.selection-banner p {
  margin: 0;
  font-size: 1rem;
}

.price-balloon {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.95);
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  transform: translate(-50%, -120%);
  cursor: pointer;
}

.price-balloon:hover {
  background: rgba(56, 189, 248, 1);
  text-decoration: none;
}

.balloon-cta {
  opacity: 0.7;
  font-weight: 500;
}

.owner-balloon {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #f7f7f7;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -120%);
  pointer-events: none;
}

.owner-balloon[hidden] {
  display: none;
}

.price-balloon[hidden] {
  display: none;
}

.button[hidden] {
  display: none !important;
}

[hidden] {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: #38bdf8;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.owner-page {
  padding-top: 1rem;
}

.owner-page::before {
  content: "π";
  position: fixed;
  inset: 0;
  z-index: 2;
  font-size: clamp(36rem, 96vw, 100rem);
  line-height: 1;
  color: rgba(148, 163, 184, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-20%);
  pointer-events: none;
}

.owner-hero {
  margin-bottom: 1rem;
}

.owner-details {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  padding: 1.75rem;
}

.digits-lead-in {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #94a3b8;
}

.owner-digits {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.sale-note {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(96, 165, 250, 0.08);
  color: #cbd5e1;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
}

.auth-form label {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.auth-input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.8);
  color: #f7f7f7;
  font-size: 1rem;
  width: 100%;
}

.auth-input:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-image {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(148, 163, 184, 0.25);
  flex-shrink: 0;
}

.section-heading {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slice-section {
  margin-bottom: 1rem;
}

.bio-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.8;
  color: #cbd5e1;
}

.page-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-link {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  text-decoration: none;
  transition: background 0.15s ease;
}

.page-link:hover {
  background: rgba(148, 163, 184, 0.12);
}

.page-link-desc {
  font-weight: 600;
  color: #f7f7f7;
}

.page-link-url {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button--secondary {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.button--secondary:hover {
  background: rgba(56, 189, 248, 0.25);
}

.button--ghost {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.button--ghost:hover {
  background: rgba(148, 163, 184, 0.08);
}

.button:disabled,
.button--secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.edit-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.edit-errors {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.edit-errors p {
  margin: 0;
  color: #fca5a5;
  line-height: 1.6;
}

.edit-errors p + p {
  margin-top: 0.4rem;
}

.edit-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.image-upload-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.image-upload-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.profile-image--large {
  width: 6rem;
  height: 6rem;
}

.edit-textarea {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.8);
  color: #f7f7f7;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.7;
  width: 100%;
  resize: none;
  min-height: 8rem;
  overflow: hidden;
}

.edit-textarea:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.link-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 0.6rem;
}

.link-card-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.link-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  margin-top: 0.15rem;
}

.link-remove:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
}

.edit-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.edit-cancel {
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
}

.edit-cancel:hover {
  color: #94a3b8;
}

.purchase-button {
  margin-top: 1.25rem;
  display: inline-flex;
}

.purchase-button--locked {
  opacity: 0.4;
  pointer-events: none;
}

/* --- site nav --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: #f7f7f7;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.nav-link-active {
  color: #f7f7f7;
  background: rgba(148, 163, 184, 0.1);
}

.nav-auth {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-user {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

.nav-auth-divider {
  color: #334155;
  font-size: 0.8rem;
  user-select: none;
}

.nav-auth-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

/* --- notification bell --- */
.notif-bell-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.notif-bell {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0.35rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: #94a3b8;
  transition: background 0.15s, color 0.15s;
}

.notif-bell:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
}

.notif-bell-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  background: #f43f5e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 200;
  min-width: 16rem;
  max-width: 22rem;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.notif-item {
  display: block;
  padding: 0.7rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  transition: background 0.12s;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(56, 189, 248, 0.08);
}

/* --- site footer --- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: #475569;
}

.site-footer a {
  color: #475569;
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a:hover,
.site-footer a.nav-link-active {
  color: #94a3b8;
}

.site-footer-sep {
  color: #334155;
}

/* --- info pages (about, terms, privacy) --- */
.info-page {
  max-width: 48rem;
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
}

.info-page h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
  color: #e2e8f0;
}

.info-page ol {
  padding-left: 1.5rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.info-page a {
  color: #7dd3fc;
  text-decoration: none;
}

.info-page a:hover {
  text-decoration: underline;
}

.info-page-notice {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(252, 211, 77, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.25);
  color: #fcd34d;
  font-size: 0.9rem;
  margin-top: 0 !important;
}

/* --- legal confirm checkbox --- */
.legal-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1.5;
}

.legal-confirm input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: #38bdf8;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.legal-confirm a {
  color: #7dd3fc;
  text-decoration: none;
}

.legal-confirm a:hover {
  text-decoration: underline;
}

.display-name-prompt {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.display-name-prompt label {
  font-size: 0.9rem;
  color: #94a3b8;
}

.display-name-required {
  color: #64748b;
  font-size: 0.8rem;
}

.display-name-prompt input[type="text"] {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.display-name-prompt input[type="text"]:focus {
  border-color: #38bdf8;
}

.view-counter {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  pointer-events: none;
}

.view-counter-icon {
  font-size: 0.9rem;
}

.back-link {
  margin-top: 1rem;
}

.back-link a {
  color: #7dd3fc;
  text-decoration: none;
}

@media (max-width: 800px) {
  .pi-grid {
    grid-template-columns: repeat(12, minmax(1.6rem, 1fr));
  }
}

@media (max-width: 580px) {
  .pi-grid {
    grid-template-columns: repeat(8, minmax(1.4rem, 1fr));
  }
}

/* --- resale listing --- */
.resale-tag {
  font-size: 0.88rem;
  color: #c4b5fd;
  font-weight: 600;
  margin: 0.25rem 0 0;
}

.resale-price-breakdown {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.resale-price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.resale-price-total {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  font-weight: 700;
  color: #f7f7f7;
  font-size: 1.05rem;
}

.list-edge-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.list-edge-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #cbd5e1;
  cursor: pointer;
}

.list-edge-option input[type="radio"] {
  accent-color: #38bdf8;
}

.list-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.list-preview-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  border-radius: 3px;
  transition: background-color 0.15s, color 0.15s;
}

.list-preview-kept {
  background: rgba(252, 211, 77, 0.18);
  color: #ece998;
}

.list-preview-for-sale {
  background: rgba(139, 92, 246, 0.22);
  color: #c4b5fd;
}

/* --- owner actions (edit + share) --- */
.owner-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.share-form-container {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.share-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.share-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.share-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
}

.share-optional {
  font-weight: 400;
  color: #475569;
}

.share-textarea {
  min-height: 5rem;
}

.share-form-actions {
  display: flex;
  gap: 0.75rem;
}

.share-form-actions .button {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

.share-success {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 600;
}

.share-error-msg {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- comments --- */
.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.comments-header .section-heading {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.your-page-tag {
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #38bdf8;
  vertical-align: middle;
  margin-left: 0.6em;
  opacity: 0.75;
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #fb923c;
}

.comment-post-btn {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

.comment-limit-note {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 1rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.no-comments {
  color: #475569;
  margin: 0;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.comment {
  padding: 0.9rem 0 0.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.comment--reply {
  border-top: none;
  padding-top: 0.6rem;
}

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.comment-author {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.comment-author-link {
  font-weight: 600;
  color: #7dd3fc;
  text-decoration: none;
  font-size: 0.92rem;
}

.comment-author-link:hover {
  text-decoration: underline;
}

.comment-author-name {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.92rem;
}

.visitor-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(100, 116, 139, 0.18);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #64748b;
  vertical-align: middle;
}

.comment-time {
  font-size: 0.78rem;
  color: #475569;
}

.comment-review-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.22);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.comment-review-banner--refused {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.22);
}

.review-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fb923c;
  flex: 1;
  min-width: 0;
}

.comment-review-banner--refused .review-label {
  color: #f87171;
}

.comment-action-form {
  display: inline;
}

.comment-action-btn {
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.comment-action-btn:hover {
  background: rgba(148, 163, 184, 0.2);
}

.comment-action-btn--approve {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.comment-action-btn--approve:hover {
  background: rgba(52, 211, 153, 0.22);
}

.comment-action-btn--refuse {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.comment-action-btn--refuse:hover {
  background: rgba(239, 68, 68, 0.2);
}

.comment-status-note {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  display: inline-block;
}

.comment-status-note--pending {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
}

.comment-status-note--refused {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}

.comment-body {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-footer {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-reply-btn {
  background: none;
  border: none;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0;
  letter-spacing: 0.02em;
}

.comment-reply-btn:hover {
  color: #94a3b8;
}

.comment-reply-form {
  margin-top: 0.6rem;
}

.comment-textarea {
  min-height: 5rem;
}

.comment-char-counter {
  font-size: 0.75rem;
  color: #475569;
  text-align: right;
  margin-top: 0.3rem;
}

.comment-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.comment-form-actions .button {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

/* --- graffiti purchase overlay --- */
.graffiti-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
  animation: graffiti-in 0.4s ease-out both;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.graffiti-overlay--gone {
  opacity: 0;
  pointer-events: none;
}

@keyframes graffiti-in {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}

#graffitiCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.graffiti-text {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: graffiti-stamp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes graffiti-stamp {
  from { transform: scale(2.5) rotate(-6deg); opacity: 0; }
  to   { transform: scale(1) rotate(-3deg); opacity: 1; }
}

.graffiti-line1 {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #facc15;
  text-shadow:
    4px 4px 0 #b45309,
    -2px -2px 0 #000,
    6px 6px 12px rgba(0,0,0,0.8),
    0 0 40px rgba(250, 204, 21, 0.5);
  transform: rotate(-3deg);
  display: block;
}

.graffiti-line2 {
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f7f7f7;
  text-shadow: 2px 2px 0 #000, 0 0 20px rgba(255,255,255,0.3);
  display: block;
}

.graffiti-dismiss {
  position: absolute;
  bottom: 2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  animation: graffiti-blink 1.5s ease-in-out 1s infinite;
}

@keyframes graffiti-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}
