
.game-wrap {
  max-width: 420px;
  width: 100%;
  padding: 0 24px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.round-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.round-label,
.timer {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #fff;
}

.cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  border-radius: 4px;
}

.cover-img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* --- Guess dots --- */
.guess-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.guess-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.guess-dot--used {
  background: #e07070;
}

.guess-dot--giveup {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 9px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: auto;
  cursor: pointer;
}

.guess-dot--giveup:hover {
  color: rgba(255, 255, 255, 0.9);
}

.guess-dot--giveup.disabled {
  pointer-events: none;
  opacity: 0.3;
}

/* --- Hint tooltips on dots --- */
.guess-dot--has-hint {
  cursor: default;
  position: relative;
}

.dot-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.75);
  transform-origin: bottom center;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.dot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(20, 20, 20, 0.95);
}

.guess-dot--has-hint:hover .dot-tooltip,
.dot-tooltip--pop {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.hint-label {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.hint-value {
  color: #fff;
  font-size: 17px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

.guess-row {
  position: relative;
  display: flex;
  gap: 8px;
}

.guess-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  border: 2px solid #555;
  background: transparent;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.guess-input::placeholder { color: #666; }
.guess-input:focus { border-color: #999; }

.guess-btn {
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #111;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.guess-btn:hover { opacity: 0.88; }

.action-row {
  display: flex;
  gap: 8px;
}

.guess-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.giveup-btn {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  border: 2px solid #8b2020;
  background: transparent;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  text-transform: uppercase;
  color: #e07070;
  transition: border-color 0.15s, color 0.15s;
}
.giveup-btn:hover { border-color: #c03030; color: #ff9090; }

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 2px solid #555;
  border-radius: 6px;
  z-index: 100;
  overflow: hidden;
}

.autocomplete-item {
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: #ccc;
  border-bottom: 1px solid #333;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.active { background: #2a2a2a; color: #fff; }
.autocomplete-item small { color: #888; font-size: 12px; display: block; margin-top: 1px; }

/* --- Wrong toast --- */
.wrong-toast {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e07070;
  text-align: center;
  height: 18px;
  transition: opacity 0.5s;
}

/* --- Cover border states --- */
.cover-wrap--correct {
  box-shadow: 0 0 0 5px #4caf50;
}
.cover-wrap--gave-up {
  box-shadow: 0 0 0 5px #e03030;
}

/* --- Cover overlay (album info) --- */
.cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.92) 60%, rgba(0,0,0,0.97));
  padding: 40px 14px 14px;
  border-radius: 0 0 4px 4px;
}

.cover-overlay-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.cover-overlay-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #ccc;
  margin-top: 2px;
}

/* --- Result section --- */
.result-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.result-status {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}
.result-status--correct { color: #4caf50; }

.result-time {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #aaa;
}
.result-time--gaveup {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e07070;
}

.next-btn {
  margin-top: 4px;
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #111;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s;
}
.next-btn:hover { opacity: 0.88; }

/* --- Final screen --- */
.final-wrap {
  max-width: 420px;
  width: 100%;
  padding: 0 24px;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.final-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.final-message {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

.final-rounds {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.final-round-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ccc;
}

.final-round-time { color: #fff; }

.final-round-pts {
  color: #a8e6a3;
  min-width: 32px;
  text-align: right;
}

.final-total {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.final-copy-btn {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.final-copy-btn:hover { border-color: #fff; }

.final-home-btn {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: opacity 0.15s;
}
.final-home-btn:hover { opacity: 0.88; }

/* --- Error banner --- */
.error-banner {
  max-width: 420px;
  width: 100%;
  padding: 0 24px;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.error-banner-text {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: #999;
  line-height: 1.6;
}

.error-banner-retry {
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid #555;
  background: transparent;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s;
}
.error-banner-retry:hover { border-color: #999; }

/* --- Report link --- */
.report-link {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.report-link:hover:not(:disabled) { color: rgba(255, 255, 255, 0.65); }
.report-link:disabled { cursor: default; text-decoration: none; color: rgba(255, 255, 255, 0.35); }

/* --- Report modal --- */
.report-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
}

.report-modal-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.report-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: #ccc;
  cursor: pointer;
}

.report-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.report-note {
  resize: none;
  height: 72px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 2px solid #444;
  background: transparent;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.report-note::placeholder { color: #555; }
.report-note:focus { border-color: #777; }

.report-modal-actions {
  display: flex;
  gap: 8px;
}

.report-cancel-btn {
  flex: 1;
  padding: 11px;
  border-radius: 6px;
  border: 2px solid #444;
  background: transparent;
  color: #aaa;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.report-cancel-btn:hover { border-color: #777; color: #fff; }

.report-submit-btn {
  flex: 1;
  padding: 11px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #111;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.report-submit-btn:hover:not(:disabled) { opacity: 0.88; }
.report-submit-btn:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 430px) {
  .game-wrap {
    margin-top: 88px;
    gap: 16px;
    padding: 0 16px;
  }
  .round-label { font-size: 22px; }
  .round-row { margin-bottom: 24px; }
  .cover-wrap {
    max-width: 84vw;
    margin: 0 auto;
  }
  .final-wrap {
    margin-top: 24px;
    padding: 0 16px;
  }
  .final-title { font-size: 40px; }
  .final-message { font-size: 22px; margin-bottom: 8px; }

  .guess-dots {
    gap: 16px;
    margin-bottom: 18px;
  }
  .guess-dot {
    width: 13px;
    height: 13px;
  }
  .guess-dot--giveup {
    font-size: 11px;
  }
}

@media (max-height: 680px) {
  .game-wrap { margin-top: 10px; gap: 12px; }
}
