/* Area soci — si appoggia a style.css */
.area .nav { position: sticky; }
.brand__stack { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand__sub { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--accent); }
.who { display: flex; align-items: center; gap: 12px; }
.who__avatar { width: 34px; height: 34px; border-radius: 50%; background: #3a4231; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.who__name { font-size: 14px; color: var(--fg-2); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-top: 1px solid var(--line); }
.tabs a { padding: 12px 14px; min-height: 46px; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 15px; }
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 6px; border-radius: 10px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 600; text-align: center; }

.app { padding-top: 40px; padding-bottom: 90px; min-height: 70vh; display: flex; flex-direction: column; gap: 28px; }
.app h1 { margin: 0; font-family: var(--lc); font-weight: 400; font-size: 56px; line-height: .95; text-transform: uppercase; }
.app h1.plain { font-family: var(--display); font-weight: 800; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head > div { display: flex; flex-direction: column; gap: 12px; }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 3px; color: var(--muted); }
.lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inp, .sel { background: var(--field); border: 1px solid var(--line-2); border-radius: 3px; color: var(--fg); padding: 12px 14px; font: 16px var(--body); width: 100%; min-width: 0; }
textarea.inp { resize: vertical; }
.chip { flex-shrink: 0; white-space: nowrap; border-radius: 3px; padding: 9px 12px; font: 14px var(--body); cursor: pointer; min-height: 40px; background: var(--panel); color: var(--fg-2); border: 1px solid var(--line-2); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--muted); font: 13px var(--body); text-decoration: underline; cursor: pointer; }
.linkbtn--warn { color: var(--warn); }
.msg { font-size: 14px; }
.msg--err { color: var(--warn); }
.msg--ok { color: #b9d49a; }
.empty { border: 1px dashed var(--line-2); border-radius: 4px; padding: 40px 24px; text-align: center; color: var(--muted); }

/* Accesso */
.auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.auth__art { position: relative; overflow: hidden; background: var(--bg-2); padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-height: 520px; }
.auth__art .wm { left: -120px; right: auto; top: auto; bottom: -160px; width: 600px; height: 600px; opacity: .06; }
.auth__art img.logo { width: 130px; height: 130px; position: relative; }
.auth__art h1 { position: relative; font-size: 64px; }
.auth__art p { position: relative; margin: 0; max-width: 380px; color: var(--fg-2); }
.auth__form { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth__form h2 { margin: 0; font-family: var(--lc); font-weight: 400; font-size: 42px; text-transform: uppercase; }
.auth__switch { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--fg-2); }

/* Bacheca */
.feed { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.cats { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 2px; }
.cats button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-left: 2px solid transparent; color: var(--muted); padding: 11px 12px; font: 15px var(--body); cursor: pointer; }
.cats button[aria-pressed="true"] { background: #1f2319; border-left-color: var(--accent); color: var(--fg); font-weight: 600; }
.posts { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.post { text-align: left; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; color: var(--fg); font-family: inherit; cursor: pointer; text-decoration: none; }
.post:hover { border-color: var(--line-3); color: var(--fg); }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.tag { border: 1px solid #6b5f3f; color: var(--brass); padding: 1px 6px; border-radius: 2px; }
.tag--hot { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.post__title { font-size: 19px; font-weight: 600; line-height: 1.35; }
.post__excerpt { font-size: 15px; color: var(--fg-3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread { max-width: 780px; display: flex; flex-direction: column; gap: 24px; }
.thread__body { font-size: 17px; line-height: 1.75; color: #d8d2c0; white-space: pre-line; border-top: 1px solid var(--line); padding-top: 22px; overflow-wrap: anywhere; }
.reply { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.reply p { margin: 0; white-space: pre-line; color: var(--fg-2); line-height: 1.6; overflow-wrap: anywhere; }

/* Dossier: figurine */
.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.fig { display: block; text-decoration: none; transition: transform .2s ease; }
.fig:hover { transform: translateY(-4px); }
.fig__frame { aspect-ratio: 5 / 7; border-radius: 10px; padding: 7px; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.fig__inner { height: 100%; border-radius: 6px; background: #171a13; display: flex; flex-direction: column; overflow: hidden; }
.fig__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.fig__grade { color: var(--bg); padding: 3px 7px; border-radius: 2px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig__photo { position: relative; flex-grow: 1; margin: 0 10px; border-radius: 3px; overflow: hidden; background: #222a1a; }
.fig__photo img.ph { position: absolute; right: -18%; top: -10%; width: 80%; opacity: .08; }
.fig__photo img.pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fig__photo svg { position: absolute; left: 15%; bottom: 0; width: 70%; height: 70%; }
.fig__text { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fig__nick { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fig__name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fig__foot { display: flex; justify-content: space-between; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.fig__foot b { color: var(--accent); }

.member { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.member__side { display: flex; flex-direction: column; gap: 16px; }
.member__main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.member h1 { font-family: var(--display); font-weight: 800; font-size: 60px; overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--fg-3); }
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.stat b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.sec { display: flex; flex-direction: column; gap: 6px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sec__head h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.entry { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.entry__date { width: 92px; flex-shrink: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.entry__text { flex-grow: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.entry__text strong { font-weight: 600; }
.entry__text span { font-size: 14px; color: var(--fg-3); }
.entry__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; font-weight: 600; white-space: nowrap; color: var(--brass); }
.entry__tag.warn { color: var(--warn); }
details.more summary { cursor: pointer; color: var(--fg-2); padding: 8px 0; }
.nfc code { display: block; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; background: var(--field); border: 1px solid var(--line); padding: 10px; border-radius: 3px; user-select: all; }
.photo-pick { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; }
.photo-pick img, .photo-pick .phbox { width: 110px; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 4px; border: 1px dashed var(--line-3); background: var(--field); }

/* Iscrizioni */
.users { display: flex; flex-direction: column; gap: 12px; }
.user { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.user__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.user__who strong { font-size: 16px; }
.user__who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.user__set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.user__act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.leg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.legrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.legrow span:first-of-type { flex-grow: 1; }
.dotc { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }

@media (max-width: 899px) {
  .app { padding-top: 28px; }
  .app h1 { font-size: 42px; }
  .auth { grid-template-columns: minmax(0, 1fr); border: 0; }
  .auth__art { display: none; }
  .auth__form { padding: 8px 0; }
  .feed { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cats { position: static; flex-direction: row; overflow-x: auto; gap: 6px; }
  .cats button { width: auto; border: 1px solid var(--line-2); border-radius: 3px; white-space: nowrap; }
  .cats button span:last-child { display: none; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fig__nick { font-size: 19px; }
  .member { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .member__side .fig { max-width: 260px; }
  .member h1 { font-size: 42px; }
  .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .leg, .user__set { grid-template-columns: minmax(0, 1fr); }
  .user { grid-template-columns: minmax(0, 1fr); }
  .user__act { justify-content: stretch; }
  .user__act .btn { flex: 1 1 auto; }
  .who__name { display: none; }
}
