#faithdle-root {
  max-width: 420px;
  margin: 0 auto 24px;
  text-align: center;
}

#faithdle-status {
  min-height: 28px;
  margin: 0 0 14px;
  font-size: 16px;
  color: #444;
  font-weight: 600;
}

#faithdle-status.celebration {
  color: #bc0c1c;
  font-size: 20px;
  line-height: 1.35;
}

#faithdle-streak-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
}

.faithdle-stat-card {
  min-width: 132px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e3e3e3;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.faithdle-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  margin-bottom: 4px;
}

.faithdle-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #bc0c1c;
}

#faithdle-game {
  margin: 0 auto 18px;
}

.faithdle-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.faithdle-tile {
  width: 58px;
  height: 58px;
  border: 2px solid #d6d6d6;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  box-sizing: border-box;
  color: #111;
}

.faithdle-tile.filled {
  border-color: #bdbdbd;
}

.faithdle-tile.correct {
  background: #bc0c1c;
  border-color: #bc0c1c;
  color: #fff;
}

.faithdle-tile.present {
  background: #dba17e;
  border-color: #dba17e;
  color: #fff;
}

.faithdle-tile.absent {
  background: #7a7a7a;
  border-color: #7a7a7a;
  color: #fff;
}

#faithdle-keyboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.faithdle-keyboard-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.faithdle-key {
  min-width: 34px;
  height: 46px;
  border: none;
  border-radius: 4px;
  background: #d6d6d6;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  padding: 0 8px;
  cursor: pointer;
  text-transform: uppercase;
}

.faithdle-key.wide {
  min-width: 58px;
  font-size: 12px;
}

.faithdle-key.correct {
  background: #bc0c1c;
  color: #fff;
}

.faithdle-key.present {
  background: #dba17e;
  color: #fff;
}

.faithdle-key.absent {
  background: #7a7a7a;
  color: #fff;
}

.faithdle-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  max-width: 320px;
  margin: 18px auto 0;
  text-align: left;
  color: #444;
  font-size: 14px;
}

.faithdle-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faithdle-legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08);
  flex: 0 0 auto;
}

.faithdle-legend-swatch.correct {
  background: #bc0c1c;
}

.faithdle-legend-swatch.present {
  background: #dba17e;
}

.faithdle-legend-swatch.absent {
  background: #7a7a7a;
}

#faithdle-hidden-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  #faithdle-root {
    max-width: 100%;
  }

  #faithdle-status.celebration {
    font-size: 18px;
  }

  #faithdle-streak-wrap {
    gap: 8px;
  }

  .faithdle-stat-card {
    min-width: 120px;
    padding: 9px 10px;
  }

  .faithdle-row {
    gap: 6px;
    margin-bottom: 6px;
  }

  .faithdle-tile {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .faithdle-keyboard-row {
    gap: 4px;
  }

  .faithdle-key {
    min-width: 30px;
    height: 42px;
    padding: 0 6px;
    font-size: 13px;
  }

  .faithdle-key.wide {
    min-width: 52px;
    font-size: 11px;
  }

  .faithdle-legend {
    max-width: 100%;
  }
}


.faithdle-login-wrap {
  max-width: 460px;
}

.faithdle-login-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  padding: 22px 20px;
  text-align: left;
}

.faithdle-login-title {
  margin: 0 0 8px;
  color: #bc0c1c;
  font-size: 26px;
  line-height: 1.15;
}

.faithdle-login-text {
  margin: 0 0 18px;
  color: #444;
}

.faithdle-login-card form {
  margin: 0;
}

.faithdle-login-card label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  color: #333;
}

.faithdle-login-card input[type="text"],
.faithdle-login-card input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 16px;
}

.faithdle-login-card .login-remember {
  margin: 0 0 14px;
}

.faithdle-login-card .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

#faithdle-login-submit {
  display: inline-block;
  border: none;
  border-radius: 8px;
  background: #bc0c1c;
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}

#faithdle-login-submit:hover {
  background: #a40a18;
}
