/* ── Reset & Variables ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #1a1a2e;
  --surface:     #16213e;
  --surface2:    #0f3460;
  --accent:      #e94560;
  --accent2:     #53d8fb;
  --text:        #e0e0e0;
  --text-dim:    #8892a4;
  --border:      #2a3a5c;
  --radius:      6px;
  --font-mono:   'Courier New', Courier, monospace;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 2px solid var(--surface2);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent2);
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

nav { display: flex; gap: 0.25rem; overflow-x: auto; min-width: 0; }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
nav a:hover { background: var(--surface2); color: var(--text); }
nav a.active { background: var(--accent); color: #fff; }

/* ── Auth area ───────────────────────────────────────────────────────────── */
.auth-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.login-btn {
  background: #4285f4;
  color: #fff;
}
.login-btn:hover { background: #2a6fdb; }

.logout-btn {
  background: var(--surface2);
  color: var(--text-dim);
}
.logout-btn:hover { background: var(--surface2); color: var(--text); }

.lang-select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 0.25rem 0.4rem; font-size: 0.8rem; cursor: pointer; margin-left: 0.5rem; }
.lang-select:focus { outline: none; border-color: var(--accent2); }

.auth-name {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-lg {
  width: 48px;
  height: 48px;
}

/* ── Ads ─────────────────────────────────────────────────────────────────── */
.ad-container {
  width: 100%;
  max-width: 970px;
  margin: 0.75rem auto;
  text-align: center;
}

/* ── Banners ─────────────────────────────────────────────────────────────── */
.solstice-banner {
  width: 100%;
  background: linear-gradient(90deg, #0a0e1a 0%, #1a2a4a 40%, #0a0e1a 100%);
  color: #c8d8f0;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #2a3f6f;
}

.chess-day-banner {
  width: 100%;
  background: linear-gradient(90deg, #1a120a 0%, #3d2a0a 30%, #5c3e0a 50%, #3d2a0a 70%, #1a120a 100%);
  color: #f5e0a0;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #7a5a10;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
main { flex: 1; padding: 1rem 0.5rem; }

footer {
  text-align: center;
  padding: 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--surface2);
}
footer a { color: var(--accent2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Leaderboard / content wrapper ──────────────────────────────────────── */
.lb-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lb-wrapper a { color: var(--accent2); text-decoration: none; }
.lb-wrapper a:hover { text-decoration: underline; }

.lb-title {
  font-size: 2rem;
  text-align: center;
  color: var(--accent2);
  letter-spacing: 1px;
}

.lb-table-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--surface2);
  overflow-x: auto;
}

.lb-table, .help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.lb-table thead tr, .help-table thead tr { background: var(--surface2); }
.lb-table th, .help-table th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lb-table td, .help-table td {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--surface2);
  color: var(--text);
}
.lb-table .top-1 td { color: #FFD700; }
.lb-table .top-2 td { color: #C0C0C0; }
.lb-table .top-3 td { color: #CD7F32; }
.lb-table .top-1, .lb-table .top-2, .lb-table .top-3 { background: rgba(255,255,255,0.03); }

.lb-rank { font-size: 1.1rem; width: 2.5rem; }
.lb-name { font-weight: 600; }
.lb-date { font-size: 0.85rem; color: var(--text-dim); }
.lb-stat { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-dim); text-align: right; }

.lb-back {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.lb-back a {
  color: var(--accent2);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--surface2);
  transition: background 0.15s;
}
.lb-back a:hover { background: var(--surface2); }

/* ── Help sections ───────────────────────────────────────────────────────── */
.help-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.help-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 0.25rem;
}
.help-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.5rem;
}
.help-section p { line-height: 1.7; }
.help-section ul, .help-section ol { padding-left: 1.4rem; }
.help-section li { margin-bottom: 0.35rem; line-height: 1.6; }
.help-section a { color: var(--accent2); text-decoration: underline; }
.help-section em { color: var(--text-dim); }

/* ── Admin dashboard ─────────────────────────────────────────────────────── */
.admin-section {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.admin-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent2);
  margin: 0 0 0.75rem;
  letter-spacing: 0.5px;
}
.admin-total td { border-top: 1px solid var(--surface2); }

.admin-comments-table { width: 100%; table-layout: auto; }
.admin-comment-body-cell {
  max-width: 340px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
}

.admin-btn {
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin: 0.15rem 0.1rem;
}
.admin-btn-approve { background: rgba(46,125,50,0.25); color: #81c784; }
.admin-btn-approve:hover { background: rgba(46,125,50,0.45); }
.admin-btn-delete  { background: rgba(198,40,40,0.2);  color: #e57373; }
.admin-btn-delete:hover  { background: rgba(198,40,40,0.4); }

/* ── Admin Kanban Board ──────────────────────────────────────────────────── */
.kanban-board {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
}
.kanban-col {
  flex: 0 0 220px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem 0.6rem;
  border-bottom: 1px solid var(--border);
}
.kanban-col-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.kanban-col-count {
  background: var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 0.5rem;
  line-height: 1.6;
  min-width: 1.4rem;
  text-align: center;
}
.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
}
.kanban-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: box-shadow 0.15s;
}
.kanban-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.kanban-card-active { border-left: 3px solid var(--accent2); }
.kanban-card-review { border-left: 3px solid #7ec8e3; }
.kanban-card-done   { opacity: 0.55; }

.kanban-id {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  width: fit-content;
}
.kanban-id-f { background: rgba(100,160,255,0.15); color: #7eb8f7; }
.kanban-id-b { background: rgba(255,100,100,0.15); color: #f77e7e; }
.kanban-id-d { background: rgba(100,220,150,0.15); color: #7eeaaa; }

.kanban-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
}
.kanban-assignee {
  font-size: 0.75rem;
  color: var(--accent2);
  margin-top: 0.1rem;
}
.kanban-empty {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  padding: 0.75rem 0;
  font-style: italic;
}

/* ── Coming Soon page ────────────────────────────────────────────────────── */
.coming-soon-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Sign-in section at top */
.coming-soon-signin {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.coming-soon-signin-msg {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}
.coming-soon-signin-greeting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text);
}

/* Google Sign-In button */
.google-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #4285f4;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}
.google-signin-btn:hover { background: #2a6fdb; }

.google-g {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  background: #fff;
  color: #4285f4;
  width: 1.5em;
  height: 1.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

/* Hero */
.coming-soon-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.coming-soon-piece {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(83,216,251,0.4));
}
.coming-soon-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent2);
  letter-spacing: 1px;
}
.coming-soon-tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 480px;
}
.coming-soon-tagline strong { color: var(--text); }

/* Feature cards */
.coming-soon-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  width: 100%;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  border-color: var(--accent2);
  box-shadow: 0 2px 12px rgba(83,216,251,0.1);
}
.feature-icon { font-size: 2rem; }
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent2);
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.coming-soon-footer-links {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.coming-soon-footer-links a { color: var(--accent2); text-decoration: none; }
.coming-soon-footer-links a:hover { text-decoration: underline; }

/* ── Blog ────────────────────────────────────────────────────────────────── */
.blog-wrapper {
  max-width: 740px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}
.blog-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.blog-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.blog-subtitle {
  color: var(--text-dim);
  margin: 0;
}
.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-card:hover {
  border-color: var(--accent2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.blog-card-link {
  display: block;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
}
.blog-card-meta { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.blog-card-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--text); }
.blog-card-excerpt { font-size: 0.95rem; color: var(--text-dim); margin: 0 0 0.75rem; line-height: 1.55; }
.blog-card-read-more { font-size: 0.85rem; color: var(--accent2); font-weight: 600; }
.blog-empty { color: var(--text-dim); }

.blog-breadcrumb { font-size: 0.85rem; margin-bottom: 1.5rem; }
.blog-breadcrumb a { color: var(--accent2); text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.blog-article-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 0 0 0.5rem; }
.blog-article-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.blog-article-date { font-size: 0.85rem; color: var(--text-dim); }
.blog-article-byline { font-size: 0.85rem; color: var(--text-dim); }
.blog-author-link { color: var(--accent2); text-decoration: none; }
.blog-author-link:hover { text-decoration: underline; }

.blog-article-picture { display: block; width: 100%; max-width: 520px; margin: 0 auto 1.5rem; }
.blog-article-image { width: 100%; height: auto; border-radius: 6px; display: block; }

.blog-article-body { font-size: 1rem; line-height: 1.7; color: var(--text); }
.blog-article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.6rem; color: var(--text); }
.blog-article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.blog-article-body p { margin: 0 0 1rem; }
.blog-article-body ul, .blog-article-body ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.blog-article-body li { margin-bottom: 0.35rem; }
.blog-article-body a { color: var(--accent2); text-decoration: underline; }
.blog-article-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.blog-article-body em { color: var(--text-dim); }
.blog-article-body strong { color: var(--text); }
.blog-article-body code { background: var(--surface); border-radius: 4px; padding: 0.1em 0.35em; font-size: 0.9em; }
.blog-article-body blockquote { border-left: 3px solid var(--accent2); margin: 1rem 0; padding: 0.5rem 1rem; color: var(--text-dim); }

.blog-post-nav { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.blog-post-nav-link { color: var(--accent2); text-decoration: none; }
.blog-post-nav-link:hover { text-decoration: underline; }

/* ── Blog Comments ─────────────────────────────────────────────────────────── */
.blog-comments { max-width: 720px; margin: 2.5rem auto 0; padding: 0 1rem; }
.blog-comments-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.blog-comments-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.blog-comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.blog-comment-meta { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.blog-comment-author { font-size: 0.9rem; color: var(--text); }
.blog-comment-date { font-size: 0.78rem; color: var(--text-dim); }
.blog-comment-body { font-size: 0.9rem; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.blog-comments-empty { color: var(--text-dim); font-style: italic; margin-bottom: 1.5rem; }

.blog-comment-form-wrap { margin-top: 1.5rem; }
.blog-comment-form-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.blog-comment-form { display: flex; flex-direction: column; gap: 0.75rem; }
.blog-comment-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 100px;
}
.blog-comment-textarea:focus { outline: 2px solid var(--accent2); border-color: var(--accent2); }
.blog-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-comment-as { font-size: 0.85rem; color: var(--text-dim); }
.blog-comment-submit {
  padding: 0.45rem 1.2rem;
  background: var(--accent2);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s;
}
.blog-comment-submit:hover { opacity: 0.85; }
.blog-comment-submit:disabled { opacity: 0.5; cursor: default; }
.blog-comment-msg {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.blog-comment-msg-ok  { background: rgba(46,125,50,0.18); color: #81c784; }
.blog-comment-msg-err { background: rgba(198,40,40,0.18);  color: #e57373; }

.blog-comments-login-prompt {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.blog-login-link { color: var(--accent2); text-decoration: none; font-weight: 600; }
.blog-login-link:hover { text-decoration: underline; }

/* ── FICS Terminal ────────────────────────────────────────────────────────── */
.fics-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
}

.fics-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  flex-shrink: 0;
}

.fics-panel-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fics-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-dim);
}
.fics-dot-connecting    { background: #f9a825; animation: fics-pulse 1s infinite; }
.fics-dot-connected     { background: #43a047; }
.fics-dot-disconnected  { background: var(--text-dim); }
.fics-dot-error         { background: #e53935; }

@keyframes fics-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.fics-status-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  min-width: 5rem;
}

.fics-creds {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.fics-input {
  background: var(--bg);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.3rem 0.6rem;
  font-size: 0.88rem;
  font-family: inherit;
  min-width: 0;
}
.fics-input:focus { outline: 2px solid var(--accent2); border-color: var(--accent2); }
.fics-input::placeholder { color: var(--text-dim); }

.fics-btn {
  padding: 0.3rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.fics-btn:hover  { opacity: 0.85; }
.fics-btn:disabled { opacity: 0.45; cursor: default; }
.fics-btn-connect    { background: var(--accent2); color: #000; }
.fics-btn-disconnect { background: #c62828; color: #fff; }
.fics-btn-send       { background: var(--accent); color: #000; }

.fics-terminal {
  flex: 1;
  overflow-y: auto;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #d4d4d4;
  white-space: pre-wrap;
  word-break: break-word;
}

.fics-line { display: block; }
.fics-info  { color: #90caf9; }
.fics-echo  { color: #a5d6a7; }
.fics-error { color: #ef9a9a; }

.fics-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
}

.fics-prompt {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  color: #a5d6a7;
  flex-shrink: 0;
}

.fics-cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  min-width: 0;
}
.fics-cmd-input::placeholder { color: var(--text-dim); }
.fics-cmd-input:disabled { opacity: 0.5; }

/* ── Admin Analysis ─────────────────────────────────────────────────────── */
.analysis-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1rem;
}
.analysis-sidebar {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.analysis-doc-link {
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: capitalize;
  transition: background 0.12s, color 0.12s;
}
.analysis-doc-link:hover { background: var(--surface2); color: var(--text); }
.analysis-doc-active { background: var(--surface2); color: var(--accent2); font-weight: 600; }
.analysis-content {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}
.analysis-empty { color: var(--text-dim); font-style: italic; font-size: 0.9rem; }
.analysis-iframe { width: 100%; min-height: 70vh; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.analysis-sheet-title { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--text); }
.analysis-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.analysis-table { border-collapse: collapse; font-size: 0.85rem; width: 100%; }
.analysis-table th { background: var(--surface2); color: var(--text); font-weight: 600; text-align: left; padding: 0.45rem 0.75rem; border: 1px solid var(--border); white-space: nowrap; }
.analysis-table td { padding: 0.4rem 0.75rem; border: 1px solid var(--border); color: var(--text); vertical-align: top; }
.analysis-table tr:nth-child(even) td { background: var(--surface); }

/* ── Puzzles hub ────────────────────────────────────────────────────────── */
.puzzle-grid { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; margin-bottom: 2rem; }
.puzzle-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  width: 220px; padding: 1.75rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.puzzle-card:hover { border-color: var(--accent2); transform: translateY(-2px); }
.puzzle-card-icon  { font-size: 3rem; line-height: 1; }
.puzzle-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.puzzle-card-desc  { font-size: 0.85rem; color: var(--text-dim); text-align: center; line-height: 1.5; }

/* ── Knight's Tour ───────────────────────────────────────────────────────── */
.kt-page { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.kt-header { margin-bottom: 1.25rem; }
.kt-title-row { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.kt-title { font-size: 1.75rem; font-weight: 800; margin: 0; color: var(--text); }
.kt-back-link { font-size: 0.85rem; color: var(--accent2); text-decoration: none; }
.kt-back-link:hover { text-decoration: underline; }
.kt-description { color: var(--text-dim); font-size: 0.9rem; margin: 0; max-width: 600px; }

.kt-controls {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: 0.75rem 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 1.25rem;
}
.kt-control-group { display: flex; align-items: center; gap: 0.5rem; }
.kt-label { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.kt-timer { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); min-width: 6ch; }
.kt-moves { font-size: 1rem; font-weight: 600; color: var(--text); min-width: 7ch; }
.kt-select {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 0.3rem 0.6rem;
  font-size: 0.9rem; cursor: pointer;
}

.kt-main { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.kt-board-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.kt-board {
  display: grid;
  width: min(480px, 90vw);
  border: 3px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.kt-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: clamp(0.8rem, 3.5vw, 1.6rem);
  transition: filter 0.1s;
  user-select: none;
  position: relative;
}
.kt-cell:hover { filter: brightness(1.15); }

/* Board colours */
.kt-light { background: #f0d9b5; }
.kt-dark  { background: #b58863; }

/* Visited */
.kt-visited.kt-light { background: #6baed6; }
.kt-visited.kt-dark  { background: #3182bd; }

/* Current knight */
.kt-knight { background: var(--accent2) !important; color: #000 !important; font-size: clamp(1rem, 4.5vw, 2rem) !important; }

/* Valid move highlight */
.kt-valid.kt-light { background: #74c476; color: rgba(0,0,0,0.35); }
.kt-valid.kt-dark  { background: #41ab5d; color: rgba(0,0,0,0.35); }

.kt-status { font-size: 0.85rem; color: var(--text-dim); text-align: center; margin: 0; min-height: 1.2em; }

.kt-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.25rem; }
.kt-legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-dim); }
.kt-legend-swatch { width: 20px; height: 20px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.kt-legend-knight  { background: var(--accent2); color: #000; }
.kt-legend-valid   { background: #74c476; }
.kt-legend-visited { background: #6baed6; }

/* Leaderboard */
.kt-lb-section { flex: 1; min-width: 260px; }
.kt-lb-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }

/* Modals */
.kt-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 1rem;
}
.kt-modal {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem 2.5rem; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.kt-modal-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem; }
.kt-modal-body  { font-size: 0.95rem; line-height: 1.6; color: var(--text); margin-bottom: 0.5rem; }
.kt-modal-body p { margin: 0.4rem 0; }

.kt-score-form  { display: flex; gap: 0.5rem; margin: 1rem 0; }
.kt-name-input  {
  flex: 1; background: var(--surface); border: 1px solid var(--surface2);
  border-radius: 6px; color: var(--text); padding: 0.5rem 0.75rem;
  font-size: 0.95rem; font-family: inherit;
}
.kt-name-input:focus { outline: 2px solid var(--accent2); border-color: var(--accent2); }
.kt-score-note  { font-size: 0.8rem; color: var(--text-dim); margin: 0; }
.kt-score-note a { color: var(--accent2); text-decoration: none; }

.kt-btn {
  padding: 0.5rem 1.1rem; border: none; border-radius: 6px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: opacity 0.15s;
}
.kt-btn:hover   { opacity: 0.85; }
.kt-btn:disabled { opacity: 0.5; cursor: default; }
.kt-btn-reset   { background: var(--surface2); color: var(--text); }
.kt-btn-submit  { background: var(--accent2); color: #000; white-space: nowrap; }

/* ── Links page ─────────────────────────────────────────────────────────── */
.links-section { margin-bottom: 2rem; }
.links-section-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--border); }
.links-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.links-item { font-size: 0.95rem; }
.links-link { color: var(--accent2); text-decoration: none; font-weight: 600; }
.links-link:hover { text-decoration: underline; }
.links-desc { color: var(--text-dim); }

/* ── Kriegspiel ──────────────────────────────────────────────────────────── */

/* Page / Layout */
.ks-page { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.ks-layout { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.ks-board-section { flex: 0 0 auto; min-width: 0; }
.ks-panel { flex: 1 1 280px; min-width: 260px; display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* Top bar */
.ks-topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.ks-topbar-left  { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ks-topbar-right { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ks-game-info { font-size: 0.9rem; color: var(--text-dim); }
.ks-game-id-label { font-size: 0.8rem; color: var(--text-dim); }
.ks-game-id { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent2); background: var(--surface); padding: 0.15rem 0.4rem; border-radius: 3px; }
.ks-spectator-badge { background: var(--surface2); color: var(--text-dim); font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: var(--radius); }

/* Clock bar */
.ks-clock-bar { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
.ks-clock-white,
.ks-clock-black { display: flex; flex-direction: column; align-items: center; padding: 0.4rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 80px; transition: background 0.2s; }
.ks-clock-active { background: var(--surface2) !important; border-color: var(--accent2) !important; }
.ks-clock-label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.ks-clock-time  { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; color: var(--text); }
.ks-clock-low   { color: var(--accent) !important; }

/* Board */
.ks-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(480px, 90vw);
  border: 3px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.ks-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: clamp(0.8rem, 3.5vw, 1.7rem);
  transition: filter 0.1s;
  user-select: none;
  position: relative;
}
.ks-cell:hover { filter: brightness(1.12); }

/* Square colors */
.ks-light { background: #f0d9b5; }
.ks-dark  { background: #b58863; }

/* Highlights */
.ks-selected.ks-light,
.ks-selected.ks-dark  { background: #f5d050 !important; }
.ks-valid.ks-light { background: #7bc96f; }
.ks-valid.ks-dark  { background: #4e9a45; }
.ks-last-move.ks-light { background: #cdd85a; }
.ks-last-move.ks-dark  { background: #9db537; }

/* Piece text — solid dark for both colors, unicode pieces give visual contrast */
.ks-white-piece { color: #1a1a1a; text-shadow: 0 0 3px rgba(255,255,255,0.6); }
.ks-black-piece { color: #1a1a1a; }

/* Coordinate labels */
.ks-coord { position: absolute; font-size: clamp(0.45rem, 1.2vw, 0.65rem); font-weight: 700; color: rgba(0,0,0,0.45); line-height: 1; }
.ks-coord-rank { top: 2px; left: 2px; }
.ks-coord-file { bottom: 2px; right: 3px; }

/* Controls */
.ks-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }

/* Status bar */
.ks-status-bar { margin-top: 0.4rem; min-height: 1.4em; }
.ks-status-text { font-size: 0.85rem; color: var(--text-dim); }

/* Buttons */
.ks-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.9rem; border: none; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
}
.ks-btn:hover   { opacity: 0.85; }
.ks-btn:disabled { opacity: 0.45; cursor: default; }
.ks-btn-primary   { background: var(--accent2); color: #000; }
.ks-btn-secondary { background: var(--surface2); color: var(--text); }
.ks-btn-join      { background: var(--accent2); color: #000; }
.ks-btn-copy      { background: var(--surface2); color: var(--text-dim); font-size: 0.8rem; }
.ks-btn-query     { background: #2a4a6a; color: var(--accent2); }
.ks-btn-draw      { background: #2a5a4a; color: #7de8c4; }
.ks-btn-resign    { background: #5a2a2a; color: #e87d7d; }
.ks-btn-chat-send { background: var(--surface2); color: var(--text); padding: 0.35rem 0.7rem; }
.ks-btn-icon      { background: transparent; border: none; color: var(--text-dim); font-size: 1rem; cursor: pointer; padding: 0.2rem 0.4rem; }
.ks-btn-icon:hover { color: var(--text); }

/* Announcements panel */
.ks-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; background: var(--surface2); border-bottom: 1px solid var(--border); }
.ks-panel-title  { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }

.ks-announcements {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  max-height: 350px;
  overflow-y: auto;
  padding: 0.5rem;
  background: #0d1a2a;
  display: flex; flex-direction: column; gap: 0.25rem;
}

.ks-ann-entry { padding: 0.2rem 0.4rem; border-radius: 3px; line-height: 1.4; }
.ks-ann-time  { color: #4a6080; margin-right: 0.4rem; font-size: 0.72rem; }
.ks-ann-text  { }

/* Announcement type styles */
.ks-ann-check    { background: rgba(255,200,0,0.12); color: #ffd700; }
.ks-ann-capture  { background: rgba(220,50,50,0.12); color: #ff7070; }
.ks-ann-no       { background: rgba(200,100,0,0.12); color: #ffa040; }
.ks-ann-hellno   { background: rgba(200,0,0,0.15); color: #ff5555; }
.ks-ann-query    { background: rgba(80,180,255,0.12); color: var(--accent2); }
.ks-ann-draw     { background: rgba(80,120,255,0.12); color: #809fff; }
.ks-ann-gameover { background: rgba(150,0,200,0.15); color: #c87fff; font-weight: 700; }
.ks-ann-system   { color: var(--text-dim); font-style: italic; }
.ks-ann-move     { color: #607090; }
.ks-ann-default  { color: var(--text-dim); }

/* Chat */
.ks-chat-area { border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.ks-chat-log  { max-height: 160px; overflow-y: auto; padding: 0.5rem 0.75rem; font-size: 0.82rem; display: flex; flex-direction: column; gap: 0.2rem; }
.ks-chat-entry { line-height: 1.4; }
.ks-chat-white { color: #c0c8d8; }
.ks-chat-black { color: #a8b8c8; }
.ks-chat-spectator { color: var(--text-dim); font-style: italic; }
.ks-chat-form  { display: flex; gap: 0; border-top: 1px solid var(--border); }
.ks-chat-input { flex: 1; background: var(--surface); border: none; border-radius: 0; padding: 0.4rem 0.6rem; color: var(--text); font-size: 0.85rem; font-family: inherit; outline: none; }
.ks-chat-input:focus { background: var(--surface2); }

/* Overlays / Modals */
.ks-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 1rem;
}
.ks-modal {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem 2.5rem; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}
.ks-modal-title   { font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem; }
.ks-modal-body    { font-size: 0.95rem; color: var(--text); margin-bottom: 1.5rem; line-height: 1.6; }
.ks-modal-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Waiting overlay */
.ks-waiting-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 250; padding: 1rem;
}
.ks-waiting-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem 2.5rem; max-width: 440px; width: 100%;
  text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}
.ks-waiting-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.ks-waiting-desc  { color: var(--text-dim); margin-bottom: 0.75rem; font-size: 0.9rem; }
.ks-share-link-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.ks-share-input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--accent2); padding: 0.4rem 0.6rem; font-family: var(--font-mono); font-size: 0.8rem; }

/* Back link */
.ks-back-link { color: var(--accent2); text-decoration: none; font-size: 0.85rem; }
.ks-back-link:hover { text-decoration: underline; }

/* ── Kriegspiel Lobby ─────────────────────────────────────────────────────── */
.ks-lobby-page { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem; }
.ks-lobby-header { margin-bottom: 2rem; }
.ks-lobby-title  { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.ks-subtitle     { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.ks-lobby-desc   { color: var(--text-dim); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1rem; max-width: 680px; }
.ks-lobby-section { margin-bottom: 2rem; }
.ks-lobby-section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--border); }
.ks-no-games { color: var(--text-dim); font-size: 0.9rem; }
.ks-no-games a { color: var(--accent2); text-decoration: none; }

.ks-lobby-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ks-lobby-table th,
.ks-lobby-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.ks-lobby-table th { color: var(--text-dim); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ks-lobby-table tr:hover td { background: var(--surface); }
.ks-time-dim { color: var(--text-dim); font-size: 0.8rem; }

.ks-rules-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.ks-rules-list { margin: 0; padding-left: 1.25rem; color: var(--text-dim); font-size: 0.88rem; line-height: 1.8; }
.ks-rules-list li { margin-bottom: 0.25rem; }
.ks-rules-list strong { color: var(--text); }

/* ── Kriegspiel Create ────────────────────────────────────────────────────── */
.ks-create-page { max-width: 520px; margin: 0 auto; padding: 1.5rem 1rem; }
.ks-create-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.ks-create-title  { font-size: 1.6rem; font-weight: 800; }
.ks-create-form   { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.ks-form-group    { display: flex; flex-direction: column; gap: 0.35rem; }
.ks-form-label    { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.ks-form-value    { font-size: 0.95rem; color: var(--accent2); }
.ks-form-input    { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 0.45rem 0.75rem; font-size: 0.95rem; font-family: inherit; }
.ks-form-input:focus { outline: 2px solid var(--accent2); border-color: var(--accent2); }
.ks-form-select   { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 0.45rem 0.75rem; font-size: 0.95rem; font-family: inherit; }
.ks-form-select:focus { outline: 2px solid var(--accent2); border-color: var(--accent2); }

.ks-radio-group  { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ks-radio-label  { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.35rem 0.75rem; font-size: 0.9rem; transition: border-color 0.15s; }
.ks-radio-label:hover { border-color: var(--accent2); }
.ks-radio-label input[type=radio] { accent-color: var(--accent2); }

.ks-checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; color: var(--text-dim); }
.ks-checkbox-label input[type=checkbox] { accent-color: var(--accent2); }

.ks-form-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; }

/* ── Team page ───────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.team-card-mascot { text-align: center; }
.team-heading { font-size: 1.15rem; font-weight: 700; color: var(--accent2); margin: 0 0 0.5rem; }
.team-photo { width: 100%; max-width: 140px; border-radius: 8px; margin: 0.75rem auto 0.25rem; display: block; }
.team-bio { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
.team-bio p { margin: 0 0 0.5rem; }
.team-bio a { color: var(--accent2); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .header-inner { height: auto; padding: 0.5rem 0; flex-wrap: wrap; gap: 0.4rem; }
  .coming-soon-title { font-size: 1.8rem; }
  .coming-soon-piece { font-size: 3.5rem; }
  nav a { padding: 0.3rem 0.6rem; font-size: 0.82rem; }
  .blog-article-title { font-size: 1.5rem; }
  .kanban-board { flex-direction: column; }
  .kanban-col { flex: none; width: 100%; }
  .fics-layout { height: auto; min-height: calc(100vh - 140px); }
  .fics-terminal { min-height: 300px; }
  .ks-layout { flex-direction: column; }
  .ks-panel { min-width: 0; width: 100%; }
}
