/* Plateau #game — compose + prose + actions (classic & cockpit)
 * Fichier dédié : plus de <style> mid-page (ghost CSS classic @ego 14:36)
 */

/* ── Prose MD ── */
.entry .body.prose-game { line-height: 1.6rem; white-space: normal; }
.entry .body.prose-game p { margin: 0.35em 0; }
.entry .body.prose-game ul { list-style: disc; margin: 0; padding-left: 1.4rem; }
.entry .body.prose-game ol { list-style: decimal; margin: 0; padding-left: 1.4rem; }
.entry .body.prose-game li { margin: 0.15em 0; }
.entry .body.prose-game strong { font-weight: 600; }
.entry .body.prose-game code {
  font-size: 0.85em; padding: 0.1em 0.3em; border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
}
.entry .body.prose-game pre {
  overflow-x: auto; font-size: 0.8rem; padding: 0.5rem; border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.3);
}
.entry .body.prose-game pre code { background: transparent; padding: 0; }
.entry .body.prose-game a { text-decoration: underline; }
.entry .body.prose-game h1,
.entry .body.prose-game h2,
.entry .body.prose-game h3 { font-weight: 600; margin: 0.5em 0 0.25em; }

/* ── Header ligne post ── */
.entry .entry-name.entry-name-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.5rem; flex-wrap: wrap;
}
.entry .entry-name-left {
  display: flex; align-items: baseline; gap: 0.4rem; min-width: 0; flex-wrap: wrap;
}
.entry .kind-tag { opacity: 0.5; font-size: 0.7rem; }
.entry .entry-head-actions form { margin: 0; display: inline; }
/* Opt-in ygg — contraste fort (lien textuel illisible en classic/cockpit) */
.entry .entry-head-actions .ygg-pub-btn {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 0.25rem;
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.18);
  color: #fdba74;
}
.entry .entry-head-actions .ygg-pub-btn:hover {
  background: rgba(251, 146, 60, 0.32);
  color: #ffedd5;
}
.entry .entry-head-actions .ygg-pub-btn.is-live {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}
.entry .entry-head-actions .ygg-pub-btn.is-live:hover {
  background: rgba(52, 211, 153, 0.28);
  color: #d1fae5;
}
body.theme-classic .entry .entry-head-actions .ygg-pub-btn {
  border-color: #8b6914;
  background: rgba(180, 120, 40, 0.2);
  color: #5c3d0e;
}
body.theme-classic .entry .entry-head-actions .ygg-pub-btn:hover {
  background: rgba(180, 120, 40, 0.35);
  color: #2a1a08;
}
body.theme-classic .entry .entry-head-actions .ygg-pub-btn.is-live {
  border-color: #2d6a4f;
  background: rgba(45, 106, 79, 0.18);
  color: #1b4332;
}

/* ── Meta bas de post ── */
.entry .entry-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-top: 1.2rem; font-size: 0.8rem; opacity: 0.7;
}
.entry .entry-meta button {
  background: none; border: none; padding: 0; font: inherit;
  color: inherit; cursor: pointer; text-decoration: none; opacity: inherit;
}
.entry .entry-meta a { color: inherit; text-decoration: none; }

.log-sub { opacity: 0.7; font-size: 0.8rem; margin: 0.25rem 0 0; }
.entry .reply-box .row a.cancel-reply { font-size: 0.8rem; opacity: 0.65; }

/* ── Header actions (Répondre + ★) ── */
.entry .entry-head-actions {
  display: flex; gap: 0.65rem; align-items: center; flex-shrink: 0;
}
.entry .entry-head-actions a.reply-link {
  font-size: 0.8rem; opacity: 0.65; text-decoration: none; color: inherit; white-space: nowrap;
}
.entry .entry-head-actions a.reply-link:hover { opacity: 1; }
.entry .entry-head-actions button.star-btn {
  background: none; border: 0; cursor: pointer; font-size: 1.1rem; line-height: 1;
  opacity: 0.55; padding: 0; color: inherit;
}
.entry .entry-head-actions button.star-btn:hover { opacity: 1; }
.entry .entry-head-actions button.star-btn.on { opacity: 1; color: #fbbf24; }

/* ── Reply box ── */
.entry .reply-box {
  margin-top: 0.6rem; padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.entry .reply-hint {
  font-size: 0.75rem; opacity: 0.65; margin: 0 0 0.45rem; line-height: 1.35;
}
.entry .reply-box textarea {
  width: 100%; box-sizing: border-box; min-height: 3.5rem; padding: 0.5rem 0.65rem;
  border-radius: 0.35rem; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3); color: inherit; font: inherit; resize: vertical;
}
.entry .reply-box .row {
  display: flex; gap: 0.5rem; margin-top: 0.4rem; align-items: center; flex-wrap: wrap;
}
.entry .reply-box button[type="submit"] {
  padding: 0.35rem 0.85rem; border: 0; border-radius: 0.35rem;
  background: #b45309; color: #fff; font-weight: 600; cursor: pointer;
}

/* ── Compose = carte entry ── */
.entry-compose { margin: 0 0 1.1rem; }
.entry-compose .entry-name .compose-who {
  font-family: inherit; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.75rem;
}
.entry-compose .kind-tag {
  margin-left: 0.35rem; font-size: 0.65rem; letter-spacing: 0.06em;
  opacity: 0.55; text-transform: uppercase;
}
.entry-compose .compose-ta {
  display: block; width: 100%; box-sizing: border-box;
  min-height: 5.5rem; padding: 0.7rem 0.85rem;
  border-radius: 0.2rem; border: 1px solid transparent;
  font: inherit; font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.45;
  resize: vertical; color: inherit; background: rgba(0, 0, 0, 0.28);
}
.entry-compose .compose-ta:focus { outline: none; }
.entry-compose .compose-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1rem; margin-top: 0.75rem;
}
.entry-compose .compose-btn {
  cursor: pointer; border: 2px solid transparent;
  padding: 0.45rem 1.15rem; font: inherit; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem;
}
.entry-compose .compose-link {
  font-size: 0.72rem; letter-spacing: 0.06em; text-decoration: none; opacity: 0.7;
}
.entry-compose .compose-link:hover { opacity: 1; }
.entry-compose .compose-meta {
  margin-left: auto; font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.45;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* Classic */
body.theme-classic .entry-compose .entry-name .compose-who {
  font-family: Cinzel, serif; color: var(--accent2, #ffd978);
}
body.theme-classic .entry-compose .compose-ta {
  border-color: var(--frame, #6b4e24); background: rgba(10, 8, 6, 0.45);
  color: var(--ink, #f3e6c8);
}
body.theme-classic .entry-compose .compose-ta:focus {
  border-color: var(--accent, #e0b44a); box-shadow: 0 0 0 1px var(--accent-dim, #a07828);
}
body.theme-classic .entry-compose .compose-ta::placeholder { color: var(--ink-mute, #7a664a); }
body.theme-classic .entry-compose .compose-btn {
  font-family: Cinzel, serif;
  background: linear-gradient(180deg, var(--accent2, #ffd978), var(--accent, #e0b44a));
  color: #1a120c; border-color: var(--accent-dim, #a07828);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
body.theme-classic .entry-compose .compose-btn:hover { filter: brightness(1.06); }
body.theme-classic .entry-compose .compose-btn:active {
  transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
body.theme-classic .entry-compose .compose-link {
  font-family: Cinzel, serif; color: var(--ink-dim, #b9a07a);
}
body.theme-classic .entry-compose .compose-meta {
  font-family: Cinzel, serif; color: var(--ink-mute, #7a664a);
}
body.theme-classic .entry .reply-box button[type="submit"] {
  font-family: Cinzel, serif; background: var(--accent, #e0b44a); color: #1a120c;
}

/* Cockpit */
body.theme-cockpit .entry-compose .entry-name .compose-who {
  font-family: var(--font-ui, Orbitron, system-ui, sans-serif); color: var(--ck-bright, #b8d030);
}
body.theme-cockpit .entry-compose .compose-ta {
  border-color: var(--ck-line, #4a5c18); background: rgba(0, 0, 0, 0.45);
  color: var(--ck-text, #eaf2c8);
  font-family: var(--font-body, "DM Sans", system-ui, sans-serif);
}
body.theme-cockpit .entry-compose .compose-ta:focus {
  border-color: var(--ck-accent, #a8c820); box-shadow: 0 0 10px rgba(168, 200, 32, 0.2);
}
body.theme-cockpit .entry-compose .compose-ta::placeholder { color: var(--ck-dim, #7a9830); }
body.theme-cockpit .entry-compose .compose-btn {
  font-family: var(--font-ui, Orbitron, system-ui, sans-serif);
  background: rgba(168, 200, 32, 0.15); color: var(--ck-bright, #b8d030);
  border: 1px solid var(--ck-accent, #a8c820);
  text-shadow: 0 0 8px rgba(184, 208, 48, 0.35);
}
body.theme-cockpit .entry-compose .compose-btn:hover {
  background: rgba(168, 200, 32, 0.28); box-shadow: 0 0 12px rgba(168, 200, 32, 0.25);
}
body.theme-cockpit .entry-compose .compose-link {
  font-family: var(--font-ui, Orbitron, system-ui, sans-serif);
  color: var(--ck-dim, #7a9830); letter-spacing: 0.08em;
}
body.theme-cockpit .entry-compose .compose-meta {
  font-family: var(--font-ui, Orbitron, system-ui, sans-serif); color: var(--ck-dim, #7a9830);
}
body.theme-cockpit .entry .reply-box button[type="submit"] {
  font-family: var(--font-ui, Orbitron, system-ui, sans-serif);
  background: rgba(168, 200, 32, 0.2); color: var(--ck-bright, #b8d030);
  border: 1px solid var(--ck-accent, #a8c820);
}


/* classic feed body inherits Source Serif 4 via --font-body */
body.theme-classic .feed-body,
body.theme-classic .post-body,
body.theme-classic .entry-body .body{
  font-family: var(--font-body, "Source Serif 4", Georgia, serif);
}
