/* "?" help buttons + the white help panel (helpCenter.js) and the first-time guide (gameTutorial.js).
   Panels: inside #gameViewport, position:absolute; inset:0 — AGENTS.md §4.2. */

/* the round "?" */
.help-q-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: transform 0.12s ease;
}
.help-q-btn:hover { transform: scale(1.08); }
.help-q-btn:active { transform: scale(0.95); }
.help-has-corner { position: relative; }
.help-q-btn.help-q-corner { position: absolute; top: 14px; right: 18px; z-index: 30; margin: 0; }

/* the help panel: white theme, three wide cards. It opens from a "?" inside other panels too (the player card is
   z-index 99999, listing dialogs 100000), so it sits above every game panel — only the dialogs/toasts stay above it. */
.help-panel {
  position: absolute;
  inset: 0;
  z-index: 900000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3%, 40px);
  background: rgba(2, 6, 23, 0.6);
}
.help-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3%, 34px);
  border-radius: 24px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.help-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.help-head { display: flex; align-items: center; gap: 16px; padding-right: 50px; }
.help-head-icon { width: 58px; height: 58px; display: grid; place-items: center; font-size: 30px; border-radius: 18px; background: linear-gradient(135deg, #e0f2fe, #ede9fe); }
.help-eyebrow { font-size: 14px; font-weight: 700; color: #6366f1; text-transform: uppercase; letter-spacing: 0.6px; }
.help-head h3 { margin: 2px 0 0; font-size: 30px; font-weight: 900; color: #0f172a; }
.help-items { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow-y: auto; }
.help-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.help-item-icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px; border-radius: 16px; background: #ffffff; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
.help-item b { display: block; font-size: 21px; color: #0f172a; margin-bottom: 4px; }
.help-item p { margin: 0; font-size: 18px; line-height: 1.45; color: #475569; }
.help-tour-btn { align-self: flex-start; padding: 12px 18px; border-radius: 14px; border: 1px solid #c7d2fe; background: #eef2ff; color: #4338ca; font-size: 16px; font-weight: 800; cursor: pointer; }

/* first-time guide */
.tut-panel {
  position: absolute;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3%, 40px);
  background: rgba(2, 6, 23, 0.72);
}
.tut-card {
  width: 100%;
  max-width: 640px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(22px, 3.5%, 40px);
  border-radius: 28px;
  background: #ffffff;
  color: #0f172a;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.tut-top { align-self: stretch; display: flex; justify-content: space-between; align-items: center; }
.tut-count { font-size: 15px; font-weight: 800; color: #6366f1; }
.tut-skip { border: 0; background: transparent; color: #64748b; font-size: 17px; font-weight: 800; cursor: pointer; padding: 6px 10px; border-radius: 10px; }
.tut-skip:hover { background: #f1f5f9; color: #0f172a; }
.tut-icon { width: 104px; height: 104px; display: grid; place-items: center; font-size: 56px; border-radius: 30px; background: linear-gradient(135deg, #e0f2fe, #ede9fe); }
.tut-title { margin: 6px 0 0; font-size: 32px; font-weight: 900; }
.tut-text { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.5; color: #475569; }
.tut-dots { display: flex; gap: 8px; margin: 6px 0 4px; }
.tut-dots span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.tut-dots span.done { background: #a5b4fc; }
.tut-dots span.on { width: 28px; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #6366f1); }
.tut-actions { align-self: stretch; display: flex; justify-content: space-between; gap: 12px; }
.tut-btn { min-width: 150px; padding: 14px 22px; border-radius: 16px; border: 0; font-size: 18px; font-weight: 900; cursor: pointer; }
.tut-back { background: #f1f5f9; color: #334155; }
.tut-next { background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff; box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35); }

/* season prizes inside the help of Lig / Kupa / Şampiyonlar Kupası / Federasyon (HelpCenter.fillPrizes) */
.help-prizes { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; border-radius: 18px; background: #f0f9ff; border: 1px solid #e0f2fe; }
.help-prizes-title { font-size: 20px; color: #0f172a; }
.help-prizes-sub, .help-prizes-loading { margin: 0; font-size: 15px; line-height: 1.4; color: #475569; }
.help-prizes-rows { display: flex; flex-direction: column; gap: 6px; }
.help-prize-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: #ffffff; border: 1px solid #e2e8f0; }
.help-prize-who { font-size: 16px; font-weight: 800; color: #0f172a; }
.help-prize-vals { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; }
.help-prize-pts { font-size: 14px; color: #0369a1; }
