/* ======================================================================
   v521-friends.css — v5.21.0 Friends Phase A styles
   Daily Challenge entry button, rating preview, share buttons.
   ====================================================================== */

/* ---------- Daily Challenge entry button (home screen) ---------- */
#dailyEntryBtn {
  position: fixed;
  top: 76px;
  right: 14px;
  z-index: 8001;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6a64a 0%, #ffe27a 100%);
  color: #03101c;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(246, 166, 74, .35), 0 2px 4px rgba(0,0,0,.2);
  transition: transform .18s ease, box-shadow .18s ease;
}
#dailyEntryBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(246, 166, 74, .55), 0 2px 4px rgba(0,0,0,.2);
}
#dailyEntryBtn .daily-icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}
#dailyEntryBtn .daily-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
#dailyEntryBtn .daily-text-top { font-size: 14px; letter-spacing: 1.5px; }
#dailyEntryBtn .daily-text-sub { font-size: 10px; font-weight: 700; opacity: .75; letter-spacing: .5px; }

/* Hide the Daily entry while a match is active. */
body.match-active #dailyEntryBtn { display: none; }

/* v5.21.1 — Mobile: keep daily button at top-right, BELOW the tournament button,
   not at the bottom where it overlaps the persistent dock. */
@media (max-width: 720px) {
  #dailyEntryBtn {
    top: 60px;          /* below tournament btn (top:12 + ~36 = ~52, then 8px gap) */
    right: 10px;
    padding: 7px 11px;
    border-radius: 12px;
  }
  #dailyEntryBtn .daily-icon { font-size: 18px; }
  #dailyEntryBtn .daily-text-top { font-size: 11px; letter-spacing: 1px; }
  #dailyEntryBtn .daily-text-sub { font-size: 9px; }
}

/* Very narrow: stack icon+text tighter */
@media (max-width: 380px) {
  #dailyEntryBtn { padding: 6px 9px; gap: 8px; }
  #dailyEntryBtn .daily-text-top { font-size: 10px; }
}

/* ---------- Inline rating preview in stat sheet ---------- */
.sheet-rating-preview {
  margin: 14px auto 6px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(26,210,194,.12), rgba(255,226,122,.10));
  border: 1px solid rgba(26,210,194,.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 360px;
}
.sheet-rating-preview .srp-row {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.sheet-rating-preview .srp-label {
  font: 800 11px Arial, sans-serif;
  letter-spacing: 2px;
  color: rgba(255,255,255,.65);
}
.sheet-rating-preview .srp-grade {
  font: 900 28px 'Roboto Condensed', Arial;
  color: #ffe27a;
  letter-spacing: 1px;
}
.sheet-rating-preview .srp-num {
  font: 900 56px 'Roboto Condensed', Arial;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.sheet-rating-preview .srp-num small {
  font: 700 16px Arial;
  opacity: .55;
}

/* ---------- New stat-sheet button row ---------- */
.sheet-actions-v521 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.sheet-actions-v521 .sheet-share-btn {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 12px 14px;
  border: none;
  border-radius: 999px;
  font: 900 12px Arial, sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.sheet-actions-v521 .sheet-share-card {
  background: linear-gradient(135deg, #1ad2c2, #7df8a4);
  color: #03101c;
}
.sheet-actions-v521 .sheet-share-link {
  background: linear-gradient(135deg, #ffe27a, #f6a64a);
  color: #03101c;
}
.sheet-actions-v521 #sheetShareBtn {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.sheet-actions-v521 .sheet-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* ---------- Daily badge on entry button (refreshes via JS) ---------- */
#dailyEntryBtn[data-played="1"]::after {
  content: '✓';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #7df8a4;
  color: #03101c;
  font: 900 14px Arial;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #03101c;
}
