:root {
  --bg: #eef5ff;
  --panel: #ffffff;
  --blue: #1f6fe5;
  --blue-dark: #114ea5;
  --green: #4caf50;
  --green-dark: #2e7d32;
  --yellow: #ffd54f;
  --text: #22304a;
  --muted: #5b6b88;
  --border: #cfe0ff;
  --shadow: 0 12px 28px rgba(31, 70, 140, 0.14);
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf3ff 100%);
  color: var(--text);
}

.app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px;
  min-height: 100vh;
}

.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 18px;
  position: sticky;
  top: 16px;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.title-container {
  text-align: center;
  margin-bottom: 12px;
}

.title-image {
  height: 100px;
  object-fit: contain;
}

button {
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

button:hover { transform: translateY(-1px); }
button:active { transform: translateY(1px); }
/* button:disabled { opacity: .6; cursor: default; } */
button:disabled {
  opacity: 0.4;
  filter: grayscale(0.3);
}

.btn-primary {
  background: linear-gradient(180deg, #3e8cff 0%, #1f6fe5 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(31, 111, 229, 0.22);
}

.btn-soft {
  background: #f3f8ff;
  color: var(--blue-dark);
  border: 2px solid #dbe9ff;
}

.btn-success {
  background: linear-gradient(180deg, #68d16d 0%, #39a444 100%);
  color: white;
  box-shadow: 0 10px 18px rgba(57, 164, 68, 0.2);
}

.status-line {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.4;
}

.status-label {
  font-weight: bold;
  color: var(--blue-dark);
}

.main {
  padding: 12px;
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.topbar h2 {
  margin: 0;
  font-size: 30px;
  color: var(--blue-dark);
}

.top-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f1f7ff;
  border: 2px solid #dce9ff;
  color: var(--blue-dark);
  font-weight: bold;
  font-size: 15px;
}

.board-shell {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
  min-height: 0;
}

.board {
  position: relative;
  width: 100%;
  height: calc(100vh - 170px);
  max-width: 760px;
  min-height: 420px;
  overflow: hidden;
  border-radius: 18px;
  background: #f7fbff;
  box-shadow: inset 0 0 0 2px #edf5ff;
}

.board-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.mystery-card {
  margin-top: 14px;
  border: 2px solid #e2edff;
  border-radius: 18px;
  padding: 12px;
  background: #fbfdff;
}

.mystery-title {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: bold;
}

.mystery-frame {
  border: 2px solid #dbe9ff;
  border-radius: 16px;
  background: #ffffff;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.mystery-image {
  max-width: 100%;
  max-height: 260px;
  display: none;
  border-radius: 12px;
}

.mystery-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.hotspot-layer,
.highlight-layer,
.trail-layer {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  width: 3.6%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.02);
}

.hotspot:hover {
  outline: 2px solid rgba(255, 213, 79, 0.55);
  outline-offset: 2px;
}

.hotspot.locked {
  cursor: default;
}

.trail-dot {
  position: absolute;
  width: 1.7%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(76, 175, 80, 0.92);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.highlight {
  position: absolute;
  width: 5.2%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,180,.45) 0%, rgba(255,235,59,.24) 42%, rgba(255,235,59,0) 72%);
  box-shadow: 0 0 0 8px rgba(255, 235, 59, 0.18), 0 0 22px 10px rgba(255, 235, 59, 0.18);
  pointer-events: none;
  transition: left .22s ease, top .22s ease, opacity .18s ease;
  animation: pulse 1.25s infinite ease-in-out;
  z-index: 3;
}

@keyframes pulse {
  0%,100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}

.footer {
    margin-top: 4px;
    padding: 7px 10px;
    text-align: center;
    background: #f4f8ff;
    border-top: 2px solid #dbe9ff;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 34px;
  display: block;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #dbe9ff;
  color: var(--blue-dark);
  text-decoration: none;
  font-size: 18px;
}

.social-link:hover { transform: translateY(-1px); }
.social-link i {
  font-size: 18px;
}

/* Cores opcionais (fica lindo) */
.social-link .fa-youtube {
  color: #FF0000;
}

.social-link .fa-instagram {
  color: #E1306C;
}

.message-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: bold;
  display: none;
}

.message-box.info {
  display: block;
  background: #f3f8ff;
  border: 2px solid #dbe9ff;
  color: var(--blue-dark);
}

.message-box.success {
  display: block;
  background: #eefcf0;
  border: 2px solid #ccefd1;
  color: var(--green-dark);
}

.message-box.warn {
  display: block;
  background: #fff8e7;
  border: 2px solid #ffe0a8;
  color: #946400;
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 720px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .topbar h2 { font-size: 24px; }
  .status-line { font-size: 16px; }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .board {
    height: calc(100vh - 320px);
    max-width: 620px;
  }
}
