/* =========================================================
   Web Bitoi — Sub-page Stylesheet (About, Blog & shared UI)
   Loaded after css/style.css; uses light & dark theme tokens
   ========================================================= */

/* ---------- Shared Sub-page Header ---------- */

.page-head {
  margin-bottom: 22px;
}

.page-head__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 50px);
  line-height: 0.98;
  letter-spacing: 0.05em;
  color: var(--text-main);
  text-shadow: 2px 2px 0 var(--title-shadow);
}

.page-head .home-welcome__rule {
  margin-bottom: 0;
}

/* =========================================================
   About Page (RPG Profile + Info Cards)
   ========================================================= */

.about-profile {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 22px;
  margin-bottom: 20px;
  align-items: start;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border: 2px solid var(--border-pixel);
  border-radius: var(--radius-pixel);
  background-color: var(--bg-paper);
  box-shadow: 3px 3px 0 var(--shadow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-avatar svg,
.about-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.about-bio {
  min-width: 0;
}

.about-bio__name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
}

.about-bio p {
  margin: 0 0 12px;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.65;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-top: 12px;
  border-top: 2px dashed var(--dashed-divider);
  margin: 0;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.about-stat dt {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.about-stat dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-main);
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
}

.about-card {
  padding: 18px 20px;
}

.about-card--details {
  flex: 1 1 360px;
  min-width: 0;
}

.about-card--alias {
  flex: 0 1 auto;
  min-width: 220px;
  max-width: 100%;
}

.about-card__title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--dashed-divider);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.pixel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pixel-list li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.55;
}

.pixel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-primary);
}

/* =========================================================
   Shared Tag Search & Filter Bar (Blog / Gallery / Billboard)
   ========================================================= */

.filter-bar {
  padding: 0;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-search-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 520px;
}

.filter-search-row .pixel-input {
  flex: 1;
  min-width: 0;
}

.filter-clear-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.tag-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-filter-btn {
  padding: 4px 11px;
  border: 2px solid var(--border-pixel);
  border-radius: var(--radius-pixel);
  background-color: var(--surface-card);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.12s ease;
}

.tag-filter-btn:hover {
  background-color: var(--surface-sidebar);
}

.tag-filter-btn.is-active {
  background-color: var(--accent-primary);
  color: var(--on-primary);
  box-shadow: 2px 2px 0 var(--shadow-color);
}

.filter-status {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

.filter-status:empty {
  display: none;
}

/* =========================================================
   Blog List & Reader (Ref/tab blog.png)
   ========================================================= */

.blog-shell {
  width: 100%;
  max-width: 820px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.blog-card {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--dashed-divider);
}

.blog-card__title-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

.blog-card__title-btn:hover {
  color: var(--accent-primary);
}

.blog-date {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  white-space: nowrap;
}

.blog-card__excerpt {
  margin: 0;
  max-width: 68ch;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-main);
}

.blog-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill--btn {
  cursor: pointer;
}

.tag-pill--btn:hover {
  background-color: var(--accent-primary);
  color: var(--on-primary);
}

.blog-empty {
  padding: 22px;
  text-align: center;
}

.blog-empty p {
  margin: 0 0 12px;
  font-size: 19px;
}

/* Reader View */
.blog-reader[hidden],
#blog-list-view[hidden] {
  display: none;
}

.blog-back-row {
  margin-bottom: 14px;
}

.blog-article {
  padding: 26px 28px;
  margin-bottom: 24px;
}

.blog-article__header {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px dashed var(--dashed-divider);
}

.blog-article__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.blog-article__body p {
  margin: 0 0 14px;
  max-width: 66ch;
  font-size: 19px;
  line-height: 1.72;
}

.blog-article__body p:last-child {
  margin-bottom: 0;
}

.blog-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.blog-status-pill {
  display: inline-block;
  padding: 2px 7px;
  border: 1.5px solid var(--border-pixel);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
}

.blog-status-pill--draft {
  background-color: var(--pin-note);
  color: var(--on-pin);
}

.blog-status-pill--archived {
  background-color: var(--surface-sidebar);
  color: var(--text-muted);
}

.blog-editor-textarea {
  min-height: 200px;
  resize: vertical;
}

.blog-publish-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-main);
  cursor: pointer;
}

.blog-publish-toggle input[type="checkbox"] {
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent-primary);
}

/* Immediate Comments Panel (Blog / Gallery / Billboard) */
.comments-panel {
  padding: 24px 28px;
}

.comments-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px dashed var(--dashed-divider);
}

.comments-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.comment-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-empty {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

.comment-item {
  padding: 10px 12px;
  border: 2px solid var(--border-pixel);
  border-radius: var(--radius-pixel);
  background-color: var(--bg-paper);
}

.comment-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-item__author {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-secondary);
}

.comment-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-item__date {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

.comment-delete-btn {
  padding: 2px 7px;
  font-size: 11px;
}

.comment-item__body {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 2px dashed var(--dashed-divider);
}

.comment-author-note {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

.comment-author-note strong {
  color: var(--accent-primary);
}

.comment-textarea {
  min-height: 92px;
  resize: vertical;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}

.comment-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-feedback {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--accent-secondary);
}

/* =========================================================
   Blog Wide-Screen Scenic Strip (Static Props + Pixel Pets)
   ========================================================= */

.blog-workspace {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
}

.blog-primary {
  min-width: 0;
}

.blog-scenic-strip {
  position: sticky;
  top: 0;
  height: calc(100vh - 178px);
  min-height: 360px;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.scenic-stage {
  position: relative;
  width: 100%;
  height: 300px;
}

.scenic-props {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scenic-prop {
  position: absolute;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(2px 2px 0 rgba(43, 29, 20, 0.25));
}

[data-theme="dark"] .scenic-prop {
  filter: brightness(0.86) drop-shadow(2px 2px 0 rgba(10, 6, 4, 0.55));
}

[data-theme="dark"] .scenic-window-glow {
  filter: drop-shadow(0 0 6px rgba(247, 227, 150, 0.55));
}

.scenic-prop--tree {
  left: 6%;
  bottom: 16px;
  width: 90px;
  height: 105px;
}

.scenic-prop--house {
  right: 4%;
  bottom: 14px;
  width: 136px;
  height: 119px;
}

.scenic-ground {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 20px;
  filter: none;
}

.scenic-playground {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.scenic-playground.is-hidden {
  display: none;
}

/* =========================================================
   Gallery Collage & Pixel Frames (Ref/gallery.png)
   ========================================================= */

.gallery-collage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 96px;
  grid-auto-flow: dense;
  gap: 16px;
  width: 100%;
  padding-bottom: 12px;
}

.gallery-tile--tall {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery-tile--wide {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-tile--square {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile--portrait {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 7px;
  border: 2px solid var(--border-pixel);
  border-radius: var(--radius-pixel);
  background-color: var(--surface-card);
  box-shadow:
    inset 2px 2px 0 rgba(255, 253, 247, 0.32),
    inset -2px -2px 0 rgba(59, 40, 30, 0.14),
    4px 4px 0 var(--shadow-color);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.12s steps(2, end), box-shadow 0.12s steps(2, end), border-color 0.12s ease;
}

.gallery-frame:hover,
.gallery-frame:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--accent-primary);
  box-shadow:
    inset 2px 2px 0 rgba(255, 253, 247, 0.35),
    inset -2px -2px 0 rgba(59, 40, 30, 0.14),
    6px 6px 0 var(--shadow-color);
}

.gallery-frame__mat {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 1.5px solid var(--border-pixel);
  background-color: var(--bg-paper);
  overflow: hidden;
}

.gallery-frame__mat svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.gallery-frame__mat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.gallery-frame__mat img.is-pixelart {
  image-rendering: pixelated;
}

.gallery-frame__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border: 1.5px solid var(--border-pixel);
  background-color: var(--pin-note);
  color: var(--on-pin);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
}

.gallery-frame__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  background-color: rgba(30, 20, 14, 0.78);
  color: #FFF8EE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.gallery-frame__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-frame__count {
  flex-shrink: 0;
  color: var(--pin-note);
}

/* Gallery Lightbox Modal */
.gallery-modal__card {
  max-width: 780px;
}

.gallery-lightbox__art {
  border: 2px solid var(--border-pixel);
  background-color: var(--bg-paper);
  padding: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__art svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 46vh;
  image-rendering: pixelated;
}

.gallery-lightbox__art img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 46vh;
  image-rendering: auto;
}

.gallery-lightbox__art img.is-pixelart {
  image-rendering: pixelated;
}

.gallery-lightbox__desc {
  margin: 10px 0 14px;
  max-width: 66ch;
  font-size: 19px;
  line-height: 1.65;
}

.gallery-lightbox__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.gallery-upload-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 2px dashed var(--border-pixel);
  background-color: var(--bg-paper);
}

.gallery-provider-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--dashed-divider);
}

.pixel-dropdown {
  position: relative;
  flex: 1 1 240px;
  max-width: 350px;
}

.pixel-dropdown__trigger {
  width: 100%;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 12px;
  background-color: var(--input-bg);
  text-align: left;
}

.pixel-dropdown.is-open .pixel-dropdown__trigger {
  border-color: var(--accent-primary);
}

.pixel-dropdown__caret {
  flex-shrink: 0;
  font-size: 11px;
  transition: transform 0.1s steps(2, end);
}

.pixel-dropdown.is-open .pixel-dropdown__caret {
  transform: rotate(180deg);
}

.pixel-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border-pixel);
  background-color: var(--surface-card);
  box-shadow: 4px 4px 0 var(--shadow-color);
}

.pixel-dropdown__menu[hidden] {
  display: none !important;
}

.pixel-dropdown__option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px dashed var(--dashed-divider);
  background: transparent;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.pixel-dropdown__option:last-child {
  border-bottom: none;
}

.pixel-dropdown__option:hover,
.pixel-dropdown__option:focus-visible {
  background-color: var(--nav-hover-bg);
}

.pixel-dropdown__option[aria-selected="true"] {
  background-color: var(--bg-paper);
  box-shadow: inset 4px 0 0 var(--accent-primary);
  padding-left: 12px;
}

.pixel-dropdown__opt-title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.pixel-dropdown__opt-sub {
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.gallery-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

#gal-ed-file {
  width: 100%;
  min-width: 0;
  padding: 5px 8px;
  font-family: var(--font-ui);
  font-size: 12px;
}

#gal-ed-file::file-selector-button {
  margin-right: 8px;
  padding: 4px 10px;
  border: 2px solid var(--border-pixel);
  border-radius: var(--radius-pixel);
  background-color: var(--surface-sidebar);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

#gal-ed-file::file-selector-button:hover {
  background-color: var(--surface-card);
}

#gal-ed-upload-btn {
  white-space: nowrap;
}

.gallery-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 2px solid var(--border-pixel);
  background-color: var(--surface-card);
  max-height: 200px;
  overflow: hidden;
}

.gallery-preview-wrap[hidden] {
  display: none !important;
}

.gallery-preview-img {
  display: block;
  max-width: 100%;
  max-height: 184px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-preview-img.is-pixelart {
  image-rendering: pixelated;
}

.gallery-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.gallery-form-grid .form-field {
  height: 100%;
  justify-content: flex-end;
}

.gallery-fallback-box {
  width: 100%;
  height: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  background-color: var(--surface-sidebar);
}

/* =========================================================
   Billboard Community Signposts (Ref/community post.png)
   ========================================================= */

.billboard-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.signpost-meadow-wrap {
  --sign-outline: #2A1910;
  --sign-wood: #936943;
  --sign-wood-light: #B3875B;
  --sign-wood-dark: #5C3B22;
  --sign-plaque: #EEDFC2;
  --sign-plaque-line: #B89D78;
  --sign-grass: #4B8D3A;
  --sign-grass-hi: #77BD58;
  --sign-flower-a: #F5D26B;
  --sign-flower-b: #E98A68;
  position: relative;
  flex: 1 0 420px;
  min-height: 420px;
  width: 100%;
}

[data-theme="dark"] .signpost-meadow-wrap {
  --sign-outline: #160C07;
  --sign-wood: #4A3426;
  --sign-wood-light: #644736;
  --sign-wood-dark: #281911;
  --sign-plaque: #2C1E17;
  --sign-plaque-line: #4B3528;
  --sign-grass: #386F2C;
  --sign-grass-hi: #589943;
  --sign-flower-a: #E8C05A;
  --sign-flower-b: #D97A5B;
}

.signpost-pin[data-sign-color="wood"] {
  --sign-wood: #936943;
  --sign-wood-light: #B3875B;
  --sign-wood-dark: #5C3B22;
}

[data-theme="dark"] .signpost-pin[data-sign-color="wood"] {
  --sign-wood: #4A3426;
  --sign-wood-light: #644736;
  --sign-wood-dark: #281911;
}

.signpost-pin[data-sign-color="terracotta"] {
  --sign-wood: #C96846;
  --sign-wood-light: #E08665;
  --sign-wood-dark: #8C3D24;
}

[data-theme="dark"] .signpost-pin[data-sign-color="terracotta"] {
  --sign-wood: #92452D;
  --sign-wood-light: #B35C41;
  --sign-wood-dark: #592616;
}

.signpost-pin[data-sign-color="moss"] {
  --sign-wood: #5F8752;
  --sign-wood-light: #7EA86E;
  --sign-wood-dark: #3B5932;
}

[data-theme="dark"] .signpost-pin[data-sign-color="moss"] {
  --sign-wood: #44663B;
  --sign-wood-light: #5D8451;
  --sign-wood-dark: #273D22;
}

.signpost-pin[data-sign-color="sky"] {
  --sign-wood: #58829E;
  --sign-wood-light: #78A3BF;
  --sign-wood-dark: #38576E;
}

[data-theme="dark"] .signpost-pin[data-sign-color="sky"] {
  --sign-wood: #3F627A;
  --sign-wood-light: #58809B;
  --sign-wood-dark: #253D4F;
}

.signpost-pin[data-sign-color="honey"] {
  --sign-wood: #C89844;
  --sign-wood-light: #E3B864;
  --sign-wood-dark: #8B6321;
}

[data-theme="dark"] .signpost-pin[data-sign-color="honey"] {
  --sign-wood: #916B2B;
  --sign-wood-light: #B3883F;
  --sign-wood-dark: #593E14;
}

.signpost-pin[data-sign-color="plum"] {
  --sign-wood: #8A6082;
  --sign-wood-light: #A87CA0;
  --sign-wood-dark: #5B3B55;
}

[data-theme="dark"] .signpost-pin[data-sign-color="plum"] {
  --sign-wood: #654460;
  --sign-wood-light: #825B7C;
  --sign-wood-dark: #3D263A;
}

.meadow-playground {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.meadow-playground.is-hidden {
  display: none;
}

.meadow-playground.has-grabbed {
  z-index: 20;
}

.signpost-meadow {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 420px;
  pointer-events: none;
}

.signpost-pin {
  position: absolute;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signpost-pin:hover,
.signpost-pin:focus-within {
  z-index: 15;
}

.signpost-mini-btn {
  position: relative;
  padding: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s steps(2, end);
}

.signpost-mini-btn:hover,
.signpost-mini-btn:focus-visible {
  transform: translateY(-4px);
}

.signpost-mini-btn:focus-visible {
  outline: 2px dashed var(--accent-primary);
  outline-offset: 2px;
}

.signpost-mini-svg {
  display: block;
  width: 70px;
  height: 75px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 3px 0 rgba(20, 12, 8, 0.55));
}

.signpost-pending-dot {
  position: absolute;
  top: 0;
  right: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--sign-outline);
  background-color: var(--pin-note);
  color: #2B1D14;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  line-height: 10px;
  text-align: center;
  pointer-events: none;
}

.signpost-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  min-width: 170px;
  max-width: 245px;
  padding: 8px 10px;
  border: 2px solid var(--border-pixel);
  background-color: #FFFDF5;
  color: var(--text-main);
  box-shadow:
    inset 0 0 0 2px rgba(223, 204, 168, 0.45),
    4px 4px 0 var(--shadow-color);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.1s steps(2, end), transform 0.1s steps(2, end);
}

[data-theme="dark"] .signpost-tooltip {
  border-color: #8A705E;
  background-color: #362B24;
  box-shadow:
    inset 0 0 0 2px rgba(138, 112, 94, 0.22),
    4px 4px 0 #0A0705;
}

.signpost-pin--edge-top .signpost-tooltip {
  bottom: auto;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(-4px);
}

.signpost-pin--edge-left .signpost-tooltip {
  left: 0;
  transform: translateX(0) translateY(4px);
}

.signpost-pin--edge-right .signpost-tooltip {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}

.signpost-pin--edge-top.signpost-pin--edge-left .signpost-tooltip,
.signpost-pin--edge-top.signpost-pin--edge-right .signpost-tooltip {
  transform: translateX(0) translateY(-4px);
}

.signpost-pin:hover .signpost-tooltip,
.signpost-pin:focus-within .signpost-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.signpost-pin--edge-left:hover .signpost-tooltip,
.signpost-pin--edge-left:focus-within .signpost-tooltip,
.signpost-pin--edge-right:hover .signpost-tooltip,
.signpost-pin--edge-right:focus-within .signpost-tooltip {
  transform: translateX(0) translateY(0);
}

.signpost-tooltip__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-main);
}

.signpost-tooltip__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

.signpost-tooltip__pending {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 6px;
  border: 1.5px solid #3B281E;
  background-color: var(--pin-note);
  color: #2B1D14;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
}

.signpost-tooltip__archived {
  display: inline-block;
  margin-top: 5px;
  margin-left: 4px;
  padding: 1px 6px;
  border: 1.5px solid var(--border-pixel);
  background-color: var(--surface-sidebar);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
}

/* Progressive Base Foliage by Comment Activity (0 -> 4) */
.signpost-foliage--lvl1,
.signpost-foliage--lvl2,
.signpost-foliage--lvl3,
.signpost-foliage--lvl4 {
  display: none;
}

.signpost-pin[data-activity="1"] .signpost-foliage--lvl1,
.signpost-pin[data-activity="2"] .signpost-foliage--lvl1,
.signpost-pin[data-activity="2"] .signpost-foliage--lvl2,
.signpost-pin[data-activity="3"] .signpost-foliage--lvl1,
.signpost-pin[data-activity="3"] .signpost-foliage--lvl2,
.signpost-pin[data-activity="3"] .signpost-foliage--lvl3,
.signpost-pin[data-activity="4"] .signpost-foliage--lvl1,
.signpost-pin[data-activity="4"] .signpost-foliage--lvl2,
.signpost-pin[data-activity="4"] .signpost-foliage--lvl3,
.signpost-pin[data-activity="4"] .signpost-foliage--lvl4 {
  display: inline;
}

/* Gentle Pixel Falling Leaves */
.signpost-leaves {
  position: absolute;
  inset: -14px -18px 0;
  pointer-events: none;
  overflow: visible;
}

.signpost-leaf {
  position: absolute;
  top: 0;
  left: var(--leaf-x, 50%);
  width: 5px;
  height: 4px;
  background-color: var(--leaf-color, var(--sign-grass-hi));
  box-shadow: 1px 1px 0 var(--sign-outline);
  opacity: 0;
  animation: signpost-leaf-fall var(--leaf-dur, 4.2s) steps(12, end) var(--leaf-delay, 0s) infinite;
}

@keyframes signpost-leaf-fall {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  42% {
    transform: translate(var(--leaf-drift, 8px), 26px);
    opacity: 0.95;
  }
  74% {
    transform: translate(calc(var(--leaf-drift, 8px) * -0.6), 54px);
    opacity: 0.85;
  }
  100% {
    transform: translate(var(--leaf-drift, 8px), 76px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signpost-leaf {
    animation: none;
    opacity: 0;
  }
}

/* Signpost Color Picker (Create Modal) */
.signpost-color-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.signpost-color-fieldset > .form-field__label {
  padding: 0;
  margin-bottom: 4px;
}

.signpost-color-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.signpost-color-option {
  position: relative;
  cursor: pointer;
}

.signpost-color-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signpost-color-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 2px solid var(--border-pixel);
  background-color: var(--surface-card);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 12px;
  transition: transform 0.1s steps(2, end);
}

.signpost-color-option:hover .signpost-color-chip {
  transform: translateY(-2px);
}

.signpost-color-input:checked + .signpost-color-chip {
  border-color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-primary), 2px 2px 0 rgba(20, 12, 8, 0.45);
  font-weight: 700;
}

.signpost-color-input:focus-visible + .signpost-color-chip {
  outline: 2px dashed var(--accent-primary);
  outline-offset: 2px;
}

.signpost-color-swatch {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid #2A1910;
}

.signpost-color-chip[data-color-preview="wood"] .signpost-color-swatch {
  background-color: #936943;
}

.signpost-color-chip[data-color-preview="terracotta"] .signpost-color-swatch {
  background-color: #C96846;
}

.signpost-color-chip[data-color-preview="moss"] .signpost-color-swatch {
  background-color: #5F8752;
}

.signpost-color-chip[data-color-preview="sky"] .signpost-color-swatch {
  background-color: #58829E;
}

.signpost-color-chip[data-color-preview="honey"] .signpost-color-swatch {
  background-color: #C89844;
}

.signpost-color-chip[data-color-preview="plum"] .signpost-color-swatch {
  background-color: #8A6082;
}

/* Billboard Detail & Create Modals */
.billboard-modal__card {
  max-width: 680px;
}

/* Shared Post-Creation Pixel Natural Tree-Wood / Bark Frame (Gallery, Blog, Billboard) */
.post-composer-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  max-height: 88vh;
  border-style: solid;
  border-width: 16px;
  border-color: #8F5E38;
  border-radius: 0;
  background-color: var(--surface-card);
  background-clip: padding-box;
  box-shadow: 6px 6px 0 var(--shadow-color);
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='48' height='8' fill='%238F5E38'/%3E%3Crect x='0' y='40' width='48' height='8' fill='%238F5E38'/%3E%3Crect x='0' y='8' width='8' height='32' fill='%238F5E38'/%3E%3Crect x='40' y='8' width='8' height='32' fill='%238F5E38'/%3E%3Crect x='0' y='0' width='48' height='1' fill='%234A2D18'/%3E%3Crect x='0' y='47' width='48' height='1' fill='%234A2D18'/%3E%3Crect x='0' y='0' width='1' height='48' fill='%234A2D18'/%3E%3Crect x='47' y='0' width='1' height='48' fill='%234A2D18'/%3E%3Crect x='7' y='7' width='34' height='1' fill='%235A371E'/%3E%3Crect x='7' y='40' width='34' height='1' fill='%235A371E'/%3E%3Crect x='7' y='7' width='1' height='34' fill='%235A371E'/%3E%3Crect x='40' y='7' width='1' height='34' fill='%235A371E'/%3E%3Crect x='2' y='2' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='2' y='2' width='1' height='5' fill='%23CFA070'/%3E%3Crect x='3' y='3' width='4' height='1' fill='%23B27E51'/%3E%3Crect x='3' y='3' width='1' height='4' fill='%23B27E51'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%23663E22'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%234A2D18'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%234A2D18'/%3E%3Crect x='2' y='1' width='3' height='1' fill='%23B27E51'/%3E%3Crect x='1' y='2' width='1' height='3' fill='%23B27E51'/%3E%3Crect x='5' y='1' width='2' height='1' fill='%235E8B42'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%238FBE62'/%3E%3Crect x='1' y='5' width='1' height='2' fill='%235E8B42'/%3E%3Crect x='41' y='2' width='4' height='1' fill='%23CFA070'/%3E%3Crect x='45' y='2' width='1' height='5' fill='%23CFA070'/%3E%3Crect x='40' y='3' width='5' height='1' fill='%23B27E51'/%3E%3Crect x='44' y='3' width='1' height='4' fill='%23B27E51'/%3E%3Crect x='41' y='4' width='2' height='2' fill='%23663E22'/%3E%3Crect x='41' y='5' width='1' height='1' fill='%234A2D18'/%3E%3Crect x='46' y='1' width='1' height='1' fill='%234A2D18'/%3E%3Crect x='43' y='1' width='2' height='1' fill='%23B27E51'/%3E%3Crect x='46' y='4' width='1' height='2' fill='%23663E22'/%3E%3Crect x='41' y='1' width='2' height='1' fill='%235E8B42'/%3E%3Crect x='41' y='1' width='1' height='1' fill='%238FBE62'/%3E%3Crect x='2' y='41' width='1' height='5' fill='%23CFA070'/%3E%3Crect x='2' y='45' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='3' y='40' width='1' height='5' fill='%23B27E51'/%3E%3Crect x='3' y='44' width='4' height='1' fill='%23B27E51'/%3E%3Crect x='4' y='42' width='2' height='2' fill='%23663E22'/%3E%3Crect x='5' y='42' width='1' height='1' fill='%234A2D18'/%3E%3Crect x='1' y='46' width='1' height='1' fill='%234A2D18'/%3E%3Crect x='1' y='42' width='1' height='3' fill='%23663E22'/%3E%3Crect x='5' y='46' width='2' height='1' fill='%235E8B42'/%3E%3Crect x='6' y='45' width='1' height='1' fill='%238FBE62'/%3E%3Crect x='45' y='41' width='1' height='5' fill='%23CFA070'/%3E%3Crect x='41' y='45' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='44' y='40' width='1' height='5' fill='%23B27E51'/%3E%3Crect x='40' y='44' width='5' height='1' fill='%23B27E51'/%3E%3Crect x='41' y='42' width='2' height='2' fill='%23663E22'/%3E%3Crect x='41' y='42' width='1' height='1' fill='%234A2D18'/%3E%3Crect x='46' y='46' width='1' height='1' fill='%234A2D18'/%3E%3Crect x='41' y='46' width='2' height='1' fill='%235E8B42'/%3E%3Crect x='42' y='45' width='1' height='1' fill='%238FBE62'/%3E%3Crect x='8' y='2' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='13' y='1' width='12' height='1' fill='%23CFA070'/%3E%3Crect x='25' y='2' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='30' y='3' width='4' height='1' fill='%23CFA070'/%3E%3Crect x='34' y='2' width='6' height='1' fill='%23CFA070'/%3E%3Crect x='8' y='5' width='3' height='1' fill='%23CFA070'/%3E%3Crect x='11' y='6' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='26' y='6' width='6' height='1' fill='%23CFA070'/%3E%3Crect x='36' y='5' width='4' height='1' fill='%23CFA070'/%3E%3Crect x='8' y='3' width='4' height='1' fill='%23B27E51'/%3E%3Crect x='12' y='2' width='5' height='1' fill='%23B27E51'/%3E%3Crect x='18' y='2' width='6' height='1' fill='%23B27E51'/%3E%3Crect x='25' y='3' width='4' height='1' fill='%23B27E51'/%3E%3Crect x='29' y='2' width='5' height='1' fill='%23B27E51'/%3E%3Crect x='34' y='3' width='6' height='1' fill='%23B27E51'/%3E%3Crect x='8' y='4' width='5' height='1' fill='%23663E22'/%3E%3Crect x='13' y='5' width='12' height='1' fill='%23663E22'/%3E%3Crect x='25' y='4' width='6' height='1' fill='%23663E22'/%3E%3Crect x='31' y='5' width='5' height='1' fill='%23663E22'/%3E%3Crect x='36' y='4' width='4' height='1' fill='%23663E22'/%3E%3Crect x='19' y='2' width='5' height='3' fill='%23663E22'/%3E%3Crect x='18' y='3' width='1' height='1' fill='%23663E22'/%3E%3Crect x='24' y='3' width='1' height='1' fill='%23663E22'/%3E%3Crect x='20' y='3' width='3' height='1' fill='%234A2D18'/%3E%3Crect x='21' y='2' width='1' height='3' fill='%234A2D18'/%3E%3Crect x='31' y='1' width='2' height='1' fill='%23663E22'/%3E%3Crect x='10' y='1' width='2' height='1' fill='%235E8B42'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%238FBE62'/%3E%3Crect x='8' y='42' width='6' height='1' fill='%23CFA070'/%3E%3Crect x='14' y='41' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='19' y='42' width='6' height='1' fill='%23CFA070'/%3E%3Crect x='25' y='41' width='8' height='1' fill='%23CFA070'/%3E%3Crect x='33' y='42' width='7' height='1' fill='%23CFA070'/%3E%3Crect x='8' y='45' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='13' y='46' width='6' height='1' fill='%23CFA070'/%3E%3Crect x='20' y='45' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='35' y='45' width='5' height='1' fill='%23CFA070'/%3E%3Crect x='8' y='43' width='5' height='1' fill='%23B27E51'/%3E%3Crect x='13' y='42' width='6' height='1' fill='%23B27E51'/%3E%3Crect x='19' y='43' width='5' height='1' fill='%23B27E51'/%3E%3Crect x='26' y='42' width='6' height='1' fill='%23B27E51'/%3E%3Crect x='34' y='43' width='6' height='1' fill='%23B27E51'/%3E%3Crect x='8' y='44' width='6' height='1' fill='%23663E22'/%3E%3Crect x='14' y='45' width='5' height='1' fill='%23663E22'/%3E%3Crect x='19' y='44' width='6' height='1' fill='%23663E22'/%3E%3Crect x='25' y='45' width='8' height='1' fill='%23663E22'/%3E%3Crect x='33' y='44' width='7' height='1' fill='%23663E22'/%3E%3Crect x='27' y='42' width='5' height='3' fill='%23663E22'/%3E%3Crect x='26' y='43' width='1' height='1' fill='%23663E22'/%3E%3Crect x='32' y='43' width='1' height='1' fill='%23663E22'/%3E%3Crect x='28' y='43' width='3' height='1' fill='%234A2D18'/%3E%3Crect x='29' y='42' width='1' height='3' fill='%234A2D18'/%3E%3Crect x='16' y='46' width='2' height='1' fill='%235E8B42'/%3E%3Crect x='17' y='45' width='1' height='1' fill='%238FBE62'/%3E%3Crect x='2' y='8' width='1' height='6' fill='%23CFA070'/%3E%3Crect x='1' y='14' width='1' height='5' fill='%23CFA070'/%3E%3Crect x='1' y='20' width='1' height='8' fill='%23CFA070'/%3E%3Crect x='2' y='28' width='1' height='5' fill='%23CFA070'/%3E%3Crect x='3' y='33' width='1' height='3' fill='%23CFA070'/%3E%3Crect x='2' y='36' width='1' height='4' fill='%23CFA070'/%3E%3Crect x='5' y='8' width='1' height='4' fill='%23CFA070'/%3E%3Crect x='6' y='12' width='1' height='5' fill='%23CFA070'/%3E%3Crect x='6' y='21' width='1' height='6' fill='%23CFA070'/%3E%3Crect x='5' y='34' width='1' height='6' fill='%23CFA070'/%3E%3Crect x='3' y='8' width='1' height='5' fill='%23B27E51'/%3E%3Crect x='2' y='13' width='1' height='6' fill='%23B27E51'/%3E%3Crect x='3' y='28' width='1' height='5' fill='%23B27E51'/%3E%3Crect x='4' y='33' width='1' height='4' fill='%23B27E51'/%3E%3Crect x='3' y='37' width='1' height='3' fill='%23B27E51'/%3E%3Crect x='4' y='8' width='1' height='6' fill='%23663E22'/%3E%3Crect x='5' y='14' width='1' height='14' fill='%23663E22'/%3E%3Crect x='4' y='28' width='1' height='12' fill='%23663E22'/%3E%3Crect x='2' y='22' width='3' height='5' fill='%23663E22'/%3E%3Crect x='3' y='21' width='1' height='1' fill='%23663E22'/%3E%3Crect x='3' y='27' width='1' height='1' fill='%23663E22'/%3E%3Crect x='3' y='23' width='1' height='3' fill='%234A2D18'/%3E%3Crect x='2' y='24' width='3' height='1' fill='%234A2D18'/%3E%3Crect x='1' y='32' width='1' height='2' fill='%235E8B42'/%3E%3Crect x='2' y='32' width='1' height='1' fill='%238FBE62'/%3E%3Crect x='42' y='8' width='1' height='6' fill='%23CFA070'/%3E%3Crect x='41' y='14' width='1' height='7' fill='%23CFA070'/%3E%3Crect x='42' y='21' width='1' height='7' fill='%23CFA070'/%3E%3Crect x='41' y='28' width='1' height='6' fill='%23CFA070'/%3E%3Crect x='42' y='34' width='1' height='6' fill='%23CFA070'/%3E%3Crect x='45' y='8' width='1' height='5' fill='%23CFA070'/%3E%3Crect x='46' y='14' width='1' height='6' fill='%23CFA070'/%3E%3Crect x='45' y='22' width='1' height='8' fill='%23CFA070'/%3E%3Crect x='45' y='35' width='1' height='5' fill='%23CFA070'/%3E%3Crect x='43' y='8' width='1' height='5' fill='%23B27E51'/%3E%3Crect x='42' y='13' width='1' height='8' fill='%23B27E51'/%3E%3Crect x='43' y='21' width='1' height='7' fill='%23B27E51'/%3E%3Crect x='42' y='28' width='1' height='6' fill='%23B27E51'/%3E%3Crect x='43' y='34' width='1' height='6' fill='%23B27E51'/%3E%3Crect x='44' y='8' width='1' height='6' fill='%23663E22'/%3E%3Crect x='45' y='13' width='1' height='8' fill='%23663E22'/%3E%3Crect x='44' y='21' width='1' height='7' fill='%23663E22'/%3E%3Crect x='45' y='28' width='1' height='5' fill='%23663E22'/%3E%3Crect x='44' y='33' width='1' height='7' fill='%23663E22'/%3E%3Crect x='43' y='15' width='3' height='5' fill='%23663E22'/%3E%3Crect x='44' y='14' width='1' height='1' fill='%23663E22'/%3E%3Crect x='44' y='20' width='1' height='1' fill='%23663E22'/%3E%3Crect x='44' y='16' width='1' height='3' fill='%234A2D18'/%3E%3Crect x='43' y='17' width='3' height='1' fill='%234A2D18'/%3E%3Crect x='46' y='29' width='1' height='2' fill='%235E8B42'/%3E%3Crect x='45' y='30' width='1' height='1' fill='%238FBE62'/%3E%3C/svg%3E");
  border-image-slice: 8;
  border-image-width: 16px;
  border-image-repeat: round;
}

[data-theme="dark"] .post-composer-card {
  border-color: #6E462B;
  box-shadow: 6px 6px 0 #0A0705;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='48' height='8' fill='%236E462B'/%3E%3Crect x='0' y='40' width='48' height='8' fill='%236E462B'/%3E%3Crect x='0' y='8' width='8' height='32' fill='%236E462B'/%3E%3Crect x='40' y='8' width='8' height='32' fill='%236E462B'/%3E%3Crect x='0' y='0' width='48' height='1' fill='%231E110A'/%3E%3Crect x='0' y='47' width='48' height='1' fill='%231E110A'/%3E%3Crect x='0' y='0' width='1' height='48' fill='%231E110A'/%3E%3Crect x='47' y='0' width='1' height='48' fill='%231E110A'/%3E%3Crect x='7' y='7' width='34' height='1' fill='%233A2113'/%3E%3Crect x='7' y='40' width='34' height='1' fill='%233A2113'/%3E%3Crect x='7' y='7' width='1' height='34' fill='%233A2113'/%3E%3Crect x='40' y='7' width='1' height='34' fill='%233A2113'/%3E%3Crect x='2' y='2' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='2' y='2' width='1' height='5' fill='%23AE7C52'/%3E%3Crect x='3' y='3' width='4' height='1' fill='%238E5F3D'/%3E%3Crect x='3' y='3' width='1' height='4' fill='%238E5F3D'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%23472A18'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%232B170D'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%232B170D'/%3E%3Crect x='2' y='1' width='3' height='1' fill='%238E5F3D'/%3E%3Crect x='1' y='2' width='1' height='3' fill='%238E5F3D'/%3E%3Crect x='5' y='1' width='2' height='1' fill='%234A7535'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%2378A854'/%3E%3Crect x='1' y='5' width='1' height='2' fill='%234A7535'/%3E%3Crect x='41' y='2' width='4' height='1' fill='%23AE7C52'/%3E%3Crect x='45' y='2' width='1' height='5' fill='%23AE7C52'/%3E%3Crect x='40' y='3' width='5' height='1' fill='%238E5F3D'/%3E%3Crect x='44' y='3' width='1' height='4' fill='%238E5F3D'/%3E%3Crect x='41' y='4' width='2' height='2' fill='%23472A18'/%3E%3Crect x='41' y='5' width='1' height='1' fill='%232B170D'/%3E%3Crect x='46' y='1' width='1' height='1' fill='%232B170D'/%3E%3Crect x='43' y='1' width='2' height='1' fill='%238E5F3D'/%3E%3Crect x='46' y='4' width='1' height='2' fill='%23472A18'/%3E%3Crect x='41' y='1' width='2' height='1' fill='%234A7535'/%3E%3Crect x='41' y='1' width='1' height='1' fill='%2378A854'/%3E%3Crect x='2' y='41' width='1' height='5' fill='%23AE7C52'/%3E%3Crect x='2' y='45' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='3' y='40' width='1' height='5' fill='%238E5F3D'/%3E%3Crect x='3' y='44' width='4' height='1' fill='%238E5F3D'/%3E%3Crect x='4' y='42' width='2' height='2' fill='%23472A18'/%3E%3Crect x='5' y='42' width='1' height='1' fill='%232B170D'/%3E%3Crect x='1' y='46' width='1' height='1' fill='%232B170D'/%3E%3Crect x='1' y='42' width='1' height='3' fill='%23472A18'/%3E%3Crect x='5' y='46' width='2' height='1' fill='%234A7535'/%3E%3Crect x='6' y='45' width='1' height='1' fill='%2378A854'/%3E%3Crect x='45' y='41' width='1' height='5' fill='%23AE7C52'/%3E%3Crect x='41' y='45' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='44' y='40' width='1' height='5' fill='%238E5F3D'/%3E%3Crect x='40' y='44' width='5' height='1' fill='%238E5F3D'/%3E%3Crect x='41' y='42' width='2' height='2' fill='%23472A18'/%3E%3Crect x='41' y='42' width='1' height='1' fill='%232B170D'/%3E%3Crect x='46' y='46' width='1' height='1' fill='%232B170D'/%3E%3Crect x='41' y='46' width='2' height='1' fill='%234A7535'/%3E%3Crect x='42' y='45' width='1' height='1' fill='%2378A854'/%3E%3Crect x='8' y='2' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='13' y='1' width='12' height='1' fill='%23AE7C52'/%3E%3Crect x='25' y='2' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='30' y='3' width='4' height='1' fill='%23AE7C52'/%3E%3Crect x='34' y='2' width='6' height='1' fill='%23AE7C52'/%3E%3Crect x='8' y='5' width='3' height='1' fill='%23AE7C52'/%3E%3Crect x='11' y='6' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='26' y='6' width='6' height='1' fill='%23AE7C52'/%3E%3Crect x='36' y='5' width='4' height='1' fill='%23AE7C52'/%3E%3Crect x='8' y='3' width='4' height='1' fill='%238E5F3D'/%3E%3Crect x='12' y='2' width='5' height='1' fill='%238E5F3D'/%3E%3Crect x='18' y='2' width='6' height='1' fill='%238E5F3D'/%3E%3Crect x='25' y='3' width='4' height='1' fill='%238E5F3D'/%3E%3Crect x='29' y='2' width='5' height='1' fill='%238E5F3D'/%3E%3Crect x='34' y='3' width='6' height='1' fill='%238E5F3D'/%3E%3Crect x='8' y='4' width='5' height='1' fill='%23472A18'/%3E%3Crect x='13' y='5' width='12' height='1' fill='%23472A18'/%3E%3Crect x='25' y='4' width='6' height='1' fill='%23472A18'/%3E%3Crect x='31' y='5' width='5' height='1' fill='%23472A18'/%3E%3Crect x='36' y='4' width='4' height='1' fill='%23472A18'/%3E%3Crect x='19' y='2' width='5' height='3' fill='%23472A18'/%3E%3Crect x='18' y='3' width='1' height='1' fill='%23472A18'/%3E%3Crect x='24' y='3' width='1' height='1' fill='%23472A18'/%3E%3Crect x='20' y='3' width='3' height='1' fill='%232B170D'/%3E%3Crect x='21' y='2' width='1' height='3' fill='%232B170D'/%3E%3Crect x='31' y='1' width='2' height='1' fill='%23472A18'/%3E%3Crect x='10' y='1' width='2' height='1' fill='%234A7535'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%2378A854'/%3E%3Crect x='8' y='42' width='6' height='1' fill='%23AE7C52'/%3E%3Crect x='14' y='41' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='19' y='42' width='6' height='1' fill='%23AE7C52'/%3E%3Crect x='25' y='41' width='8' height='1' fill='%23AE7C52'/%3E%3Crect x='33' y='42' width='7' height='1' fill='%23AE7C52'/%3E%3Crect x='8' y='45' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='13' y='46' width='6' height='1' fill='%23AE7C52'/%3E%3Crect x='20' y='45' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='35' y='45' width='5' height='1' fill='%23AE7C52'/%3E%3Crect x='8' y='43' width='5' height='1' fill='%238E5F3D'/%3E%3Crect x='13' y='42' width='6' height='1' fill='%238E5F3D'/%3E%3Crect x='19' y='43' width='5' height='1' fill='%238E5F3D'/%3E%3Crect x='26' y='42' width='6' height='1' fill='%238E5F3D'/%3E%3Crect x='34' y='43' width='6' height='1' fill='%238E5F3D'/%3E%3Crect x='8' y='44' width='6' height='1' fill='%23472A18'/%3E%3Crect x='14' y='45' width='5' height='1' fill='%23472A18'/%3E%3Crect x='19' y='44' width='6' height='1' fill='%23472A18'/%3E%3Crect x='25' y='45' width='8' height='1' fill='%23472A18'/%3E%3Crect x='33' y='44' width='7' height='1' fill='%23472A18'/%3E%3Crect x='27' y='42' width='5' height='3' fill='%23472A18'/%3E%3Crect x='26' y='43' width='1' height='1' fill='%23472A18'/%3E%3Crect x='32' y='43' width='1' height='1' fill='%23472A18'/%3E%3Crect x='28' y='43' width='3' height='1' fill='%232B170D'/%3E%3Crect x='29' y='42' width='1' height='3' fill='%232B170D'/%3E%3Crect x='16' y='46' width='2' height='1' fill='%234A7535'/%3E%3Crect x='17' y='45' width='1' height='1' fill='%2378A854'/%3E%3Crect x='2' y='8' width='1' height='6' fill='%23AE7C52'/%3E%3Crect x='1' y='14' width='1' height='5' fill='%23AE7C52'/%3E%3Crect x='1' y='20' width='1' height='8' fill='%23AE7C52'/%3E%3Crect x='2' y='28' width='1' height='5' fill='%23AE7C52'/%3E%3Crect x='3' y='33' width='1' height='3' fill='%23AE7C52'/%3E%3Crect x='2' y='36' width='1' height='4' fill='%23AE7C52'/%3E%3Crect x='5' y='8' width='1' height='4' fill='%23AE7C52'/%3E%3Crect x='6' y='12' width='1' height='5' fill='%23AE7C52'/%3E%3Crect x='6' y='21' width='1' height='6' fill='%23AE7C52'/%3E%3Crect x='5' y='34' width='1' height='6' fill='%23AE7C52'/%3E%3Crect x='3' y='8' width='1' height='5' fill='%238E5F3D'/%3E%3Crect x='2' y='13' width='1' height='6' fill='%238E5F3D'/%3E%3Crect x='3' y='28' width='1' height='5' fill='%238E5F3D'/%3E%3Crect x='4' y='33' width='1' height='4' fill='%238E5F3D'/%3E%3Crect x='3' y='37' width='1' height='3' fill='%238E5F3D'/%3E%3Crect x='4' y='8' width='1' height='6' fill='%23472A18'/%3E%3Crect x='5' y='14' width='1' height='14' fill='%23472A18'/%3E%3Crect x='4' y='28' width='1' height='12' fill='%23472A18'/%3E%3Crect x='2' y='22' width='3' height='5' fill='%23472A18'/%3E%3Crect x='3' y='21' width='1' height='1' fill='%23472A18'/%3E%3Crect x='3' y='27' width='1' height='1' fill='%23472A18'/%3E%3Crect x='3' y='23' width='1' height='3' fill='%232B170D'/%3E%3Crect x='2' y='24' width='3' height='1' fill='%232B170D'/%3E%3Crect x='1' y='32' width='1' height='2' fill='%234A7535'/%3E%3Crect x='2' y='32' width='1' height='1' fill='%2378A854'/%3E%3Crect x='42' y='8' width='1' height='6' fill='%23AE7C52'/%3E%3Crect x='41' y='14' width='1' height='7' fill='%23AE7C52'/%3E%3Crect x='42' y='21' width='1' height='7' fill='%23AE7C52'/%3E%3Crect x='41' y='28' width='1' height='6' fill='%23AE7C52'/%3E%3Crect x='42' y='34' width='1' height='6' fill='%23AE7C52'/%3E%3Crect x='45' y='8' width='1' height='5' fill='%23AE7C52'/%3E%3Crect x='46' y='14' width='1' height='6' fill='%23AE7C52'/%3E%3Crect x='45' y='22' width='1' height='8' fill='%23AE7C52'/%3E%3Crect x='45' y='35' width='1' height='5' fill='%23AE7C52'/%3E%3Crect x='43' y='8' width='1' height='5' fill='%238E5F3D'/%3E%3Crect x='42' y='13' width='1' height='8' fill='%238E5F3D'/%3E%3Crect x='43' y='21' width='1' height='7' fill='%238E5F3D'/%3E%3Crect x='42' y='28' width='1' height='6' fill='%238E5F3D'/%3E%3Crect x='43' y='34' width='1' height='6' fill='%238E5F3D'/%3E%3Crect x='44' y='8' width='1' height='6' fill='%23472A18'/%3E%3Crect x='45' y='13' width='1' height='8' fill='%23472A18'/%3E%3Crect x='44' y='21' width='1' height='7' fill='%23472A18'/%3E%3Crect x='45' y='28' width='1' height='5' fill='%23472A18'/%3E%3Crect x='44' y='33' width='1' height='7' fill='%23472A18'/%3E%3Crect x='43' y='15' width='3' height='5' fill='%23472A18'/%3E%3Crect x='44' y='14' width='1' height='1' fill='%23472A18'/%3E%3Crect x='44' y='20' width='1' height='1' fill='%23472A18'/%3E%3Crect x='44' y='16' width='1' height='3' fill='%232B170D'/%3E%3Crect x='43' y='17' width='3' height='1' fill='%232B170D'/%3E%3Crect x='46' y='29' width='1' height='2' fill='%234A7535'/%3E%3Crect x='45' y='30' width='1' height='1' fill='%2378A854'/%3E%3C/svg%3E");
  border-image-slice: 8;
  border-image-width: 16px;
  border-image-repeat: round;
}

.post-composer-card > .pixel-modal__header {
  flex-shrink: 0;
  padding: 14px 18px 10px;
  margin-bottom: 0;
  background-color: var(--surface-card);
}

.post-composer-card > .billboard-create-form {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 18px 18px;
}

.billboard-create-form select.pixel-input {
  min-height: 38px;
  cursor: pointer;
}

.billboard-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

.billboard-post-meta strong {
  color: var(--accent-secondary);
}

.billboard-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 2px dashed var(--border-pixel);
  background-color: var(--bg-paper);
}

.billboard-admin-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billboard-post-body {
  margin-bottom: 16px;
}

.billboard-post-body p {
  margin: 0 0 12px;
  max-width: 64ch;
  font-size: 19px;
  line-height: 1.7;
}

.billboard-create-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field__label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.pixel-btn[hidden],
.comment-form[hidden],
.comment-archived-note[hidden],
.billboard-notice-banner[hidden] {
  display: none !important;
}

.billboard-notice-banner {
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 2px solid var(--border-pixel);
  background-color: var(--surface-card);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 2px 2px 0 var(--shadow-color);
}

.comment-archived-note {
  margin: 8px 0 0;
  padding: 9px 12px;
  border: 2px dashed var(--border-pixel);
  background-color: var(--surface-sidebar);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
}

.archive-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-item {
  border: 2px solid var(--border-pixel);
  background-color: var(--bg-paper);
}

.archive-item__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.archive-item__check {
  margin-top: 3px;
  flex-shrink: 0;
}

.archive-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.archive-item__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.05;
  color: var(--text-main);
}

.archive-item__meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

.archive-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* =========================================================
   Characters / OC Profiles (Ref/character profile.png)
   ========================================================= */

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 32px 26px;
  padding: 8px 4px 28px;
  justify-items: center;
}

.char-card {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.char-circle {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  padding: 7px;
  border: 3px solid var(--border-pixel);
  background-color: var(--surface-card);
  box-shadow: 5px 5px 0 var(--shadow-color);
  overflow: hidden;
  transition: transform 0.12s steps(2, end), box-shadow 0.12s steps(2, end), border-color 0.12s ease;
}

.char-card:hover .char-circle,
.char-card:focus-visible .char-circle {
  transform: translate(-2px, -3px);
  border-color: var(--accent-primary);
  box-shadow: 7px 8px 0 var(--shadow-color);
}

.char-circle__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--border-pixel);
  overflow: hidden;
  background-color: var(--bg-paper);
}

.char-circle__inner svg,
.char-circle__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.char-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.char-card:hover .char-card__name {
  color: var(--accent-primary);
}

.char-card__role {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

/* Character Detail Sheet */
.char-reader[hidden],
#char-grid-view[hidden] {
  display: none;
}

.char-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.char-nav-row__pager {
  display: flex;
  gap: 8px;
}

.char-sheet {
  max-width: 860px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.char-sheet__head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.char-sheet__portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.char-sheet__portrait {
  width: 168px;
  height: 168px;
}

.char-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.char-swatch {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-pixel);
  box-shadow: 2px 2px 0 var(--shadow-color);
}

.char-sheet__name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 0.98;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
}

.char-quote {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-left: 4px solid var(--accent-secondary);
  background-color: var(--bg-paper);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
}

.char-sheet__section {
  padding-top: 16px;
  border-top: 2px dashed var(--dashed-divider);
}

.char-sheet__section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--text-main);
}

.char-sheet__lore p {
  margin: 0 0 12px;
  max-width: 66ch;
  font-size: 19px;
  line-height: 1.7;
}

.char-sheet__lore p:last-child {
  margin-bottom: 0;
}

.char-rel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   Responsive Sub-page Adjustments
   ========================================================= */

@media (max-width: 1260px) {
  .blog-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-scenic-strip {
    display: none;
  }
}

@media (max-width: 900px) {
  .about-card--details,
  .about-card--alias {
    flex: 1 1 100%;
  }

  .gallery-collage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 90px;
  }

  .gallery-tile--wide {
    grid-column: span 4;
  }
}

@media (max-width: 640px) {
  .char-sheet__head {
    grid-template-columns: 1fr;
  }

  .signpost-mini-svg {
    width: 58px;
    height: 62px;
  }

  .signpost-tooltip {
    max-width: 195px;
    min-width: 148px;
  }

  .signpost-color-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-form-grid {
    grid-template-columns: 1fr;
  }

  .gallery-upload-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .post-composer-card {
    border-width: 12px;
    border-image-width: 12px;
  }

  .post-composer-card > .pixel-modal__header {
    padding: 12px 14px 10px;
  }

  .post-composer-card > .billboard-create-form {
    padding: 12px 14px 14px;
  }

  .about-profile {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .about-avatar {
    width: 96px;
    height: 96px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .blog-card,
  .blog-article,
  .comments-panel,
  .char-sheet {
    padding: 16px;
  }

  .blog-card__title-btn {
    font-size: 30px;
  }

  .gallery-collage {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-tile--tall,
  .gallery-tile--wide,
  .gallery-tile--square,
  .gallery-tile--portrait {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-tile--wide .gallery-frame {
    aspect-ratio: 16 / 9;
  }

  .gallery-tile--tall .gallery-frame,
  .gallery-tile--portrait .gallery-frame {
    aspect-ratio: 3 / 4;
  }

  .gallery-tile--square .gallery-frame {
    aspect-ratio: 1 / 1;
  }
}
