/* =========================================================
   FAMILIO GAMES
   FAMILY FEUD / FAMILIADA CONTROLLER
   ========================================================= */


/* =========================================================
   APP CHROME — MATCH DASHBOARD / PROJECT PAGES
   ========================================================= */

body.theme-app .content {
  background:
    radial-gradient(
      900px 520px at 18% 0%,
      rgba(154, 108, 255, 0.14),
      transparent 62%
    ),
    radial-gradient(
      780px 460px at 100% 18%,
      rgba(224, 86, 255, 0.10),
      transparent 64%
    ),
    linear-gradient(
      145deg,
      #11131d 0%,
      #171522 48%,
      #10121a 100%
    ) !important;

  color: #f4f1fb !important;
}


/* Sidebar */

body.theme-app .sidebar {
  background:
    radial-gradient(
      420px 300px at 30% 0%,
      rgba(154, 108, 255, 0.15),
      transparent 65%
    ),
    linear-gradient(
      180deg,
      #171320 0%,
      #100e17 100%
    ) !important;

  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f5f1fb !important;
}


/* White Familio logo */

body.theme-app .sidebar .brand img {
  filter: brightness(0) invert(1) !important;
}


/* Sidebar links — ensure they are visible */

body.theme-app .sidebar .nav-link,
body.theme-app .sidebar a {
  color: #ffffff !important;
  opacity: 1 !important;
}


body.theme-app .sidebar .nav-link span,
body.theme-app .sidebar a span {
  color: #ffffff !important;
  opacity: 1 !important;
}


body.theme-app .sidebar .nav-link:hover,
body.theme-app .sidebar a:hover {
  color: #ffffff !important;
}


/* Sidebar secondary text */

body.theme-app .sidebar .text-muted,
body.theme-app .sidebar small {
  color: rgba(255, 255, 255, 0.64) !important;
  opacity: 1 !important;
}


/* =========================================================
   PAGE
   ========================================================= */

.gc-page {
  min-height: 100vh;
  color: #f4f1fb;
  padding: 22px 0 38px;
}


.gc-container {
  max-width: 1500px;
  padding-left: 28px;
  padding-right: 28px;
}


/* =========================================================
   HEADER
   ========================================================= */

.gc-header {
  margin-bottom: 18px;
}


.gc-eyebrow,
.gc-panel-kicker,
.gc-section-label {
  color: #ffc107;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 800;
}


.gc-header h1 {
  margin: 4px 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #ffffff;
}


.gc-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   TOP ACTION BUTTONS
   ========================================================= */

.gc-top-actions {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(210px, 1fr)
  );

  gap: 12px;
  margin-bottom: 12px;
}


.gc-top-action {
  min-height: 64px;

  border-radius: 14px !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.16) !important;

  color: #ffffff !important;

  font-weight: 800 !important;
  font-size: 1rem !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  gap: 10px;

  box-shadow:
    0 12px 28px
    rgba(0, 0, 0, 0.16);
}


.gc-action-primary {
  background: #ffc107 !important;
  color: #18131f !important;
  border-color: #ffc107 !important;
}


.gc-action-secondary {
  background:
    rgba(154, 108, 255, 0.16) !important;

  border-color:
    rgba(154, 108, 255, 0.40) !important;
}


.gc-action-display {
  background:
    rgba(49, 129, 255, 0.18) !important;

  border-color:
    rgba(74, 144, 255, 0.42) !important;
}


.gc-action-halloween {
  background:
    rgba(255, 126, 34, 0.16) !important;

  border-color:
    rgba(255, 126, 34, 0.42) !important;
}


.gc-top-action:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.07);
}


.gc-top-action:disabled {
  opacity: 0.42 !important;
}


.gc-action-icon {
  font-size: 1.1rem;
}


/* =========================================================
   TV / PROJECTOR MODE
   ========================================================= */

.gc-mode-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  gap: 8px;

  margin-bottom: 18px;
}


.gc-tv-toggle {
  display: flex;
  align-items: center;

  gap: 9px;

  color:
    rgba(255, 255, 255, 0.74);
}


.gc-tv-toggle .form-check-input {
  margin-top: 0;
}


.gc-info-btn {
  width: 30px;
  height: 30px;

  padding: 0 !important;

  border-radius: 50% !important;

  color: #ffffff !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.22) !important;

  background:
    rgba(255, 255, 255, 0.05) !important;

  font-weight: 800 !important;
}


/* =========================================================
   QUESTION SELECT
   ========================================================= */

.gc-question-section {
  margin-bottom: 18px;
}


.gc-question-section .gc-section-label {
  display: block;
  margin-bottom: 7px;
}


.gc-question-select {
  width: 100% !important;
  max-width: none !important;

  min-height: 58px;

  border-radius: 14px !important;

  background: #151723 !important;
  color: #ffffff !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.16) !important;

  font-size: 1.08rem !important;
  font-weight: 650;

  padding:
    0 18px !important;
}


.gc-question-select:focus {
  border-color:
    rgba(154, 108, 255, 0.76) !important;

  box-shadow:
    0 0 0 0.2rem
    rgba(154, 108, 255, 0.12) !important;
}


/* =========================================================
   MAIN WORKSPACE
   ========================================================= */

.gc-workspace {
  display: grid;

  grid-template-columns:
    minmax(280px, 360px)
    minmax(0, 1fr);

  gap: 18px;

  align-items: stretch;
}


.gc-control-panel,
.gc-answer-panel {
  background:
    radial-gradient(
      380px 200px at 100% 0%,
      rgba(154, 108, 255, 0.06),
      transparent 64%
    ),
    rgba(24, 26, 38, 0.95);

  border:
    1px solid
    rgba(255, 255, 255, 0.16);

  border-radius: 20px;

  box-shadow:
    0 16px 38px
    rgba(0, 0, 0, 0.20);
}


.gc-control-panel {
  padding: 22px;
}


.gc-answer-panel {
  padding: 22px;

  min-height: 470px;

  display: flex;
  flex-direction: column;
}


/* =========================================================
   PANEL HEADINGS
   ========================================================= */

.gc-panel-heading {
  margin-bottom: 18px;
}


.gc-panel-heading h2 {
  color: #ffffff;

  font-size: 1.35rem;

  font-weight: 850;

  margin:
    4px 0 0;
}


/* =========================================================
   TEAM SELECT
   ========================================================= */

.gc-team-select {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 9px;

  margin-bottom: 13px;
}


.gc-team-btn {
  min-height: 74px;

  border-radius: 13px !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.16) !important;

  display: flex !important;

  flex-direction: column;

  align-items: flex-start;

  justify-content: center;

  padding:
    12px 14px !important;

  color: #ffffff !important;

  background:
    rgba(255, 255, 255, 0.045) !important;

  text-align: left;
}


.gc-team-btn strong {
  font-size: 1rem;
  line-height: 1.2;
}


.gc-team-small {
  font-size: 0.7rem;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color:
    rgba(255, 255, 255, 0.55);

  margin-bottom: 4px;
}


.gc-team-btn.active {
  background:
    rgba(255, 193, 7, 0.13) !important;

  border-color:
    rgba(255, 193, 7, 0.60) !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(255, 193, 7, 0.18);
}


/* =========================================================
   CURRENTLY ANSWERING
   Simplified — no separate card
   ========================================================= */

.gc-current-team-card {
  display: flex;

  align-items: baseline;

  gap: 7px;

  flex-wrap: wrap;

  margin: 13px 0 16px;

  padding: 0 2px;

  background: transparent !important;

  border: 0 !important;

  border-radius: 0 !important;

  box-shadow: none !important;
}


.gc-current-team-card span {
  display: inline;

  color:
    rgba(255, 255, 255, 0.62);

  font-size: 0.76rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.07em;

  margin: 0;
}


.gc-current-team-card strong {
  display: inline;

  color: #ffffff;

  font-size: 1.05rem;

  font-weight: 850;
}


/* =========================================================
   STRIKE BUTTON
   ========================================================= */

.gc-strike-btn {
  width: 100%;

  min-height: 54px;

  margin-bottom: 18px;

  border-radius: 13px !important;

  background:
    rgba(255, 74, 95, 0.12) !important;

  color:
    #ffb2bc !important;

  border:
    1px solid
    rgba(255, 74, 95, 0.38) !important;

  font-weight: 850 !important;

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

  gap: 8px !important;

  text-align: center !important;
}


.gc-strike-btn span {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  line-height: 1;
}


.gc-strike-btn:hover {
  background:
    rgba(255, 74, 95, 0.20) !important;

  color: #ffffff !important;
}


/* =========================================================
   AWARD POINTS
   ========================================================= */

.gc-award-section {
  display: grid;

  gap: 9px;
}


.gc-award-btn {
  width: 100%;

  min-height: 48px;

  border-radius: 12px !important;

  background:
    rgba(255, 193, 7, 0.10) !important;

  color:
    #ffe79a !important;

  border:
    1px solid
    rgba(255, 193, 7, 0.28) !important;

  font-weight: 750 !important;

  text-align: left !important;
}


.gc-award-btn:hover {
  background:
    rgba(255, 193, 7, 0.18) !important;

  color: #ffffff !important;
}


/* =========================================================
   ANSWERS PANEL
   ========================================================= */

.gc-answer-controls {
  flex: 1;
}


.answer-placeholder {
  width: 100%;
  max-width: none;
}


.answer-skeleton-row {
  display: grid;

  grid-template-columns:
    1fr 56px;

  align-items: center;

  gap: 12px;

  margin:
    10px 0;
}


.answer-skeleton-text {
  height: 54px;

  border-radius: 12px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 25%,
      rgba(255, 255, 255, 0.09) 50%,
      rgba(255, 255, 255, 0.04) 75%
    );

  background-size:
    200% 100%;

  animation:
    answerSkeletonPulse
    1.8s
    ease-in-out
    infinite;
}


.answer-skeleton-button {
  width: 56px;
  height: 46px;

  border-radius: 11px;

  background:
    rgba(255, 255, 255, 0.07);
}


@keyframes answerSkeletonPulse {

  0% {
    background-position:
      200% 0;
  }

  100% {
    background-position:
      -200% 0;
  }
}


/* Actual loaded answer rows */

.gc-answer-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    58px;

  align-items: center;

  gap: 12px;

  min-height: 62px;

  margin-bottom: 10px;

  padding:
    9px 10px
    9px 16px;

  border-radius: 14px;

  background:
    rgba(18, 20, 30, 0.94);

  border:
    1px solid
    rgba(255, 255, 255, 0.12);
}


.gc-answer-text {
  color: #ffffff;

  min-width: 0;

  font-size: 1.05rem;

  font-weight: 650;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


.gc-reveal-btn {
  width: 48px;
  height: 42px;

  padding: 0 !important;

  border-radius: 11px !important;

  background:
    rgba(64, 195, 124, 0.14) !important;

  color:
    #9ff0bd !important;

  border:
    1px solid
    rgba(64, 195, 124, 0.34) !important;

  font-size: 1.05rem !important;

  font-weight: 900 !important;
}


.gc-reveal-btn:hover {
  color: #ffffff !important;

  background:
    rgba(64, 195, 124, 0.22) !important;
}


.gc-reveal-btn:disabled {
  opacity: 0.38;
}


/* =========================================================
   BACK TO PROJECT
   ========================================================= */

.gc-back-row {
  margin-top: 20px;

  padding-top: 16px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.09);
}


.gc-back-btn {
  color: #ffffff !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.20) !important;

  background:
    rgba(255, 255, 255, 0.05) !important;

  border-radius: 11px !important;

  font-weight: 700 !important;
}


.gc-back-btn:hover {
  color: #ffffff !important;

  background:
    rgba(255, 255, 255, 0.11) !important;
}


/* =========================================================
   FULLSCREEN HELP MODAL
   ========================================================= */

#fullscreenHelpModal .modal-content {
  background: #191b28 !important;

  color: #ffffff !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.16) !important;

  border-radius: 18px !important;
}


#fullscreenHelpModal .modal-header {
  border-color:
    rgba(255, 255, 255, 0.10) !important;
}


#fullscreenHelpModal .modal-title,
#fullscreenHelpModal .modal-body,
#fullscreenHelpModal .modal-body strong {
  color: #ffffff !important;
}


#fullscreenHelpModal .text-muted {
  color:
    rgba(255, 255, 255, 0.62) !important;
}


#fullscreenHelpModal .btn-close {
  filter:
    invert(1)
    grayscale(1)
    brightness(2);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

  .gc-workspace {
    grid-template-columns:
      1fr;
  }

}


@media (max-width: 575.98px) {

  .gc-container {
    padding-left: 14px;
    padding-right: 14px;
  }


  .gc-top-actions {
    grid-template-columns:
      1fr;
  }


  .gc-team-select {
    grid-template-columns:
      1fr;
  }


  .gc-answer-row {
    grid-template-columns:
      minmax(0, 1fr)
      52px;
  }


  .gc-header h1 {
    font-size: 1.7rem;
  }

}

/* Currently answering - final spacing fix */
.gc-current-team-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;

  margin-top: 13px !important;
  margin-bottom: 16px !important;

  padding: 0 2px;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.gc-current-team-line span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.gc-current-team-line strong {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
}

/* Explicit gap before Strike */
.gc-current-team-line + .gc-strike-btn {
  margin-top: 0 !important;
}