:root {
  --bg: #0b0b0d;
  --panel: #141418;
  --panel-2: #1b1b21;
  --line: #2a2a31;
  --text: #ecebe8;
  --muted: #9b9aa3;
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, .14);
  --gold: #e8b04b;
  --gold-soft: rgba(232, 176, 75, .14);
  --green: #2fbf8f;
  --radius: 14px;
  --serif: 'Shippori Mincho', 'Times New Roman', serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 500px at 50% -200px, rgba(229, 72, 77, .10), transparent 70%), var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.demo-bar { background: var(--gold); color: #1a1406; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px); background: rgba(11, 11, 13, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.kanji { font-family: var(--serif); font-size: 26px; color: var(--red); line-height: 1; }
#nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
#nav > a:not(.btn):not(.me) { padding: 6px 10px; border-radius: 8px; color: var(--muted); }
#nav > a:not(.btn):not(.me):hover { color: var(--text); background: var(--panel-2); }
.me { display: inline-flex; margin-left: 4px; }

main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 64px; flex: 1; }
.loading, .empty { color: var(--muted); text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.bad { color: var(--red); }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--red); color: #fff; font-weight: 600; cursor: pointer; transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: #f05a5f; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.sm { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: #3d3d46; background: var(--panel-2); }
.btn.gold { background: var(--gold); color: #1a1406; }
.btn.gold:hover { background: #f2c063; }
.btn.discord { background: #5865f2; color: #fff; border-color: transparent; }
.btn.discord:hover { background: #6a75f5; }
.btn.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.btn.danger { background: transparent; border-color: rgba(229, 72, 77, .5); color: var(--red); }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12.5px; padding: 0 4px; }
.link:hover { color: var(--red); }

/* hero */
.hero { text-align: center; padding: 28px 0 22px; }
.hero.small { padding: 64px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--gold); margin: 0 0 8px; font-weight: 600; }
.hero h1, .post h1, .editor h1, .rules h1, .profile h1 { font-family: var(--serif); font-weight: 800; letter-spacing: .2px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 52px); line-height: 1.12; margin: 0 auto 12px; max-width: 18ch; }
.red { color: var(--red); } .gold { color: var(--gold); }
.lead { color: var(--muted); max-width: 56ch; margin: 0 auto; font-size: 16px; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* tabs */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 18px; }
.tabs a { padding: 7px 14px; border-radius: 999px; color: var(--muted); border: 1px solid transparent; font-size: 14px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feed-head .tabs { margin: 8px 0; }

/* avatars + badges */
.av { border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-2); }
.av-ph { display: inline-grid; place-items: center; font-weight: 700; color: var(--muted); border: 1px solid var(--line); font-size: .8em; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.k-premarket { color: #8fb6ff; border-color: rgba(143, 182, 255, .35); background: rgba(143, 182, 255, .08); }
.k-journal { color: #c9a7ff; border-color: rgba(201, 167, 255, .35); background: rgba(201, 167, 255, .08); }
.k-trade { color: var(--red); border-color: rgba(229, 72, 77, .4); background: var(--red-soft); }
.badge.feat, .badge.elite { color: var(--gold); border-color: rgba(232, 176, 75, .45); background: var(--gold-soft); }

/* leaderboard */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin-bottom: 18px; }
.pod { position: relative; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px 18px; }
.pod .av { margin: 0 auto 10px; display: grid; }
.pod.gold { order: 2; padding-top: 34px; border-color: rgba(232, 176, 75, .55); background: linear-gradient(180deg, var(--gold-soft), var(--panel) 60%); }
.pod.silver { order: 1; } .pod.bronze { order: 3; }
.pod .rank { position: absolute; top: 10px; left: 12px; font-family: var(--serif); font-size: 22px; color: var(--muted); }
.pod.gold .rank { color: var(--gold); }
.pod .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pts { font-size: 26px; font-weight: 700; margin-top: 4px; }
.pod .pts small { font-size: 13px; color: var(--muted); font-weight: 500; }
.pod .meta, .board .meta { color: var(--muted); font-size: 13px; }
.board { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); counter-reset: r 3; overflow: hidden; }
.board li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); counter-increment: r; }
.board li:first-child { border-top: 0; }
.board li::before { content: counter(r); width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.board .name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .pts { font-weight: 700; font-variant-numeric: tabular-nums; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #3a3a43; transform: translateY(-1px); }
.card .cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card header .who { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-right: auto; }
.card time { color: var(--muted); font-size: 12.5px; }
.card h3 { margin: 2px 0 0; font-size: 16.5px; line-height: 1.35; }
.card .excerpt { margin: 0; color: var(--muted); font-size: 14px; }
.card .thumb { border-radius: 10px; border: 1px solid var(--line); max-height: 180px; object-fit: cover; width: 100%; }
.card footer { display: flex; gap: 14px; color: var(--muted); font-size: 13px; margin-top: auto; padding-top: 4px; }
.card footer .mine { color: var(--gold); }
.card.big { border-color: rgba(232, 176, 75, .45); background: linear-gradient(180deg, rgba(232, 176, 75, .07), var(--panel) 50%); }
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }

.trade-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.trade-line.big { font-size: 15px; margin-bottom: 10px; }
.dir { padding: 1px 8px; border-radius: 6px; font-weight: 600; font-size: .92em; }
.dir.long { color: var(--green); background: rgba(47, 191, 143, .12); }
.dir.short { color: var(--red); background: var(--red-soft); }
.r { font-weight: 700; font-variant-numeric: tabular-nums; }
.r.win { color: var(--green); } .r.loss { color: var(--red); }

/* post page */
.post, .comments, .editor, .rules { max-width: 760px; margin: 0 auto; }
.back { color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 14px; }
.post header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post header .who { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.post header .who > span:not(.av) { display: flex; flex-direction: column; line-height: 1.25; }
.post header small { color: var(--muted); font-size: 12.5px; }
.post h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin: 16px 0 10px; }
.post .body { font-size: 16px; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.shot { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-top: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 18px; margin: 28px 0 12px; }
.comments h2 small { color: var(--muted); font-weight: 500; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.comment > div { min-width: 0; flex: 1; }
.comment time { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.comment p { margin: 4px 0 0; overflow-wrap: anywhere; }
.comment-form { display: grid; gap: 10px; margin-top: 14px; justify-items: end; }

/* forms */
.editor { display: grid; gap: 14px; }
.editor h1 { margin: 0 0 4px; font-size: 30px; }
.editor label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.editor label small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #4a4a55; box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
textarea { resize: vertical; }
input[type=file] { padding: 8px; }
.kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kinds label { position: relative; cursor: pointer; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.kinds small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.kinds input:checked + span { border-color: var(--red); background: var(--red-soft); }
.kinds input:focus-visible + span { box-shadow: 0 0 0 3px rgba(229, 72, 77, .3); }
.trade-fields { display: none; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.editor.is-trade .trade-fields { display: grid; }
.row { display: flex; gap: 10px; }

/* profile + rules */
.profile { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.profile h1 { margin: 0 0 6px; font-size: 30px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stats { display: flex; gap: 16px; color: var(--muted); flex-wrap: wrap; margin-bottom: 10px; }
.stats b { color: var(--text); }
.rules table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.rules th, .rules td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); }
.rules th { color: var(--muted); font-weight: 600; font-size: 13px; border-top: 0; }
.rules td:nth-child(2) { font-weight: 700; color: var(--gold); white-space: nowrap; }
.rules .lead { margin: 0; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot a { text-decoration: underline; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 10px; transition: .2s; z-index: 50; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { border-color: rgba(229, 72, 77, .6); color: #ffb3b5; }

/* rank chip + nudge */
.rankchip { padding: 5px 10px !important; border-radius: 999px !important; background: var(--gold-soft) !important; color: var(--gold) !important; font-weight: 700; font-size: 13px; border: 1px solid rgba(232, 176, 75, .4); font-variant-numeric: tabular-nums; }
.nudge { margin: 0 auto 14px; max-width: 760px; text-align: center; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.nudge b { color: var(--text); }
.nudge.gold-n { border-color: rgba(232, 176, 75, .5); background: var(--gold-soft); }
.pod.you, .board li.you { outline: 2px solid rgba(229, 72, 77, .55); outline-offset: -2px; }
.board .name a:hover { text-decoration: underline; }
a.pod { display: block; color: inherit; }
a.pod[href]:hover { border-color: #3d3d46; }

/* champions */
.champs { margin-top: 22px; padding: 14px 16px; border: 1px solid rgba(232, 176, 75, .35); border-radius: var(--radius); background: linear-gradient(180deg, var(--gold-soft), transparent); }
.champs h2 { margin: 0 0 10px; font-size: 15px; color: var(--gold); }
.champs > div { display: flex; gap: 18px; flex-wrap: wrap; }
.champ { display: inline-flex; align-items: center; gap: 8px; }
.champ small { color: var(--muted); }

/* today checklist */
.today { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.today-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.today h2 { margin: 0; font-size: 16px; }
.today h2 small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.streak { font-size: 13.5px; color: var(--muted); }
.streak.on { color: #ffb36b; font-weight: 600; }
.chks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chk { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); transition: border-color .15s; }
.chk:hover { border-color: #3d3d46; }
.chk span:nth-child(2) { flex: 1; font-weight: 600; font-size: 14px; }
.chk small { color: var(--gold); font-weight: 600; white-space: nowrap; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3d3d46; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.chk.done { border-color: rgba(47, 191, 143, .45); background: rgba(47, 191, 143, .08); }
.chk.done .tick { background: var(--green); border-color: var(--green); color: #06140f; }
.chk.done small { color: var(--green); }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 16px; }
.filters input[type=search] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }

/* profile */
.profile { align-items: flex-start; }
.pinfo { flex: 1; min-width: 240px; }
.bio { margin: 6px 0 10px; max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--red-soft); color: #ff9da0; border: 1px solid rgba(229, 72, 77, .3); }
.chip.firm { background: var(--panel-2); color: var(--muted); border-color: var(--line); }
.trophies { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.trophy { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(232, 176, 75, .45); }
h2.sec { font-size: 18px; margin: 26px 0 12px; }

/* calendar */
.cals { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.cal-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13.5px; }
.cal-h small { color: var(--muted); }
.cal-g { display: grid; grid-template-columns: repeat(7, 18px); gap: 4px; }
.cal-w { font-size: 10px; color: var(--muted); text-align: center; }
.cal-d, .cal-e { width: 18px; height: 18px; border-radius: 4px; }
.cal-d { background: #22222a; display: inline-block; }
.cal-d.l1 { background: rgba(229, 72, 77, .38); }
.cal-d.l2 { background: rgba(229, 72, 77, .68); }
.cal-d.l3 { background: var(--red); }
.cal-d.we { opacity: .35; }
.cal-d.fu { background: transparent; border: 1px dashed #2c2c34; }
.cal-d.td { outline: 2px solid var(--gold); outline-offset: 1px; }
.cal-key { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-left: auto; }
.cal-key .cal-d { width: 12px; height: 12px; }

/* edit profile */
.pic-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pic-ctl { flex: 1; display: grid; gap: 8px; min-width: 220px; }
.editor label.inline { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.editor label.inline input { width: auto; }
.picks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picks legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 500; cursor: pointer; }
.pick input:checked + span { border-color: var(--red); background: var(--red-soft); color: #ffb3b5; }
.pick input:focus-visible + span { box-shadow: 0 0 0 3px rgba(229, 72, 77, .3); }

@media (max-width: 640px) {
  .chks { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .chk { padding: 8px 10px; }
  .top { flex-wrap: wrap; }
  .cals { gap: 18px; }
  .cal-key { margin-left: 0; }
  .brand em { display: none; }
  .podium { gap: 8px; }
  .pod { padding: 18px 6px 14px; }
  .pod .pts { font-size: 20px; }
  .pod .meta { display: none; }
  .kinds { grid-template-columns: 1fr; }
  .trade-fields { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  #nav > a:not(.btn):not(.me) { padding: 6px 6px; }
  #nav > .nav-lb { display: none; }
  .top { padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* picture uploads */
.shots-field { display: grid; gap: 8px; }
.shots-field .lbl { font-weight: 600; font-size: 14px; }
.shots-field .lbl small { color: var(--muted); font-weight: 400; }
.drop { position: relative; display: grid; place-items: center; text-align: center; padding: 22px 14px; border: 1.5px dashed #3a3a44; border-radius: 12px; background: var(--panel); color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.drop b { color: var(--text); }
.drop:hover, .drop.over { border-color: var(--red); background: var(--red-soft); }
.drop.full { display: none; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.previews:empty { display: none; }
.previews figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--panel-2); }
.previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.previews .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.previews .rm:hover { background: var(--red); }

/* start-here quests */
.quests { border: 1px solid rgba(232, 176, 75, .5); border-radius: var(--radius); padding: 16px; margin: 0 auto 18px; background: linear-gradient(180deg, var(--gold-soft), var(--panel) 70%); max-width: 1080px; }
.quests-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.quests h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.quests .eyebrow { margin-bottom: 4px; }
.qprog { color: var(--muted); font-size: 14px; }
.qprog b { color: var(--text); }
.qbar { height: 6px; border-radius: 99px; background: #26262e; margin: 12px 0; overflow: hidden; }
.qbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: inherit; transition: width .4s; }
.qlist { display: grid; gap: 6px; }
.quest { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); min-width: 0; }
.quest:hover { border-color: #3d3d46; }
.qtext { flex: 1; display: grid; min-width: 0; }
.qtext small { color: var(--muted); }
.qpts { color: var(--gold); font-weight: 700; white-space: nowrap; }
.quest.done { opacity: .6; }
.quest.done .tick { background: var(--green); border-color: var(--green); color: #06140f; }
.quest.done b { text-decoration: line-through; }
.k-intro { color: #ffcf7a; border-color: rgba(255, 207, 122, .35); background: rgba(255, 207, 122, .08); }
.rules h2 { font-size: 18px; margin: 24px 0 0; }

/* psychology journal */
.k-psych { color: #7fd1c1; border-color: rgba(127, 209, 193, .35); background: rgba(127, 209, 193, .08); }
.disc { padding: 1px 8px; border-radius: 6px; font-weight: 600; font-size: .92em; }
.disc.yes { color: var(--green); background: rgba(47, 191, 143, .12); }
.disc.partly { color: var(--gold); background: var(--gold-soft); }
.disc.no { color: var(--red); background: var(--red-soft); }
.mood { font-size: 1.05em; }
.emo { padding: 1px 8px; border-radius: 999px; font-size: .88em; border: 1px solid var(--line); color: var(--muted); }
.priv { padding: 1px 8px; border-radius: 6px; font-size: .88em; color: var(--muted); background: var(--panel-2); }
.psych-fields { display: none; gap: 12px; padding: 14px; border: 1px solid rgba(127, 209, 193, .3); border-radius: 12px; background: rgba(127, 209, 193, .04); }
.editor.is-psych .psych-fields { display: grid; }
.pf .lbl, .pf.two .lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.pf.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 500; }
.seg.moods span { font-size: 18px; padding: 4px 10px; }
.seg input:checked + span { border-color: #7fd1c1; background: rgba(127, 209, 193, .15); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(127, 209, 193, .3); }
.mind { margin-top: 18px; padding: 16px; border: 1px solid rgba(127, 209, 193, .3); border-radius: var(--radius); background: var(--panel); }
.mind h2 { margin: 0 0 12px; font-size: 17px; }
.mind h2 small { color: var(--muted); font-weight: 500; }
.mind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.mind-grid div { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; display: grid; }
.mind-grid b { font-size: 22px; font-variant-numeric: tabular-nums; }
.mind-grid span { color: var(--muted); font-size: 13px; }
.mind p { margin: 6px 0 0; }
@media (max-width: 640px) { .pf.two { grid-template-columns: 1fr; } .mind-grid { grid-template-columns: 1fr; } }
