/* gamefull.css */
#gameFull {
  background: linear-gradient(145deg, #f3efff, #ffffff);
  padding: 0 0 28px;
}

.full-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, #5b3fa6, #7a5ad1);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  box-shadow: 0 8px 20px rgba(91, 63, 166, 0.3);
}

.full-brand {
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.full-timer {
  justify-self: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  min-width: 128px;
  text-align: center;
}

.full-timer.is-urgent {
  color: #ff4a4a;
}

#fullPrepareSubmitBtn {
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  background: #fff;
  color: #4a2f8a;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

#fullPrepareSubmitBtn:disabled,
#fullSubmitBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

#fullPrepareSubmitBtn:hover {
  filter: brightness(0.96);
}

.full-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#fullQuickBtn {
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  background: #fff;
  color: #4a2f8a;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

#fullQuickBtn:hover {
  filter: brightness(0.96);
}

#fullQuickPanel {
  width: min(1080px, 94vw);
  margin: 12px auto 8px;
  background: #ffffff;
  border: 2px solid #7a5ad1;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(91, 63, 166, 0.16);
  overflow: hidden;
}

#fullQuickPanel[hidden] {
  display: none !important;
}

#fullQuickGrid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.full-quick-item {
  border: 2px solid #7a5ad1;
  background: #fff;
  color: #5b3fa6;
  border-radius: 10px;
  min-height: 42px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.full-quick-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-right: 14px solid transparent;
  z-index: 2;
}

.full-quick-item.flag-green::before {
  border-top-color: #1f9d55;
}

.full-quick-item.flag-orange::before {
  border-top-color: #f08a24;
}

.full-quick-item.flag-red::before {
  border-top-color: #e04949;
}

.full-quick-item:hover {
  filter: brightness(0.98);
}

.full-quick-item.is-done {
  background: #5b3fa6;
  color: #fff;
}

.full-quick-item.is-progress {
  background: linear-gradient(
    to right,
    #5b3fa6 0%,
    #5b3fa6 var(--quick-fill, 0%),
    #ffffff var(--quick-fill, 0%),
    #ffffff 100%
  );
}

.full-quick-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.full-quick-char {
  color: #5b3fa6;
}

.full-quick-item.quick-text-first .full-quick-char:first-child {
  color: #ffffff;
}

.full-quick-item.quick-text-all .full-quick-char {
  color: #ffffff;
}

.full-quick-item.is-done .full-quick-char {
  color: #ffffff;
}

.full-quick-item.quick-wrong {
  background: #d94848 !important;
  border-color: #bc3737 !important;
}

.full-quick-item.quick-wrong .full-quick-char {
  color: #ffffff !important;
}

.full-quick-item.quick-wrong-tf {
  background: linear-gradient(
    to right,
    #5b3fa6 0%,
    #5b3fa6 var(--tf-correct-fill, 0%),
    #d94848 var(--tf-correct-fill, 0%),
    #d94848 100%
  ) !important;
  border-color: #bc3737 !important;
}

.full-quick-item.quick-wrong-tf .full-quick-char {
  color: #ffffff !important;
}

#fullQuestionList {
  width: min(1080px, 94vw);
  margin: 24px auto 0;
}

.full-section-title {
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #5b3fa6, #7a5ad1);
  border: 1px solid #2f1f5a;
  border-top: 5px solid rgba(255, 255, 255, 0.28);
  border-bottom: 5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 18px rgba(91, 63, 166, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.full-question-wrap {
  margin-bottom: 20px;
}

.full-question-label {
  text-align: center;
  font-size: 27px;
  font-weight: 900;
  color: #5b3fa6;
  margin-bottom: 8px;
}

.full-question-card {
  background: #fff;
  border: 2px solid #7a5ad1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(91, 63, 166, 0.14);
}

.full-card-top {
  background: linear-gradient(135deg, #ece6ff, #f5f1ff);
  border-bottom: 2px solid #7a5ad1;
  color: #4a2f8a;
  text-align: center;
  font-size: 27px;
  font-weight: 900;
  padding: 10px 14px;
  position: relative;
}

.full-card-top-title {
  pointer-events: none;
}

.full-ask-chatgpt-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #d9b656;
  background: linear-gradient(135deg, #fff0a8 0%, #f5c84c 45%, #d99a1f 100%);
  color: #3f2b00;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(217, 154, 31, 0.28);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.full-ask-chatgpt-btn:hover {
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 10px 22px rgba(217, 154, 31, 0.4);
  filter: saturate(1.08);
}

.full-ask-chatgpt-btn:active {
  transform: translateY(-50%);
}


.full-card-body {
  padding: 24px;
}

.full-question-card .question {
  margin-top: 0;
}

.full-selected-choice {
  outline: 3px solid rgba(91, 63, 166, 0.28);
}

.full-locked-answer {
  background: #ff7a00 !important;
  border-color: #d36400 !important;
  color: #ffffff !important;
  font-weight: 800;
}

.full-pending-choice {
  border-color: #7a5ad1 !important;
  box-shadow: 0 0 0 2px rgba(122, 90, 209, 0.32) inset !important;
  transform: scale(0.985);
  color: inherit !important;
}

.full-row-locked {
  background: #ddddE3;
  border-color: #a9a9b5;
}

.full-selected-btn {
  background: #ff7a00 !important;
  color: #fff !important;
  border-color: #d36400 !important;
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.45) !important;
}

.full-pending-btn {
  background: #4f36a0 !important;
  color: #ffffff !important;
  border-color: #3d2884 !important;
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(79, 54, 160, 0.55) !important;
}

.full-short-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.full-short-action-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-left: 0;
}

.full-short-btn-locked {
  background: linear-gradient(135deg, #ff8a1f, #ff6d00) !important;
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.42) !important;
}

.full-short-btn-submitted {
  background: #9a9a9a !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: default !important;
}

.full-short-correct-answer {
  font-weight: 800;
  color: #2d2d2d;
}

.full-review-correct-center {
  width: 100%;
  margin-top: 10px;
  text-align: center;
  font-weight: 800;
  color: #253247;
}

#fullFinalSubmitWrap {
  width: min(1080px, 94vw);
  margin: 8px auto 18px;
  display: flex;
  justify-content: center;
}

#fullFinalSubmitWrap[hidden] {
  display: none !important;
}

#fullSubmitBtn {
  border: none;
  border-radius: 999px;
  width: min(360px, 92vw);
  padding: 14px 20px;
  font-size: 20px;
  font-weight: 800;
  font-family: inherit;
  background: linear-gradient(135deg, #5b3fa6, #7a5ad1);
  color: #fff;
  box-shadow: 0 14px 30px rgba(91, 63, 166, 0.3);
  cursor: pointer;
}

#fullSubmitBtn:hover {
  filter: brightness(1.05);
}

.full-review-note {
  width: min(1080px, 94vw);
  margin: 14px auto 2px;
  text-align: center;
  font-weight: 700;
  color: #5b3fa6;
}

@media (max-width: 760px) {
  .full-section-title {
    margin-top: 22px;
    margin-bottom: 14px;
  }

  .full-topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand timer"
      "actions actions";
    justify-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .full-brand {
    grid-area: brand;
    font-size: 18px;
    min-width: 0;
    white-space: nowrap;
  }

  .full-timer {
    grid-area: timer;
    justify-self: end;
    font-size: 20px;
    min-width: 110px;
    padding: 6px 12px;
  }

  .full-actions {
    grid-area: actions;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #fullPrepareSubmitBtn,
  #fullQuickBtn {
    width: 100%;
    padding: 10px 12px;
    font-size: 18px;
  }

  #fullQuickPanel {
    width: min(100%, calc(100vw - 20px));
    margin: 10px auto 8px;
    padding: 10px;
    border-radius: 12px;
    max-height: 42vh;
    overflow: auto;
  }

  #fullQuickGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .full-quick-item {
    min-height: 38px;
    border-radius: 9px;
    font-size: 18px;
  }

  .full-quick-item::before {
    border-top-width: 12px;
    border-right-width: 12px;
  }

  .full-card-body {
    padding: 16px;
  }

  .full-card-top.is-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    padding: 10px 12px;
  }

  .full-card-top.is-review .full-card-top-title {
    text-align: left;
    padding-left: 2px;
    flex: 1;
  }

  .full-card-top.is-review .full-ask-chatgpt-btn {
    position: static;
    transform: none;
    margin-left: 0;
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 13px;
  }

  .full-card-top.is-review .full-ask-chatgpt-btn:hover {
    transform: translateY(-1px);
  }
}
