/* ============================================================
   CAPITAL AND WESTMINSTER — Game Completion Cover
   A polished, NYT-style panel that covers a finished daily
   game board. Shared by crossword.html and capitle.html.
   ============================================================ */

.gc-host { position: relative; }

/* The cover fills the board element it is mounted on. */
.gc-cover {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(248, 246, 240, 0.82);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
  backdrop-filter: blur(7px) saturate(1.05);
  border-radius: 6px;
  animation: gc-fade .45s ease both;
  overflow: hidden;
}

@keyframes gc-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gc-card {
  width: 100%;
  max-width: 320px;
  max-height: 100%;
  overflow: auto;
  text-align: center;
  background: #fffdf8;
  border: 1.5px solid #c9a96e;
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(42, 26, 4, 0.22);
  padding: 22px 22px 20px;
  animation: gc-rise .5s cubic-bezier(.2,.8,.25,1) both;
}

@keyframes gc-rise {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gc-eyebrow {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a96e;
  margin: 0 0 12px;
}

.gc-badge {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f3e2bb, #e7c884);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6), 0 3px 10px rgba(201,169,110,.4);
  font-size: 1.5rem;
  line-height: 1;
}
.gc-cover.is-lost .gc-badge {
  background: linear-gradient(145deg, #efe7da, #d9cbb3);
}

.gc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2a1a04;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
  line-height: 1.2;
}

.gc-sub {
  font-size: 0.82rem;
  color: #6a5326;
  margin: 0 0 14px;
  line-height: 1.45;
}
.gc-sub strong { color: #2a1a04; }

.gc-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 0 16px;
  border-top: 1px solid #eadfc4;
  border-bottom: 1px solid #eadfc4;
  padding: 12px 0;
}
.gc-stat { flex: 1; min-width: 0; }
.gc-stat + .gc-stat { border-left: 1px solid #eadfc4; }
.gc-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #c9a96e;
  line-height: 1;
}
.gc-stat-label {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8a6a;
  margin-top: 4px;
}

.gc-countdown {
  margin: 0 0 16px;
}
.gc-countdown-label {
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9a8a6a;
  margin-bottom: 3px;
}
.gc-countdown-time {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #2a1a04;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.gc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc-btn {
  display: block;
  width: 100%;
  font-family: 'Georgia', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 11px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.gc-btn-primary { background: #c9a96e; color: #fff; }
.gc-btn-primary:hover { background: #b8914f; }
.gc-btn-ghost {
  background: transparent;
  color: #7a5a20;
  border: 1.5px solid #d8c69a;
}
.gc-btn-ghost:hover { border-color: #c9a96e; color: #5a4316; }

.gc-cta {
  margin: 12px 0 0;
  font-size: 0.74rem;
  color: #8a7448;
  line-height: 1.4;
}
.gc-cta a { color: #b8914f; font-weight: 700; text-decoration: none; }
.gc-cta a:hover { text-decoration: underline; }

.gc-copied {
  margin-top: 8px;
  font-size: 0.74rem;
  color: #2a8a50;
  min-height: 1em;
}

@media (max-width: 520px) {
  .gc-card { padding: 18px 16px 16px; }
  .gc-title { font-size: 1.15rem; }
}
