.hse-game {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
  color: #f8fafc;
}

.hse-game--anomaly-locked {
  pointer-events: auto;
}

.hse-game * {
  box-sizing: border-box;
}

[data-ggid="btn_share"],
[data-ggid="share_btns_container"],
[data-ggid="btn_thumbnails"],
[data-ggid="btn_share_phone"],
[data-ggid="share_btns_container_phone"],
[data-ggid="btn_thumbnails_phone"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hse-game__launch {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid rgba(94, 234, 212, 0.55);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 0 7px rgba(20, 184, 166, 0.14);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  animation: hseGameLaunchPulse 2.2s ease-in-out infinite;
}

.hse-game__launch:hover,
.hse-game__launch:focus-visible {
  background: #0f766e;
  outline: none;
}

.hse-game__panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(390px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.hse-game__panel-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.hse-game__eyebrow {
  margin: 0 0 4px;
  color: #5eead4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hse-game__title,
.hse-game__final-title {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
}

.hse-game__icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.hse-game__icon-button:disabled {
  cursor: wait;
  opacity: 0.9;
}

.hse-game__toggle,
.hse-game__mobile-summary {
  display: none;
}

.hse-game__instruction {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
}

.hse-game__instruction--active {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-left: 5px solid #14b8a6;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.16);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hse-game__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.hse-game__stats > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.hse-game__stat-label {
  display: block;
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hse-game__timer,
.hse-game__counter {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
}

.hse-game__counter {
  font-size: 14px;
}

.hse-game__message {
  margin-top: 14px;
  padding: 11px 12px;
  border-left: 4px solid #14b8a6;
  border-radius: 6px;
  background: rgba(20, 184, 166, 0.16);
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.4;
}

.hse-game__anomaly-info {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: min(430px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(251, 191, 36, 0.48);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  backdrop-filter: blur(12px);
  animation: hseGameResultIn 0.28s ease-out both;
}

.hse-game__anomaly-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hse-game__anomaly-info-close {
  min-width: 44px;
  padding: 0 6px;
  color: #fef3c7;
  font-size: 13px;
  font-weight: 900;
}

.hse-game__anomaly-info-close:not(:disabled) {
  color: #ffffff;
  font-size: 18px;
}

.hse-game__anomaly-info-close--continue:not(:disabled) {
  width: auto;
  min-width: 92px;
  padding: 0 10px;
  color: #0f172a;
  background: #fbbf24;
  font-size: 12px;
}

.hse-game__anomaly-info-title {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
}

.hse-game__anomaly-info-summary {
  margin: 9px 0 0;
  color: #fef3c7;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.hse-game__anomaly-info-list {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
}

.hse-game__anomaly-info-list div {
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.hse-game__anomaly-info-list dt {
  margin: 0 0 4px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hse-game__anomaly-info-list dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.35;
}

.hse-game__modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.56);
  pointer-events: auto;
}

.hse-game__modal-card {
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.hse-game__final-text {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.5;
}

.hse-game__result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  animation: hseGameResultIn 0.42s ease-out both;
}

.hse-game__result-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #052e16;
  background: #86efac;
  font-size: 13px;
  font-weight: 900;
}

.hse-game__result--warning .hse-game__result-badge {
  color: #431407;
  background: #fdba74;
}

.hse-game__result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.hse-game__result-grid div {
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.hse-game__result-grid span {
  display: block;
  margin-bottom: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hse-game__result-grid strong {
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
}

.hse-game__result-message {
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.45;
}

.hse-game__certificate {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(94, 234, 212, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.96));
  color: #0f172a;
  box-shadow: inset 0 0 0 6px rgba(20, 184, 166, 0.08);
  text-align: center;
}

.hse-game__certificate-logo {
  display: block;
  width: min(170px, 58%);
  max-height: 70px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.hse-game__certificate-eyebrow {
  margin: 0 0 6px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hse-game__certificate h3 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
}

.hse-game__certificate-name {
  margin: 16px 0 2px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.hse-game__certificate-company {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
}

.hse-game__certificate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.hse-game__certificate-grid span {
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hse-game__certificate-grid strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
}

.hse-game__certificate-text {
  margin: 16px auto 0;
  max-width: 520px;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.hse-game__certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.hse-game__certificate-print,
.hse-game__certificate-pdf,
.hse-game__certificate-home {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.hse-game__certificate-print {
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.hse-game__certificate-pdf,
.hse-game__certificate-home {
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: #ffffff;
  color: #0f172a;
}

.hse-game__certificate-home {
  flex-basis: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.hse-game__consignation,
.hse-game__quiz {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hse-game__consignation-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.hse-game__consignation-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  cursor: grab;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.hse-game__consignation-item:active {
  cursor: grabbing;
}

.hse-game__consignation-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.14);
  color: #ccfbf1;
  font-size: 13px;
  font-weight: 900;
}

.hse-game__consignation-text {
  min-width: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.hse-game__consignation-item--chosen {
  border-color: rgba(251, 191, 36, 0.72);
  background: rgba(251, 191, 36, 0.12);
}

.hse-game__consignation-item--ghost {
  opacity: 0.45;
}

.hse-game__consignation-item--drag {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.hse-game__consignation-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.hse-game__consignation-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 7px;
  background: rgba(20, 184, 166, 0.14);
  color: #ccfbf1;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.hse-dnd-is-dragging,
.hse-dnd-is-dragging * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.hse-dnd-is-dragging ::selection {
  background: transparent;
}

.hse-game__consignation-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hse-game__consignation-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #5eead4;
  font-size: 14px;
  font-weight: 800;
}

.hse-game__quiz-title {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.hse-game__quiz-subtitle {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

.hse-game__quiz-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hse-game__question {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.hse-game__question legend {
  margin-bottom: 9px;
  padding: 0;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.hse-game__question label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

.hse-game__question label:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hse-game__question input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: #14b8a6;
}

.hse-game__quiz-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #5eead4;
  font-size: 14px;
  font-weight: 800;
}

.hse-game__final-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.hse-game__primary,
.hse-game__secondary {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hse-game__primary {
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.hse-game__secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #ffffff;
}

.hse-game [hidden] {
  display: none !important;
}

.hse-game-hotspot-hint {
  outline: 3px solid #14b8a6 !important;
  outline-offset: 4px !important;
  border-radius: 999px !important;
  filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.9)) !important;
}

.hse-game-hotspot-hint::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(94, 234, 212, 0.9);
  border-radius: 999px;
  pointer-events: none;
  animation: hseGamePulse 1.35s ease-out infinite;
}

.hse-game-hotspot-found {
  outline-color: #ffffff !important;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.95)) !important;
  opacity: 1;
}

.hse-game-hotspot-reveal {
  animation: hseGameFoundPop 1.4s ease-out 1;
}

@keyframes hseGamePulse {
  0% {
    opacity: 0.95;
    transform: scale(0.82);
  }

  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes hseGameFoundPop {
  0% {
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0));
    transform: scale(0.92);
  }

  45% {
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, 1));
    transform: scale(1.08);
  }

  100% {
    filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.95));
    transform: scale(1);
  }
}

@keyframes hseGameLaunchPulse {
  0%,
  100% {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 0 7px rgba(20, 184, 166, 0.14);
  }

  50% {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 0 12px rgba(20, 184, 166, 0.22);
  }
}

@keyframes hseGameResultIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .hse-game__panel {
    right: 8px;
    bottom: 8px;
  }

  .hse-game__launch {
    width: min(310px, calc(100vw - 32px));
    min-height: 56px;
    padding: 0 18px;
    text-align: center;
  }

  .hse-game__panel {
    width: calc(100vw - 16px);
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .hse-game__panel-header {
    gap: 8px;
    align-items: center;
  }

  .hse-game__panel-heading {
    min-width: 0;
    flex: 1 1 auto;
  }

  .hse-game__eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .hse-game__title {
    font-size: 15px;
  }

  .hse-game__icon-button {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .hse-game__toggle {
    display: grid;
  }

  .hse-game__mobile-summary {
    display: block;
    margin: 3px 0 0;
    color: #5eead4;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
  }

  .hse-game__panel--collapsed {
    transform: translateY(calc(100% - 50px));
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.36);
  }

  .hse-game__panel--collapsed .hse-game__instruction,
  .hse-game__panel--collapsed .hse-game__stats,
  .hse-game__panel--collapsed .hse-game__message {
    visibility: hidden;
  }

  .hse-game__instruction {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.3;
  }

  .hse-game__instruction--active {
    padding: 9px 10px;
    border-left-width: 4px;
    font-size: 13px;
    line-height: 1.32;
  }

  .hse-game__stats {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 7px;
    margin-top: 9px;
  }

  .hse-game__stats > div {
    padding: 7px 8px;
  }

  .hse-game__stat-label {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .hse-game__timer {
    font-size: 16px;
  }

  .hse-game__counter {
    font-size: 12px;
    line-height: 1.25;
  }

  .hse-game__message {
    margin-top: 8px;
    padding: 8px 9px;
    font-size: 12px;
    line-height: 1.3;
  }

  .hse-game__anomaly-info {
    left: 8px;
    bottom: 132px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 156px);
    overflow: auto;
    padding: 11px;
  }

  .hse-game__anomaly-info-title {
    font-size: 15px;
  }

  .hse-game__anomaly-info-summary,
  .hse-game__anomaly-info-list dd {
    font-size: 12px;
    line-height: 1.3;
  }

  .hse-game__anomaly-info-list {
    gap: 6px;
    margin-top: 9px;
  }

  .hse-game__anomaly-info-list div {
    padding: 8px 9px;
  }

  .hse-game__final-actions {
    flex-direction: column;
  }

  .hse-game__result-grid {
    grid-template-columns: 1fr;
  }

  .hse-game__consignation-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 9px;
  }

  .hse-game__consignation-rank,
  .hse-game__consignation-controls button {
    width: 30px;
    height: 30px;
  }

  .hse-game__consignation-controls {
    gap: 5px;
  }
}
