/* The Coffee Table — Calm, Spacious Editorial Layout */

.hub-shell {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 18px 26px 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hub-header {
  flex-wrap: wrap;
}

.badge-num {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--line);
  font-size: 0.76rem;
  font-weight: 700;
}

.hub-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

/* Primary Editorial Card */
.table-card {
  position: relative;
  flex: 1;
  min-height: 310px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 40px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.table-card.clickable { cursor: pointer; }

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-main-text {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 24px 0;
  color: var(--ink);
  max-width: 28ch;
}

.card-sub-text {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 66ch;
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Deal-3 View */
.deal-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
}
@media (max-width: 840px) {
  .deal-three-grid { grid-template-columns: 1fr; }
}

.mini-deal-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.mini-deal-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.mini-deal-card p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Seat Spotlight Strip */
.spotlight-banner {
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--sunset);
  border-radius: var(--r-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}

.spotlight-who {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
}

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Party Game Shelf (2x2 Editorial Grid) */
.party-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  flex: 1;
}
@media (max-width: 720px) {
  .party-grid { grid-template-columns: 1fr; }
}

.party-choice-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.party-choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.party-choice-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}
.party-choice-card p {
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.5;
}
.party-choice-card .card-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--lake);
}
[data-theme="dark"] .party-choice-card .card-link { color: var(--sunset); }

/* Secret Pass-and-Peek Panel */
.secret-box {
  background: var(--lake);
  color: var(--lake-ink);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 310px;
  flex: 1;
}
.secret-box.faker { background: #8E2C15; }
.secret-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.22;
  max-width: 24ch;
}
.big-countdown {
  font-family: var(--font-serif);
  font-size: clamp(4.2rem, 12vw, 6.8rem);
  font-weight: 600;
  color: var(--sunset);
  line-height: 1;
}

/* Poll & Quiz Option Rows */
.poll-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.poll-opt {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 13px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.poll-opt:hover { border-color: var(--ink-3); }
.poll-opt.correct { border-color: var(--pine); background: var(--pine-soft); }
.poll-opt.wrong { border-color: var(--ember); background: var(--ember-soft); }

.poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--sunset-soft);
  width: 0%;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.poll-opt > span { position: relative; z-index: 1; }
.poll-label { font-weight: 600; font-size: 0.96rem; line-height: 1.35; }
.poll-stat { font-weight: 700; font-size: 0.86rem; color: var(--ink-2); white-space: nowrap; }

/* News Spark Callout */
.news-spark {
  background: var(--paper-2);
  border-left: 3px solid var(--sunset);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 14px 0 10px;
}
.news-spark-q {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 500;
  line-height: 1.32;
  margin-top: 4px;
}

/* Weekend Events & Up For It Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 780px) {
  .events-grid { grid-template-columns: 1fr; }
}

.event-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.14s ease;
}
.event-card.has-interest { border-color: var(--pine); }
.event-card.near-coffee { border-left: 3px solid var(--pine); }
.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.25;
}
.event-meta { font-size: 0.85rem; color: var(--ink-2); font-weight: 500; }
.event-pitch { font-size: 0.9rem; color: var(--ink-2); line-height: 1.48; }
.event-spark { font-size: 0.86rem; font-style: italic; color: var(--ink-3); }
.event-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Forms & Modals */
.modal-sub { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 14px; }
.roster-form { display: flex; gap: 8px; margin-bottom: 14px; }
.roster-form input, .fib-input {
  flex: 1;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.95rem;
}
.roster-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; margin-bottom: 16px; }
.roster-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  font-weight: 600;
  font-size: 0.88rem;
}
.roster-pill button { background: none; border: none; cursor: pointer; opacity: 0.65; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.plan-item {
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--paper-2);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
