/* Growth campaign + proof panels.
   Shares the comic-book palette from app.css; adds the floating in-game dock,
   the weekly campaign board, and the YouTube Studio metric cards. */

/* --- proof dock ----------------------------------------------------- */

.proof-dock {
  --dock-line: rgba(255, 255, 255, 0.16);
  width: 100%;
  color: var(--ink);
  background: linear-gradient(170deg, rgba(48, 30, 88, 0.96), rgba(20, 13, 40, 0.96));
  border: 2px solid var(--dock-line);
  border-radius: 14px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4);
  font-family: var(--font);
  overflow: hidden;
}

.proof-dock[data-floating] {
  position: fixed;
  z-index: 16;
  top: 6.6rem;
  right: max(0.65rem, env(safe-area-inset-right));
  width: min(268px, 80vw);
  max-height: min(70vh, 640px);
  overflow: auto;
  backdrop-filter: blur(8px);
}

.proof-head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 2px solid var(--dock-line);
}

.proof-heading {
  display: grid;
  gap: 0.1rem;
}

.proof-heading strong {
  font-size: 0.86rem;
  line-height: 1.15;
}

.proof-toggle {
  margin-left: auto;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 2px solid var(--dock-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.proof-dock.collapsed .proof-body {
  display: none;
}

.proof-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-stats li {
  padding: 0.4rem 0.45rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--dock-line);
  border-radius: 10px;
}

.proof-stat-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.proof-stats b {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.proof-stats small {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
}

.proof-you {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mint);
}

.proof-status {
  margin: 0;
  min-height: 1em;
  font-size: 0.74rem;
  color: var(--muted);
}

.proof-status.good {
  color: var(--mint);
}

.proof-status.warn {
  color: var(--amber);
}

.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.proof-btn {
  appearance: none;
  flex: 1 1 auto;
  padding: 0.4rem 0.6rem;
  border: 2px solid rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}

.proof-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.proof-btn.like {
  background: var(--pink);
  color: #2a0f2a;
}

.proof-btn.sub {
  background: var(--amber);
  color: #3a2a05;
}

.proof-btn.primary {
  background: var(--mint);
  color: #083a2c;
}

.proof-btn.ghost {
  background: transparent;
  border-color: var(--dock-line);
  box-shadow: none;
}

.proof-btn.tiny {
  flex: 0 0 auto;
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
}

.proof-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* --- one-step sign in ----------------------------------------------- */

.easy-login {
  display: grid;
  gap: 0.4rem;
  padding: 0.55rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--dock-line);
  border-radius: 10px;
}

.easy-login[hidden] {
  display: none;
}

.easy-login input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 2px solid var(--dock-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
}

.easy-login input[hidden] {
  display: none;
}

.easy-pass {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
}

.easy-reveal {
  flex: 0 0 auto;
  padding: 0 0.6rem;
  border: 2px solid var(--dock-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.proof-btn.wide {
  flex: 1 1 100%;
  min-height: 40px;
  font-size: 0.86rem;
}

.easy-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sky);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.easy-hint {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
}

/* --- channel goal bars ---------------------------------------------- */

.goal-meters {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.6rem 0.3rem;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--dock-line, var(--line));
  border-radius: 10px;
}

.goal-title {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

.goal-meters.compact .meter {
  margin-bottom: 0.45rem;
  gap: 0.15rem;
}

.goal-meters.compact .meter-head {
  font-size: 0.72rem;
}

.goal-meters.compact .meter-track {
  height: 8px;
}

.goal-meters.compact .meter small {
  font-size: 0.64rem;
}

/* --- pause screen panel --------------------------------------------- */

.pause-proof {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  text-align: left;
  color: var(--ink);
  background: rgba(10, 6, 22, 0.55);
  border: 2px solid rgba(255, 240, 200, 0.18);
  border-radius: 12px;
}

.pause-proof-head {
  display: grid;
  gap: 0.1rem;
}

.pause-proof-head strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.pause-proof .proof-actions .proof-btn {
  min-height: 40px;
  font-size: 0.84rem;
}

@media (min-width: 720px) {
  .pause-proof {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 0.9rem;
  }

  .pause-proof-head,
  .pause-proof .goal-meters,
  .pause-proof .proof-note {
    grid-column: 1;
  }

  .pause-proof .proof-you,
  .pause-proof .proof-actions,
  .pause-proof .proof-status,
  .pause-proof .easy-login,
  .pause-proof .proof-btn.tiny {
    grid-column: 2;
  }
}

.proof-feed {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.proof-feed li {
  padding: 0.28rem 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--dock-line);
  border-radius: 6px;
}

.proof-feed li.verified {
  border-left-color: var(--mint);
}

.proof-feed b {
  color: var(--ink);
}

.proof-tick {
  color: var(--mint);
  font-weight: 800;
  margin-left: 0.25rem;
}

.proof-note {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 640px) {
  .proof-dock[data-floating] {
    top: auto;
    bottom: max(9.5rem, env(safe-area-inset-bottom));
    width: min(240px, 72vw);
    max-height: 46vh;
  }
}

/* --- dashboard ------------------------------------------------------ */

.growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
  align-items: start;
}

.growth-grid.wide {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-tile {
  padding: 0.6rem 0.7rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.stat-tile span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-tile b {
  display: block;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.stat-tile small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.meter {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.meter-head b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.meter-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--mint));
  transition: width 0.4s ease;
}

.meter.done .meter-fill {
  background: linear-gradient(90deg, var(--mint), var(--amber));
}

.meter small {
  color: var(--muted);
  font-size: 0.72rem;
}

.week-board {
  display: grid;
  gap: 0.6rem;
}

.slot {
  display: grid;
  gap: 0.4rem;
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 12px;
}

.slot.pillar-gameplay {
  border-left-color: var(--pink);
}

.slot.pillar-reveal {
  border-left-color: var(--amber);
}

.slot.pillar-tutorial {
  border-left-color: var(--sky);
}

.slot.pillar-challenge {
  border-left-color: var(--mint);
}

.slot-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.slot-day {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.slot-title {
  font-weight: 800;
}

.slot-hook {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.slot-controls {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.slot-controls input[type="url"],
.slot-controls input[type="text"] {
  flex: 1 1 180px;
  width: auto;
  margin-top: 0;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
}

.pill.status-planned {
  background: rgba(255, 255, 255, 0.12);
}

.pill.status-recorded {
  background: rgba(89, 201, 240, 0.22);
  color: var(--sky);
}

.pill.status-published {
  background: rgba(89, 224, 181, 0.22);
  color: var(--mint);
}

.pill.pillar {
  background: rgba(255, 201, 60, 0.16);
  color: var(--amber);
}

.trend {
  width: 100%;
  height: 150px;
  display: block;
}

.trend-legend {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.74rem;
  color: var(--muted);
}

.trend-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 0.3rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th,
.data-table td {
  padding: 0.35rem 0.4rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
  font-variant-numeric: normal;
}

.data-table th {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-scroll {
  overflow-x: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.rule-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.rule-list li {
  margin-bottom: 0.3rem;
}

.rule-list strong {
  color: var(--ink);
}

/* --- the YouTube player and the "watch next" strip ------------------- */

/* These live here rather than in watch.css because the same player is mounted
   three places: the watch wall, the game's pause sheet and the end-of-run
   sheet. The game pages load this file; they do not load watch.css. */

.yt-player {
  display: grid;
  gap: 0.6rem;
}

.yt-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #0e0922;
  box-shadow: var(--shadow);
}

.yt-frame iframe,
.yt-frame > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The poster is the click that starts a real play. */
.yt-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0e0922;
  color: var(--ink);
  font: inherit;
}

.yt-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.yt-poster:hover img {
  opacity: 0.9;
}

.yt-poster-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--pink);
  color: #2a0f2a;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

.yt-poster-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-weight: 700;
  text-align: left;
}

.yt-caption-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.yt-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.watch-next {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.watch-next-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.watch-next-strip button {
  flex: 0 0 auto;
  width: 132px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.watch-next-strip button:hover {
  border-color: var(--amber);
}

.watch-next-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.watch-next-strip span {
  display: block;
  padding: 0.25rem 0.4rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}
