.worldle-game {
  --wg-blue: #1656d8;
  --wg-blue-dark: #0e3fa8;
  --wg-blue-soft: #eaf1ff;
  --wg-blue-border: #cddcf9;
  --wg-navy: #12233f;
  --wg-text: #2b3b52;
  --wg-muted: #64748b;
  --wg-border: #dde5f0;
  --wg-green: #16834b;
  --wg-red: #c0392b;

  box-sizing: border-box;
  max-width: 820px;
  margin: 30px auto;
  padding: 28px;
  background: #ffffff;
  color: var(--wg-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  border: 1px solid var(--wg-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(18, 35, 63, 0.07);
}
.worldle-game * { box-sizing: border-box; }

.worldle-game__header {
  text-align: center;
  margin: 0 0 20px;
}
.worldle-game__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wg-blue);
  margin: 0 0 8px;
}
.worldle-game__title {
  margin: 0;
  color: var(--wg-navy);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.worldle-game__subtitle {
  margin: 8px 0 0;
  color: var(--wg-muted);
  font-size: 15px;
}

.worldle-game__ticks {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
}
.worldle-game__ticks span {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--wg-border);
}
.worldle-game__ticks span.is-used { background: var(--wg-blue-dark); }
.worldle-game__ticks span.is-hit { background: var(--wg-green); }
.worldle-game__ticks span.is-miss { background: var(--wg-red); }

.worldle-game__stage {
  border: 1px solid var(--wg-border);
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
}
.worldle-game__stage-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.worldle-game__stage-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wg-muted);
}
.worldle-game__attempt-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--wg-navy);
}
.worldle-game__map {
  width: 100%;
  height: 340px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.worldle-game__map svg { display: block; width: 100%; height: 100%; }
.worldle-game__silhouette {
  fill: var(--wg-blue) !important;
  stroke: var(--wg-blue) !important;
  stroke-width: 1;
}
.worldle-game__loading {
  font-size: 13px;
  color: var(--wg-muted);
}
.worldle-game__hints {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.worldle-game__hint {
  border: 1px solid var(--wg-blue-border);
  background: var(--wg-blue-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--wg-text);
}
.worldle-game__hint strong { color: var(--wg-navy); }

.worldle-game__controls { margin-top: 20px; }
.worldle-game__label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--wg-navy);
  margin-bottom: 7px;
}
.worldle-game__input-row { display: flex; gap: 10px; }
.worldle-game__input {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--wg-border) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--wg-navy) !important;
  padding: 13px 14px !important;
  font-size: 16px !important;
  box-shadow: none !important;
}
.worldle-game__input:focus {
  outline: 3px solid var(--wg-blue-soft) !important;
  border-color: var(--wg-blue) !important;
}
.worldle-game__input:disabled { background: #f6f8fb !important; }
.worldle-game__button {
  border: 0;
  border-radius: 10px;
  background: var(--wg-blue);
  color: #fff;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.worldle-game__button:hover:not(:disabled) { background: var(--wg-blue-dark); }
.worldle-game__button:disabled { opacity: 0.5; cursor: not-allowed; }

.worldle-game__message {
  min-height: 20px;
  margin-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wg-muted);
}
.worldle-game__message.is-error { color: var(--wg-red); }
.worldle-game__message.is-success { color: var(--wg-green); }

.worldle-game__history { margin-top: 22px; }
.worldle-game__row {
  display: grid;
  grid-template-columns: 30px 1.6fr 1fr 0.7fr 1.1fr;
  gap: 8px;
  align-items: center;
  padding: 9px 6px;
  border-bottom: 1px solid var(--wg-border);
  font-size: 13px;
}
.worldle-game__row-head {
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wg-muted);
}
.worldle-game__bar {
  height: 7px;
  border-radius: 99px;
  background: var(--wg-blue-soft);
  overflow: hidden;
}
.worldle-game__bar span {
  display: block;
  height: 100%;
  background: var(--wg-blue);
  border-radius: 99px;
}

.worldle-game__result {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--wg-blue-soft);
  border: 1px solid var(--wg-blue-border);
  text-align: center;
}
.worldle-game__result h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--wg-navy);
}
.worldle-game__result-country {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--wg-blue);
}
.worldle-game__timer-label {
  margin: 0 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wg-muted);
}
.worldle-game__countdown {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--wg-navy);
}

@media (max-width: 620px) {
  .worldle-game { padding: 18px; margin: 18px auto; }
  .worldle-game__title { font-size: 26px; }
  .worldle-game__map { height: 260px; }
  .worldle-game__input-row { grid-template-columns: 1fr; display: grid; }
  .worldle-game__button { height: 46px; }
  .worldle-game__hints { grid-template-columns: 1fr; }
  .worldle-game__row { grid-template-columns: 24px 1.4fr 0.9fr 1fr; }
  .worldle-game__row > :nth-child(5), .worldle-game__row-head > :nth-child(5) { display: none; }
}
