body[data-page="discussion"] .topbar #loginButton { text-decoration: none; }
body[data-page="discussion"] .topbar a[aria-current="page"] {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: .28em;
}

.lf-talk {
  --talk-ink: #152f26;
  --talk-muted: #52645b;
  --talk-card: #fffdf7;
  --talk-line: #e6e0d1;
  --talk-panel: #f0f4eb;
  --talk-pine: #1b5642;
  --talk-action: #214f3e;
  --talk-action-ink: #faf9ef;
  --talk-yes: #327b60;
  --talk-no: #bb8949;
  --talk-earth: #eee0cd;
  --talk-earth-ink: #51391e;
  --talk-shadow: 0 14px 42px #23352a12;
  --talk-serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", Georgia, serif;
  margin: clamp(16px, 2.8vw, 32px) 0 52px;
  color: var(--talk-ink);
  font-size: 15px;
  line-height: 1.65;
}
[data-lf-theme="dark"] .lf-talk {
  --talk-ink: #f1ede1;
  --talk-muted: #bbc8c0;
  --talk-card: #192822;
  --talk-line: #374740;
  --talk-panel: #20342a;
  --talk-pine: #b4e0c9;
  --talk-action: #aed7bf;
  --talk-action-ink: #112c20;
  --talk-yes: #62af92;
  --talk-no: #d1a265;
  --talk-earth: #403125;
  --talk-earth-ink: #f6dec0;
  --talk-shadow: 0 14px 42px #0004;
}
.lf-talk :focus-visible { outline: 3px solid #c8954f; outline-offset: 3px; }
.lf-talk a { text-underline-offset: .25em; }
.lf-talk :is(button, input, textarea) { font: inherit; }
.lf-talk button:disabled { cursor: default; }
.lf-talk :is(h2, h3) { color: var(--talk-ink); letter-spacing: -.025em; }

.talk-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(315px, 33vw, 425px);
  padding: 38px clamp(26px, 6.2vw, 88px) 62px;
  overflow: hidden;
  border-radius: 28px;
  background: #10291f;
  color: #fbf1de;
}
.talk-hero::before, .talk-hero::after { content: ""; position: absolute; pointer-events: none; }
.talk-hero::before {
  z-index: -1;
  inset: 0 0 0 31%;
  background: linear-gradient(90deg, #10291f 0%, #10291f55 30%, transparent 62%),
    url("/images/discussion/larp-finder-discussion.webp") 78% 45% / cover no-repeat;
}
.talk-hero::after { inset: 11px; border: 1px solid #e1b88145; border-radius: 20px; z-index: -1; }
.talk-hero-copy { max-width: 580px; }
.talk-hero-copy .talk-hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #ebc58a;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .15em;
}
.talk-hero-label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.talk-hero h1 {
  margin: 0 0 10px;
  color: #fff5e6;
  font: 800 clamp(44px, 7.2vw, 90px)/1.09 var(--talk-serif);
  text-shadow: 0 4px 22px #061910b0;
}
.talk-hero-copy > p:last-of-type { margin: 0; color: #e9e4d7; font-size: clamp(14px, 1.7vw, 18px); }
.talk-hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 25px; }
.talk-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 43px;
  padding: 8px 15px;
  border: 1px solid #f0d3a1;
  border-radius: 999px;
  background: #f0d3a1;
  color: #183223;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.talk-hero-action:hover { background: #fce4bb; }

.talk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 292px);
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
  position: relative;
  margin: -29px clamp(10px, 2.1vw, 24px) 0;
}
.talk-main, .talk-sidebar { display: grid; gap: 18px; min-width: 0; }
.talk-card {
  min-width: 0;
  padding: clamp(19px, 3vw, 35px);
  border: 1px solid var(--talk-line);
  border-radius: 23px;
  background: var(--talk-card);
  box-shadow: var(--talk-shadow);
}
.talk-topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; color: var(--talk-muted); font-size: 12px; }
.talk-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--talk-panel); color: var(--talk-pine); font-weight: 800; }
.talk-state::before { content: ""; width: 6px; height: 6px; border-radius: 100%; background: currentColor; }
.talk-state.is-closed { background: var(--talk-earth); color: var(--talk-earth-ink); }
.lf-talk .talk-share {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid var(--talk-line);
  border-radius: 999px;
  background: var(--talk-card);
  color: var(--talk-pine);
  font-size: 12px;
  font-weight: 750;
}
.talk-share:hover, .talk-secondary:hover { text-decoration: underline; }
.talk-ballot h2 { margin: 16px 0 8px; font: 790 clamp(26px, 3.65vw, 46px)/1.27 var(--talk-serif); overflow-wrap: anywhere; }
.talk-context { margin: 0; color: var(--talk-muted); white-space: pre-line; overflow-wrap: anywhere; }
.talk-vote-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 22px 0 17px; }
.lf-talk .talk-vote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 65px;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--talk-action-ink);
  font-size: clamp(14px, 2.1vw, 19px);
  font-weight: 800;
  overflow-wrap: anywhere;
  transition: box-shadow .18s, transform .18s;
}
.talk-vote--yes { background: var(--talk-action); }
.lf-talk .talk-vote--no { background: var(--talk-earth); color: var(--talk-earth-ink); }
.talk-vote span { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border: 1px solid currentColor; border-radius: 50%; font-size: 15px; }
.talk-vote:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 12px #183b282c; }
.talk-vote:disabled:not([aria-pressed="true"]) { opacity: .68; }
.lf-talk .talk-vote[aria-pressed="true"] { border-color: #c99551; box-shadow: 0 0 0 2px #c9955135; }

.talk-results { margin-top: 17px; padding: 14px 16px 16px; border: 1px solid var(--talk-line); border-radius: 14px; background: var(--talk-panel); }
.talk-results-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; color: var(--talk-muted); font-size: 13px; }
.talk-results-heading strong { color: var(--talk-pine); }
.talk-result-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  color: var(--talk-ink);
  font-size: 13px;
  line-height: 1.2;
}
.talk-result-legend > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; overflow-wrap: anywhere; }
.talk-result-legend > span:last-child { justify-content: flex-end; text-align: right; }
.talk-result-legend strong { font-size: clamp(20px, 3vw, 30px); color: var(--talk-ink); font-variant-numeric: tabular-nums; }
.talk-result-legend i { align-self: center; display: inline-block; width: 8px; height: 8px; border-radius: 100%; }
.talk-yes-dot, #yesBar, .talk-yes-segment { background: var(--talk-yes); }
.talk-no-dot, #noBar, .talk-no-segment { background: var(--talk-no); }
.talk-result-track { display: flex; height: 16px; overflow: hidden; border-radius: 999px; background: var(--talk-line); }
.talk-result-track > div { width: 0; transition: width .4s ease; }
.talk-status { margin: 10px 0 0; color: var(--talk-pine); font-size: 13px; }
.talk-status:empty { margin: 0; }
.talk-status[data-error] { color: #a33e35; }
[data-lf-theme="dark"] .talk-status[data-error] { color: #ffb2a7; }

.talk-comments-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.talk-comments h2, .talk-empty h2 { margin: 0; font: 770 26px/1.32 var(--talk-serif); }
.talk-comments-heading > span { font-size: 13px; color: var(--talk-muted); }
.talk-gate, .talk-empty-comments { margin: 6px 0 0; color: var(--talk-muted); font-size: 14px; }
.talk-form { display: grid; gap: 11px; margin: 14px 0 8px; }
.talk-identity { display: flex; flex-wrap: wrap; align-items: end; column-gap: 12px; }
.talk-identity #nicknameLabel { flex: 1 1 170px; }
.talk-form label, .talk-share-fallback label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.talk-form .talk-check { display: flex; align-items: center; min-height: 41px; }
.talk-check input { width: 17px; height: 17px; accent-color: var(--talk-yes); }
.lf-talk :is(.talk-form input:not([type=checkbox]), .talk-form textarea, .talk-share-fallback input) {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--talk-line);
  border-radius: 9px;
  background: var(--talk-panel);
  color: var(--talk-ink);
}
.talk-form textarea { resize: vertical; }
.talk-share-fallback { margin-top: 10px; }
.talk-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--talk-muted); font-size: 12px; }
.lf-talk :is(.talk-submit, .talk-secondary) { padding: 8px 12px; border-radius: 9px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.talk-submit { background: var(--talk-action); color: var(--talk-action-ink); border: 1px solid var(--talk-action); }
.talk-submit:disabled { opacity: .65; }
.talk-secondary { background: var(--talk-card); color: var(--talk-pine); border: 1px solid var(--talk-line); }
.talk-comment-list { margin: 11px 0 0; padding: 0; list-style: none; }
.talk-comment-list li { padding: 13px 0; border-top: 1px solid var(--talk-line); }
.talk-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.talk-comment-meta strong { overflow-wrap: anywhere; }
.talk-member-badge { padding: 2px 7px; border-radius: 999px; background: var(--talk-earth); color: var(--talk-earth-ink); font-size: 11px; font-weight: 800; }
.talk-comment-meta time { margin-left: auto; color: var(--talk-muted); font-size: 11px; }
.talk-comment-list p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }


.talk-rewards {
  padding: 22px;
  border: 1px solid #526854;
  border-radius: 22px;
  background: radial-gradient(ellipse at 100% 0%, #3b604b, transparent 68%), #193e31;
  color: #ecf3ed;
  box-shadow: var(--talk-shadow);
}
.lf-talk .talk-rewards h2 { margin: 0; color: #fff7e9; font: 755 23px/1.35 var(--talk-serif); }
.talk-rewards h2 span { color: #efb28b; }
.talk-rewards p { color: #dce8de; font-size: 13px; margin: 7px 0; }
.talk-rewards table { width: 100%; border-collapse: collapse; margin: 11px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.talk-rewards :is(th, td) { padding: 8px 5px; text-align: center; border-bottom: 1px solid #cde1d13d; }
.talk-rewards th[scope=row] { text-align: left; padding-left: 8px; }
.talk-rewards tbody td { color: #ffe2ac; font-weight: 800; }
.talk-rewards .active-reward { background: #e2edcf22; }
.talk-rewards .talk-earned { color: #ffe2ac; font-weight: 750; }
.talk-rewards a { color: #ffe2ac; font-weight: 750; font-size: 13px; }

.talk-archive-link, .talk-archive-entry {
  display: grid;
  border-radius: 16px;
  border: 1px solid var(--talk-line);
  padding: 16px;
  background: var(--talk-card);
  color: var(--talk-ink);
  text-decoration: none;
  box-shadow: var(--talk-shadow);
}
.talk-archive-link { grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.talk-archive-link strong { display: block; font: 760 19px/1.3 var(--talk-serif); }
.talk-archive-link small { color: var(--talk-muted); }
.talk-archive-link > span:last-child { color: var(--talk-pine); }
.talk-archive-link:hover strong, .talk-archive-entry:hover h2 { text-decoration: underline; text-underline-offset: .22em; }
.talk-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 0;
  margin: -27px clamp(8px, 2vw, 24px) 0;
  position: relative;
  list-style: none;
}
.talk-archive-entry { gap: 7px; min-height: 100%; grid-template-rows: auto 1fr auto auto auto; }
.talk-archive-entry time, .talk-archive-count { color: var(--talk-muted); font-size: 12px; }
.talk-archive-entry h2 { margin: 0; font: 755 21px/1.35 var(--talk-serif); overflow-wrap: anywhere; }
.talk-archive-results, .talk-archive-count { display: flex; gap: 6px; justify-content: space-between; font-variant-numeric: tabular-nums; }
.talk-archive-results { font-size: 13px; }
.talk-archive-results span:last-child { text-align: right; }
.talk-archive-entry .talk-result-track { height: 10px; }
.talk-empty { position: relative; margin: -27px clamp(8px, 2vw, 24px) 0; }
.talk-empty p { margin: 8px 0 0; color: var(--talk-muted); }
.talk-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 16px clamp(8px, 2vw, 24px); font-size: 13px; color: var(--talk-muted); }
.talk-pagination a { color: var(--talk-pine); font-weight: 750; }

@media (max-width: 860px) {
  .talk-hero { min-height: 320px; }
  .talk-grid { grid-template-columns: minmax(0, 1fr); }
  .talk-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .talk-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .talk-hero { min-height: 285px; border-radius: 18px; padding: 28px 19px 40px; }
  .talk-hero::before { inset: 0 0 0 15%; opacity: .69; background-position: 78% 46%; }
  .talk-hero::after { inset: 6px; border-radius: 14px; }
  .talk-hero h1 { font-size: clamp(39px, 10vw, 54px); }
  .talk-hero-copy { max-width: 360px; }
  .talk-hero-actions { margin-top: 16px; }
  .talk-hero-action { min-height: 40px; padding-inline: 11px; }
  .talk-grid, .talk-archive-grid, .talk-empty { margin: -14px 6px 0; }
  .talk-main, .talk-sidebar { gap: 11px; }
  .talk-sidebar, .talk-archive-grid { grid-template-columns: minmax(0, 1fr); }
  .talk-card, .talk-rewards { border-radius: 15px; }
  .talk-vote-buttons { margin-top: 16px; }
  .lf-talk .talk-vote { min-height: 56px; gap: 6px; }
  .talk-vote span { width: 23px; height: 23px; }
  .talk-results { padding: 11px 12px 12px; }
  .lf-talk .talk-share { margin-left: 0; }
  .talk-form :is(input:not([type=checkbox]), textarea) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .talk-result-track > div, .lf-talk .talk-vote { transition: none; }
}
