/* Guluk Sayar — public mahkeme arayüzü */

.public-page {
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 1;
}

.section-block {
  padding-top: 92px;
}

/* ---------- Header / identity ---------- */

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-nav {
  margin-left: 30px;
}

.auth-area {
  display: flex;
  align-items: center;
}

.identity-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 19, 26, 0.78);
}

.identity-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.identity-copy strong {
  font-size: 0.82rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-copy small {
  font-size: 0.64rem;
  color: var(--muted);
  white-space: nowrap;
}

.identity-logout {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 7px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.identity-logout:hover {
  color: var(--coral);
  background: var(--coral-soft);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-top: 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.35rem, 7.3vw, 6.8rem);
  font-weight: 800;
  line-height: 0.91;
  letter-spacing: -0.055em;
}

.grad {
  background: linear-gradient(115deg, var(--lime) 5%, var(--violet) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.72;
}

.lede strong {
  color: var(--lime);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.hero-actions .btn {
  min-height: 48px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding: 23px 0 0;
  margin: 33px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-facts b {
  font-family: var(--display);
  font-size: 1.12rem;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---------- Scoreboard ---------- */

.scoreboard {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(199, 255, 74, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(199, 255, 74, 0.075), transparent 36%),
    linear-gradient(210deg, rgba(183, 156, 255, 0.06), transparent 48%),
    var(--surface);
  box-shadow: var(--shadow);
}

.scoreboard::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 0%, rgba(183, 156, 255, 0.1), transparent 38%);
}

.scoreboard-top,
.score-grid,
.hero-leader,
.scoreboard-foot {
  position: relative;
  z-index: 1;
}

.scoreboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scoreboard-top time {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(199, 255, 74, 0.24);
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--lime);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-hero {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.score-kicker {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score-hero > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.score-hero strong {
  font-family: var(--display);
  font-size: clamp(3.8rem, 6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.score-unit {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.score-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 14px;
  background: var(--bg-soft);
}

.score-grid b {
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}

.score-grid span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.hero-leader {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 9, 13, 0.36);
}

.hero-leader-label {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-leader-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  margin-top: 7px;
}

.hero-leader-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.hero-leader-info strong {
  font-size: 0.82rem;
}

.hero-leader-info span {
  color: var(--muted);
  font-size: 0.68rem;
}

.hero-leader-score {
  margin-left: auto;
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.3rem;
}

.hero-leader-empty {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.scoreboard-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
}

/* ---------- Login / me banner ---------- */

.me-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(199, 255, 74, 0.06), transparent 55%);
}

.me-banner.is-urgent {
  border-color: rgba(255, 209, 102, 0.3);
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.11), transparent 60%);
}

.me-banner.is-login {
  background: linear-gradient(90deg, rgba(183, 156, 255, 0.08), transparent 60%);
}

.me-banner-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.me-banner-copy > div {
  min-width: 0;
}

.me-banner-kicker {
  display: block;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.me-banner strong {
  font-size: 0.86rem;
}

.me-banner p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.me-banner b {
  color: var(--lime);
}

/* ---------- Case cards ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 40%),
    var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.case-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--line-strong);
}

.case-card.phase-defense::before {
  background: linear-gradient(180deg, var(--gold), transparent);
}

.case-card.phase-voting::before {
  background: linear-gradient(180deg, var(--violet), transparent);
}

.case-card.outcome-guluk::before {
  background: linear-gradient(180deg, var(--lime), transparent);
}

.case-card.outcome-beraat::before {
  background: linear-gradient(180deg, var(--coral), transparent);
}

.case-card.outcome-dismissed::before {
  background: linear-gradient(180deg, var(--muted), transparent);
}

.case-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.case-timer {
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.case-timer.muted {
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
}

.countdown.is-urgent {
  color: var(--coral);
}

.case-people {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.case-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.case-person > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.case-person strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-person span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.case-person.reporter {
  margin-left: auto;
  opacity: 0.82;
}

.case-vs {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-desc {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.case-count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.case-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.case-open {
  margin-left: auto;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
}

/* ---------- Badges / tags ---------- */

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phase-badge.phase-defense {
  border-color: rgba(255, 209, 102, 0.25);
  background: var(--gold-soft);
  color: var(--gold);
}

.phase-badge.phase-voting {
  border-color: rgba(183, 156, 255, 0.28);
  background: var(--violet-soft);
  color: var(--violet);
}

.phase-badge.outcome-guluk {
  border-color: rgba(199, 255, 74, 0.28);
  background: var(--lime-soft);
  color: var(--lime);
}

.phase-badge.outcome-beraat {
  border-color: rgba(255, 107, 95, 0.28);
  background: var(--coral-soft);
  color: var(--coral);
}

.phase-badge.outcome-dismissed {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.tag-guluk,
.tag-beraat,
.tag-iftira,
.tag-missed,
.tag-soft,
.tag-early {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.tag-guluk {
  background: var(--lime-soft);
  color: var(--lime);
}

.tag-beraat {
  background: var(--coral-soft);
  color: var(--coral);
}

.tag-iftira {
  background: var(--coral-soft);
  color: var(--coral);
}

.tag-missed {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag-soft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.tag-early {
  background: var(--violet-soft);
  color: var(--violet);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge-iftira {
  background: var(--coral-soft);
  color: var(--coral);
}

.badge-open {
  background: var(--violet-soft);
  color: var(--violet);
}

.badge-me {
  background: var(--lime-soft);
  color: var(--lime);
}

/* ---------- People ---------- */

.people-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(260px, 34vw);
  min-width: 190px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}

.search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
}

.search input::placeholder {
  color: var(--muted-2);
}

.people-tools .select {
  height: 40px;
  min-width: 150px;
}

.people-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.72rem;
}

.people-meta > span:first-child {
  color: var(--ink-soft);
  font-weight: 800;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}

.person-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.person-card.is-me {
  border-color: rgba(199, 255, 74, 0.2);
  background: linear-gradient(145deg, rgba(199, 255, 74, 0.045), transparent 55%), var(--surface);
}

.person-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.person-id {
  min-width: 0;
  flex: 1;
}

.person-id h3 {
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.person-points {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.person-points b {
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.5rem;
}

.person-points span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-bio {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 13px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.person-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}

.person-stats span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 9px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
}

.person-stats b {
  color: var(--ink);
  font-size: 0.86rem;
}

.person-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 13px;
}

.person-actions .btn {
  width: 100%;
}

.person-self {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Champions ---------- */

.champion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.champion-card {
  display: flex;
  gap: 14px;
  min-height: 150px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(140deg, rgba(199, 255, 74, 0.055), transparent 45%),
    var(--surface);
}

.champion-card.is-empty {
  opacity: 0.72;
}

.champion-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(199, 255, 74, 0.2);
  border-radius: 11px;
  background: var(--lime-soft);
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
}

.champion-body {
  position: relative;
  min-width: 0;
  flex: 1;
}

.champion-card .kicker {
  margin-bottom: 9px;
}

.champion-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.champion-person h3 {
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-person p,
.champion-card.is-empty p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.champion-score {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
}

.skeleton-card {
  min-height: 150px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: skeleton 1.4s infinite;
}

@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}

/* ---------- Board ---------- */

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.board-panel,
.archive-panel {
  padding: 20px;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.segmented button {
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button[aria-selected='true'] {
  background: var(--lime);
  color: #08090d;
}

.board-list,
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  border-radius: 10px;
}

.board-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.board-rank {
  width: 23px;
  color: var(--muted-2);
  font-family: var(--display);
  font-size: 0.78rem;
  text-align: center;
}

.board-person {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.board-person strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-person span {
  color: var(--muted);
  font-size: 0.64rem;
}

.board-points {
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
}

.board-points small {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.6rem;
}

.archive-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
}

.archive-row:last-child {
  border-bottom: 0;
}

.archive-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.archive-info strong {
  font-size: 0.76rem;
}

.archive-info span {
  color: var(--muted);
  font-size: 0.62rem;
}

.archive-score {
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ---------- How / rules ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.how-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.step {
  color: var(--lime);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 800;
}

.how-grid h3 {
  margin: 14px 0 7px;
  font-family: var(--display);
  font-size: 1rem;
}

.how-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.rules-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.rules-table-wrap,
.points-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.rules-table-wrap h3,
.points-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1rem;
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.rules-table th {
  width: 31%;
  padding: 8px 10px 8px 0;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  vertical-align: top;
}

.rules-table td {
  padding: 8px 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.rules-table tr + tr th,
.rules-table tr + tr td {
  border-top: 1px solid var(--line);
}

.rules-table strong {
  color: var(--ink);
}

.points-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.point-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.point-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.points-note {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

/* ---------- Case page ---------- */

.case-page {
  padding-top: 34px;
  padding-bottom: 80px;
}

.case-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.back-link {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  color: var(--lime);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 18px;
  align-items: start;
}

.case-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.case-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-hero,
.case-phase,
.defense-panel,
.vote-panel,
.comments-panel,
.case-meta,
.case-rules-mini {
  padding: 22px;
}

.case-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.case-hero-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.case-date {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.case-people-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 0.8fr);
  gap: 14px;
  align-items: center;
}

.person-spotlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(8, 9, 13, 0.28);
}

.person-spotlight.reporter {
  display: flex;
  align-items: center;
  opacity: 0.9;
}

.spotlight-copy {
  min-width: 0;
}

.spotlight-role {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spotlight-copy h2,
.spotlight-copy h3 {
  margin: 3px 0 2px;
  overflow: hidden;
  font-family: var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-copy h2 {
  font-size: 1.4rem;
}

.spotlight-copy h3 {
  font-size: 1rem;
}

.spotlight-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.spotlight-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.65rem;
}

.spotlight-stats b {
  color: var(--ink);
  font-size: 0.8rem;
}

.case-accusation {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.case-desc-block {
  position: relative;
  margin: 18px 0 0;
  padding: 18px 20px 18px 22px;
  border-left: 3px solid var(--lime);
  border-radius: 0 13px 13px 0;
  background: rgba(199, 255, 74, 0.055);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.case-desc-block > span {
  display: block;
  margin-bottom: 5px;
  color: var(--lime);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* phase */

.phase-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.phase-steps::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: var(--line);
}

.phase-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
}

.phase-step span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 0.58rem;
  font-weight: 800;
}

.phase-step b {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phase-step.is-done {
  color: var(--lime);
}

.phase-step.is-done span {
  border-color: rgba(199, 255, 74, 0.3);
  background: var(--lime-soft);
}

.phase-step.is-active {
  color: var(--violet);
}

.phase-step.is-active span {
  border-color: rgba(183, 156, 255, 0.45);
  background: var(--violet-soft);
  box-shadow: 0 0 0 4px rgba(183, 156, 255, 0.08);
}

.phase-step.is-missed {
  color: var(--gold);
}

.phase-step.is-missed span {
  border-color: rgba(255, 209, 102, 0.35);
  background: var(--gold-soft);
}

.phase-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.phase-main h2 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 1.35rem;
}

.phase-main p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.phase-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: 0 0 auto;
}

.phase-timer {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.phase-timer.is-finished {
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
}

.phase-small {
  color: var(--muted);
  font-size: 0.63rem;
}

/* defense */

.defense-panel h2 {
  margin: 4px 0 9px;
  font-family: var(--display);
  font-size: 1.15rem;
}

.defense-panel > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.defense-text {
  margin: 4px 0 10px;
  padding: 16px 18px;
  border-left: 2px solid var(--violet);
  border-radius: 0 12px 12px 0;
  background: rgba(183, 156, 255, 0.06);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.defense-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.defense-panel.is-waiting,
.defense-panel.is-missed {
  border-style: dashed;
}

.defense-panel.is-waiting {
  border-color: rgba(255, 209, 102, 0.24);
}

.defense-panel.is-missed {
  border-color: rgba(255, 209, 102, 0.32);
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.045), transparent 70%), var(--surface);
}

.defense-panel.is-waiting h2,
.defense-panel.is-missed h2 {
  margin-top: 10px;
}

/* vote */

.vote-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(183, 156, 255, 0.075), transparent 38%),
    var(--surface);
}

.vote-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.vote-head h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 1.3rem;
}

.vote-percent {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.vote-tally {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.vote-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.vote-count strong {
  font-family: var(--display);
  font-size: 1.45rem;
}

.vote-count span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vote-count.guluk strong {
  color: var(--lime);
}

.vote-count.beraat strong {
  color: var(--coral);
}

.vote-bar {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--coral-soft);
}

.vote-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime-deep), var(--lime));
  transition: width 300ms ease;
}

.vote-progress {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.63rem;
}

.vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.vote-btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.vote-btn .vote-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  font-size: 0.9rem;
}

.vote-btn b {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.vote-btn.guluk .vote-icon {
  background: var(--lime-soft);
  color: var(--lime);
}

.vote-btn.beraat .vote-icon {
  background: var(--coral-soft);
  color: var(--coral);
}

.vote-btn.guluk.is-selected {
  border-color: rgba(199, 255, 74, 0.45);
  background: linear-gradient(120deg, var(--lime-soft), transparent);
}

.vote-btn.beraat.is-selected {
  border-color: rgba(255, 107, 95, 0.45);
  background: linear-gradient(120deg, var(--coral-soft), transparent);
}

.vote-btn.is-selected b {
  color: var(--ink);
}

.vote-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.vote-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.vote-locked,
.vote-login-note,
.vote-disabled-note,
.vote-closed-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.vote-locked strong,
.vote-login-note strong {
  color: var(--ink-soft);
}

.vote-locked p,
.vote-login-note p,
.vote-disabled-note p {
  margin: 3px 0 0;
}

.vote-login-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* comments */

.comments-panel .panel-head {
  margin-bottom: 12px;
}

.reaction-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.reaction-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.reaction-btn b {
  color: var(--muted);
  font-size: 0.65rem;
}

.reaction-btn:hover:not(:disabled),
.reaction-btn.is-mine {
  border-color: rgba(199, 255, 74, 0.28);
  background: var(--lime-soft);
}

.reaction-btn:disabled {
  cursor: default;
  opacity: 0.65;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.comment:last-child {
  border-bottom: 0;
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.comment-head strong {
  font-size: 0.76rem;
}

.comment-head time {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.6rem;
}

.comment-role {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
}

.role-accused {
  background: var(--gold-soft);
  color: var(--gold);
}

.role-reporter {
  background: var(--violet-soft);
  color: var(--violet);
}

.role-voter {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.comment-body p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.comments-empty {
  padding: 18px 0;
}

.comment-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.comment-form .btn {
  margin-left: auto;
}

.comments-locked {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

/* case meta */

.case-meta h2,
.case-rules-mini h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1rem;
}

.case-meta dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.case-meta dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
}

.case-meta dl > div:last-of-type {
  border-bottom: 0;
}

.case-meta dt {
  color: var(--muted);
}

.case-meta dd {
  margin: 0;
  max-width: 60%;
  color: var(--ink-soft);
  text-align: right;
  overflow-wrap: anywhere;
}

.case-meta > .tag-missed {
  margin-top: 10px;
}

.case-rules-mini ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-rules-mini li {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.case-rules-mini li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 800;
}

.case-error {
  margin: 60px auto;
}

/* ---------- Result banner ---------- */

.result-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.result-banner.result-guluk {
  border-color: rgba(199, 255, 74, 0.28);
  background: linear-gradient(90deg, var(--lime-soft), transparent 62%), var(--surface);
}

.result-banner.result-beraat {
  border-color: rgba(255, 107, 95, 0.28);
  background: linear-gradient(90deg, var(--coral-soft), transparent 62%), var(--surface);
}

.result-banner.result-dismissed {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 62%), var(--surface);
}

.result-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 14px;
  font-size: 1.2rem;
}

.result-guluk .result-icon {
  color: var(--lime);
  background: var(--lime-soft);
}

.result-beraat .result-icon {
  color: var(--coral);
  background: var(--coral-soft);
}

.result-dismissed .result-icon {
  color: var(--muted);
}

.result-copy {
  min-width: 0;
  flex: 1;
}

.result-copy h2 {
  margin: 2px 0 2px;
  font-family: var(--display);
  font-size: 1.25rem;
}

.result-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.result-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
}

.result-side strong {
  font-size: 0.8rem;
}

/* ---------- Modals / forms ---------- */

.session-hero {
  padding: 3px 0 17px;
  border-bottom: 1px solid var(--line);
}

.session-hero.compact {
  padding-top: 0;
}

.session-person {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.session-person h2 {
  margin: 2px 0 4px;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.05;
}

.session-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.session-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.65rem;
}

.session-stats b {
  color: var(--ink);
  font-size: 0.8rem;
}

.session-body {
  padding-top: 18px;
}

.start-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.char-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.62rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-soft);
}

.info-icon {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 900;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.info-card strong {
  color: var(--ink-soft);
}

.login-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.form-error {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 107, 95, 0.25);
  border-radius: 8px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.7rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .site-nav {
    margin-left: 14px;
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.74rem;
  }

  .identity-copy small {
    display: none;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .champion-grid {
    grid-template-columns: 1fr;
  }

  .champion-card {
    min-height: 0;
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .case-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .scoreboard {
    max-width: 620px;
  }

  .board-layout {
    grid-template-columns: 1fr;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .site-nav {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .section-block {
    padding-top: 70px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 66px;
  }

  .header-tools {
    gap: 6px;
  }

  .nav-admin {
    display: none;
  }

  .identity-copy {
    display: none;
  }

  .identity-chip {
    padding: 5px 5px 5px 6px;
  }

  .identity-logout {
    padding: 6px;
    font-size: 0.6rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero-facts {
    gap: 18px;
  }

  .hero-facts b {
    font-size: 0.95rem;
  }

  .hero-facts span {
    font-size: 0.58rem;
  }

  .me-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .me-banner-copy {
    align-items: flex-start;
  }

  .me-banner .btn {
    width: 100%;
  }

  .people-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .people-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .people-tools .search,
  .people-tools .select {
    width: 100%;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    padding: 17px;
  }

  .case-people {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .case-person.reporter {
    margin-left: 0;
  }

  .case-vs {
    display: none;
  }

  .case-open {
    width: 100%;
    margin-left: 0;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .rules-table-wrap {
    overflow-x: auto;
  }

  .rules-table {
    min-width: 460px;
  }

  .case-page {
    padding-top: 18px;
  }

  .case-hero,
  .case-phase,
  .defense-panel,
  .vote-panel,
  .comments-panel,
  .case-meta,
  .case-rules-mini {
    padding: 17px;
  }

  .case-people-grid {
    grid-template-columns: 1fr;
  }

  .case-accusation {
    justify-content: flex-start;
    padding-left: 4px;
  }

  .phase-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .phase-time {
    align-items: flex-start;
  }

  .phase-timer {
    font-size: 1.3rem;
  }

  .vote-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .vote-actions {
    grid-template-columns: 1fr;
  }

  .case-side {
    grid-template-columns: 1fr;
  }

  .result-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .result-side {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .comment-head time {
    width: 100%;
    margin-left: 0;
  }

  .footer-inner {
    gap: 18px;
  }
}

@media (max-width: 460px) {
  .person-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-grid > div {
    padding: 11px 10px;
  }

  .phase-step b {
    font-size: 0.52rem;
  }

  .vote-tally {
    grid-template-columns: 1fr;
  }

  .vote-bar {
    grid-column: auto;
  }
}
