/* 리얼타임 인생게임 2200만 분의 1
   사이트의 남색과 2번 오렌지를 그대로 쓰되, 게임 화면은 '사원증'과 '출근 기록 카드'를 뼈대로 삼는다.
   내 캐릭터는 목에 거는 사원증처럼, 한 해 한 해는 출퇴근 기록처럼 쌓인다. */

.g-root {
  --g-bg: #eceef2;
  --g-card: #ffffff;
  --g-ink: var(--ink, #14182b);
  --g-muted: var(--muted, #565b69);
  --g-line: #d6d9e0;
  --g-night: var(--night, #141b2d);
  --g-orange: var(--orange, #ec6618);
  --g-orange-ink: var(--orange-ink, #b4440a);
  --g-good: #1f7a55;
  --g-bad: #b3261e;
  --g-num: 'IBM Plex Sans KR', var(--body);
  background: var(--g-bg);
  color: var(--g-ink);
  padding-bottom: 64px;
  min-height: 70vh;
}

.g-root *:focus-visible {
  outline: 3px solid var(--g-orange);
  outline-offset: 2px;
}

/* ─────────────── 첫 화면 ─────────────── */

.g-hero {
  background: #141b2d;
}
.g-hero img {
  display: block;
  width: 100%;
  max-width: 1400px;
  height: auto;
  margin: 0 auto;
}
.g-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.g-start-top {
  margin: 4px 0 6px;
}

.g-intro {
  padding-block: 40px 28px;
}
.g-kicker {
  margin: 0 0 6px;
  color: var(--g-muted);
  font-size: 0.9375rem;
}
.g-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 10vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
.g-title-sm {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
}
.g-choose {
  margin-top: 18px;
  max-width: 900px;
}
.g-choose .g-pcard {
  min-height: 120px;
}
.g-lead {
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  line-height: 1.7;
  max-width: 34em;
  margin: 18px 0 0;
}
.g-rules {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  max-width: 40em;
}
.g-rules li {
  background: var(--g-card);
  border-left: 4px solid var(--g-night);
  padding: 12px 14px;
  line-height: 1.6;
}
.g-start {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ─────────────── 버튼 ─────────────── */

.g-btn {
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 9px 16px;
  border: 2px solid var(--g-ink);
  background: #fff;
  color: var(--g-ink);
  border-radius: 6px;
  cursor: pointer;
}
.g-btn:hover {
  background: #f6f6f8;
}
.g-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.g-btn-main {
  background: var(--g-orange);
  border-color: var(--g-orange);
  color: #fff;
}
.g-btn-main:hover {
  background: #d65a12;
}
.g-btn-big {
  font-size: 1.125rem;
  min-height: 54px;
  padding: 12px 26px;
}
.g-btn-quiet {
  border-color: var(--g-line);
  font-weight: 500;
}
.g-btn-small {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 0.875rem;
}

/* ─────────────── 위쪽 띠: 올해와 남은 시간 ─────────────── */

.g-bar {
  background: var(--g-night);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.g-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 10px;
}
.g-year {
  font-family: var(--g-num);
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.g-clock {
  flex: 1;
  min-width: 0;
}
.g-clock-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  overflow: hidden;
}
.g-clock-fill {
  height: 100%;
  background: var(--g-orange);
  transition: width 1s linear;
}
.g-clock-label {
  font-size: 0.8125rem;
  color: #c9cedb;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.g-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.g-tabs button {
  font: inherit;
  background: none;
  border: 0;
  color: #c9cedb;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.g-tabs button[aria-selected='true'] {
  color: #fff;
  border-bottom-color: var(--g-orange);
  font-weight: 700;
}
.g-dot {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 0.75rem;
  text-align: center;
  border-radius: 9px;
  background: var(--g-orange);
  color: #fff;
  margin-left: 4px;
  padding-inline: 4px;
}

/* ─────────────── 본문 칸 ─────────────── */

.g-main {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}
@media (min-width: 900px) {
  .g-main.g-two {
    grid-template-columns: 360px 1fr;
    align-items: start;
  }
}
.g-card {
  background: var(--g-card);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(20, 24, 43, 0.06);
}
.g-card h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1875rem;
  margin: 0 0 12px;
}
.g-card h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
}
.g-note {
  color: var(--g-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 6px 0 0;
}
.g-stack {
  display: grid;
  gap: 18px;
}

/* ─────────────── 사원증 ─────────────── */

.g-badge {
  position: relative;
  background: var(--g-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(20, 27, 45, 0.12);
}
.g-badge-strap {
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--g-orange) 0 18px, #f2843f 18px 36px);
}
.g-badge-head {
  background: var(--g-night);
  color: #fff;
  padding: 16px 18px 14px;
}
.g-badge-org {
  font-size: 0.8125rem;
  color: #c9cedb;
  margin: 0;
}
.g-badge-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
.g-badge-job {
  margin: 6px 0 0;
  font-size: 1rem;
}
.g-badge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.g-tag {
  font-size: 0.8125rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.g-tag-hot {
  background: var(--g-orange);
}
.g-badge-body {
  padding: 14px 18px 18px;
}
.g-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0;
}
.g-nums div {
  border-bottom: 1px solid var(--g-line);
  padding-bottom: 8px;
}
.g-nums dt {
  font-size: 0.8125rem;
  color: var(--g-muted);
}
.g-nums dd {
  margin: 2px 0 0;
  font-family: var(--g-num);
  font-weight: 700;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.g-nums dd small {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--g-muted);
}
.g-meters {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.g-meter {
  display: grid;
  grid-template-columns: 3.5em 1fr 2.5em;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.g-meter-track {
  height: 8px;
  background: #e7e9ee;
  border-radius: 4px;
  overflow: hidden;
}
.g-meter-fill {
  height: 100%;
  background: var(--g-night);
}
.g-meter-fill.is-low {
  background: var(--g-bad);
}
.g-meter span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.g-free {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.g-week {
  display: flex;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.g-week span {
  display: block;
  height: 100%;
}
.g-week-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.75rem;
  color: var(--g-muted);
  margin-top: 6px;
}
.g-week-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}

/* ─────────────── 갈림길 ─────────────── */

.g-decision {
  border: 2px solid var(--g-orange);
  border-radius: 10px;
  padding: 14px;
  background: #fff8f3;
}
.g-decision + .g-decision {
  margin-top: 10px;
}
.g-decision p {
  margin: 0 0 10px;
  line-height: 1.6;
  font-weight: 500;
}
.g-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─────────────── 방향 설정 ─────────────── */

.g-dir {
  display: grid;
  gap: 14px;
}
.g-dir label {
  display: grid;
  gap: 4px;
  font-size: 0.875rem;
}
.g-dir-ends {
  display: flex;
  justify-content: space-between;
  color: var(--g-muted);
  font-size: 0.8125rem;
}
.g-dir input[type='range'] {
  width: 100%;
  accent-color: var(--g-orange);
}
.g-dir select {
  font: inherit;
  padding: 8px;
  border: 1px solid var(--g-line);
  border-radius: 6px;
}

/* ─────────────── 출근 기록(타임라인) ─────────────── */

.g-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g-timeline > li {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--g-line);
}
.g-stamp {
  font-family: var(--g-num);
  font-variant-numeric: tabular-nums;
  text-align: center;
  border: 2px solid var(--g-night);
  border-radius: 6px;
  padding: 4px 2px;
  align-self: start;
  line-height: 1.25;
}
.g-stamp b {
  display: block;
  font-size: 1rem;
}
.g-stamp small {
  font-size: 0.75rem;
  color: var(--g-muted);
}
.g-entry-head {
  font-size: 0.8125rem;
  color: var(--g-muted);
  margin: 0 0 4px;
}
.g-entry-lines {
  margin: 0;
  padding-left: 1.1em;
  line-height: 1.65;
}

/* ─────────────── 사람 목록 ─────────────── */

.g-people {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g-people li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--g-line);
}
.g-people .g-who {
  flex: 1;
  min-width: 0;
}
.g-people .g-who b {
  display: block;
}
.g-people .g-who span {
  font-size: 0.875rem;
  color: var(--g-muted);
}
.g-me {
  font-size: 0.75rem;
  background: var(--g-orange);
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: 1px;
}
.g-role {
  font-size: 0.75rem;
  border: 1px solid var(--g-night);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: 1px;
}
.g-sticker-pick {
  font: inherit;
  font-size: 0.875rem;
  padding: 6px;
  border: 1px solid var(--g-line);
  border-radius: 6px;
  max-width: 9.5em;
}

/* ─────────────── 실시간 ─────────────── */

.g-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #c9cedb;
  padding-bottom: 6px;
  min-width: 0;
}
.g-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.g-online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: g-pulse 2s infinite;
}
.g-card .g-online,
.g-pcard .g-online {
  color: inherit;
  margin-right: 6px;
}
@keyframes g-pulse {
  70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.g-live-sep,
.g-live-alive {
  white-space: nowrap;
}
.g-live-last {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  margin-left: 6px;
}
@media (max-width: 640px) {
  .g-live {
    flex-wrap: wrap;
    row-gap: 2px;
  }
  .g-live-last {
    flex-basis: 100%;
    margin-left: 0;
  }
}
.g-livecard {
  border-top: 4px solid #3ddc84;
}
.g-livelist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.g-livelist li {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--g-line);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.g-livelist time {
  color: var(--g-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.g-livelist li.is-me span {
  font-weight: 700;
  color: var(--g-orange-ink);
}
.g-livelist li.is-fresh {
  animation: g-fresh 1.6s ease-out;
}
@keyframes g-fresh {
  from { background: #e6f9ee; }
  to { background: transparent; }
}
.g-delta {
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 4px;
  white-space: nowrap;
}
.g-delta.is-up {
  color: var(--g-good);
}
.g-delta.is-down {
  color: var(--g-bad);
}
@media (prefers-reduced-motion: reduce) {
  .g-online i,
  .g-livelist li.is-fresh {
    animation: none;
  }
}

/* ─────────────── 이달 할 일, 이달의 사건, 선거 ─────────────── */

.g-month-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  margin: 0;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.g-tokens {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.g-tokens i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--g-orange);
  display: inline-block;
}
.g-tokens i.on {
  background: var(--g-orange);
}
.g-tile-cost {
  color: var(--g-orange-ink) !important;
  font-weight: 700;
}
.g-risk-hi {
  color: var(--g-bad) !important;
}
.g-risk-mid {
  color: #9a6a00 !important;
}
.g-decision.is-urgent {
  border-color: var(--g-bad);
  background: #fff4f2;
}
.g-decision.is-player {
  border-color: #1f6fd6;
  background: #eef5ff;
}
.g-from-player {
  color: #1f4fa8 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.g-urgent {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--g-bad);
  margin: 0 0 4px !important;
}
.g-options .g-btn small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--g-muted);
}
.g-timer {
  height: 18px;
  margin-top: 10px;
  background: #f1e1d8;
  border-radius: 4px;
  overflow: hidden;
}
.g-timer span {
  display: block;
  height: 100%;
  background: var(--g-orange);
  color: #fff;
  font-size: 0.75rem;
  line-height: 18px;
  padding-left: 6px;
  white-space: nowrap;
  transition: width 1s linear;
}
.g-elect {
  border-top: 4px solid var(--g-orange);
}
.g-ballot {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.g-cand-row {
  font: inherit;
  color: var(--g-ink);
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 6px 10px;
  background: #fff;
  border: 2px solid var(--g-line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9375rem;
}
.g-cand-row i {
  width: 10px;
  height: 28px;
  border-radius: 3px;
}
.g-cand-row small {
  display: block;
  color: var(--g-muted);
  font-size: 0.8125rem;
}
.g-cand-row em {
  font-style: normal;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--g-muted);
}
.g-cand-row.is-voted {
  border-color: var(--g-orange);
  background: #fff8f3;
}
.g-npc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--g-muted);
  margin-left: 4px;
}
.g-pgrid li.is-player .g-pcard {
  border-color: var(--g-orange);
}
.g-invite {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.g-pick {
  cursor: pointer;
  position: relative;
}
.g-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.g-pick.is-on {
  border-color: var(--g-orange);
  background: #fff8f3;
}
.g-pick:focus-within {
  outline: 3px solid var(--g-orange);
  outline-offset: 2px;
}
.g-reallink {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--g-orange-ink);
  white-space: nowrap;
}

.g-status {
  color: var(--g-ink) !important;
  font-weight: 500;
}
.g-tie {
  display: block;
  height: 6px;
  background: #e7e9ee;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.g-tie i {
  display: block;
  height: 100%;
  background: var(--g-orange);
}
.g-tie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
  font-weight: 700;
}
.g-tie-row .g-tie {
  margin: 0;
}
.g-pcard.is-met {
  background: #f6f7f9;
}
.g-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.g-sheet {
  max-height: 88vh;
  overflow-y: auto;
}

/* ─────────────── 확인 창 ─────────────── */

.g-sheet-wrap {
  position: fixed;
  inset: 0;
  background: rgba(20, 27, 45, 0.55);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 700px) {
  .g-sheet-wrap {
    align-items: center;
  }
}
.g-sheet {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 14px 14px 0 0;
  padding: 20px 18px 22px;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.2);
}
@media (min-width: 700px) {
  .g-sheet {
    border-radius: 14px;
  }
}
.g-sheet h2 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0 0 12px;
}
.g-sheet-grid {
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.g-sheet-grid div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 10px;
  border-top: 1px solid var(--g-line);
  padding-top: 8px;
}
.g-sheet-grid dt {
  color: var(--g-muted);
  font-size: 0.875rem;
}
.g-sheet-grid dd {
  margin: 0;
  line-height: 1.55;
}
.g-sheet-grid dd small {
  color: var(--g-muted);
}
.g-sheet-grid .is-good {
  color: var(--g-good);
}
.g-sheet-grid .is-bad {
  color: var(--g-bad);
}

/* ─────────────── 누르는 카드 ─────────────── */

.g-pgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.g-pcard,
.g-tile {
  font: inherit;
  color: var(--g-ink);
  width: 100%;
  min-height: 84px;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 10px 12px;
  background: #fff;
  border: 2px solid var(--g-line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s, transform 0.08s;
}
.g-pcard:hover:not([disabled]),
.g-tile:hover:not([disabled]) {
  border-color: var(--g-orange);
}
.g-pcard:active:not([disabled]),
.g-tile:active:not([disabled]) {
  transform: scale(0.97);
}
.g-pcard b,
.g-tile b {
  font-size: 0.9375rem;
}
.g-pcard span,
.g-tile span {
  font-size: 0.8125rem;
  color: var(--g-muted);
}
.g-pcard em {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--g-orange-ink);
  margin-top: 4px;
}
.g-pcard[disabled],
.g-tile[disabled] {
  cursor: default;
  background: #f1f2f5;
  border-color: #eceef2;
  opacity: 0.6;
}
.g-pcard[disabled] em {
  color: var(--g-muted);
}
.g-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.g-tile {
  min-height: 64px;
}

/* ─────────────── 노조 칸 ─────────────── */

.g-union {
  border-radius: 10px;
  padding: 14px;
  background: #f4f5f8;
  margin-top: 12px;
}
.g-union-yes {
  background: #e9f3ee;
}
.g-union p {
  margin: 0 0 8px;
  line-height: 1.6;
}
.g-risk {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.g-risk li::before {
  content: '— ';
  color: var(--g-bad);
}
.g-fight {
  border-left: 4px solid var(--g-bad);
  background: #fff4f2;
  padding: 10px 12px;
  margin-top: 10px;
  border-radius: 0 8px 8px 0;
}

/* ─────────────── 세상 ─────────────── */

.g-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.g-stat {
  background: #f4f5f8;
  border-radius: 8px;
  padding: 12px;
}
.g-stat dt {
  font-size: 0.8125rem;
  color: var(--g-muted);
}
.g-stat dd {
  margin: 4px 0 0;
  font-family: var(--g-num);
  font-weight: 700;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.g-stat dd small {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--g-muted);
}
.g-support {
  display: grid;
  gap: 6px;
}
.g-support-row {
  display: grid;
  grid-template-columns: 6.5em 1fr 3.4em;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
}
.g-support-bar {
  height: 12px;
  background: #e7e9ee;
  border-radius: 3px;
  overflow: hidden;
}
.g-support-bar span {
  display: block;
  height: 100%;
}
.g-support-row span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.g-cards {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.g-cards li {
  border: 1px solid var(--g-line);
  border-radius: 8px;
  padding: 10px 12px;
}
.g-cards li small {
  display: block;
  color: var(--g-muted);
  margin-top: 2px;
}
.g-spark {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin-top: 8px;
}

/* ─────────────── 선거 ─────────────── */

.g-candidates {
  display: grid;
  gap: 12px;
}
.g-cand {
  border: 2px solid var(--g-line);
  border-radius: 10px;
  padding: 14px;
}
.g-cand.is-voted {
  border-color: var(--g-orange);
}
.g-cand h3 {
  margin: 0;
  font-size: 1.0625rem;
}
.g-cand .g-slogan {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 2px 0 6px;
}
.g-cand blockquote {
  margin: 8px 0;
  padding-left: 10px;
  border-left: 3px solid var(--g-line);
  line-height: 1.6;
}
.g-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.g-form input[type='text'],
.g-form textarea {
  font: inherit;
  padding: 10px;
  border: 1px solid var(--g-line);
  border-radius: 6px;
  width: 100%;
}
.g-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ─────────────── 피드 ─────────────── */

.g-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.g-post {
  background: var(--g-card);
  border-radius: 10px;
  padding: 14px;
}
.g-post-world {
  background: var(--g-night);
  color: #fff;
}
.g-post-head {
  font-size: 0.8125rem;
  color: var(--g-muted);
  margin: 0 0 6px;
}
.g-post-world .g-post-head {
  color: #c9cedb;
}
.g-post p {
  margin: 0;
  line-height: 1.6;
}
.g-reacts {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.g-react {
  font: inherit;
  font-size: 0.8125rem;
  border: 1px solid var(--g-line);
  background: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  color: var(--g-ink);
}
.g-react[aria-pressed='true'] {
  background: var(--g-orange);
  border-color: var(--g-orange);
  color: #fff;
}

/* ─────────────── 끝난 삶 ─────────────── */

.g-life {
  border-top: 1px solid var(--g-line);
  padding: 12px 0;
}
.g-life p {
  margin: 4px 0 0;
  line-height: 1.6;
}
.g-life q {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
}

.g-toast[hidden] {
  display: none;
}
.g-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #141b2d;
  line-height: 1.5;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 50;
  max-width: calc(100% - 32px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .g-clock-fill {
    transition: none;
  }
}

/* 꿈(다른 삶) 확인 창의 경고 */
.g-warn { margin: 0 0 12px; padding: 10px 12px; border: 2px solid var(--g-bad, #c0392b); border-radius: 8px; color: var(--g-bad, #c0392b); font-weight: 700; line-height: 1.55; font-size: .92rem; }

/* 위원장 직선제: 내 투표 상태를 설명 문단과 확실히 구별한다 */
.g-ballot-status { display: grid; gap: 4px; margin: 4px 0 14px; padding: 12px 14px; border-radius: 10px; border: 2px solid; line-height: 1.5; }
.g-ballot-status b { font-size: 1.05rem; }
.g-ballot-status span { font-size: .9rem; }
.g-ballot-status.is-open { border-color: #ec6618; background: rgba(236, 102, 24, .1); }
.g-ballot-status.is-open b { color: #c4500c; }
.g-ballot-status.is-done { border-color: #2e7d4f; background: rgba(46, 125, 79, .1); }
.g-ballot-status.is-done b { color: #2e7d4f; }
.g-ballot-status.is-closed { border-color: var(--g-line, #bbb); border-style: dashed; background: transparent; }
